> Date: Wed, 9 Jun 2004 10:12:08 -0400
> From: Kris Schneider <[EMAIL PROTECTED]>
> To: Struts Users Mailing List
> <[EMAIL PROTECTED]>
> Subject: Re: html:link and map of request parameters
> There's really not much difference between using:
>
> Map results = new HashMap(map);
>
> and:
>
> Map results = new HashMap();
> results.putAll(map);
>
> Maybe I'm missing the point you're trying to make,
> but I don't see how that
> would solve the problem.
You're correct. I must have mis-read the source code
and the Map interface. I thought this was possible:
Map results = map.clone(); // WRONG!
results.putAll(map);
but after reading the Javadocs on Cloneable I doubt
that will work. Plus clone() comes from the Cloneable
interface and not every class that implements Map
implements Cloneable. I think WeakHashMap is the only
one...grrr.
I did some more testing (I thought I tried this case
before) and found that c:url does what I want when I
don't specify "value":
<c:url var="p" value="">
<c:param name="a" value="1"/>
<c:param name="b" value="2"/>
<c:param name="c" value="3"/>
<c:param name="d" value="4"/>
</c:url>
I got all worked up for nothing :(
- Ron
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]