struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: Datetimepicker simple thing doesn't work java.text.ParseException: Unparseable date: ""
Date Mon, 04 Feb 2008 03:00:17 GMT
I'm not sure what the JavaBean convention would be for a property with an
underscore.

Have you tried it as "shootDate" (with corresponding
getShootDate/setShootDate methods)?

Dave

--- Serge Bornow <serge.bornow@architech-solutions.com> wrote:
> My property:
> shoot_date of type Date
> has get and set and on execute()
> set's the default date to today's date
> setShoot_Date(new Date);
> 
> on the form:
> <s:datetimepicker name="shoot_date" displayFormat="MM/dd/yyyy" />
> even without displayformat it doesn't work.
> 
> what happens is that i click the submit button that submits an action 
> that executes a method that tries to read the shoot_date and it's null.
> 
> Hence the error in my log:
> 
> java.text.ParseException: Unparseable date: ""
>         at java.text.DateFormat.parse(DateFormat.java:337)
>         at 
>
org.apache.struts2.components.DateTimePicker.format(DateTimePicker.java:309)
> 
> 
> Does anyone have a good working example?
> 
> Thank you very much,
> 
> Serge
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


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


Mime
View raw message