The js| tutorial Jsp:plugin Action enables you to insert the object or EMBED element of the specific browser you want to specify the plug-ins that the browser needs to run a Java applet.
Grammar:
[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 "] >
[
[ value= '] ParameterValue | <%= expression%>} "/>]+
]
[ text message for user ]
br> Example:
Property |
Usage |
Type = "Bean | Applet
|
The type of object that the plug-in will execute. You must specify one in the bean or applet, because there is no default value for this property. |
class= "classfilename"
|
The name of the Java class file that the plug-in will execute. You must include the extension in the name. And this file must be in the directory specified with the "codebase" attribute. |
Codebase= "Classfiledirectoryname"
|
Contains a directory of Java classes that the plug-in will run or a path to this directory. The default path for this JSP file. |
Name= "InstanceName"
|
The name of the instance of the bean or applet. Makes communication between beans or applets that are called by the same JSP file possible. |
Archive = "Urltoarchive,..."
|
A comma-delimited list of path names. Is the pathname that contains the archive file that is preloaded with the class loader in the specified directory codebase. Typically, these archive files are securely loaded through the network, which can significantly improve the performance of the applet. |
comments and character reference habits
You can use specific elements to insert comments and some characters that are usually used as special flags. Here's a summary:
Grammar |
Objective |
<%--annotation--%> |
A comment in the form of a JSP. will be ignored by the Jsp-to-scriptlet compiler. Any inline JSP scripting elements,directives, or Actins, will be ignored. Cases:
<%@ page language= "java"%>
A Comment Test
A Test of Comments <%--This part of the comment will not be seen when viewing the source code--%>
|
!--annotation--> |
Comments in HTML form. Delivered directly to the final HTML. Any inline JSP scripting elements,directives, or Actins, will be executed normally. Cases: !--This page is loaded on <%= (New Java.util.Date ()). toLocaleString ()%>--> When you view the source code, you will see: !--This page is loaded on January 1, 2000-->
|
<\% |
In template text (static HTML), write when you want to output this special symbol (%) on the page. |
%\> |
Used in scripting elements, the effect is similar to " |
\’ |
The character "'" is indicated in the attribute using "'". Of course, you can also use "" "as a distinction. Example: ' Pig ' fhjgj ', or, ' pig\ ' fhjgj\ ' |
\” |
The character "" is indicated in the property that uses "". Of course, you can also use "'" as a distinction. Example: "Pig ' fhjgj '", or, "pig\" fhjgj\ "" |
%\> |
"%>" in the attribute. |
<\% |
"<%" in the attribute. |