and that works fine, but if they enter 03/1x7/1980 it should present them an error message but also redisplay 03/1x7/1980 in the textfield so they
can just remove the x and happily proceed, but since theDate is null its not redisplaying the previously entered values
if my jsp im using: <ww:textfield label="'Enter Date'" name="'theDate'" value="theDate" />
and to validate:
public void validate() {
if (theDate == null) {
addFieldError("theDate", "Please input correct Date! you entered: " +
((String[])ActionContext.getContext().getParameters().get("theDate"))[0]);
}
}
I could add another property like theDateString and do some more logic in validate() but that smells bad.. anyone have any ideas?
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork