File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes how i can redirect (without loosing session) to a full url from jsp page in struts. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "how i can redirect (without loosing session) to a full url from jsp page in struts." Watch "how i can redirect (without loosing session) to a full url from jsp page in struts." New topic
Author

how i can redirect (without loosing session) to a full url from jsp page in struts.

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 550
Hi
Thank you for reading my post
I have a problem.
problem is :
I should go back to last visited page after my user login or changed locale or ..
i can retrive las visited page : by using request.getheader("Referer")
and i store it into a session variable.
No after my user loged in i should forward?redirect? or sending him/her back to that url
without loosing his/her session
Problem is : its a full url and i just can redirect ro a sub url in my context? (pleas correct me if i am wrong)

how i can send my visitor back to thier page which i stored in session ?
for example is there any tag in jsp or struts for it?


Thank you
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how i can redirect (without loosing session) to a full url from jsp page in struts.
 
Similar Threads
forwarding to jsp
Saving user enter values in a form
handling session time out
redirecting a logged in user to the previous page
How to open a jsp page from Action without defining it in Config file?(url dynamical)