tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: What about the Context tag?
Date Fri, 17 Jan 2003 14:58:42 GMT
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

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 []
>Sent: Friday, January 17, 2003 1:49 AM
>Subject: What about the Context tag?
> Hello there, newbie finds himself in some need of help with using the
>tag!! I happen to have a server-side Java programming book that tells
>to edit this tag in the server.xml file with the specific context path
>servlet to be seen in the browser, HOWEVER I have noticed that some in
>have said that this whole file should just be left alone, that Tomcat
>somehow "magically" find the correct path for the servlet! Who is right
>about this
>Do you Yahoo!?
>Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
>To unsubscribe, e-mail:   <mailto:tomcat-user-
>For additional commands, e-mail: <mailto:tomcat-user-

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message