struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Musachy Barroso <musa...@gmail.com>
Subject Re: How to get value of tag attribute from OGNL?
Date Tue, 13 Oct 2009 19:31:41 GMT
that's only a problem for defining maps in ognl, which used the
"#{a:b}" syntax, which made the jstl el complain. The solution is just
to use the alternative map syntax:

#@java.util.LinkedHashMap@{ "foo" : "foo value", "bar" : "bar value" }

http://www.opensymphony.com/ognl/html/LanguageGuide/collectionConstruction.html#mapConstruction

On Tue, Oct 13, 2009 at 12:27 PM, Dale Newfield <dale@newfield.org> wrote:
> Alex Siman wrote:
>>>>
>>>> I switched off the JSTL-EL (as it was recomended in Struts2 wiki)
>>>
>>> Can you please point me to that?  Seems quite strange to me...
>>
>> Read the section "JSP 2.1" here:
>> http://struts.apache.org/2.1.8/docs/ognl.html
>
> That was added by Ted Husted on 3/23/2007.
>
> What are the problems that this addresses?  It seems that the cure is worse
> than the disease of having to escape a few #'s here and there (none in my
> codebase), especially after we've since restricted all the struts tags with
> rtexprvalue=false...
>
> -Dale
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message