Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts Date Conversion

 
RamandeepS Singh
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

i have a jsp page in which i have a form..
form is having s:textfield tag an name dob,In Action class i have made the getter setters of the dob of type date..
but when i submit the form i get null in the action class.

But if i change the Date type to String in my action class then itt show the value..

Can anyone tell me how to get Date in action class... by specifying the type date
 
Ankit Garg
Sheriff
Posts: 9528
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the date format you are entering in your text field?? Its given here that the date format should be SHORT i.e. something like 12/05/09...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic