JSP:
Plugin Action 使您能插入所需的特定的浏览器的OBJECT或EMBED元素来指定浏览器运行一个JAVA Applet所需的插件。
语法:
<
JSP:
Plugin type="bean|applet" code="classFileName" codebase="classFileDirectoryName"
[ name="instanceName" ]
[ archive="URIToArchive, ..." ]
[ align="bottom|top|middle|left|right" ]
[ height="displayPixels" ]
[ width="displayPixels" ]
[ hspace="leftRightPixels" ]
[ vspace="topBottomPixels" ]
[ jreversion="JREVersionNumber | 1.1" ]
[ ns
Pluginurl="URLTo
Plugin" ]
[ ie
Pluginurl="URLTo
Plugin" ] >
[ <
JSP:params>
[ <
JSP:param name="parameterName"
value="{parameterValue | <%= expression %>}" /> ]+
</
JSP:params> ]
[ <
JSP:fallback> text message for user </
JSP:fallback> ]
</
JSP:
Plugin>
示例:
<
JSP:
Plugin type=applet code="Molecule.class" codebase="/html">
<
JSP:params>
<
JSP:param name="molecule" value="molecules/benzene.mol" />
</
JSP:params>
<
JSP:fallback>
<p>Unable to load applet</p>
</
JSP:fallback>
</
JSP:
Plugin>