--- On Sat, 9/20/08, Struts2 Fan wrote: > I need a textfield that only accepts dd.MM.yyyy format, and in > the action class I want to define a Date object for this textfield. > If the date is not in the format dd.MM.yyyy, it should give a > validation error. Any ideas?
IIRC the default date conversion uses your current locale. I don't think it has a simple way of setting the date format, either (might be a good idea). I'd poke around conversion-related stuff first, but if I didn't find anything right away I'd probably just write a converter that did. Somebody probably has a type converter that does this though, if there isn't one in there already. If there isn't, maybe there should be. Dave --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]