You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mike Whittaker <mi...@ntlworld.com> on 2003/08/19 14:55:48 UTC

adding a parameter to html:link with a map

I want to be able to add a literal parameter to a link

but I already successfully use <html:link page"/myPage.do" name="myMap" />
this adds a Map of parameters, but I'd like to be able to add further
parameters literally (ie not from a bean).

Is there any way I can achieve this, by struts or jstl or anything!?

--
Mike W


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: adding a parameter to html:link with a map

Posted by Mike Whittaker <mi...@ntlworld.com>.
>I want to be able to add a literal parameter to a link
>
>but I already successfully use <html:link page"/myPage.do" name="myMap" />
>this adds a Map of parameters, but I'd like to be able to add further
>parameters literally (ie not from a bean).
>
>Is there any way I can achieve this, by struts or jstl or anything!?
>

Okay I can do this:

<c:set value="true" target="${myForm.map}" property="print" />
<html:link page="/MyPage.do" name="queryParams">Printer page</html:link>
<c:set value="false" target="${myForm.map}" property="print" />

seems a bit of a kludge, be nice to just specify an addition rather than put
in and take it out of the map.

--
Mike W


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org