Hi Y'all - Here's something I keep on struggling with, so I'm sure I'm doing something weird.
In my ActionBean I have: @Validate(required = true) private Date startDate = null; (...and then getters/setters for this field) In my JSP I have this: <s:text class="input-small" type="text" name="startDate" placeholder="MM/DD/YYYY"/> Here's the deal. When the page is displayed, the date shows up in the field in the format MM/DD/YY, but the validator wants MM/DD/YYYY. (After having be around in the Y2k era, I do too.) Every time I go to pull up a form with a date in it it is displayed with the two digit date, but I have to manually go back and change it to a four digit date to get the Validator to accept it. ie, I click on "edit", the form is pre-populated in the default handler in the ActionBean, the JSP displays it with a two digit year, but then in order to save my changes I have to make the changes I wanted to change *AND* then go set the date to a four digit date each and every round trip to the server. What am I doing wrong? I'm using Stripes 1.5.7 on Tomcat 7.0.34. Thanks!! - Matt ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_122712 _______________________________________________ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users