I did this last night while setting up tomcat for the first time (ever, much
less to work with apache).
I serve all my jsp's from /java/jsp and my servlets from /java/servlet (just
because it's easy to remember).
I am at work now and all my stuff is behind a firewall at the house.
**pulls thoughts out of 3am this morning**
If you look at the server.xml and tomcat.conf (or apache-tomcat.conf if you
are using apache too) you should be able to figure out how to make your own
dir that apache calls for java!
I would *guess* this is the preferred method?
Enjoy!
-----Original Message-----
From: Liming Xu [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 04, 2001 1:53 PM
To: [EMAIL PROTECTED]
Subject: RE: import java files from jsp
oh, thanks..
and as for my classes, i will put them into some packages..say "com.myname"
under some directoy say /myjavaclass, it's just that I don't want to put the
packages say "com.myname" inside the WEB-INF/classes, that's all.
so all i have to do is to add to the tocmat classpath right? thanks.
-----Original Message-----
From: Michael Wentzel [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 04, 2001 2:07 PM
To: '[EMAIL PROTECTED]'
Subject: RE: import java files from jsp
> Hello, I have some jsp files under /jsp, and by default, the
> java files used
> by these jsp files should be put under /jsp/Web-INF/classes/, is there
> anyway that I can specify under tomcat's configuration file
> and make the jsp
> pages under /jsp to look for java files else where? so
> /myjavaclass?????
As long as the classes are in the classpath for your tomcat jvm instance
they will be found. This is a bad practice though seeing as if duplicate
class instances(which are different in code, signature, etc...) can cause
problems if they exist in the classpath before your intended class. Any
particular reason you wish to do this...? Just curious;)
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com