You have to add an errrors.header and an errors.footer entry to your properties file, 
wether you want to print some text before and after your errors or not. You can just 
leave them blank:

errors.header=
errors.footer=

If the entries are missing, you get a 'null' printed to your page.


Hope this helps,
Norbert


> Actualy I'm not missing the entry for the error, since it 
> gets writen to 
> the page, but there are aditional "null" strings.
> 
> I have this in properties file:
> 
> text.login.password.error=Password is required
> 
> on the jsp page I have
> 
> <html:errors property="password"/>
> 
> but the output on the page is not just: "Password is required"
> but : "null Password is required null".
> 
> Does that make sense ?
> 
> Jf
> 
> Celestino Pena wrote:
> > In your properties file you are missing entries for 
> "errors" as in...
> > 
> > errors.header=<h3><font color="red">Validation 
> Error</font></h3>You must
> > correct the following error(s) before proceeding:<ul>
> > errors.footer=</ul><hr>
> > 
> > 
> > -----Original Message-----
> > From: Jan Fetyko [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, June 20, 2002 1:51 PM
> > To: Struts Users Mailing List
> > Subject: html:errors tag funny null strings
> > 
> > 
> > Hi,
> > 
> > I'm using the <html:errors property="..."/> tag to display 
> errors after 
> > the form validation fails. The problem is that when the error is 
> > displayed it contains a "null" string at the begining and 
> at the end on 
> > the actual error message. Ex.: "null Password is required null".
> > 
> > What's going on ? Is this fix-able ?
> > 
> > Jf
> > 
> > 
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > 
> > --
> > To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to