JSP syntax (5)

xiaoxiao2021-03-06  70

Execute an applet or bean, there is a possibility to download a Java plugin for execution it.

JSP syntax

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

[nspluginurl = "urltoplugin"]

[iEpluginURL = "URLTOPLUGIN"]>

[

[]

]

[ Text Message for User ]

example

unable to load applet

description

element is used to play or display an object in the browser (typical is applet and bean), and this display requires the Java plugin of the browser.

When the JSP file is compiled, when sending to the browser, the element will replace the "Object> or element according to the version of the browser. Note, is used for HTML 4.0, for HTML 3.2.

In general, the element will specify an object is applet or bean, and the name of the Class is also specified, and there is location, and it will also specify where to download this Java plugin. details as follows:

Attributes

TYPE = "bean | applet"

The type of plug-in object that will be executed, you must specify this bean or applet because this property has no default.

Code = "classfilename" will be the name of the Java Class executed by the Java plugin, must end with .CLASS. This file must exist in the directory specified by the CodeBase property.

CodeBase = "classfiledirectoryname"

The directory (or path) of the Java Class file will be executed, if you do not provide this property, the directory of the JSP file using the will be used.

Name = "instanceename"

The name of this bean or applet instance will be called in JSP.

Archive = "uritoarchive, ..."

Some pathnames separated by commas, these path names are used to pre-install some of the Class to use, which increases the performance of the applet.

Align = "bottom | TOP | Middle | Left | RIGHT"

Graphics, objects, and applets, have the following values:

Bottom

TOP

Middle

Left

Right

Height = "DisplayPixels" width = "displaypixels"

Applet or bean will display the long width value, this value is a number, the unit is pixel.

Hspace = "Leftrightpixels" vSpace = "Topbottompixels"

Applet or bean is displayed on the screen, the space you need to leave up and down, the unit is pixel.

Jreversion = "JreversionNumber | 1.1"

Applet or bean runs the version of Java Runtime Environment (JRE) required. The default is 1.1.

nspluginurl = "Urltoplugin"

Netscape Navigator users can use the download address of JRE, this value is a standard URL, such as http://www.aspcn.com/jsp

IEPLUGINURL = "URLTOPLUGIN"

The download address of the JRE that IE can use, this value is a standard URL, such as http://www.aspcn.com/jsp

[]

You need to send parameters or parameter values ​​to Applets or Beans.

Text Message for User

转载请注明原文地址:https://www.9cbs.com/read-92727.html

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.036, SQL: 9