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]