This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JSP and the fly likes Link to show another JSP with Detail from selected entry Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Link to show another JSP with Detail from selected entry" Watch "Link to show another JSP with Detail from selected entry" New topic
Author

Link to show another JSP with Detail from selected entry

thomas colding
Ranch Hand

Joined: Mar 23, 2007
Posts: 60
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

Joined: Sep 29, 2008
Posts: 12617

Put a unique ID in the link as a parameter and use it to retrieve the details?
thomas colding
Ranch Hand

Joined: Mar 23, 2007
Posts: 60
Can you show how to build the link with the unique Id.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Hmm.

Sure.
thomas colding
Ranch Hand

Joined: Mar 23, 2007
Posts: 60
Thanks
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Link to show another JSP with Detail from selected entry
 
Similar Threads
problem sending a bean as a parameter from a link in a table column
how to iterate.
how to get the value saved in request scope in a servlet into a jsp page
DynaValidatorActionForm not working
JSF TreeMap Iteration Problem Using JSTL In XHTML