• Post Reply Bookmark Topic Watch Topic
  • New Topic

confirmation page in jsf  RSS feed

 
AshkaN Kia
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
i have two page with two form, in first form i submit values and second page is confirmation of first page that get password ,in this way i want to check session before direct access to second page if the backingbean of first page exist in FacesContext i want to show second page otherwise i want to redirect it to first page, i dont want to use filter ,
any jsf solution for navigational form??
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DISCLAIMER: The more "do it yourself" security systems I see in J2EE, the more convinced I become that do-it-yourself security is one of the worst things anyone can do. I won't go over the whole list - it's getting too long, but I HIGHLY recommend using the security system that comes with J2EE. It's almost always more secure (most DIY systems have at least one hole you can drive an articulated lorry through), it costs less to code and maintain, and it's easier to adapt to new environments like SSO and portals.

JSF doesn't link to pages. Bean action processors return navigational info. that the framework uses to link to pages. If the bean on your first page doesn't like the submitted data, it can simply refuse to return the navigational token that causes JSF to display the second page. No need to go around mucking in the guts of arcane service classes or JSF-specific code. It's just a straight Javabean function.
 
AshkaN Kia
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
can you explain how?
i can set some permission for page access in acegi security.xml but ,i cant handle sequential or navigational form ,in direct access to second page i want to check first page validation and then let user to see it or not(redirect to first page)
 
Benedikt Z´┐Żnnchen
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should use the security constrain in your DD! Let the Servletcontainer do this job!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!