Re: Java/TomCat How to Configure a Servlet contextPath
- From: Lew <lew@xxxxxxxxxxxxx>
- Date: Fri, 31 Oct 2008 13:37:35 -0700 (PDT)
On Oct 31, 2:23 pm, Rich Morey <richard.mo...@xxxxxxxxx> wrote:
Hi --
Thank you both for your quick replies.
In your example URL (aside: the words "Java" and "Class" in the URL
are bad practice), "javaApp" is the application context and
I am aware of this. I just did that for my own learning curve.
This is correct. However, if your web.xml file isn't set correctly,
this won't load. Want did you do to configure the web.xml? Can you show us?
I should say that I am just learning Java & Tomcat at this point. My
web development experience prior to this was with Delphi. When
building a Delphi web app a URL would look something like this:
http://host/library.dll/action?
In this case, the "library.dll" file could/would contain multiple
"actions" that could be invoked like this:
http://host/library.dll/action1?http://host/library.dll/action2?
etc. This would allow me to develop related functionality within a
single library. For example, I recently completed a payment processing
DLL for a client. In this case the URLs were something like this:
http://host/payment.dll/Cash?http://host/payment.dll/Check?http://host/payment.dll/CreditCard?
Each action, in this case "Cash", "Check", "CreditCard" was invoked
from within the single library, "payment.dll". I would like to
replicate this kind of configuration within Java, mostly because this
has been the methodology I have used in the past and so I "think"
along these lines.
Tomcat doesn't have DLLs. It has web pages.
Read
<http://tomcat.apache.org/tomcat-6.0-doc/appdev/deployment.html>
--
Lew
.
- References:
- Java/TomCat How to Configure a Servlet contextPath
- From: Rich Morey
- Re: Java/TomCat How to Configure a Servlet contextPath
- From: Mark Space
- Re: Java/TomCat How to Configure a Servlet contextPath
- From: Lew
- Re: Java/TomCat How to Configure a Servlet contextPath
- From: Rich Morey
- Java/TomCat How to Configure a Servlet contextPath
- Prev by Date: Re: Date Time additions/parsing
- Next by Date: Re: Java/TomCat How to Configure a Servlet contextPath
- Previous by thread: Re: Java/TomCat How to Configure a Servlet contextPath
- Next by thread: Re: Java/TomCat How to Configure a Servlet contextPath
- Index(es):
Relevant Pages
|