tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Etienne Baert \(SPSInfoquest nv\)" <>
Subject RE: Applets in Servlets
Date Tue, 06 Nov 2001 14:20:06 GMT

Assuming your package is com.example.mypackage and
located into d:\projects\dir\www\classes\com\example\mypackage
You won't have to use the ARCHIVE parameter but
you will have to set your CODEBASE parameter to
"classes" and CODE to "com/example/mypackage/AppletName.class"
in order for the browser the retrieve the root of the
package via http://myserver:port/dir/applet/.

If you need more explanation on the HTML to be used, please
refer to :


-----Original Message-----
From: Shen Shengjun []
Sent: mardi 6 novembre 2001 15:02
To: Tomcat Users List
Subject: RE: Applets in Servlets

Thank you all.

Now I've got the solution that also indicated below with syntax. I didn't
the time to try it though.
<PARAM NAME="ARCHIVE" VALUE="archive.jar\">

Thanks, Etienne Baert.

Because I use a package, not a jar (and there will be no jar file), what
should I use?


--- "Etienne Baert (SPSInfoquest nv)" <> wrote:
> Long, Shen,
> why are you using the <applet> tag ?
> When used with IE, it asks the browser to launch the JVM from Micro$oft,
> not the one from SUN or IBM. With Netscape, the tag to be used is <EMBED>.
> In my case, I am successfully starting up applets from html pages
> by servlets. Html that is generated looks like :
> <OBJECT CLASSID="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
> .cab#Version=1,3,0,1"
>  HEIGHT="600"
>  WIDTH="800"
>  NAME="AppletName">
> <PARAM NAME="CODE" VALUE="com/example/visual/AppletName.class">
> <PARAM NAME="ARCHIVE" VALUE="archive.jar\">
> The servlet that generates the html is accessed using such an URL:
> http://myserver:port/dir/servletname
> that maps the following physical location (on Win)
> d:\projects\dir\www\
> It tells the browser to look into that directory whether he finds the
> archive
> containing the applet class (archive.jar).
> If your archive or your class is located elsewhere, you have to tell it
> using the codebase parameter.
> codebase="applet" means the browser will try to retrieve the applet from
> http://myserver:port/dir/applet/ (d:\projects\dir\www\applet\)
> codebase="/applet" means it will try from http://myserver:port/applet/
> Hope this helps,
> Etienne Baert

Do You Yahoo!?
Find a job, post your resume.

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message