Duke's Bookstore with Applet
Duke's Bookstore with Applet
Here is the jsp:plugin element that is used to download the applet:
<jsp:plugin
type=
"applet"
code=
"DigitalClock.class"
codebase=
"/bookstore2"
jreversion=
"1.4"
align=
"center" height="25" width="300"
nspluginurl=
"http://java.sun.com/j2se/1.4.2/download.html"
iepluginurl=
"http://java.sun.com/j2se/1.4.2/download.html" >
<jsp:params>
<jsp:param name=
"language"
value=
"${pageContext.request.locale.language}" />
<jsp:param name=
"country"
value=
"${pageContext.request.locale.country}" />
<jsp:param name=
"bgcolor" value="FFFFFF" />
<jsp:param name=
"fgcolor" value="CC0066" />
</jsp:params>
<jsp:fallback>
<p>Unable to start plugin.</p>
FIGURE 53
Duke's Bookstore with Applet
Including an Applet
The Java EE 5 Tutorial · September 2007
178