Hi all,
I have the current situation:
I have a
struts form, which captures some data from HTML forms. I added some restrictions on it, like xxx field must contain only 6 characters, etc, and I define the validation rules from validate.xml.
For example, the value of the field is originally XXXXYYYY, when I click submit, since it violates the rules defined in validate.xml, an error message is shown, but then, the value of the field disappeared!!!
Any tricks I can use to preserve the field, even though it contains an invalid value? I have already set the forms as session.
I understand that the error handling of Struts engine, it will NOT call the action method defined ActionDispatch nor the validate method inside the form, thus, I have no *programming* ways to save the updated value from the request.
Any ideas are appreicate.
Nick
SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)