tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ruth, Brice" <br...@fiskars.com>
Subject Re: TAG Lib problem
Date Mon, 02 Aug 2004 16:00:31 GMT
You may be having a problem with the case of your tag attribute. Try 
changing the case of the attribute to all lower-case: "titulo" and see 
if that helps.

Pablo Carretero Sánchez wrote:

>Hi all,
>
>I have a problem with the Jasper compiler when I try to compile a JSP using
>TagLibs.
>
>The configuration is:
>
>Tomcat 5.0.19, JSDK 1.4.2.
>
>I have a simple application with:
>
>.- 1 TLD:
>
>	<tag>
>		<name>Operacion</name>
>		<tag-class>com.kutxa.kn.comun.tags.TituloOperacionTag</tag-class>
>		<attribute>
>			<name>MasInfo</name>
>			<required>false</required>
>		</attribute>
>		<attribute>
>			<name>Titulo</name>
>			<required>false</required>
>			<rtexprvalue>true</rtexprvalue>
>		</attribute>
>		<attribute>
>			<name>Ancho</name>
>			<required>false</required>
>			<rtexprvalue>true</rtexprvalue>
>		</attribute>
>		<attribute>
>			<name>Salto</name>
>			<required>false</required>
>		</attribute>
>		<attribute>
>			<name>VolverInicio</name>
>			<required>false</required>
>			<rtexprvalue>true</rtexprvalue>
>		</attribute>
>
>	</tag>
>
>
>
>JSP:  With on reference to the TLD:
>       <cod:Operacion Titulo="_T_DETALLE" Salto="false" VolverInicio="false">
>
>
>JAVA TAG CLASS: With one attribute and method:
>       - String Titulo
>       - public void setTitulo(...){
>         }
>       - public String getTitulo(...){
>         }
>
>
>When the jasper compile the JSP I have one error:
>
>    "...Unable to find setter method for attribute"
>
>
>org.apache.jasper.JasperException: /jkn_opkn/tmpl/es/posglobal.jsp(433,0)
>Unable to find setter method for attribute: Titulo
>	at
>org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
>	at
>org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
>	at
>org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:150)
>	at
>org.apache.jasper.compiler.Generator$GenerateVisitor.evaluateAttribute(Generator.java:2674)
>	at
>org.apache.jasper.compiler.Generator$GenerateVisitor.generateSetters(Generator.java:2822)
>	at
>org.apache.jasper.compiler.Generator$GenerateVisitor.generateCustomStart(Generator.java:2156)
>	at
>org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1667)
>	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:1687)
>	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:3269)
>	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:802)
>	at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>	at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>	at
>org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
>	at
>org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
>	at
>org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
>	at
>com.cidat.proclets.ProcletServiceData.pageProcletEnd(ProcletServiceData.java:427)
>	at com.cidat.proclets.PSPServlet.service(PSPServlet.java:108)
>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>	at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>	at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>	at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>	at
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>	at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>	at
>org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>	at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>	at
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>	at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>	at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>	at
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>	at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>	at
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>	at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>	at
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>	at
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>	at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>	at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
>	at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
>	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
>	at
>org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
>	at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
>	at
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
>	at java.lang.Thread.run(Thread.java:534)
>
>Do you know something about this error.
>
>I'll apprecite any help.
>
>
>Best regards and thank a lot.
>
>
>ciao
>
>
>.pcs
>
>  
>

-- 
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message