Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

pass information between jsp  RSS feed

 
rimzim sinha
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my project , ihave 5 sperate jsps..which the user has to go through one by one ..in the end all the data(his selection in all 5 jsps) should be submitted..

what is the best method to pass information between jsp
1.session variable?
2.url rewriting?
3...?

rgds
Rimzim
 
Abhimanyu Kumar
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by rimzim sinha:

what is the best method to pass information between jsp
1.session variable?
2.url rewriting?
3...?

rgds
Rimzim


3) hidden variables

1) if you are putting the information in session, then remove it once the info is saved. Otherwise, it may make session heavy.

2) url rewriting will also do, but you will have to explicitly create the url ( like ?param1=<%=value%>

so for me, hidden parameters look like the best solution.
Correct me if i'm missing anything.

Oops, didnt notice you have 5 jsp's. So, if there are too many parameters, you may prefer to create one object with those parameters and set it in session. But dont forget to remove it once you are done with it.

Regards,
Abhimanyu.
[ November 18, 2004: Message edited by: Abhimanyu Kumar ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!