It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Java Forum

Redirection of url

Redirection of url

Postby bhatpp on Mon Feb 19, 2007 9:58 am

Hi,

I have JSP 1 being hosted in one application server 1, i.e. thats the login page, on succesfull login i need to redirect the control to another JSP 2 hosted in another appilcation server 2.

But if any user tries to access the JSP2 directly i need to throw up a message saying he is currently not logged in.

So while redirecitng from JSP1 i need to pass some paramter or data which can be retrieved in JSP2 and decide on whether the user has come after successful logging in or direclty accessed the JSP2.

If i save something in session,will that be accessible accross two differnet application servers

Please let me know what approach to be used for this or some references.
bhatpp
 
Posts: 2
Joined: Mon Feb 19, 2007 9:53 am

Postby wiz123 on Mon Feb 19, 2007 11:17 am

one of the approach is that you can go for cookies.
In jsp page 1 you can save some information which you can check on jsp page 2.But if you need high security you should not follow this.

Regards
wiz
wiz123
 
Posts: 0
Joined: Mon Feb 19, 2007 10:42 am


Who is online

Users browsing this forum: No registered users and 0 guests