• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where to keep “form” value

 
jacob deiter
Ranch Hand
Posts: 580
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) I design a JSP page (A)which contains drop list and text fields, each fields having values in it
2) When I navigate to next page(B) and coming back to this screen
3) All the values in its(page A) will disappears
4) To main the data in the page A, even I came back to this page(A) from Page (B),what I have to do???
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unless you use a web-framework which does this automatically for you, you need to do a bit of tedious work.

1) The parameters should be stored in the session.
2) Your A.jsp should pre-insert these values.

e.g.

 
Himanshu Kansal
Ranch Hand
Posts: 257
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hope by "come back" you don't mean coming back by clicking browser's back button or pressing backspace or doing HTML DOM's history.back

Regards
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic