struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: issue with getting current date using date tag in latest struts 2.3.3X
Date Fri, 10 Mar 2017 16:04:09 GMT
2017-03-10 16:59 GMT+01:00 Vishal Jhagadiawala <vish_212@yahoo.com.invalid>:
> Hi,I am having issue with following date tag, after upgrading to struts 2.3.30
> <s:date name="%{new java.util.Date()}" format="yyyy-MM-dd" />
>
> it shows no value in the UI page.
> Question: was there usage of OGNL expression changed in latest version of struts2. eg.
2.3.30,  the above usage works without issue in Struts2 2.2.1
> any help would be appreciated.

Yes, you should see an error message in the logs, using "new" in
expressions is not allowed.
http://struts.apache.org/docs/security.html#Security-Internalsecuritymechanism


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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


Mime
View raw message