Ganesh, This is almost certainly a problem in your deployment/application rather than a bug in struts - I use this feature with Struts 1.2.8 and it works fine. Unless you can demonstrate that its a bug in struts rather than your app then I am likely to close any bug you open for this as "WORKSFORME".
Look again at the struts.jar(s) you have deployed - is it really the 1.2.8 version or as Laurie suggests, do you have any older struts.jar around in your deployment? Niall ----- Original Message ----- From: "RathinaGanesh MeenakshiSundaram" <[EMAIL PROTECTED]> Sent: Tuesday, January 03, 2006 2:07 PM Thanks Laurie.... I was going thru' over the versions of struts all thru' my application. I was previously using 1.2.7. But did'nt help. Then, again, changed to 1.2.8 version..But, still it throws me the same error message. I'm sure, Iam using the errorStyleClass in only one html:text tag. I'll try it with a simple page and demonstrate the problem in Bugzilla. Thanks, Ganesh. On 12/31/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > > Are you sure that html:text tag is the only place you have specified > errorStyleClass? The exception could be coming from another tag you've > used that attribute on. > > Failing that, check what version of Struts you really have deployed (and > check of extra, out-of-date, copies of struts.jar in your application > and servlet container class paths). > > If it still fails, produce a minimal JSP that demonstrates the problem > and attach it to a new Bugzilla issue. errorStyleClass should work with > html:textarea in any version of Struts >= 1.2.5. > > L. > > RathinaGanesh MeenakshiSundaram wrote: > > Thanks Laurie, > > > > Sorry, was busy with some other work.. > > > > This is the jsp code, Iam using.. > > <html:text styleClass="login" errorStyleClass="loginERROR" > > styleId="userName" property="userName" size="15" /> > > > > This was the stack trace, Iam getting... > > 15:55:48,137 ERROR [Engine] StandardWrapperValve[jsp]: Servlet.service() > for > > servlet jsp threw exception > > org.apache.jasper.JasperException: /index.jsp(109,6) Unable to find > setter > > method for attribute: errorStyleClass > > at org.apache.jasper.compiler.DefaultErrorHandler.jspError( > > DefaultErrorHandler.java:39) > > at org.apache.jasper.compiler.ErrorDispatcher.dispatch( > > ErrorDispatcher.java:409) > > at org.apache.jasper.compiler.ErrorDispatcher.jspError( > > ErrorDispatcher.java:150) > > at > > org.apache.jasper.compiler.Generator$GenerateVisitor.evaluateAttribute( > > Generator.java:2677) > > at > org.apache.jasper.compiler.Generator$GenerateVisitor.generateSetters( > > Generator.java:2825) > > at > > org.apache.jasper.compiler.Generator$GenerateVisitor.generateCustomStart > ( > > Generator.java:2158) > > at org.apache.jasper.compiler.Generator$GenerateVisitor.visit( > > Generator.java:1669) > > at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441) > > at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) > > at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213) > > at org.apache.jasper.compiler.Generator$GenerateVisitor.visit( > > Generator.java:1689) > > at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441) > > at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) > > at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213) > > at org.apache.jasper.compiler.Generator$GenerateVisitor.visit( > > Generator.java:1689) > > at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441) > > at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) > > at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213) > > at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219) > > at org.apache.jasper.compiler.Node$Root.accept(Node.java:456) > > at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) > > at org.apache.jasper.compiler.Generator.generate(Generator.java > :3272) > > at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java > :244) > > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:470) > > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) > > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) > > at org.apache.jasper.JspCompilationContext.compile( > > JspCompilationContext.java:511) > > at org.apache.jasper.servlet.JspServletWrapper.service( > > JspServletWrapper.java:295) > > at org.apache.jasper.servlet.JspServlet.serviceJspFile( > JspServlet.java > > :292) > > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > > ApplicationFilterChain.java:237) > > at org.apache.catalina.core.ApplicationFilterChain.doFilter( > > ApplicationFilterChain.java:157) > > at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter( > > ReplyHeaderFilter.java:75) > > > > > > Please let me know. > > Thanks, > > Ganesh. > > > > > > On 12/20/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > >> RathinaGanesh MeenakshiSundaram wrote: > >>> Hi All, > >>> > >>> I was trying to style an text field, when an error occurs for that > text > >>> field. > >>> I thought, errorStyleClass would help..But, It was just throwing me > the > >>> following error message.. > >>> > >>> "Unable to find setter method for attribute: errorStyleClass" > >>> > >>> I was wondering, if this has anything to do with the Struts version > >>> compatibility..?? > >>> Iam using struts 1.2.7 I guess...! > >>> Any Ideas..?? > >> The errorStyleClass attribute should work for the html:text tag in > >> 1.2.7. Can you post the JSP markup you're using and the full stack > trace > >> you're getting? > >> > >> L. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]