struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bOOyah <>
Subject html:error and quotation marks...
Date Tue, 20 Apr 2004 16:51:37 GMT
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:

   <th><html:text name="myName" property="name" size="40"/></th>
   <th><html:errors property="myName" /></th>

The resulting HTML looks like this:

   <th><input type="text" name="name" size="40" value=""></th>
   <th>"The 'Name' field is required"</th>

My Form.validate()
ActionErrors errors = new ActionErrors();
if (getMyName() == null || getMyName().length < 1) {
     errors.add("myName", new ActionError("", "Name");
return errors;

My Application.Properties file
============================== '{0}' field is required


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message