Howdy,
As always, there's no right or wrong.  There are multiple options
depending on what you're trying to do.

Unless you want some non-default context property that must be put in
server.xml, don't touch server.xml.  I like the KISS (Keep It Simple..)
principle, so this usually works for me.  That means you don't need an
explicit <context> tag for your webapp in server.xml.  

For more details, see
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html

If you do need non-default things for your context, such as JNDI
reference declarations, then you'll need a <context> tag in server.xml
most likely.

BTW: be careful trusting these books, as they tend to be out of date ;(

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Steve R Burrus [mailto:[EMAIL PROTECTED]]
>Sent: Friday, January 17, 2003 1:49 AM
>To: [EMAIL PROTECTED]
>Subject: What about the Context tag?
>
> Hello there, newbie finds himself in some need of help with using the
><Context>
>tag!! I happen to have a server-side Java programming book that tells
the
>reader
>to edit this tag in the server.xml file with the specific context path
for
>the
>servlet to be seen in the browser, HOWEVER I have noticed that some in
this
>group
>have said that this whole file should just be left alone, that Tomcat
could
>somehow "magically" find the correct path for the servlet! Who is right
>about this
>anyway?!
>
>__________________________________________________
>Do you Yahoo!?
>Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
>http://mailplus.yahoo.com
>
>--
>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]>

Reply via email to