This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Data disappears from jsp after be redirected back Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Data disappears from jsp after be redirected back" Watch "Data disappears from jsp after be redirected back" New topic
Author

Data disappears from jsp after be redirected back

Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 331
Hi,

I have an application which receive an object with data as parameter in a bean then I read that data
using set and get from my *.jsp. Till this point all is working but in my jsp I link with a different website(in another server) and when from the other app I come back(automatically the other app redirect me back to my app), all the data from the object which I retrieved before as parameter is not displayed in the screen as before.

Could somebody tell me what way could I make that the infomation appears in my web after comes back

Many Thanks,
shivam singhal
Ranch Hand

Joined: Jul 15, 2012
Posts: 216

If you redirect directly from 2nd servlet to previous jsp. . Then off-course your jsp is unable to fetch data from servlet 1 .. And it is also unable to fetch data from servlet 2 because parameters are not matching. . .
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

Hi Angus,

if its really require for you to keep the data then you need to store the data before switching to other sites and when the site redirects user to your side you can display the data sotred.(You can add data in session) else you can Ask the third party to redirect it to the servlet which transfers you to the jsp with data.

Regards
jatan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Data disappears from jsp after be redirected back
 
Similar Threads
to pass input text to other jsp thro servlet
Passing huge string to JSP..
Error Redirection w/Params?
Ajax drop down
Request input stream