Hi,
you're right - ognl is confusing :)

I always found it helpful to look at the OGNL specification.

According to http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/varref.html #name means it's a variable.

I usually use this form for local constructs like this:
   <s:iterator value="%{possibleFields}" status="status">
<s:textfield name="possibleFields[%{#status.index}].value" value="%{value}" theme="simple"/>
   </s:iterator>

The iterator status can only be used with the variable %{#name} form. The values on the ognl stack can be used with the normal %{name} form.

Hope that helps,
Joachim
Hi,
I have query regarding OGNL Expression. Can the "#name" kind of expression be used anywhere? Or are they
applicable only in certain attributes of struts tags

Till now I was using the %{name} expression and that too in the some
attribute of a tag

I tried using #name expression but it does not work.  Is there any
settings to be set (for example in web.xml)
Any pointers would be a great help.
Thanks
Thomas


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





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

Reply via email to