Java/TomCat How to Configure a Servlet contextPath
- From: Rich Morey <richard.morey@xxxxxxxxx>
- Date: Fri, 31 Oct 2008 10:02:06 -0700 (PDT)
Hi --
I have Tomcat running locally on my PC. I have built a simple Java
application that runs as expected when I typ in the URL:
http://localhost/javaApp/TestClass
The app runs this way because I am planning to have multiple classes
within "javaApp." My question is, how would I configure my server so
that this URL:
http://localhost/javaApp/TestClass/Action1
would load TestClass? Currently I get a 404 with the above URL. I
believe, from what I have read, that this relates to configuring the
context.xml fill however, I have so far been unsuccessful in
understandin he docmentation well enough to make this work.
Any help would be appreciated!
Thanks
Rich
.
- Follow-Ups:
- Re: Java/TomCat How to Configure a Servlet contextPath
- From: Mark Space
- Re: Java/TomCat How to Configure a Servlet contextPath
- Prev by Date: Re: how to insert space in a string
- Next by Date: making swing application to launch from desktop
- Previous by thread: Session variables with Ajax
- Next by thread: Re: Java/TomCat How to Configure a Servlet contextPath
- Index(es):
Relevant Pages
|