• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to keep my Field values intact between JSPs when using 'HREF'

 
Neha Sharma
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can you guys suggest me what is the best industry practice to achieve this. I have a jsp in which I have some fields. I have lookup for one of the field. The user clicks the lookup button and it takes it to the lookup JSP where all the key value pairs are shown. When the user select one of the key by pressing the 'HREF' I come back to my original JSP. Populating the key selected in the field. But by doing so the other fields which the user had already written, gets lost. Because I'm pressing the HREF from the lookup screen and it is not bringing back the original 'request'.
Please suggest.
Thanks
Neha
 
Bhuvana Madhav
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
If you have less number of fields's value to be retained you can very well pass it along with the URL and get it back.
If more values need to be maintained you can try session . If not session you can even submit the pages.
bye
Bhuvana
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!