I don't think that the base tag helps me. For example, I have an index.jsp file that looks like...
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%> <logic:redirect forward="main"/> The HTTP header Location is being returned... HTTP/1.1 302 Moved Temporarily Set-Cookie: JSESSIONID=1F664A9B4B0612843864A5B817DE0AE8; Path=/interlace Location: http://machine2:3333/context/application/main.do;jsessionid=1F664A9B4B06 12843864A5B817DE0AE8 Content-Type: text/html;charset=ISO-8859-1 Content-Length: 0 Date: Fri, 07 Apr 2006 22:38:38 GMT Server: Apache-Coyote/1.1 And this is an absolute URL instead of a relative url. I need Location to say https://machine1/proxy/machine2/3333/ application/main.do;jsessionid=1F664A9B4B0612843864A5B817DE0AE8 Thanks, Anil > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Friday, April 07, 2006 1:49 PM > To: user@struts.apache.org > Subject: RE: Proxy rewrites > > Anil, > > Have you tried using a <BASE> tag? > http://www.htmlhelp.com/reference/html40/head/base.html > > > -----Original Message----- > > From: Anil Arora [mailto:[EMAIL PROTECTED] > > Sent: Thursday, April 06, 2006 2:35 PM > > To: user@struts.apache.org > > Subject: Proxy rewrites > > > > > > Didn't see this go through...resending...sorry for the duplicates... > > > > > > > > ________________________________ > > > > Hello, > > > > > > > > I'm fairly new to struts development (actually a non-UI > > developer trying to do some UI development) I'm trying to > > find an answer to a problem that I am having with Struts > > 1.2.9 and proxy webservers. > > > > > > > > I'm trying to set up a configuration as follows: > > > > > > > > 1. machine1: Apache WebServer with SSL using URL rewrite and proxy > > redirect > > Maps the following pattern: > > https://machine1/proxy/machine2/3333/* -> > > http://machine2:3333/context/* > > 2. machine2: Apache Tomcat 5.0 with Struts 1.2.9 > > > > > > > > The incoming requests are working fine. But my problem is > > that outgoing URLs are not correct. > > > > > > > > First problem is with URL redirects. I have an index.jsp in > > the root, > > > > > > > > <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%> > > > > <logic:redirect forward="main"/> > > > > > > > > The URL in the Location HTTP header looks like > > http://machine2:3333/context/application/main.> do. > > > > > > > > > > Second, sometimes URLs are relative > > > > > > > > So, in the > > login.jsp page, we have a form element > > > > > > > > <html:form action="/login.do"> > > > > <input type="hidden" name="j_username" > > value="<%=cookieUsername%>"/> > > > > <input type="hidden" name="j_password" > > value="<%=cookiePassword%>"/> > > > > </html:form> > > > > > > > > What I see generated is the following... > > > > > > > > <form name="loginForm" method="post" action="/interlace/login.do"> > > > > ... > > > > </form> > > > > > > > > In my configuration, I can specify the url prefix for the > > proxy webserver, so I do have that information somewhere. Is > > there a way to make struts rewrite the URL so that a) It is > > always absolute and b) It > > uses my external url prefix. Can I build a plugin to do > > this? I tried > > writing a filter to rewrite the URLs but then I ran into the > > relative URL issue. > > > > > > > > Thanks, > > > > Anil > > > > > > > > > > --------------------------------------------------------------------- > 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]