2017-03-10 16:59 GMT+01:00 Vishal Jhagadiawala <vish_...@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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to