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 7993] New: - parameters in <jsp:plugin> for jsp Document do not work
Date Fri, 12 Apr 2002 01:46:04 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=7993>.
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=7993

parameters in <jsp:plugin> for jsp Document do not work

           Summary: parameters in <jsp:plugin> for jsp Document do not work
           Product: Tomcat 4
           Version: 4.0.3 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: level@ist.fujitsu.com


if you've got the following page:

<jsp:root>
<html>
  <body>
    <jsp:plugin type="applet" code="DispJApplet.class"    
codebase="/test/jsp/plugin/applet" jreversion="1.2" width="150" height="50" >
      <jsp:params>
        <jsp:param name="text" value="test" />
      </jsp:params>
      <jsp:fallback>Plugin tag OBJECT or EMBED not supported by 
browser.</jsp:fallback>
    </jsp:plugin>
  </body>
</html>
</jsp:root>
The parameter value is not passed to the applet!
I think the reason is that in the following file:
ParserXJspSaxHandler.java
...
else if (name.equals("jsp:param")) {
  node.validate(true, false);
  // push the node back, it will be needed by the container node
  stack.push(node);
} else if (name.equals("jsp:params")) {
  // don't have it pushed on the stack...
  // this is a noop...
  return;    <------- should be: stack.push(node); If not the param tag is lost
}

--
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