> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
> Subject: Re: Multiple context paths for single deployment
> Now, one might still be able to use this technique if
> you deploy to ROOT and alias /both/ URI prefixes you
> want to use, like this:
> path=&q
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chuck,
On 5/13/2011 10:36 AM, Caldarale, Charles R wrote:
> "
> This attribute provides a list of external locations from which to
> load resources for this context. The list of aliases should be of the
> form "/aliasPath1=docBase1,/aliasPath2=docBase
JanAa wrote:
Thanks for replying.
I was under the impression that the difference between
HttpServletRequest.getContextPath and ServletContext.getContextPath() was
exactly that the first returned the context path used in the request while
the second returned the context path used when processing
> From: JanAa [mailto:jan.aage...@norse-solutions.com]
> Subject: RE: Multiple context paths for single deployment
> What I want is an alias for the context so that more than
> one url can be used for the same application and that the
> url used is reflected in HttpServletRequest
outbound-rule to not show this to the users. Any other/better proposal?
-Jan
n828cl wrote:
>
>> From: JanAa [mailto:jan.aage...@norse-solutions.com]
>> Subject: Re: Multiple context paths for single deployment
>
>> What I want is an alias for the context so that more
> From: Jess Holle [mailto:je...@ptc.com]
> Subject: Re: Multiple context paths for single deployment
> In Tomcat versions up through 6.0, I have cases where I have 1 expanded
> WAR directory (outside Tomcat's webapps, etc) and then numerous
> disparate Context XML fil
ingletons, e.g. data
sources, where you belatedly discover you want a cardinality of 'n'
rather than 1.
--
Jess Holle
On 5/13/2011 8:56 AM, Caldarale, Charles R wrote:
From: JanAa [mailto:jan.aage...@norse-solutions.com]
Subject: Re: Multiple context paths for single deployment
What I want
> From: JanAa [mailto:jan.aage...@norse-solutions.com]
> Subject: Re: Multiple context paths for single deployment
> What I want is an alias for the context so that more than
> one url can be used for the same application and that the
> url used is reflected in HttpServletRequest
that.
>
>
>> In the web app I want to be able to use getContextPath() and get response
>> based on what URL used to access (either "www.mydomain.com/primary" or
>> "www.mydomain.com/alternative")
>
> What are you getting now?
>
On 12/05/2011 11:28, JanAa wrote:
>
> Hi,
>
> I want to have more than one context path for a single deployment in Tomcat
> 5.5.28. Whatever I do I seem to get multiple deployments.
> In server.xml I have:
> unpackWARs="true" autoDeploy="false" deployIgnore="alternative"
>xm
context:
http://old.nabble.com/Multiple-context-paths-for-single-deployment-tp31601866p31601866.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
11 matches
Mail list logo