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

2003-08-20 Thread Kamholz, Keith (corp-staff) USX
I'm not sure exactly what you're trying to do, but you can do both of the
following:



or




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 
>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:


Printer page


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]



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

2003-08-19 Thread Greg Ludington
>Okay I can do this:
>
>
>Printer
page
>
>
>seems a bit of a kludge, be nice to just specify an addition rather
than put
>in and take it out of the map.

I am not sure it is recommended practice to mix Map and single params in
the same html:link tag, but, if all you need is to add a print=true to
the end of one of your standard links, this should do the trick:

Printer page

Assuming you have some bean named "myBean" defined, and the value of
that bean is "true", this will add both your Map of parameters and
print=true to the link's query string.

-Greg



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



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

2003-08-19 Thread Mike Whittaker

>I want to be able to add a literal parameter to a link
>
>but I already successfully use 
>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:


Printer page


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]