RE: java.util.date in edit form

2003-01-30 Thread Jarnot Voytek Contr AU HQ/SC
Your form bean should only deal with Strings. Convert the string later - either with BeanUtils or manually. There have been a number of discussions about why form beans should only deal with Strings - most reasons having to do with the issue of invalid input, and the redisplaying thereof. -- Voy

RE: java.util.date in edit form

2003-01-30 Thread Ritesh Singhal
Since it's a request parameter it will go as a String in the form bean. So you must have date field as a String in the form bean. Later on you can convert that to a Date object by using java.text.SimpleDateFormat class. Regards Ritesh -Original Message- From: Softwareentwicklung Hauschel

RE: java.util.date in edit form

2003-01-30 Thread Pani, Gourav
why don't you make it a String in the form? then use the validator-rules.xml and validator.xml to validate if it is a date or not. that way, if the person enters a bad date format you can redirect to the page with the error message as well as populate the bad date into the form as reference for th