tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kitching Simon <>
Subject RE: calling an applet from within a servlet.
Date Mon, 25 Sep 2000 12:31:51 GMT

> -----Original Message-----
> From: []
> Sent:	Monday, September 25, 2000 1:36 PM
> To:
> Subject:	RE: calling an applet from within a servlet.
> try the servlets directory
	[Kitching Simon]  
	Well, actually normally there *is* no servlets directory...
	(see more below)

> -----Original Message-----
> From: ashok v. shah []
> Sent: Monday, September 25, 2000 6:14 AM
> To:
> Subject: calling an applet from within a servlet.
> hi there..
> i am generating an html page with a servelt.. and want that page to load
> an
> applet. but the messge which i am getting is .class file(of the applet
> which
> i am trying to load) not found. i have tried placing that .class file in
> many different directories of the java web server but in vain. so i would
> be
> obliged if you can help me out of this problem..
> waiting for a reply..
> thanking you.
> ashok
	[Kitching Simon]  
	When you generate the <APPLET> tag, there is a "codebase"
	attribute that you should set to some value, then put *all* the
	classes that your applet needs in that directory. Don't forget
	that if your applet main class requires some other class, then
	that other class must also be in that "codebase" directory.
	Or you can bundle all the necessary files into a ".jar" file and
	place the name of that .jar file in the "archive" attribute of the
	<APPLET> tag, and the jar file itself in the CODEBASE directory.

	You can choose any directory for your CODEBASE, *except*
	WEB-INF and subdirs.

	I generally use "/applets" as the CODEBASE.




> _________________________________________________
> Get Your Free Email At,
> For fabulous shopping deals visit:

View raw message