struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Bouessay <cboues...@businessdecision.com>
Subject Re: Struts Validator error messages
Date Thu, 18 Apr 2002 16:10:55 GMT
I'm not using Struts Validator, but have the same pb with
alert('<bean:message .../>') ...

To solve it, I use a javascript regexp expression :

function message(text) {
	alert(text.replace(/<br\/>/, ""));
}

But, this is not generic ...
--
C. Bouessay


David.A.Ventimiglia@WellsFargo.COM wrote:
> Hello,
> 
>  
> 
> How do I set up Struts Validator (from David Winterfeldt) for both
> server-side and client-side validation, yet not have HTML tags in the
> JavaScript popup boxes?  In order to get the error messages to show up
> properly on the page, I need to include a formatting element like <li> in
> the resource bundle.  Unfortunately, since the same message keys are used
> for the JavaScript validation, the <li> appears mixed in with the text of
> the error message in the popup box.  The author indicates he's written a
> simple "Errors Tag", but that wasn't a part of the binary I dowloaded, and
> it's not in the JavaDocs at http://home.earthlink.net/~dwinterfeldt/api/
> <http://home.earthlink.net/~dwinterfeldt/api/> .  Any ideas?  Thanks!
> 
>  
> 
> Cheers,
> 
> David
> 
>  
> 
>  
> 
> David A. Ventimiglia
> 
> Wells Fargo Private Client Services
> 
> (415) 396-0414 (work)
> 
>  
> 
> 




--
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