It don't works, because the JSP local variable is not an OGNL local variable.

The JSP local variable will be translated into a local variable of the
Servlet code,
and it is a local variable of Java language, so you can not reference it in
the OGNL expression.

An OGNL local variable should be [put into] the value stack of OGNL context,
before you can reference it in other OGNL expression.

Before you can reference an OGNL local variable, you need define it,
using <s:set> tag (In struts2).


See:
http://www.opensymphony.com/ognl/html/LanguageGuide/basicSyntax.html
and
http://www.opensymphony.com/ognl/html/LanguageGuide/varref.html

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to