html:errors does not display
Hello everyone, I cannot display html:errors property=blah/, but if I add % ActionErrors ae = ( ActionErrors) request.getAttribute( Action.ERROR_KEY); boolean err = false; if( ae != null) { Iterator iter = ae.properties(); while(iter.hasNext()){ System.out.println((String)iter.next()); } } % I can see that blah is printed out. That being said, the errors does hold the value. Does anyone know where I should configure? Or how to check if the value is an empty string? I'm using WSAD 5.1. Thanks. Song - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html:errors does not display
Song, I was having a similar problem using WSAD 5.0.0. Client side validation using the Validator component worked, but server side validation did not. Since WSAD included Struts 1.1(beta 2), I decided to update struts to the newest version. This seemed to correct the problem. If you need further instructions on updating Struts to the most recent version using WSAD, please refer to http://struts.whoisandy.com/archives/2005/05/26/validator_serverside_validation.php. ~ Andrew Tomaka On 6/13/05, Song Wang [EMAIL PROTECTED] wrote: Hello everyone, I cannot display html:errors property=blah/, but if I add % ActionErrors ae = ( ActionErrors) request.getAttribute( Action.ERROR_KEY); boolean err = false; if( ae != null) { Iterator iter = ae.properties(); while(iter.hasNext()){ System.out.println((String)iter.next()); } } % I can see that blah is printed out. That being said, the errors does hold the value. Does anyone know where I should configure? Or how to check if the value is an empty string? I'm using WSAD 5.1. Thanks. Song - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html:errors does not display
Hi, Does simple html:errors/ with no property specified works for you ? Cause I get a similar problem - using same Java code in JSP display the fields with errors, but html:errors/ does nothing. Thanks. Vincent. Song Wang wrote: Hello everyone, I cannot display html:errors property=blah/, but if I add % ActionErrors ae = ( ActionErrors) request.getAttribute( Action.ERROR_KEY); boolean err = false; if( ae != null) { Iterator iter = ae.properties(); while(iter.hasNext()){ System.out.println((String)iter.next()); } } % I can see that blah is printed out. That being said, the errors does hold the value. Does anyone know where I should configure? Or how to check if the value is an empty string? I'm using WSAD 5.1. Thanks. Song - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]