Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Data disappears from jsp after be redirected back

 
Isaac Ferguson
Ranch Hand
Posts: 835
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 231
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 299
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic