Richard below are the contents I posted to the list
recently.  Let me know what you think.

We have the following problem with Virtual Hosting and
server side forwards.

We are using Apache with Tomcat (modjk). Our host
(webapp) is configured at
/Users/jalvarado/Developer/webapps/appname
The app can be accessed http://www.somedomain.com

We also have a virtual host
http://somename.somedomain.com
which is configured to point to
/Users/jalvarado/Developer/webapps/appname/virtualHostDirectory

Within that virtual host, we cannot get any server
side forwards to work. Lets say we want to do a
Forward to /cs/content.jsp within the virtual host
(remember that the virtual host is configured at
/Users/jalvarado/Developer/webapps/appname/virtualHostDirectory)
this operation does not work because the container
will look for /cs/content.jsp starting at
/Users/jalvarado/Developer/webapps/appname and not at
/Users/jalvarado/Developer/webapps/appname/virtualHostDirectory

So what we are forced to do for now is to use
redirects in our forwards which is not the desired
choice for us.

If anyone has run into this kind of problem/challenge
and if you could share any ideas or solutions you have
implemented I'd greatly appreciate it since this is a
VERY urgent matter for us. This is creating some
issues for us in terms of losing the request object
and having to put things in the sessio which really
should not be there. 

Thanks in advance

Richard I actually got it to work by prefixing
/appname to our forwards. However our project leader
still has some issues with this so therefore I have
sort of given up on it.

Thanks
--- "Yee, Richard K,,DMDCWEST"
<[EMAIL PROTECTED]> wrote:
> Juan,
> Are you redirecting to a page within your web
> application or to a different
> web application / web site? If you give more
> information, we might be able
> to give you a different solution.
> 
> -Richard
> 
> 
> -----Original Message-----
> From: Juan Alvarado [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, November 20, 2003 2:18 PM
> To: Struts Users Mailing List
> Subject: RE: ForwardAction with Redirect
> 
> 
> Yes I know that, but do to some issues that I don't
> really understand with respect to virtual hosting,
> we
> are not able to do any forwards and therefore we're
> left with doing nothing but redirects.
> 
> I appreciate you bringing this to my attention
> though.
> 
> Take care
> 
> --- "Yee, Richard K,,DMDCWEST"
> <[EMAIL PROTECTED]> wrote:
> > Juan,
> > In reference to my previous email, when you do a
> > redirect, you will not get
> > the following attributes in the request:
> >
>
org.apache.struts.action.mapping.instance:ActionConfig
> >
>
org.apache.struts.action.MODULE:org.apache.struts.config.impl.ModuleConfigIm
> > [EMAIL PROTECTED]
> >
>
org.apache.struts.action.MESSAGE:org.apache.struts.util.PropertyMessageResou
> > [EMAIL PROTECTED]
> > <any ActionForm that was in the original request>
> > 
> > 
> > -Richard
> > 
> > -----Original Message-----
> > From: Yee, Richard K,,DMDCWEST
> [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, November 20, 2003 11:46 AM
> > To: 'Struts Users Mailing List'
> > Subject: RE: ForwardAction with Redirect
> > 
> > 
> > Juan,
> > If you change ForwardAction to do a redirect
> instead
> > of a forward, then you
> > will lose everything in the request object (ie
> > ActionForm). There is a
> > reason that ForwardAction only forwards and
> doesn't
> > redirect.
> > 
> > Regards,
> > 
> > Richard
> > 
> > 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> __________________________________
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now
> http://companion.yahoo.com/
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

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

Reply via email to