You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Navjot Singh <na...@net4india.net> on 2004/06/25 13:59:46 UTC
parameterized html:link problem
hi list,
I am not good in jsp views. Can someone tell me the way to accomplish
the below?
I wish to generate is link <a href="/myapp/View.do?CODE=ABC">View</a>
and i am doing this.
=============
<c:forEach items="${PRODS}" var="prod">
<tr><td>
<c:out value="${prod.productVo.name}"/>
<html:link page='/View.do?CODE=<c:out value="${prod.productVo.code}"/>'>
View </html:link>
</td></tr>
</c:forEach>
=============
but it generates <a href="/myapp/View.do?CODE=<c:out
value="${prod.productVo.code}"/>'">View</a>
TIA
Navjot Singh
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: parameterized html:link problem
Posted by Navjot Singh <na...@net4india.net>.
thx nicolas,
It worked. Though i had read the link you mentioned but couldn't get it.
Sometimes, examples can teach you better.
thx again
navjot
Nicolas De Loof wrote:
> <c:forEach items="${PRODS}" var="prod">
> <tr><td>
>
> <c:out value="${prod.productVo.name}"/>
>
> <html:link action="/View" paramId="Name" paramName="prod" paramProperty="productVo.code">
> View </html:link>
>
> </td></tr>
> </c:forEach>
>
> http://jakarta.apache.org/struts/userGuide/struts-html.html#link
>
> Nico.
>
>
>
>>hi list,
>>
>>I am not good in jsp views. Can someone tell me the way to accomplish
>>the below?
>>
>>I wish to generate is link <a href="/myapp/View.do?CODE=ABC">View</a>
>>and i am doing this.
>>
>>=============
>><c:forEach items="${PRODS}" var="prod">
>><tr><td>
>>
>><c:out value="${prod.productVo.name}"/>
>>
>><html:link page='/View.do?CODE=<c:out value="${prod.productVo.code}"/>'>
>>View </html:link>
>>
>></td></tr>
>></c:forEach>
>>=============
>>
>>but it generates <a href="/myapp/View.do?CODE=<c:out
>>value="${prod.productVo.code}"/>'">View</a>
>>
>>TIA
>>Navjot Singh
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> Our name has changed. Please update your address book to the following format: "recipient@capgemini.com".
>
> This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> .
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: parameterized html:link problem
Posted by Nicolas De Loof <ni...@capgemini.com>.
<c:forEach items="${PRODS}" var="prod">
<tr><td>
<c:out value="${prod.productVo.name}"/>
<html:link action="/View" paramId="Name" paramName="prod" paramProperty="productVo.code">
View </html:link>
</td></tr>
</c:forEach>
http://jakarta.apache.org/struts/userGuide/struts-html.html#link
Nico.
> hi list,
>
> I am not good in jsp views. Can someone tell me the way to accomplish
> the below?
>
> I wish to generate is link <a href="/myapp/View.do?CODE=ABC">View</a>
> and i am doing this.
>
> =============
> <c:forEach items="${PRODS}" var="prod">
> <tr><td>
>
> <c:out value="${prod.productVo.name}"/>
>
> <html:link page='/View.do?CODE=<c:out value="${prod.productVo.code}"/>'>
> View </html:link>
>
> </td></tr>
> </c:forEach>
> =============
>
> but it generates <a href="/myapp/View.do?CODE=<c:out
> value="${prod.productVo.code}"/>'">View</a>
>
> TIA
> Navjot Singh
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
Our name has changed. Please update your address book to the following format: "recipient@capgemini.com".
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org