use JSTL c:url tag.
eg:
<c:url="myAction.do" var="myLink">
<c:param name="type" value="${user.value}"/>
<c:param name="id" value="${user.id}"/>
</c:url>
<a href='<c:out vaue="${myLink}"/>'>My Link</a>
Thanks,
Nuwan
----- Original Message -----
From: "Pierre Goupil" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Tuesday, December 05, 2006 6:51 AM
Subject: more than one parameter in a link
Hi, Strutsers !
For my first question here, I would like to know how to make an
<html:link>
which would contain more than one parameter without having to use a bean
property.
For example, I would like to be able to generate such a link :
http://localhost/myApp/myAction.do?type=2&id=12
Of course, I could use a Map from my bean. But the problem is that, in my
case, the bean have no way to know which value to give to the JSP : it's
the
JSP and it only who knows the values...
Regards,
Pierre
--
"L'une des raisons pour lesquelles la vie est complexe
C'est qu'elle a une partie réelle et une partie imaginaire."
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]