M
mojgan
Hi,
I recently installed Tomcat 5.0.25 on Windows XP, and all seems fine.
All the examples that come with it run, no problem.
So as a first step, I tried to edit the HelloWorldServlet.java file to
display something else, like "Howdy Yall!". I edited the file, and
recompiled without error. When I click on the link to execute this
HelloWorldServlet example, it still shows "Hello World". I deleted all
my cookies and cached internet files, thru the browser, but I still
see the same thing. I even removed the HelloWorldServlet.class file,
but it still shows "Hello World".
What's going on? Is it looking in a jar somewhere? I don't get it.
The path is like this:
c:\tomcat\webapps\servlets-examples\WEB-INF\classes\HelloWorldServlet.class
Basically it's what comes with the standard installation, I just
wanted to see if I could modify what already works before I made my
own servlet.
I also tried to write my own servlet (very similar to the
HelloWorldServlet.java) and modified the web.xml file, similar to the
settings for the existing examples. But when I point my browser to the
new example, I see a page with this:
HTTP Status 404 - /servlets-examples/servlet/HelloExample
----------------------------------------------------------
type Status report
message /servlets-examples/servlet/HelloExample
description The requested resource
(/servlets-examples/servlet/HelloExample) is not available.
----------------------------------------------------------
Apache Tomcat/5.0.25
I would appreciate any help I could get.
Regards,
..mojgan.
I recently installed Tomcat 5.0.25 on Windows XP, and all seems fine.
All the examples that come with it run, no problem.
So as a first step, I tried to edit the HelloWorldServlet.java file to
display something else, like "Howdy Yall!". I edited the file, and
recompiled without error. When I click on the link to execute this
HelloWorldServlet example, it still shows "Hello World". I deleted all
my cookies and cached internet files, thru the browser, but I still
see the same thing. I even removed the HelloWorldServlet.class file,
but it still shows "Hello World".
What's going on? Is it looking in a jar somewhere? I don't get it.
The path is like this:
c:\tomcat\webapps\servlets-examples\WEB-INF\classes\HelloWorldServlet.class
Basically it's what comes with the standard installation, I just
wanted to see if I could modify what already works before I made my
own servlet.
I also tried to write my own servlet (very similar to the
HelloWorldServlet.java) and modified the web.xml file, similar to the
settings for the existing examples. But when I point my browser to the
new example, I see a page with this:
HTTP Status 404 - /servlets-examples/servlet/HelloExample
----------------------------------------------------------
type Status report
message /servlets-examples/servlet/HelloExample
description The requested resource
(/servlets-examples/servlet/HelloExample) is not available.
----------------------------------------------------------
Apache Tomcat/5.0.25
I would appreciate any help I could get.
Regards,
..mojgan.