struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bilobag <bilo...@hotmail.com>
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()"
format="dd/MM/yyyy"/>
</s:iterator>
-- 
View this message in context: http://www.nabble.com/Display-XMLGregorianCalendar-as-date-on-jsp-page-using-type-converter-tp21821248p21821248.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Mime
View raw message