Including an Applet

You can include an applet or JavaBeans component in a JSP page by using the jsp:plugin element. This element generates HTML that contains the appropriate client-browser-dependent constructs (<object> or <embed>) that will result in the download of the Java Plug-in software (if required) and client-side component and subsequent execution of any client-side component. The syntax for the jsp:plugin element is as follows:

<jsp:plugin 
   type="bean|applet" 
   code="objectCode" 
   codebase="objectCodebase" 
   { align="alignment" } 
   { archive="archiveList" } 
   { height="height" } 
   { hspace="hspace" } 
   { jreversion="jreversion" } 
   { name="componentName" } 
   { vspace="vspace" } 
   { width="width" } 
   { nspluginurl="url" } 
   { iepluginurl="url" } > { <jsp:params> ...

Get J2EE™ Tutorial, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.