Sorry, both of the urls are "gttp://localhost:8080/. . .

On Nov 11, 2004, at 2:38 PM, Peter Fogg wrote:

Trying to learn how to develop applications in JSP and servlets. Using Tomcat 5.0.28 on Mac OS X v10.3.5.

In web-apps directory created subdirectory LearningTree.
Created and compiled a servlet HelloWorldServlet.class in the LearningTree directory.
Moved the class to the LearningTree/WEB-INF/classes directory.
Created the web.xml file with <servlet> and <servlet-mapping> sections.
Set the <url-pattern> to "/".
Started Tomcat
http://8080/LearningTree/HelloWorldServlet works.
Stopped Tomcat.


Created a subdirectory, HWS, of LearningTree directory.
Moved the HelloWorldServlet.fava file into the HWS directory.
Moved the above WEB-INF directory into the HWS directory.
Started Tomcat.
http://8080/LearningTree/HWS/HelloWorldServlet does not work - resource not available.
??


Also, can someone point me to a clear and concise explanation of the <url-pattern> issue?

Thanks in advance for any help offered.

Peter-


--------------------------------------------------------------------- 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]



Reply via email to