Hi,

I'm using Struts 2.0.11.

I'm a bit confused with the available "expression languages". I've found
that ${ ... }, %{ ... } and #... are all possible, but I'd like to know who
defines them, in which tags they are available, in which scopes they are
available, etc.

If I understand correctly, the ${ ... } is replaced by the servlet engine (
e.g. Tomcat), so if I include it in a struts Tag, it will be replaced by a
literal before it arrives to struts. Besides, this makes it available
outside a tag. For instance,

<html><body>
${myVar}
</body></html>

will display the contents of myVar if the server complies with JSP2.0.

Expressions with #... are OGNL, and are replaced by struts (webworks),
right?

What about the %{ ... } ?

Is there a document describing how all these options fit together?

Thanks in advance.

Reply via email to