from one of my earlier postings..

I got a similar error in an example complaining about
the following attribute from the struts-form.tld for
<tag>
        <name>image</name>
        <tagclass>org.apache.struts.taglib.html.ImageTag</tagclass>
        <attribute>
            <name>path</name>
            <required>false</required>
            <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
            <name>isKey</name>
            <required>false</required>
            <rtexprvalue>true</rtexprvalue>
        </attribute>
it complained about the setter for path and isKey and I looked at the class
it did not have a setter. I removed these attribute from the tld file, the
error was gone. I am using the 1.0.2 src.

"Tapas Bhattacharya" <[EMAIL PROTECTED]> wrote in
message news:<[EMAIL PROTECTED]>...
> Hi All,
> 
> Has any one tried struts example from O'Reilly (onjava). Am getting the
> flowing error :
> 
> Parsing of JSP File '/Login.jsp' failed:
> 
> /Login.jsp(-1): Error in tag library at: 'form': The Tag class
> 'org.apache.struts.taglib.html.ImageTag' has no setter method
corresponding
> to TLD declared
> attribute 'path', (JSP 1.1 spec, 5.4.1)
> probably occurred due to an error in /Login.jsp line -1:
> 
> Wed Feb 27 12:08:17 GMT-05:00 2002 
> 
> 
> Weblogic Logic log
> 
> Wed Feb 27 12:29:43 GMT-05:00 2002:<E> <WebAppServletContext-strutsSample>
> Servl
> et failed with Exception
> weblogic.servlet.jsp.JspException: (line -1): Error in tag library at:
> 'form': T
> he Tag class 'org.apache.struts.taglib.html.ImageTag' has no setter method
> corr
> esponding to TLD declared attribute 'path', (JSP 1.1 spec, 5.4.1)
>         at java.lang.Throwable.fillInStackTrace(Native Method)
>         at java.lang.Throwable.fillInStackTrace(Compiled Code)
>         at java.lang.Throwable.<init>(Compiled Code)
>         at java.lang.Exception.<init>(Compiled Code)
>         at java.lang.RuntimeException.<init>(RuntimeException.java:47)
>         at weblogic.servlet.jsp.JspException.<init>(JspException.java:9)
>         at weblogic.servlet.jsp.JspException.<init>(JspException.java:14)
>         at
> weblogic.servlet.jsp.StandardTagLib.jspException(StandardTagLib.java:
> 138)
>         at weblogic.servlet.jsp.StandardTagLib.processTag(Compiled Code)
>         at weblogic.servlet.jsp.StandardTagLib.processTagElements(Compiled
> Code)
>         at
> weblogic.servlet.jsp.StandardTagLib.<init>(StandardTagLib.java:125)
>         at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:95)
>         at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(Compiled
> Code)
>         at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(Compiled Code)
>         at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(Compiled Code)
>         at
weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:1817)
>         at weblogic.servlet.jsp.JspLexer.mTOKEN(Compiled Code)
>         at weblogic.servlet.jsp.JspLexer.nextToken(Compiled Code)
>         at weblogic.servlet.jsp.JspLexer.parse(Compiled Code)
>         at weblogic.servlet.jsp.JspParser.doit(Compiled Code)
>         at weblogic.servlet.jsp.JspParser.parse(JspParser.java:125)
>         at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:109)
>         at weblogic.utils.compiler.CodeGenerator.generate(Compiled Code)
>         at weblogic.servlet.jsp.JspStub.compilePage(Compiled Code)
>         at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:227)
>         at weblogic.servlet.internal.ServletStubImpl.getServlet(Compiled
> Code)
>         at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled
> Code
> )
>         at
> weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled C
> ode)
>         at
> weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled C
> ode)
>         at
> weblogic.servlet.internal.ServletContextManager.invokeServlet(Compile
> d Code)
>         at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
>         at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
>         at weblogic.kernel.ExecuteThread.run(Compiled Code)
> 
> Thanks in advance.
> 
> Tapas
> 
> 
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
> 

Reply via email to