I'm using virtual hosts in my development to make
sure that all links are correctly set, that is I can access the same app in two
ways, either via
appname.localhost
or
localhost/appname
.
The problem is that I'm not sure how to figure out
on a jsp page which entry point was used, and this causes problem when I'm
trying to map my servlet, since relative paths to servlets does not seem to
work...
String parsing of request.getRequestURI() seems
like a way to start, but I'm not sure what how to write it, since in the future
the app might be moved again to
appname.serviceprovider.localhost
vs
localhost/serviceprovider/appname
.
Is there a way to get pageContext return
application context?
Johan
|
- Re: Application mapping - how do I know it from within t... Johan Fredriksson
- Re: Application mapping - how do I know it from wit... Hani Suleiman
- Re: Application mapping - how do I know it from... Johan Fredriksson
- Re: Application mapping - how do I know it ... Hani Suleiman
- Re: Application mapping - how do I know... Johan Fredriksson
- Re: Application mapping - how do I... Hani Suleiman
- Re: Application mapping - how do I know it ... Tim Endres
- Re: Application mapping - how do I know it from wit... Johan Fredriksson
- RE: Application mapping - how do I know it from... elephantwalker