"Joe Germuska" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Has anyone done anything about this:
>
> Chris Bare wrote:
> >Is there any interest in a ParameterTag that would
> >allow parameters to be added to the URL generated by
> >LinkTag? Something that would allow you to do create
> >links like so:
My take is that a special parameter tag is not necessary. The <html:link>
tag allows you to pass a Map of parameters and values, so what I've done is
to create a couple of tags that allow me to create such a map and add
elements to it. The usage looks like this:
<coll:mapCreate var="params"/>
<coll:mapAdd map="${params}" key="param1" value="value1"/>
<coll:mapAdd map="${params}" key="param2">value2</coll:mapAdd>
<html:link action="/MyAction" name="params">
...
</html:link>
The map tags could be added to Unstandard at Jakarta Taglibs, if there's
interest.
--
Martin Cooper
>
> (from 2003-07-03, see
> http://marc.theaimsgroup.com/?l=struts-dev&m=105726259312808&w=2)
>
> Craig indicated that he thought it made sense
> http://marc.theaimsgroup.com/?l=struts-dev&m=105726389314243&w=2
>
> This issue has come up twice this morning with developers here. I'm
> just wondering if anyone has actually written the code (Chris?)
>
> Joe
> --
> --
> Joe Germuska
> [EMAIL PROTECTED]
> http://blog.germuska.com
> "If nature worked that way, the universe would crash all the time."
> --Jaron Lanier
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]