You can do it with JSP tags, no scriptlets required. Try something like this (I haven't tested it, but experiment a bit if it doesn't work quite as written here):

  <c:set var="mymap['prop1']" value="paramValue1"/>
  ...

L.

N G wrote:

How do you push the 2 parameters into the Map? You mean using a
scriptlet? I want to avoid any type of straight Java code in my page.

Is there a way to push those parameters into the map using JSTL?

Thanks,
NG

On 7/29/05, Laurie Harper <[EMAIL PROTECTED]> wrote:

N G wrote:

<html:link> only allows 1 map and 1 param-value pair. However, I need
to add 2 params besides the map.

Adding this param to the map is not an option, I don't think. I
generate my map inside the form bean. The data for the 2 extra params
is not available in the form and is only available on the page.

How do I do this? I have the option of using JSTL, but I am not sure
how to do this in JSTL either.

You can always push the extra 2 params into the map in the JSP. If that
wont work for you, you could try including them explicitly in the
<html:link>'s action attribute, like

 <html:link action="/myaction.do?param1=${expr1}&param2=${expr2}" ...

L.

--
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/laurie


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




--
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/laurie


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

Reply via email to