--- [EMAIL PROTECTED] wrote:
> I am trying to figure out why this code works
> 
>   <s:submit *action="Login_cancel"*  
> key="button.cancel"/>
> 
> but this code does not
> 
>   <s:submit *action="Login_cancel"*  
> key="%{operation}"/>
> 
> Any ideas?--

The "key" attribute is a simple String so OGNL is not
evaluated. As further evidence of this note the
following (minimalized) fragment from UIBean.java:

public void evaluateParams() {
    if (this.key != null) {
        if(this.label == null) {
            this.label = "%{getText('"+ key +"')}";
        }
    }

d.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

Reply via email to