Dynamic links in JSP

Hi guys,

I have a JSP page which prints the results from a servlet thru a bean. I am using logic:iterate to run thru the results and to print them. My problem is that i have to display information based on a particular result (when clicked) in another JSP page. I have all the information stored in the bean. I just have to pick the right data according the link. I was looking at the logic tag again but could not get any hint of how to do it.

Can anyone help...please!!!!

thanx in advance

[515 byte] By [pabua] at [2007-9-23]
# 1
pass a identifier with the link from the JSP and depending on the identifier loop throgh the required data
sampathnka at 2007-7-10 > top of java,Enterprise & Remote Computing,Web Tier APIs...
# 2

Hi sampathnk,

i am not sure if what i am doing is right!!!

this is what i am doing...

*************

the following section is in my first JSP where i print the brief results...

<logic:iterate id="courseresults" name="Results">

<tr>

<td width="15%"><bean:write name="courseresults" property="coursecode" /></td>

<td width="85%"><a href="/cfinder/JSP/detail_results.jsp?id=<bean:write name="courseresults" property="coursename" />"><bean:write name="courseresults" property="coursename" /></a></td>

</tr>

</logic:iterate>

and this section is my second JSP where i print the course details when clicked on a scpecfic course in the first JSP..

<logic:iterate id="coursename" name="Results">

<tr>

<td width="20%"><bean:write name="coursename" property="coursedesc" /></td>

<td width="20%"><bean:write name="coursename" property="degree" /></td>

<td width="20%"><bean:write name="coursename" property="units" /></td>

<td width="20%"><bean:write name="coursename" property="studyperiod" /></td>

<td width="20%"><bean:write name="coursename" property="strand" /></td>

</tr>

</logic:iterate>

the first JSP is working fine but when i click on the course it gives me a ServletException as follows...

cannot find bean Results in any scope

*************

can u please help me fix this problem..

thanx

pabua at 2007-7-10 > top of java,Enterprise & Remote Computing,Web Tier APIs...
# 3
i got it fixed...thanx sampathnk
pabua at 2007-7-10 > top of java,Enterprise & Remote Computing,Web Tier APIs...