You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by James Mitchell <ja...@mac.com> on 2007/08/07 18:22:18 UTC

Starter app is jacked

Ok, not really ;)  But this is kinda weird.

The app that gets generated from the starter archetype makes a bad  
assumption about the date format that is displayed by default.  When  
this date is submitted, it gets converted using a date format of yyyy/ 
MM/dd, but was displayed initially as M/dd/yy (8/7/07).


That field on the action specifies a converter, but that converter is  
not consulted until the page is submitted.  So, when you submit the  
page, the month and year get swapped.

So, is the problem:
a) Struts is supposed to call convert regardless of get or post
b) Struts is doing it correctly, but we just have the wrong format
c) James Mitchell is a moron, and doesn't know what he's doing


I'm secretly hoping it's not c ;)


--
James Mitchell




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