so if you to start off in context.xml with a path specification
<Context path="/urlPath ...>

later on  in web.xml you have defined the servlet-mapping as
    <servlet-mapping>
        <servlet-name>urlPath</servlet-name>
        <url-pattern>/servlet/urlPath</url-pattern>
    </servlet-mapping>

you would access the servlet with
http://MachineName:Port/WebApp/servlet/UrlPath

HTH,
M-
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



----- Original Message ----- 
From: "MC Moisei" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Monday, August 21, 2006 4:03 PM
Subject: Re: Context and web.xml


> Any tips on the matter ?
> 
>>>From: Mark Thomas <[EMAIL PROTECTED]>
>>>Reply-To: "Tomcat Users List" <users@tomcat.apache.org>
>>>To: Tomcat Users List <users@tomcat.apache.org>
>>>Subject: Re: Context and web.xml
>>>Date: Mon, 21 Aug 2006 07:27:32 -0400
>>>
>>>MC Moisei wrote:
>>> > Hi,
>>> >
>>> > I'm using tomcat for dev. My question is for a dev environment. I have
>>> > context defined in conf %TOMCAT_HOME%\conf\Catalina\localhost. Is there
>>> > a way to specify what's the web.xml tomcat should use ? I use tomcat 
>>>for
>>> > dev but I target Weblogic for production and such feature would be
>>> > quite  useful.
>>> >
>>> > Thanks in advance,
>>> > MC
>>>
>>>When starting a new thread (ie sending a message to the list about a
>>>new topic) please do not reply to an existing message and change the
>>>subject line. To many of the list archiving services and mail clients
>>>used by list subscribers this  makes your new message appear as part
>>>of the old thread. This makes it harder for other users to find
>>>relevant information when searching the lists.
>>>
>>>This is known as thread hijacking and is behaviour that is frowned
>>>upon on this list. Frequent offenders will be removed from the list.
>>>It should also be noted that many list subscribers automatically
>>>ignore any messages that hijack another thread.
>>>
>>>The correct procedure is to create a new message with a new subject.
>>>This will start a new thread.
>>>
>>>Mark
>>>tomcat-user-owner
> 
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Reply via email to