Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
276
Chapter 12 Including Files and Applets in JSP Documents
height
This attribute is used identically to the
HEIGHT
attribute of
APPLET
, specifying the height in pixels to be reserved for the
applet. Just remember that you must enclose the value in single
or double quotes.
codebase
This attribute is used identically to the
CODEBASE
attribute of
APPLET
, specifying the base directory for the applets. The
code
attribute is interpreted relative to this directory. As with the
APPLET
element, if you omit this attribute, the directory of the
current page is used as the default. In the case of JSP, this
default location is the directory where the original JSP file
resided, not the system specific location of the servlet that
results from the JSP file.
align
This attribute is used identically to the
ALIGN
attribute of
APPLET
and
IMG
, specifying the alignment of the applet within
the Web page. Legal values are
left
,
right
,
top
,
bottom
, and
middle
. With
jsp:plugin
, don't forget to include these values
in single or double quotes, even though quotes are optional for
APPLET
and
IMG
.
hspace
This attribute is used identically to the
HSPACE
attribute of
APPLET
, specifying empty space in pixels reserved on the left
and right of the applet. Just remember that you must enclose
the value in single or double quotes.
vspace
This attribute is used identically to the
VSPACE
attribute of
APPLET
, specifying empty space in pixels reserved on the top
and bottom of the applet. Just remember that you must enclose
the value in single or double quotes.
archive
This attribute is used identically to the
ARCHIVE
attribute of
APPLET
, specifying a JAR file from which classes and images
should be loaded.
name
This attribute is used identically to the
NAME
attribute of
APPLET
, specifying a name to use for inter applet
communication or for identifying the applet to scripting
languages like JavaScript.
Second edition of this book: www.coreservlets.com; Sequel: www.moreservlets.com.
Servlet and JSP training courses by book's author: courses.coreservlets.com.
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved