Cool! Did not know that! I take it when you say that solution doesn't work
you just mean the one scentence..
" If your going to another webapp just do an http://.... (Is this last
sentence right?)"
So you just use // and it get's you to domain root? Is that right?
so if I had
http://domain.com/webapp1/somepage.jsp
http://domain.com/webapp2/somepage.jsp

from somepage.jsp all urls from "/anotherpage.jsp" would be
http://domain.com/webapp1/anotherpage.jsp

and to go to webapp2/somepage.jsp the url would be
"//webapp2/sompage.jsp" which equates to
http://domain.com/webapp2/somepage.jsp

Is this correct?

----- Original Message -----
From: "Donald Ball" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 12, 2002 11:10 AM
Subject: Re: Redirecting to a relative URL from root


> On 9/12/2002 at 11:01 AM Michael Lee wrote:
>
> >by default the '/' root is from your webapp, as it should be. All URLs
> >should be from '/' that are going to the same webapp. If your going to
> >another webapp just do an http://.... (Is this last sentence right?)
> >Don't use ../.. whatever you do! (not easily mutable)
>
> That solution doesn't work in general. In his struts-config file, he would
> have to hard-code the following assumptions:
>
> * protocol (http v.s. https)
> * hostname
> * port number
>
> A better solution, I think, would be to augment processActionForward with
a
> new syntax for reaching the site root. How about //? E.g.
>
> //OtherWebApp/foo/bar
>
> - donald
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to