Can I include two jsp:plugin actions on one JSP page? It does not compile under Tomcat.

John Zukowski

Yes. Just include an extra set of {}'s around the plugin code:


<% { %>
<jsp:plugin 
  type="applet" 
  code="Clock2.class"
  codebase="/examples/jsp/plugin/applet"
  jreversion="1.2" 
  width="160" 
  height="150" >
    <jsp:fallback>
        Plugin tag not supported.
    </jsp:fallback>
</jsp:plugin>
<% } %>
<% { %>
<jsp:plugin 
  type="applet" 
  code="Clock2.class"
  codebase="/examples/jsp/plugin/applet"
  jreversion="1.2" 
  width="160" 
  height="150" >
    <jsp:fallback>
        Plugin tag not supported.
    </jsp:fallback>
</jsp:plugin>
<% } %>
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact