struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Fetyko <ja...@phase2online.com>
Subject Re: html:errors tag funny null strings -SOLVED
Date Fri, 21 Jun 2002 11:24:50 GMT
I'm not using Websphere, but Tomcat, however putting those entries into 
my properties file HELPED !

THANK YOU.

Jf

Tim T. Young wrote:
> Are you using Websphere?  If you are, when null String objects get written
> to a jsp
> they produce a "null".  Early versions of Websphere did not do this but we
> had problems
> starting with version 3.5.3.
> 
> I just put a errors.header= and errors.footer= in the properties file and
> it takes care of it,
> since I didn't have anything I wanted to display like in the example below.
> 
> Tim
> 
> 
> 
>                                                                                     
                                                          
>                     Jan Fetyko                                                      
                                                          
>                     <janof@phase2o                                               
                                                             
>                     nline.com>                                                   
                                                             
>                                                                                     
                                                          
>                     06/20/2002                                                      
                                                          
>                     02:48 PM       To: Struts Users Mailing List <struts-user@jakarta.apache.org>
                                             
>                     Please respond cc:                                              
                                                          
>                     to "Struts                                                      
                                                          
>                     Users Mailing                                                   
                                                          
>                     List"                                                           
                                                          
>                                           Subject:     Re: html:errors tag funny null
strings                                                  
>                                                                                     
                                                          
> 
> 
> 
> Caterpillar: Confidential Green          Retain Until: 07/20/2002
>                                          Retention Category:  G90 -
>                                          Information and Reports
> 
> 
> 
> 
> 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:janof@phase2online.com]
>>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:struts-user-unsubscribe@jakarta.apache.org>
>>For additional commands, e-mail:
>><mailto:struts-user-help@jakarta.apache.org>
>>
>>--
>>To unsubscribe, e-mail:   <
> 
> mailto:struts-user-unsubscribe@jakarta.apache.org>
> 
>>For additional commands, e-mail: <
> 
> mailto:struts-user-help@jakarta.apache.org>
> 
>>
> 
> 
> 
> --
> To unsubscribe, e-mail:   <
> mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <
> mailto:struts-user-help@jakarta.apache.org>
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>
> 
> 



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message