Re: Struts 2 losing timestamp in java.util.Date when validation failed

2012-06-06 Thread s
Here's an JSPs, action class and struts.xml http://localhost:8080/Sample/student_edit.action calls form/jsp studentDetails. Erase name and submit form, this will result in validation being failed. This will erase timestamp from hidden field If not validation error occurs, then it retai

NPE at at xwork2.util.finder.UrlSet.includeClassesUrl(UrlSet.java:199)

2012-06-06 Thread struts . rgm
Running Struts 2.3.4 build #481 on JBoss 5 I'm getting the following NullPointerException on startup. It seems benign, and happens with devMode either true or false. 2012-06-06 12:50:18,539 INFO [com.opensymphony.xwork2.config.impl.DefaultConfiguration] (HDScanner) Overriding property struts

Re: Struts 2 losing timestamp in java.util.Date when validation failed

2012-06-06 Thread Dave Newton
On Wed, Jun 6, 2012 at 12:54 PM, s wrote: > I found following work around. > Sorry can't attach source JSP, because of client restrictions. Here's the trivial workaround: * Create a minimally-failing example containing essentially identical JSP. * Post it. Whether or not your client wishes to

Re: Struts 2 losing timestamp in java.util.Date when validation failed

2012-06-06 Thread s
I found following work around. where timeStampFormat is MM/dd/ hh:mm:ss a.SSS With above, it retains hour, minutes and seconds, but drops milliseconds. Any other suggestions, please let me know. Sorry can't attach source JSP, because of client restrictions. To recreate: But one ca

Re: Struts 2 losing timestamp in java.util.Date when validation failed

2012-06-06 Thread Dave Newton
And the JSP? On Wed, Jun 6, 2012 at 12:18 PM, s wrote: > > I have a form with java.util.Date (createTimestmp) and it has both date & > time. > createTimestmp is an hidden field on the form. When I fetch record from > database it has "5/17/12 12:58:33 PM.688" as value. > > If I change something o

Struts 2 losing timestamp in java.util.Date when validation failed

2012-06-06 Thread s
I have a form with java.util.Date (createTimestmp) and it has both date & time. createTimestmp is an hidden field on the form. When I fetch record from database it has "5/17/12 12:58:33 PM.688" as value. If I change something on the form and if validation is GOOD, then creatTimestmp value is re