Title: RE: Base URI

request.getContextPath() would give you the part you're missing.
WR

Magnus Rydin

Cypoint Systems Innovation AB

> -----Original Message-----
> From: Mattias Karlsson (QDT) [mailto:[EMAIL PROTECTED]]
> Sent: den 6 juli 2000 11:04
> To: Orion-Interest
> Subject: Base URI
>
>
> Hi,
>
> I'm new to Orion and this list so I sorry if this is a really
> stupid question...
>
> I have an application under ..orion/applications/myApp
>
> My problem is that orion reports (in my case) the wrong Base URI
> I have a Servlets that pick up all request under /myApp/service.
>
> When I call req.getRequestURI() (where req =
> HttpServletRequest) i my servlet it reports
> "/service" but for cross-server-porpose I need it to be
> "/myApp/service"
>
> Help me to get around this problem.
> This is the way my "orion-xmls" look like.:
> (server.xml) -> <application name="myApp" path="application.xml" />
> (application.xml) -> <web-module id="myApp"
> path="../applications/myApp" />
> (deafult-web-site.xml) -> <web-app application="myApp"
> name="myApp" root="/MyApp" />
>
> Thanks,
> Mattias Karlsson
>
>
>

Reply via email to