Hey Murray....I tried what you suggested but the values dont seem to be resolving. The link becomes
http://localhost:8080/testapp/StartBuyPolicy.do;jsessionid=8DE06461ADFCD864AF7CD5657A1C1DFD?x=${webProduct.id}&y=${webProduct.productType} Im not too sure why I cant output the values. I can print out those values via <c:out value="${webProduct.id}" /> so I know they exist. Any suggestions? Jadeler --- Murray Collingwood <[EMAIL PROTECTED]> wrote: > Hi Jadeler > > Fortunately it's simpler than that... you don't need > all that scriptlet stuff. Try this and > see if it works. > > <c:forEach var="webProduct" > items="${webProductList}" varStatus="loopStatus"> > > <html:link > action="/StartBuyPolicy?x=${webProduct.id}&y=${webProduct.name}"> > Buy product > </html:link> > > </c:forEach> > > HTH > mc > > > On 20 Oct 2005 at 19:56, Jadeler wrote: > > > Im having problems trying to build my url using > > html:link and jstl. Im iterating over a list > using > > jstl and I want to pass in the id to the url. > > Currently, im doing this: > > > > <c:forEach var="webProduct" > items="${webProductList}" > > varStatus="loopStatus"> > > > > <html:link action='<%= "/StartBuyPolicy?x=" + > > Constants.TU_PROD_TRS + "&y=" + > > Constants.TU_PLAN_VIS%>'>Buy product</html:link> > > > > </c:forEach> > > > > I want to do something like this: > > > > <c:forEach var="webProduct" > items="${webProductList}" > > varStatus="loopStatus"> > > > > <html:link action='<%= "/StartBuyPolicy?x=" + > > ${webProduct.id} + "&y=" + ${webProduct.name} > %>'>Buy > > product</html:link> > > > > </c:forEach> > > > > Any help is appreciated. Thanks. > > > > Jadeler > > > > > > > > > > > > > > > __________________________________________________________ > > > Find your next car at http://autos.yahoo.ca > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > -- > > No virus found in this incoming message. > > Checked by AVG Anti-Virus. > > Version: 7.0.344 / Virus Database: 267.12.4/143 - > Release Date: 19/10/2005 > > > > > > FOCUS Computing > Mob: 0415 24 26 24 > [EMAIL PROTECTED] > http://www.focus-computing.com.au > > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.344 / Virus Database: 267.12.4/143 - > Release Date: 19/10/2005 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __________________________________________________________ Find your next car at http://autos.yahoo.ca --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]