![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
![]() |

|
| Knowledge Base Most common error and how to trouble shoot them off |
![]() |
|
Struts Validator - Date validation
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Fixed Error!
Posts: 139
Location: Chennai
Join Date: Feb 2007
Rep Power: 2
IM:
|
but don't know how to apply it in my case. my bean has separate variables for day - month - year (it is not one string) I have three fields because he had to choose the date with a select html tag for the day, a select html tag for the month and an input field for the year. How can I validate this date now ? |
|
|
|
|
|
|
|
|
#2 (permalink) |
|
Fixed Error!
Posts: 139
Location: Chennai
Join Date: Feb 2007
Rep Power: 2
IM:
|
Logic is if month = feb and date = 29 OR 30 OR 31 , block user/ show error Date cannot be over 28 for month Feb! another option is to let the user select a date from calendar. There are lots of open source calendars. In that case you would have only "required" rule and thats it. |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|