I've found this one discussion: http://forums.opensymphony.com/thread.jspa;jsessionid=aaSWPA1PEcc4tixQ2U?messageID=5041Ꮁ
I need the same: min parameter is fixed, max parameter is dynamic (currentDay + 1 day). Please, show me how can I use some static method inside annotation. holod wrote: > > @TypeConversion(converter = > "project.action.admin.converter.DateConverter") > @RequiredFieldValidator(message="Please, enter date. Field can't be > empty") > //@DateRangeFieldValidator(min = "01.01.1990", max = "${new Date()}", > message = "date must be between ${min} and ${max}, current value is > ${dateIntro}.") > public void setDateIntro(Date dateIntro) { > this.dateIntro = dateIntro; > } > > project.action.admin.converter.DateConverter presents date as String > "dd.MM.yyyy" and vise versa. > I want my DateRangeFieldValidato to compare dateIntro with fixed min and > dynamic current date. > Is it possible? > -- View this message in context: http://www.nabble.com/%40DateRangeFieldValidator-max%3DcurrentDate-tp18941766p18942736.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]