You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jose Maria Alvarez Rodriguez <Jo...@fundacionctic.org> on 2005/06/20 17:45:42 UTC
How to pass param implicit Object to html:link
Hi, I am a developer on Jstl with Struts, my problem is that I want to
pass the object "param" to the tag html:link but the server responses:
"Can not find bean "param" in any scope".
Is there any way to pass the Map param to html:link?
Thank you in advance¡¡¡
The code is the next one:
<html:link action="/myAction" name="param">
...
</html:link>
<html:link action="/myAction" name="${param}">
...
</html:link>
--
**********************************************************
Jose María Alvarez Rodriguez
Departamento de I+D+I
Fundación CTIC
-Centro Tecnológico de la Información y la Comunicación-
E-mail: josem.alvarez@fundacionctic.org
Tfno: +34 984 29 12 12
Parque Científico Tecnológico Gijón-Asturias-Spain
www.fundacionctic.org
********************************************************
Re: How to pass param implicit Object to html:link
Posted by Martin Gainty <mg...@hotmail.com>.
Bienvenidos Jose
http://struts.apache.org/userGuide/struts-html.html#link
to quote
"paramName is The name of a JSP bean that is a String containing the value
for the request parameter named by paramId (if paramProperty is not
specified), or a JSP bean whose property getter is called to return a String
(if paramProperty is specified)."
I didnt see paramName, paramID or paramProperty specified
Saludos Cordiales desde EEUU!
Martin-
001-617-852-7822
http://www.laconiadatasystems.com
----- Original Message -----
From: "Jose Maria Alvarez Rodriguez" <Jo...@fundacionctic.org>
To: <us...@struts.apache.org>
Sent: Monday, June 20, 2005 11:45 AM
Subject: How to pass param implicit Object to html:link
Hi, I am a developer on Jstl with Struts, my problem is that I want to
pass the object "param" to the tag html:link but the server responses:
"Can not find bean "param" in any scope".
Is there any way to pass the Map param to html:link?
Thank you in advance¡¡¡
The code is the next one:
<html:link action="/myAction" name="param">
..
</html:link>
<html:link action="/myAction" name="${param}">
...
</html:link>
--
**********************************************************
Jose María Alvarez Rodriguez
Departamento de I+D+I
Fundación CTIC
-Centro Tecnológico de la Información y la Comunicación-
E-mail: josem.alvarez@fundacionctic.org
Tfno: +34 984 29 12 12
Parque Científico Tecnológico Gijón-Asturias-Spain
www.fundacionctic.org
********************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: How to pass param implicit Object to html:link
Posted by Jose María <jo...@fundacionctic.org>.
Hi, I have got create the link with the params in the request, the code
is the next one:
<c:url var="rdfaction" value="/action/showArticleRdf">
<c:forEach items="${param}" var="parameter">
<c:param name="${parameter.key}" value="${parameter.value}" />
</c:forEach>
</c:url>
<a href="<c:out value="${rdfaction}" />">
Text Link
</a>
It is tested.
Well, Thanks everyone for your replies¡¡.
Bye¡
--
**********************************************************
Jose María Alvarez Rodriguez
Departamento de I+D+I
Fundación CTIC
-Centro Tecnológico de la Información y la Comunicación-
E-mail: josem.alvarez@fundacionctic.org
Tfno: +34 984 29 12 12
Parque Científico Tecnológico Gijón-Asturias-Spain
www.fundacionctic.org
********************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org