Why don't use Struts tag s:date for date formatting?
in Action:
public GregorianCalendar getMyDate() {
return new GregorianCalendar();
}
in jsp:
<s:date name="myDate" format="d. M. yyyy HH:mm" />
Michal
Hi all,
i do it like that:
in my POJO GregorianCalendar field,
on my jsp text field + jquery calendar.
If You want to create date in some kind of predefined format
You can use Conventer for GregorianCalendar for your app.
Best greetings,
Paweł Wielgus.
2010/7/27 Reeshi Agrawal<rushiagra...@gmail.com>:
Same problem with me...
I want (through Struts 2 tags), a way to display date as three adjacent
(side-by-side) drop-down menus, one each for date,month and year. Normally
what will happen is: the three drop-down menus will be displayed in three
separate consecutive rows in the HTML table generated in Struts 2. But I
want them to be present in a single row in the displayed HTML table. Do I
need to do some modification in the freeMarker templates' .ftl files? Or is
there another very simple thing that I am missing?
I know I am asking a very simp;e thing, but its bugging me from quite some
time...
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org