JSP security problem.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rsrinivasan
    New Member
    • Mar 2007
    • 221

    JSP security problem.

    Hi,

    Im working in struts project. In this when i select available URL in my browser, it automatically redirects to that page. Instead i need to redirect to login page. how can i do it?

    Thanks,
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by rsrinivasan
    Hi,

    Im working in struts project. In this when i select available URL in my browser, it automatically redirects to that page. Instead i need to redirect to login page. how can i do it?

    Thanks,
    Before your dispatching Servlet does anything at all it should check whether or
    not a valid Session exists. If so, redirect to the wanted page because the user
    is logged in. If not, the user is not yet logged in so redirect the user to the login
    page. If the login succeeds, create a valid Session (and make it expire).

    kind regards,

    Jos

    Comment

    Working...