http://jakarta.apache.org/struts/userGuide/struts-bean.html#write
There's no global change you can make here, besides subclassing java.util.Date and overriding the toString() method.
Joe
At 5:29 -0700 8/6/03, Riaan Oberholzer wrote:
I am using the <bean:write> tag and for date fields (java.util.Date), I get the (rather ugly) full:
Wed Aug 06 12:08:07 CEST 2003
I have tried to do:
DateFormdat df = DateFormat.getDateTimeInstance(); SimpleDateFormat sdf = (SimpleDateFormat)df; sdf.applyPattern("yyyy-MM-dd hh:mm");
But it gets ignored.... how/where can I change the default pattern that struts uses to format dates with?
Thanks.
__________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "If nature worked that way, the universe would crash all the time." --Jaron Lanier
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]