Hi everyone,
Say you have a hyperlink list that's built in a loop. The number of items in the list can vary based on the records in the database use to build the list. The text for each link is created based on a database lookup.
Each element in the list has it's own personnel information. Clicking on any of the links in the list would take you to another JSP page, where I want to display "Detail" information for the link clicked in the previous JSP page.
Therefore, my (basic?) question is how can you send the next JSP page specific information about the link that was clicked to call it?
I have code in jsp like:
<%
List<SelectForm> list=(List<SelectForm>)request.getAttribute("list");
Iterator ir =list.iterator();
%><html:form>
<table cellpadding="1" cellspacing="1" border="1" align="left" style="font-family: cursive;">
<tr style="color: maroon;"><th bgcolor="Pink" style="width: 100px;"> Firstname </th><th bgcolor="Pink" style="width: 100px;"> Lastname </th><th bgcolor="Pink" style="width: 100px;"> Country </th><th bgcolor="Pink" style="width: 200px;"> EmailId </th></tr>
<%
while(ir.hasNext())
{
sf=(SelectForm)ir.next();
<tr><td>
<%= sf.getFirstname() %>
</td><td>
<%= sf.getLastname() %>
</td><td>
<%= sf.getCountry() %>
</td><td>
<html:link action="/information" onfocus="focus()"><font color="#00FF00">
<%= sf.getEmailid() %></font></html:link>
</td>
<%
}
%>
</table></html:form>
here sf.getemailid() is in link form.
Thanks in advance for any ideas.