| Author |
Get Web App Name from JSP
|
|
| Daniel Coppersmith 2005-11-18, 3:24 am |
| In a JSP, how can I easily get the webapplication name that I'm in?
so if my URL was this:
http:\\server\YADAYA
DA\hello.jsp
I would want to get YADAYADA.
Thanks!
D
| |
| Larry Cermak [Team Sybase] 2005-11-18, 3:24 am |
| Take a look at the HttpServletRequest class.
--
Larry Cermak [Team Sybase]
Branick Consulting, Inc.
www.branick-inc.com
EAServer & PowerBuilder Consulting & Training
EAServer and PowerBuilder Computer Based Training Courses
"Daniel Coppersmith" <daniel_N.0.S.P.A. M_at_InFrontSoftware
_D0T_C0M> wrote
in message news:437d64bc$1@foru
ms-2-dub...
> In a JSP, how can I easily get the webapplication name that I'm in?
>
> so if my URL was this:
>
> http:\\server\YADAYA
DA\hello.jsp
>
> I would want to get YADAYADA.
>
> Thanks!
>
> D
>
>
| |
| Mark Maslow 2005-11-18, 3:24 am |
| Either:
<%= request.getContextPath() %>
Or:
<jsp:getProperty name="request" property="contextPath"/>
"Daniel Coppersmith" <daniel_N.0.S.P.A. M_at_InFrontSoftware
_D0T_C0M> wrote
in message news:437d64bc$1@foru
ms-2-dub...
> In a JSP, how can I easily get the webapplication name that I'm in?
>
> so if my URL was this:
>
> http:\\server\YADAYA
DA\hello.jsp
>
> I would want to get YADAYADA.
>
> Thanks!
>
> D
>
>
| |
| Daniel Coppersmith 2005-11-18, 11:24 am |
| Thanks much!
"Mark Maslow" <mark.maslow@sierraclub.org> wrote in message
news:437d7740$1@foru
ms-2-dub...
> Either:
> <%= request.getContextPath() %>
>
> Or:
> <jsp:getProperty name="request" property="contextPath"/>
>
> "Daniel Coppersmith" <daniel_N.0.S.P.A. M_at_InFrontSoftware
_D0T_C0M> wrote
> in message news:437d64bc$1@foru
ms-2-dub...
>
>
|
|
|
|