|
| Problem | Clarification on the "codebase", "iepluginurl", and "jreversion" attributes of the jsp:plugin tag. | | | | Solution | Issue 1: The jsp:plugin tag generates a hypertext markup language (HTML) OBJECT tag that contains two occurrences of the word "codebase". The two occurrences of "codebase" can cause confusion if you are unfamiliar with the HTML OBJECT tag.
Issue 2: The jsp:plugin tag attribute jreversion has no effect on the codebase attribute.
Explanation of Issue 1: The required jsp:plugin tag attribute, codebase, is used to populate the java_codebase PARAM to the OBJECT tag in the generated HTML.
The optional jsp:plugin tag attributes iepluginurl and nspluginurl are used to populate the codebase attribute to the OBJECT tag in the generated HTML.
If you are using the jsp:plugin tag attributes iepluginurl or nspluginurl, the JSP processing unit will generate the code. The code will point to the specified plugin instead of the default 1.2.2. (iepluginurl for Microsoft® Internet Explorer and nspluginurl for Netscape)
- Generated HTML source code:
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" name="HelloApplet" width="200"height="80"codebase="http://java.sun.com/products/plugin/1.3/jinstall-131-win32.cab"> <PARAM name="java_code" value="HelloAgainApplet.class"> <PARAM name="java_codebase" value="/petstore"> <PARAM name="type" value="application/x-java-applet;"> <COMMENT> <EMBED type="application/x-java-applet;"name="HelloApplet" width="200"height="80" pluginspage="http://java.sun.com/products/plugin/" java_code="HelloAgainApplet.class" java_codebase="/petstore"> <NOEMBED> </COMMENT> </NOEMBED></EMBED> </OBJECT>
Explanation of Issue 2: The optional jsp:plugin tag attribute jreversion is independent from the codebase attribute and you should not expect them to interact.
The jreversion attribute identifies the specification version number of the Java™ Runtime Environment (JRE) the component requires in order to operate. This helps in populating the type PARAM of the OBJECT tag as well as the type attribute of the EMBED tag .
- An example using jreversion:
In the JSP file: <jsp:plugin name="HelloApplet" type="applet" code="HelloAgainApplet.class" codebase="/petstore"jreversion="1.3 " width="200" height="80"> </jsp:plugin>
- Generated HTML source code:
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" name="HelloApplet" width="200"height="80"codebase="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0"> <PARAM name="java_code" value="HelloAgainApplet.class"> <PARAM name="java_codebase" value="/petstore"> <PARAM name="type" value="application/x-java-applet;version=1.3 "> <COMMENT> <EMBED type="application/x-java-applet;version=1.3 "name="HelloApplet" width="200"height="80" pluginspage="http://java.sun.com/products/plugin/" java_code="HelloAgainApplet.class" java_codebase="/petstore"> <NOEMBED> </COMMENT> </NOEMBED></EMBED> </OBJECT>
For additional information see the Java Plug-in HTML Specification. | |
| | |
| |
|
Product categories: Software, Application Servers, Distributed Application & Web Servers, WebSphere Application Server, JSP Operating system(s): Multi-Platform Software version: 3.5, 4.0, 5.0, 5.1, 6.0 Software edition: Edition Independent Reference #: 1155462 IBM Group: Software Group Modified date: 2003-12-17
(C) Copyright IBM Corporation 2000, 2004. All Rights Reserved.
|