-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Hi,

you can write

<s:property value="@[EMAIL PROTECTED]" />

good sources for ognl are
http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/index.html
and
http://www.opensymphony.com/ognl/pdf/LanguageGuide.pdf

Volker



Chris Pratt schrieb:
> I don't think you can embed a scriplet inside the OGNL code of a
> struts tag any the newer versions of struts since they have disabled
> run-time expression evaluation on all their tags.
>   (*Chris*)
>
> On Fri, May 23, 2008 at 2:17 AM, ravi_eze
<[EMAIL PROTECTED]> wrote:
>> hi,
>>
>> i often get into funny problems and am not sure how to fix them for
example:
>>
>> <%@ import="com.constants" ...
>>
>> <%=constants.static1  %>   <!-- gives output as value1 -->
>> <s:property value="<%=constants.static1%>" <!-- gives output as value1 -->
>>
>> but when i use :
>> <s:textfield name="hashmap['<%=constants.static1%>']" <!--doesnt
work... -->
>>
>> i am totally clueless as to what is happening here!!!
>>
>> some times <s:property value="%{...}" will work...
>> some times <s:property value=%{#... or some thing}" will only work...  and
>> moreover tracing the ognl evaluation is hardly possible.
>>
>> so if we have a tool which can help me how the ognl is being
evaluated... it
>> would save me tons and tons of time.....  any ideas ??? :(
>>
>> cheers,
>> ravi
>> --
>> View this message in context:
http://www.nabble.com/Writing-valid-OGNL-tp17355855p17421934.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> 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]
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFINxxpx4KjH6Tk4MMRArF5AKCvGrAw9fSbghTjI/kHD2STvITa7QCdErvB
x1gr/fIzZzcQPweeTLUfmhw=
=VhJH
-----END PGP SIGNATURE-----


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

Reply via email to