• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

setting a session variable in a 'href'

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic