I'm not sure exactly what you're trying to do, but you can do both of the
following:

<html:link page"/myPage.do?myParam=someValue&param2=anotherValue" />

or

<html:link page"/myPage.do" paramId="myParam" paramName="someBean"
paramProperty="somePropertyOfTheBean" />


Hope this helps.


- Keith



-----Original Message-----
From: Mike Whittaker [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 19, 2003 2:03 PM
To: Struts Users Mailing List
Subject: RE: 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!?
>

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to