Steve's answer is correct. You can either delete the servlet and servlet-mapping entries in /webapps/ROOT/WEB-INF/web.xml
or start your own context. If you're interested, I've got some simple example apps at http://www.souther.us/simple that you can download and run. They're all war files that just need to be dropped into the webapps directory of a running Tomcat instance. SimpleJSP is a "Hello, World" app that you could use to get started playing with JSPs. On Mon, 2004-11-08 at 18:11, Steve Kirk wrote: > OK no-one's answered so here's an idea. Not sure if this is right but maybe > if I get it wrong someone will correct me ;) > > I think it's that, despite appearances, you are in fact running a > precompiled servlet class, which is installed by default, rather than a JSP > page via org.apache.jasper.servlet.JspServlet, because of the default > mappings in web.xml. Check webapps/ROOT/WEB-INF/web.xml: > > <servlet> > <servlet-name>org.apache.jsp.index_jsp</servlet-name> > <servlet-class>org.apache.jsp.index_jsp</servlet-class> > </servlet> > > <servlet-mapping> > <servlet-name>org.apache.jsp.index_jsp</servlet-name> > <url-pattern>/index.jsp</url-pattern> > </servlet-mapping> > > What I think the above adds up to is that when you access "/index.jsp", you > run "index_jsp.class" directly, which is already installed under the > webapps/ROOT/WEB-INF/classes/org/apache/jsp directory (as well as under > webapps/ROOT/WEB-INF/lib/catalina-root.jar), and the fact that the extension > is "jsp" is in fact not relevant. I think the mapping above also overrides > the general mapping in conf/web.xml for JSP mapping/compilation, so that > this jsp won't compile even if you change the page, because TC does not see > it as a JSP. What I'm not sure about is why the JSP page is included at > all. Maybe this proves that I've got it completely wrong.... ;) > > > -----Original Message----- > > From: Luc Vantroys [mailto:[EMAIL PROTECTED] > > Sent: Saturday 06 November 2004 17:52 > > To: Tomcat Users List > > Subject: Index.jsp > > > > > > Hi, > > > > When I modify this file, I don't see the changes in the > > browser when I start > > Tomcat 5.0.28... > > but when I just launch that file from my hard drive, I see > > the changes. What > > do I need to do? > > > > Thanks, > > > > Luc. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
