--- "Petzsch, Martin" wrote:
> Which is fine - except; why is the OGNL in the
> method attribute not processed?

I don't believe that every attribute is expecting an
OGNL expression.

The problem is that the tag reference claims "method"
is evaluated, but the source doesn't appear (on
cursory examination) to evaluate it.

I think the issue would be that if 'method' was always
evaluated then if you were just passing in a string
you'd need to quote it:

<s:url ... mathod="'list'" .../> which is unwieldy.

This would be a field where I'd want to see "forced
evaluation", i.e., require the use of the OGNL escape
chars if it was meant to be an expression, otherwise
it would be a simple string:

<s:url ... method="%{myExpr}" .../> (force eval)
<s:url ... method="myMethod" .../> (simple string)

I'd file a JIRA; don't know what the outcome would be.
At minimum a documentation change, at most the
creation of a set of "optionally evaluated"
attributes.

d.



       
____________________________________________________________________________________
Choose the right car based on your needs.  Check out Yahoo! Autos new Car 
Finder tool.
http://autos.yahoo.com/carfinder/

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

Reply via email to