servlet class deployment

2002-07-11 Thread khozaima shakir

I have installed Tomcat version 4.0.4 and have set Java_home, to my 
jdk1.3.1_02 directory. To run my servlet, where do i have to load the 
classes. i am confused since there are 2 web_inf directories,
structures as
1) webapps/ROOT/WEB_INF  ( there is no classes directory, do i have to 
make it?)
2)webapps/examples
From: Shapira, Yoav [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: Environment Variable
Date: Thu, 11 Jul 2002 11:02:09 -0400

Howdy,
If you have a different web.xml for each environment, you can put a
param there indicating which environment it is.  If you have a different
tomcat startup script for each environment, you can add an option
(CATALINA_OPTS or JAVA_OPTS), e.g. -Dcom.mycompany.env=production and
then use System.getProperty(com.mycompany.env) to retrieve the value.

Maybe one of those will work for you ;)

Yoav Shapira
Millennium ChemInformatics


 -Original Message-
 From: Chen, Dean (Zhun) [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 11, 2002 10:54 AM
 To: 'Tomcat Users List'
 Subject: Environment Variable
 
 Hi,
 I have a quick question. I would like my application to know what kind
of
 environment (DEV, QA, PROD) it's in by looking at Tomcat. Does anyone
know
 how to do that?
 
 Thanks,
 
 Dean Chen
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




servlet class deployment

2002-07-11 Thread khozaima shakir

I have installed Tomcat version 4.0.4 and have set Java_home, to my 
jdk1.3.1_02 directory. To run my servlet, where do i have to load the 
classes. i am confused since there are 2 web_inf directories,
structures as
1) webapps/ROOT/WEB_INF  ( there is no classes directory, do i have to 
make it?)
2)webapps/examples/wWEB_INF/classes



thanks
shakir






_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: servlet class deployment

2002-07-11 Thread Jacob Kjome

You make your own directory which, if you put it under TOMCAT_HOME/webapps, 
automatically gets a context created for it with the path of the directory 
name you provided.

Now, just create a structure like:

myapp/(put any static pages, images, styles, scripts, etc... here... 
you can also create new directories for those if you want)
 WEB-INF/   (put your web.xml here)
 lib/   (put all your app specific .jar libraries here)
 classes/   (put all your classes here in their respective packages)

That's all you need.  Just look at the examples directory and see how it 
is set up.  Use that as a guide.

jake

At 03:45 PM 7/11/2002 -0400, you wrote:
I have installed Tomcat version 4.0.4 and have set Java_home, to my 
jdk1.3.1_02 directory. To run my servlet, where do i have to load the 
classes. i am confused since there are 2 web_inf directories,
structures as
1) webapps/ROOT/WEB_INF  ( there is no classes directory, do i have to 
make it?)
2)webapps/examples/wWEB_INF/classes



thanks
shakir






_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]