You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Daniel Joshua <da...@gridnode.com> on 2003/07/25 11:47:51 UTC
newbie question: how to get context path?
Sorry for the newbie question... my brain not responding...
Using mapping.findForward(xxx).getPath(), I am able to to get the the
context-relative path.
But how do I get the full path, eg. http://localhost:8080/myApp/xxx.do ?
Regards,
Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: newbie question: how to get context path?
Posted by Daniel Joshua <da...@gridnode.com>.
Oooops... thanks!
Regards,
Daniel
-----Original Message-----
From: Mike Whittaker [mailto:mike_whittaker@ntlworld.com]
Sent: Friday, 25 July, 2003 5:54 PM
To: Struts Users Mailing List; daniel.joshua@gridnode.com
Subject: RE: newbie question: how to get context path?
>-----Original Message-----
>From: Daniel Joshua [mailto:daniel.joshua@gridnode.com]
>Sent: 25 July 2003 10:48
>To: 'Struts Users Mailing List'
>Subject: newbie question: how to get context path?
>
>
>Sorry for the newbie question... my brain not responding...
>
>Using mapping.findForward(xxx).getPath(), I am able to to get the the
>context-relative path.
>
>But how do I get the full path, eg. http://localhost:8080/myApp/xxx.do ?
>
HttpServletRequest.getRequestURL()
--
Mike W
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: newbie question: how to get context path?
Posted by Mike Whittaker <mi...@ntlworld.com>.
>-----Original Message-----
>From: Daniel Joshua [mailto:daniel.joshua@gridnode.com]
>Sent: 25 July 2003 10:48
>To: 'Struts Users Mailing List'
>Subject: newbie question: how to get context path?
>
>
>Sorry for the newbie question... my brain not responding...
>
>Using mapping.findForward(xxx).getPath(), I am able to to get the the
>context-relative path.
>
>But how do I get the full path, eg. http://localhost:8080/myApp/xxx.do ?
>
HttpServletRequest.getRequestURL()
--
Mike W
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org