Re: Clear Cache In IE5

2001-12-20 Thread Yiu Wing

 The last thing you can do is to stop tomcat, erase everything inside
 TOMCAT_HOME/work and start it again.

Thank you so much!!! It works now.  This problem has bugging me for a very
long time.

Thanks a lot again ;-).


 -Original Message-
 From: Yiu Wing [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 19, 2001 10:00 PM
 To: 'Tomcat Users List'
 Subject: Re: Clear Cache In IE5


  Go to server.xml and add this property to your context 
  reloadable=true .../

 Actually, I've already got that in place.  Here's what I have in the
 server.xml file

 Context path= docBase=ERPS debug=0 reloadable=true/

 but TomCat still gives me the old page.  Maybe someone on the list can
tell
 me why.

 Anyway, thanks all the same.


  -Original Message-
  From: Yiu Wing [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, December 20, 2001 12:19 AM
  To: Tomcat Users List
  Subject: Re: Clear Cache In IE5
 
 
   1)Tools/Internet Options/Temporary Internet Files/Settings/Every Visit
 to
   the Page.
  
   2)Tools/Internet Options/Temporary Internet Files/Delete Files/All
 offline
   content.
  
   And after Refresh for every page. Do it, I had that problem before and
  more
   if you use any caching server like squid, etc.
  
   Guido
 
  Thanks for that.  But my problem turns out that TomCat gives the older
  version of my webapp.  Actually, I replaced a new jsp file in my webapp
 with
  exactly the same name as the old jsp file.  However, TomCat4.0 still
gives
  me the older version.  This is really annoying, why TomCat does
something
  like that?  I thought IE was the culprit but it's not. I'd really
 appreciate
  it, if someone can help me with this.
 
  Thanks a lot.
 
   -Original Message-
   From: Yiu Wing [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, December 19, 2001 5:07 PM
   To: [EMAIL PROTECTED]
   Subject: Clear Cache In IE5
  
  
   Hello all,
  
   This is a little bit off topic. Can you tell me how can I clear the
 cache
  in
   IE so that I can see the change I've in made in my webapp after
invoking
   TomCat4.0 again?  Thanks in advance.
  
  
   _
   Do You Yahoo!?
   Get your free @yahoo.com address at http://mail.yahoo.com
  
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
  
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Clear Cache In IE5

2001-12-20 Thread Yiu Wing

 Hi

 Try to add headers:

 response.setHeader(Cache-Control, no-cache, must-revalidate,
 max_age=0);
 response.setDateHeader(Expires, 0);
 response.setHeader(Pragma, no-cache);

Thanks for the tip.  I'll include that in my development code.

 just at the begin of a script. Should work on almost all browsers.

 Marcin

  -Original Message-
  From: Yiu Wing [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, December 19, 2001 10:07 PM
  To: [EMAIL PROTECTED]
  Subject: Clear Cache In IE5
 
 
  Hello all,
 
  This is a little bit off topic. Can you tell me how can I clear
  the cache in
  IE so that I can see the change I've in made in my webapp after invoking
  TomCat4.0 again?  Thanks in advance.
 
   _ Do You
  Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Clear Cache In IE5

2001-12-19 Thread Yiu Wing

Hello all,

This is a little bit off topic. Can you tell me how can I clear the cache in
IE so that I can see the change I've in made in my webapp after invoking
TomCat4.0 again?  Thanks in advance.


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Clear Cache In IE5

2001-12-19 Thread Yiu Wing

 1)Tools/Internet Options/Temporary Internet Files/Settings/Every Visit to
 the Page.

 2)Tools/Internet Options/Temporary Internet Files/Delete Files/All offline
 content.

 And after Refresh for every page. Do it, I had that problem before and
more
 if you use any caching server like squid, etc.

 Guido

Thanks for that.  But my problem turns out that TomCat gives the older
version of my webapp.  Actually, I replaced a new jsp file in my webapp with
exactly the same name as the old jsp file.  However, TomCat4.0 still gives
me the older version.  This is really annoying, why TomCat does something
like that?  I thought IE was the culprit but it's not. I'd really appreciate
it, if someone can help me with this.

Thanks a lot.

 -Original Message-
 From: Yiu Wing [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 19, 2001 5:07 PM
 To: [EMAIL PROTECTED]
 Subject: Clear Cache In IE5


 Hello all,

 This is a little bit off topic. Can you tell me how can I clear the cache
in
 IE so that I can see the change I've in made in my webapp after invoking
 TomCat4.0 again?  Thanks in advance.


 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Clear Cache In IE5

2001-12-19 Thread Yiu Wing

 Go to server.xml and add this property to your context 
 reloadable=true .../

Actually, I've already got that in place.  Here's what I have in the
server.xml file

Context path= docBase=ERPS debug=0 reloadable=true/

but TomCat still gives me the old page.  Maybe someone on the list can tell
me why.

Anyway, thanks all the same.


 -Original Message-
 From: Yiu Wing [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 20, 2001 12:19 AM
 To: Tomcat Users List
 Subject: Re: Clear Cache In IE5


  1)Tools/Internet Options/Temporary Internet Files/Settings/Every Visit
to
  the Page.
 
  2)Tools/Internet Options/Temporary Internet Files/Delete Files/All
offline
  content.
 
  And after Refresh for every page. Do it, I had that problem before and
 more
  if you use any caching server like squid, etc.
 
  Guido

 Thanks for that.  But my problem turns out that TomCat gives the older
 version of my webapp.  Actually, I replaced a new jsp file in my webapp
with
 exactly the same name as the old jsp file.  However, TomCat4.0 still gives
 me the older version.  This is really annoying, why TomCat does something
 like that?  I thought IE was the culprit but it's not. I'd really
appreciate
 it, if someone can help me with this.

 Thanks a lot.

  -Original Message-
  From: Yiu Wing [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, December 19, 2001 5:07 PM
  To: [EMAIL PROTECTED]
  Subject: Clear Cache In IE5
 
 
  Hello all,
 
  This is a little bit off topic. Can you tell me how can I clear the
cache
 in
  IE so that I can see the change I've in made in my webapp after invoking
  TomCat4.0 again?  Thanks in advance.
 
 
  _
  Do You Yahoo!?
  Get your free @yahoo.com address at http://mail.yahoo.com
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Update changes

2001-12-17 Thread Yiu Wing

How can I update the change that I've made to my webapp's directory in
TomCat 4.0? Here's the situation, I deleted an unwanted directory in my
webapp's directory, but it's still being showed after I restarted TomCat and
the browser - well, I actually rebooted the machine.  I've set reloadable to
be true for my webapp in the file server.xml, although it's irrelevant
because that's for reloading the classes.  In fact, I don't have any class
files in either WEB-INF\classes or WEB-INF\lib, because my app is an applet.
Therefore, I'm getting the feeling that the reloadable attribute won't help
me to reload the change I've made to the applet.  So in short, is there a
command or setting I can ask TomCat to reload everything regardless what.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Location of jdbc driver

2001-11-22 Thread Yiu Wing

Hi ya,

Let's share this with the others ;-), and I think this should be mentioned
in the docs.

Anyway, here how I do it, I place the *driver directory tree* in the
directory as the other class files.  For example, my servlet application is
called, myApplet, and I put all the class files for this app in myClasses,
so the directory tree will look like this,

myApplet--myApplet.jsp
  |
  myClasses
   |
   --(class files for the applet)
  |
   --org(this is for the MySQL driver)
 |
 gjt
   |
   mm
[...]

See the deep directory tree for the driver, but all you need to do is unjar
it.  If you use WinZip, right click on the driver file and unzip (unjar) it.
I hope you will find this useful.

- Original Message -
From: Satish Talim [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 20, 2001 3:30 PM
Subject: Location of jdbc driver


 Hi,

 I am facing the same problem. I am not sure where I should place the mySQL
 jdbc driver files. What has been the solution?

 My servlet uses JDBC and throws a page with an applet. Then via
 HttpURLConnection I have to do applet/servlet communication...

 Regards,

 Amit Lonkar
 - Original Message -
 From: Yiu Wing [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, November 19, 2001 12:41 AM
 Subject: [repost] loading class files

   Sorry guys this is a repost. But after doing numerous google search and
   wading through the docs, I still can't solve my problem with regard to
   loading applet classes. I sincerely hope some of you can help me this
 time,
   I desperately need to get this working. The same message is as follow.
  
   Hello All,
  
   I'm writing an applet that uses JDBC to connect to MySQL server , and
the
   applet is embedded in a jsp. I'm new to this, so I went on and read the
   docs that come with Tomcat. I'm also using CVS and ant for the
 development.
   The source code layout of my project is as suggested in the docs, which
is
  
   project name
   |- docs
   |- src
   |- web
   |--WEB-INF
  
   In the project/web/WEB-INF directory, do I have to create a classes and
 lib
   subdirectories? The reason I ask this is because the class loader, from
 the
   Tomcat or web browser, can't find the class files. But they're clearly
in
   the web directory, whose structure is as,
  
   project
   | login.jsp (that's the jsp file that embeds the applet)
   | WEB-INF
   |--- classes (this directory has all
 the
   needed class files)
   |--- lib (where the MySQL driver is
   stored)
  
   The Tomcat docs says the classes and lib dir are made visible to other
   classes within your particular web application, but why my class files
   can't be loaded there? If I move all the class files to the top of the
 web
   directory, and change code=MyClass.class to code=MyClass in the
 jsp
   file, then everything seems to working OK. Oh, yeah, almost forgot, I
also
   need to copy the whole directory tree for the driver to the web
directory
 as
   well. Setting the classpath for the driver doesn't work. I don't want
to
   copy the class files to the top of the web directory every time, can
those
   file be loaded in the classes and lib directories. Sorry about this
 rather
   long message, but I'm getting very frustrated and hopping some of you
can
   help me with this.
  
   Thanks for your help in advance.
  
   P.S. I'm using Tomcat4.0 on Win2000
  
  


 __
 Quick Heal Eudora Plugin has scanned email for known viruses, trojans and
worms.
 www.quickheal.com



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: [repost] loading class files

2001-11-19 Thread Yiu Wing

[...]
  But from one of the
  Tomcat's docs, which is tomcat-docs\appdev\deployment.html, in its mid
 page
  says,
 
  /WEB-INF/lib/ - This directory contains JAR files that contain Java
class
  files (and associated resources) required for your application, such as
  third party class libraries or JDBC drivers.
 
  I've copied my JDBC driver there, but it just won't work.  My citation
is
  just the opposite of your reference email, which says that JAR files are
  static content and can't be place under /WEB-INF.  Since my applet is
  running now, and so think the docs could be wrong or haven't covered
this
  topic completely. I hope someone could look this up.
 
  Anyway, thanks very much for your email again.  You have saved me!
 [...]


 Thanks for your thanking!  :-)

I was very frustrated, I was trying to get this working for a week and I
didn't get anywhere, that's why the big thanks ;-).

 BTW, there are two kinds of class/jar in a webapp:
   - for Servlet/jsp(it works in server-side)
   - for Applet or other static content(it will be downloaded to
 client together with Applet class, and works in client-side)

 I think the reference email means:
- class/jar for Servlet/jsp itself should be put under WEB-INF
- class/jar for static content should Not be put under WEB-INF

 I think your JDBC driver is used by your JSP directly, it works in
 server-side, (it is not downloaded together with  your Applat and
 work in client-side), so now, as you say, your JDBC driver should
 be put in WEB-INF/lib.


I'm just wondering the JDBC driver is working on the client side, cos' if I
place the driver jar file in WEB-INF/lib directory then it can't be found.
I've also tried the common/lib directory, as the other helpful folk
suggested, and it can't be found there, either.  I've actually embedded my
database connection in the applet, so it does look like I should place the
driver on a separate directory.


[snip]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: [repost] loading class files

2001-11-19 Thread Yiu Wing


 I use this setup on my linux box (TC 4.0.1, MySQL JDBC, Mandrake 8).  The
 only issue I've ever had with the driver is the downloaded MySQL JDBC
driver
 file needs to be unjarred.  The .jar file nested inside is the actual JDBC
 driver.  Place it in WEB-INF/lib and restart Tomcat so it can find the
file.
 Alternatively, this file can be in CATALINA_BASE$/lib or
 CATALINA_BASE$/common/lib if you want it available to all your apps or all
 your apps and Tomcat itself respectively.

My applet uses the JDBC directly, so I've unjarred the driver and everything
works fine now.  Thanks for clearing things up for me.

 Note on the other stuff:  Classes used on the server side should be in a
 package structure under WEB-INF/classes to work correctly.  JSPs, static
 content, and client-side applets should all be outside the WEB-INF folder
for
 proper operation.  This is defined in the spec and is required for all
 applications conforming to it.

 Hope this clears some mystery.

 --David Smith

 On Monday 19 November 2001 12:41 am, you wrote:
  Sorry guys this is a repost. But after doing numerous google search and
  wading through the docs, I still can't solve my problem with regard to
  loading applet classes. I sincerely hope some of you can help me this
time,
  I desperately need to get this working.  The same message is as follow.
 
  Hello All,
 
  I'm writing an applet that uses JDBC to connect to MySQL server , and
the
  applet is embedded in a jsp.  I'm new to this, so I went on and read the
  docs that come with Tomcat.  I'm also using CVS and ant for the
  development. The source code layout of my project is as suggested in the
  docs, which is
 
  project name
 
|- docs
|- src
|- web
|
  |--WEB-INF
 
  In the project/web/WEB-INF directory, do I have to create a classes and
lib
  subdirectories?  The reason I ask this is because the class loader, from
  the Tomcat or web browser, can't find the class files.  But they're
clearly
  in the web directory, whose structure is as,
 
  project
 
| login.jsp (that's the jsp file that embeds the applet)
| WEB-INF
|
  |--- classes (this directory has all
  | the
 
  needed class files)
 
  |--- lib (where the MySQL driver is
 
  stored)
 
  The Tomcat docs says the classes and lib dir are made visible to other
  classes within your particular web application, but why my class files
  can't be loaded there?  If I move all the class files to the top of the
web
  directory, and change code=MyClass.class  to code=MyClass in the
  jsp file, then everything seems to working OK. Oh, yeah, almost forgot,
I
  also need to copy the whole directory tree for the driver to the web
  directory as well.  Setting the classpath for the driver doesn't work.
I
  don't want to copy the class files to the top of the web directory every
  time, can those file be loaded in the classes and lib directories.
Sorry
  about this rather long message, but I'm getting very frustrated and
hopping
  some of you can help me with this.
 
  Thanks for your help in advance.
 
  P.S. I'm using Tomcat4.0 on Win2000
 



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




[repost] loading class files

2001-11-18 Thread Yiu Wing

Sorry guys this is a repost. But after doing numerous google search and
wading through the docs, I still can't solve my problem with regard to
loading applet classes. I sincerely hope some of you can help me this time,
I desperately need to get this working.  The same message is as follow.

Hello All,

I'm writing an applet that uses JDBC to connect to MySQL server , and the
applet is embedded in a jsp.  I'm new to this, so I went on and read the
docs that come with Tomcat.  I'm also using CVS and ant for the development.
The source code layout of my project is as suggested in the docs, which is

project name
  |- docs
  |- src
  |- web
|--WEB-INF

In the project/web/WEB-INF directory, do I have to create a classes and lib
subdirectories?  The reason I ask this is because the class loader, from the
Tomcat or web browser, can't find the class files.  But they're clearly in
the web directory, whose structure is as,

project
  | login.jsp (that's the jsp file that embeds the applet)
  | WEB-INF
|--- classes (this directory has all the
needed class files)
|--- lib (where the MySQL driver is
stored)

The Tomcat docs says the classes and lib dir are made visible to other
classes within your particular web application, but why my class files
can't be loaded there?  If I move all the class files to the top of the web
directory, and change code=MyClass.class  to code=MyClass in the jsp
file, then everything seems to working OK. Oh, yeah, almost forgot, I also
need to copy the whole directory tree for the driver to the web directory as
well.  Setting the classpath for the driver doesn't work.  I don't want to
copy the class files to the top of the web directory every time, can those
file be loaded in the classes and lib directories.  Sorry about this rather
long message, but I'm getting very frustrated and hopping some of you can
help me with this.

Thanks for your help in advance.

P.S. I'm using Tomcat4.0 on Win2000





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: [repost] loading class files

2001-11-18 Thread Yiu Wing

 I suggest you put YourApplet.class together with your
 html/image or other static contents), for ex. :
 webapps/yourapp0/staticContent/
 (staticContent is a folder made by you)

Thanks very much for your reply and reference email. Yeah, I have to create
an extra directory to store all my class files, and I also have to unzipped
the JDBC driver in order to get my jsp applet running. But from one of the
Tomcat's docs, which is tomcat-docs\appdev\deployment.html, in its mid page
says,

/WEB-INF/lib/ - This directory contains JAR files that contain Java class
files (and associated resources) required for your application, such as
third party class libraries or JDBC drivers.

I've copied my JDBC driver there, but it just won't work.  My citation is
just the opposite of your reference email, which says that JAR files are
static content and can't be place under /WEB-INF.  Since my applet is
running now, and so think the docs could be wrong or haven't covered this
topic completely. I hope someone could look this up.

Anyway, thanks very much for your email again.  You have saved me!


 reference email :-)
 
  In which directory of the Tomcat installation do we copy the html and
  applet classes?

 I suggest you also read the Application Developer's Guide included with
 Tomcat.  The Tomcat 4 version is also online at:

   http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/

 From the point of view of the server, applet classes and JAR files are
 just static content.  Therefore, they should be placed in the same
 directory as your static HTML pages, ***not*** under /WEB-INF.

  Amit Lonkar
 

 Craig McClanahan
 



 Bo
 Nov.18, 2001




 - Original Message -
 From: Yiu Wing [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, November 19, 2001 12:41 AM
 Subject: [repost] loading class files


  Sorry guys this is a repost. But after doing numerous google search and
  wading through the docs, I still can't solve my problem with regard to
  loading applet classes. I sincerely hope some of you can help me this
 time,
  I desperately need to get this working.  The same message is as follow.
 
  Hello All,
 
  I'm writing an applet that uses JDBC to connect to MySQL server , and
the
  applet is embedded in a jsp.  I'm new to this, so I went on and read the
  docs that come with Tomcat.  I'm also using CVS and ant for the
 development.
  The source code layout of my project is as suggested in the docs, which
is
 
  project name
|- docs
|- src
|- web
  |--WEB-INF
 
  In the project/web/WEB-INF directory, do I have to create a classes and
 lib
  subdirectories?  The reason I ask this is because the class loader, from
 the
  Tomcat or web browser, can't find the class files.  But they're clearly
in
  the web directory, whose structure is as,
 
  project
| login.jsp (that's the jsp file that embeds the applet)
| WEB-INF
  |--- classes (this directory has all
 the
  needed class files)
  |--- lib (where the MySQL driver is
  stored)
 
  The Tomcat docs says the classes and lib dir are made visible to other
  classes within your particular web application, but why my class files
  can't be loaded there?  If I move all the class files to the top of the
 web
  directory, and change code=MyClass.class  to code=MyClass in the
 jsp
  file, then everything seems to working OK. Oh, yeah, almost forgot, I
also
  need to copy the whole directory tree for the driver to the web
directory
 as
  well.  Setting the classpath for the driver doesn't work.  I don't want
to
  copy the class files to the top of the web directory every time, can
those
  file be loaded in the classes and lib directories.  Sorry about this
 rather
  long message, but I'm getting very frustrated and hopping some of you
can
  help me with this.
 
  Thanks for your help in advance.
 
  P.S. I'm using Tomcat4.0 on Win2000
 
 
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 



 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Loading class files

2001-11-14 Thread Yiu Wing

Hello All,

I'm writing an applet that uses JDBC to connect to MySQL server , and the
applet is embedded in a jsp.  I'm new to this, so I went on and read the
docs that come with Tomcat.  I'm also using CVS and ant for the development.
The source code layout of my project is as suggested in the docs, which is

project name
  |- docs
  |- src
  |- web
|--WEB-INF

In the project/web/WEB-INF directory, do I have to create a classes and lib
subdirectories?  The reason I ask this is because the class loader, from the
Tomcat or web browser, can't find the class files.  But they're clearly in
the web directory, whose structure is as,

project
  | login.jsp (that's the jsp file that embeds the applet)
  | WEB-INF
|--- classes (this directory has all the
needed class files)
|--- lib (where the MySQL driver is
stored)

The Tomcat docs says the classes and lib dir are made visible to other
classes within your particular web application, but why my class files
can't be loaded there?  If I move all the class files to the top of the web
directory, and change code=MyClass.class  to code=MyClass in the jsp
file, then everything seems to working OK. Oh, yeah, almost forgot, I also
need to copy the whole directory tree for the driver to the web directory as
well.  Setting the classpath for the driver doesn't work.  I don't want to
copy the class files to the top of the web directory every time, can those
file be loaded in the classes and lib directories.  Sorry about this rather
long message, but I'm getting very frustrated and hopping some of you can
help me with this.

Thanks for your help in advance.

P.S. I'm using Tomcat4.0 on Win2000




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]