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

Sending value from one jsp page to another jsp page  RSS feed

 
Aggarwal Arpit
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

If anybody having 2 jsp pages say, Page1.jsp and Page2.jsp and want to pass value from Page1.jsp to Page2.jsp, then he can do by using this line on Page1:

<a href="Page1.jsp?itemId=${list.id}" />


and this line on Page2:

request.getParameter("itemId");


 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36406
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. It would be better to go to a servlet first for processing, but this does work.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!