• Post Reply Bookmark Topic Watch Topic
  • New Topic

Link to show another JSP with Detail from selected entry

 
thomas colding
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am having a portlet where i am saving the list of records received via SOAP in a request scope


request.setAttribute("SOAPLIST", soaplist);


In the jsp I display the content of this list as followed

<h1>Course Details</h1>

<table border="0" >
<tr>
<td>Id</td><td>Name</td><td>Day</td><td>Time</td><td>Adress</td>
</tr>
<c:forEach var="s" items="${requestScope.soaplist}">
<tr>
<td><cut value="${s.name}" /></td>
<td><cut value="${s.day}" /></td>
<td><cut value="${s.time}" /></td>
<td><cut value="${s.adress}" /></td>
<td> Edit</td>
</tr>
</c:forEach>


My challenge is how to build a link that can show the rest information in a another detail page by Clicking on the 'Edit' in the last Column above.
Each entry do have a unique key.

Any idea what to do


 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Put a unique ID in the link as a parameter and use it to retrieve the details?
 
thomas colding
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you show how to build the link with the unique Id.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm.

Sure.
 
thomas colding
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!