mardi 26 mai 2015

Web page deny an user going to a html page directly, without going through a previous html page with a form

I am developing a JavaEE (JSF/EJB/JPA) web app. In consists in 3 xhtml pages (page1, page2 and page3). In page1.xhtml you insert some data in some forms, then if the data is correct you go to page2.xhtml and insert more data, and finally if the data inserted in page2.xhtml is correct you can go to page3.xhtml.

How can I do so that an user is not able of writing http://ift.tt/1dvNRhP in the browser URL and access to page3.xhtml, if he has not previously gone through page1.xhtml and page2.html and filed the forms correctly?

Aucun commentaire:

Enregistrer un commentaire