On 4/19/05, Rafael Taboada <[EMAIL PROTECTED]> wrote: > Hi folks. I have a problem. i don't really know how to do that.. > > i have a jsp it shows a list of customers. but for each costumer there > is a link to another jsp called detail. > > my problem is i don't know how to connect both jsp. i populate the > list jsp with my actionform. that's ok. but if the user clicks on a > specific customer... how to send that customer to detail jsp in order > to show data about this customer??..
Something like this: <!-- Show item list --> <logic:iterate id="item" name="itemListForm" property="itemList" type="com.acme.business.BusinessObj"> <tr> <td><bean:write name="item" property="id"/></td> <td><bean:write name="item" property="value"/></td> <!-- Edit Item --> <td> <html:link page="/editItem.do" paramId="id" paramName="item" paramProperty="id">Edit</html:link> </td> </tr> </logic:iterate> <html:link> will create a link with query parameter "id=...", so it will look like "editItem.do?id=1234". It is not recommended (see Ted Husted's tips) to process request directly by JSP, better to pass it through action class, as shown here. But there are exceptions from each rule. > If u have some code to review, i would thank u. As a matter of fact, I do: http://www.theserverside.com/articles/article.tss?l=RedirectAfterPost2 http://www.superinterface.com/files/prgpattern.zip Michael Jouravlev. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]