struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul <>
Subject RE: [S2] <s:url> w/ params?
Date Tue, 01 May 2007 15:18:49 GMT

Doh! Thanks once again Dave. Works now. :)


-----Original Message-----
From: Dave Newton [] 
Sent: Tuesday, May 01, 2007 11:02 AM
To: Struts Users Mailing List;Paul
Subject: Re: [S2] <s:url> w/ params?

--- Paul <> wrote:
> <input type="button" onclick="location.href='<s:url
> action="editAction"><s:param name="method"
> value="add"/></s:url>'"
> Value="Add"/>
> When viewing the page source after rendering should
> it not read:
> location.href='' ?

Value is an object, so you'd probably want:

<s:param name="method" value="%{'add'}"/>

That's probably why they have the warning in yellow on
(every?) tag doc page and the link above contains the
following gem:

= value is an Object!

[...] if there is a reason to set the value directly,
be advised that value is an Object NOT a String.

Since value is not a String, whatever is passed to
value is evaluated as an expression - NOT a String


I *think* what they're trying to say is that it's not
a string, but an object.

(That section always makes me smile; it's a great
reminder for every... single... time... I do the exact
same thing because I forgot.)


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message