• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setting a session variable in a 'href'

 
farhath farook
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i have a set of data that is displayed in a table in the JSP.
and when the hyper link on reach row is clicked i was to sent the object related to that row as value in the session( because i need that object in next to navigations.)
---------
the following code enables to pass parameters only
<c:forEach var ="report" items = "${pendingReports}">
<tr>
<td> ${report.reportname}</td>
<td> ${report.requestedDoctor}</td>
<td> ${report.requestedDate}</td>
<td> <a href= <c:url value ="Lab/UploadReport.jsp?report=${report}" /> >Upload</a></td>
</tr>
</c:forEach>
----------
can any one suggest the way how can i sent the session object on the fly according to the user selection..

thanks in advance
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to communicate with the server to execute the code to set the scoped variable. You can submit a form, load a new request, or use Ajax.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic