• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

page transition in JSP-logic needed

 
karthik mahalingam
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i have a problem with JSP...
let me explain my problem in detail...
i have three JSP pages.
in the first page im getting two values from a text box and submitting the form and directing to second JSP
in the second jsp iam retreiving certain values from a database using the values entered in the first JSP and displaying them .....then using a button iam calling the third JSP(i.e.,using onClick event of a button)
in the third JSP page iam having another button to call back the second page...
when iam directed to the second page it gets loaded but the data which was listed there previously is not available now....
so i want a logic to get it displayed again when the page is loaded...

this is very urgent...
thanks in advance
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can either pass the data with the request or hold it in session. What do I mean? Well if you are passing values with the request you must include them either in the query string (if its a GET) or passed as hidden form fields (if its a POST). If you don't want to pass values around then make yous JSPs stateful and hold on toi the data as its entered.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic