tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 12020] New: - Using a name-from-attribute in the variable diirective in a tag file gives an error
Date Sun, 25 Aug 2002 04:05:13 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12020>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12020

Using a name-from-attribute in the variable diirective in a tag file gives an error

           Summary: Using a name-from-attribute in the variable diirective
                    in a tag file gives an error
           Product: Tomcat 5
           Version: Unknown
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Jasper2
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: prasad.subramanian@sun.com


If a tag file has a variable directive that has a "name-from-attribute" as an
attribute ,a translation time exception thrown.
Here is the tag file:
=============


<%@tag dynamic-attributes="false" import="java.io.*" isScriptingEnabled="true" %>

<%@attribute name="id" required="true" rtexprvalue="false" %>
<%@attribute name="frag1" fragment="true" required="true"  %>
<%@variable name-from-attribute="url" scope="AT_BEGIN" %>
<jsp:invoke fragment="frag1"/>
<jsp:doBody/>



=============
org.apache.jasper.JasperException: /WEB-INF/tags/tagfilepos/MySimpleTag.tag(6,0)
Variable directive: Invalid attribute, name-from-attribute
	at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:95)
	at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:440)
	at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:219)
	at org.apache.jasper.compiler.JspUtil.checkAttributes(JspUtil.java:383)
	at
org.apache.jasper.compiler.TagFileProcessor$TagFileVisitor.visit(TagFileProcessor.java:213)
	at org.apache.jasper.compiler.Node$VariableDirective.accept(Node.java:511)
	at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1543)
	at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:1585)
	at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:1591)
	at org.apache.jasper.compiler.Node$Root.accept(Node.java:334)
	at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1543)
	at
org.apache.jasper.compiler.TagFileProcessor.parseTagFile(TagFileProcessor.java:326)
	at
org.apache.jasper.compiler.TagLibraryInfoImpl.createTagFileInfo(TagLibraryInfoImpl.java:464)
	at
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:289)
	at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:195)
	at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:406)
	at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:457)
	at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1384)
	at org.apache.jasper.compiler.Parser.parse(Parser.java:149)
	at org.apache.jasper.compiler.ParserController.parse(ParserController.java:210)
	at org.apache.jasper.compiler.ParserController.parse(ParserController.java:160)
	at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:257)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:381)
	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:241)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2505)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
	at java.lang.Thread.run(Thread.java:536)

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message