struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bilobag <>
Subject Display XMLGregorianCalendar as date on jsp page using type converter
Date Tue, 03 Feb 2009 23:23:51 GMT

I have a collection of XMLGregorianCalendar objects that I would like to
display on a jsp page as a formatted date.  So far I have tried creating my
own converter class to convert XMLGregorianCalendar to java.util.Date, but I
can't seem to get it called properly.  What is the best way to get this list
to display on a jsp page as formatted dates?  I didn't see much
documentation on how to create a converter to convert from one object type
to another.  Another option is for me to be able to call the
XMLGregorianCalendar methods on the jsp page like below, but that didn't
seem to work either.  Anybody know the answer?

<s:iterator value="scheduleList" status="scheduleStatus">
      <s:date value="scheduleList.toGregorianCalendar().getTime()"
View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message