You do need the web.xml file for any servlets you wish to run with tomcat,
however, JSPs and JavaBeans will run without the web.xml file.
~zaina
-----Original Message-----
From: Hans Bergsten [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 01, 2000 5:58 PM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat files.
"Jason C. Leach" wrote:
>
> hi,
>
> Do I need to do a .xml file to define the web site, even if it's just a
> simle little hello world?
Probably not (I'm pretty sure Tomcat can do without it), but there are no
guarantees in the spec.
Hans
> On Fri, 30 Jun 2000, Hans Bergsten wrote:
>
> > "Jason C. Leach" wrote:
> > >
> > > hi,
> > >
> > > In Tomcat, where to I put my JSP pages, and my .class files? I can't
seem
> > > to get them both in a place that makes Tomcay happy.
> >
> > For any web server, JSP pages go in the document structure, i.e. in the
same
> > directories you put HTML and image files. The fact that they are turned
into
> > servlets and compiled into a class file is nothing you need to worry
about;
> > it's done automatically by the web container.
> >
> > Class files for beans, servlets and utility classes used in you
application
> > need to be in a directory structure that's part of the classpath for the
> > container. In Tomcat, or any container that supports the web application
> > file structure defined by Servlet 2.2 spec, you should place them in one
> > of the WEB-INF directories for the application. Use WEB-INF/classes if
the
> > class files are not packaged in a JAR file, use WEB-INF/lib for all JAR
files.
> >
> > Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets