Howdy all
I'm using html:error to put an error message next to a form field that
must not be blank. But the message is rendered with quotation marks
around it. I don't want quotation marks. Am I doing something I
shouldn't, or is there any way to turn this behavior off?
My JSP looks like this:
thead
thhtml:text name=myName property=name size=40//th
thhtml:errors property=myName //th
/thead
The resulting HTML looks like this:
thead
thinput type=text name=name size=40 value=/th
thThe 'Name' field is required/th
/thead
My Form.validate()
==
ActionErrors errors = new ActionErrors();
if (getMyName() == null || getMyName().length 1) {
errors.add(myName, new ActionError(err.name.required, Name);
}
return errors;
My Application.Properties file
==
err.name.required=The '{0}' field is required
Thanks
--
bOOyah
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]