struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <>
Subject Re: issue with getting current date using date tag in latest struts 2.3.3X
Date Fri, 10 Mar 2017 16:12:08 GMT
I'm surprised that worked, since it's supposed to be the name of the date
property you want to display. Maybe it was introspecting to see if it was
an immediate date value, but that's deceptive and counter-intuitive.

In any case, that's a large version jump. OGNL was updated multiple times.
If I were guessing (which I am; sorry) I'd say it's related to the
evaluation of parameter names in OGNL.

Unrelated, but making this work correctly seems like a win.


On Fri, Mar 10, 2017 at 10:59 AM, Vishal Jhagadiawala <> wrote:

> 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.
> Regards,
> Vishal

m: 908-380-8699
s: davelnewton_skype
t: @dave_newton <>
b: Bucky Bits <>
g: davelnewton <>
so: Dave Newton <>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message