Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sending value from one jsp page to another jsp page

 
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
Marshal
Posts: 34401
346
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