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=10389>.
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=10389

<jsp:plugin> doesn't accept parameters

           Summary: <jsp:plugin> doesn't accept parameters
           Product: Tomcat 4
           Version: 4.1.3
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Jasper 2
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hi,


It seems the <jsp:plugin> tag doesn't accept nested parameters. Eg, take the
file examples/jsp/plugin/plugin.jsp:

<jsp:plugin type="applet" code="Clock2.class"
codebase="/examples/jsp/plugin/applet" jreversion="1.2" width="16
0" height="150" >
    <jsp:fallback>
        Plugin tag OBJECT or EMBED not supported by browser.
    </jsp:fallback>
</jsp:plugin>


Then add this under the jsp:plugin element:

<jsp:params>
  <jsp:param name="foo" value="bar"/>
</jsp:params>

After this addition, I get this error:


rg.apache.jasper.JasperException: /jsp/plugin/plugin.jsp(9,12) Expected "param"
tag with "name" and "value" attributes without the "params" tag.
        at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)
        at 
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:417)
        at 
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:126)
        at org.apache.jasper.compiler.Parser.parseParam(Parser.java:443)
        at org.apache.jasper.compiler.Parser.parseParams(Parser.java:468)
        at org.apache.jasper.compiler.Parser.parseJspParams(Parser.java:589)
        at org.apache.jasper.compiler.Parser.parsePlugin(Parser.java:627)
        at org.apache.jasper.compiler.Parser.parseAction(Parser.java(Compiled Code))
        at org.apache.jasper.compiler.Parser.parseElements(Parser.java(Compiled Code))
        at org.apache.jasper.compiler.Parser.parse(Parser.java(Compiled Code))
        at org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)
        at org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:179)
        at org.apache.jasper.JspEngineContext.compile(JspEngineContext.java:356)
        at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:157)
        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(Compiled Code))


--Jeff

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to