That would resolve the problem but it is not an option in our environment.
On 2/4/06, Max Cooper <[EMAIL PROTECTED]> wrote: > > Can you change the contextPaths on your dev, int, and stg servers? > > (dev) http://devserver.com/Application > (int) http://intserver.com/Application > (stg) http://stgserver.com/Application > (prod) http://prodserver.com/Application (no directory) > > I haven't followed this thread all that closely, but it has been my > experience that lots of things break when the "content path" (in quotes > since httpd doesn't know about contextPaths) doesn't match between the > web server and app server. I think there is a good chance that this > would fix your problem, and it should be relatively easy to at least > test it out. It may be easier to solve whatever issues these new context > paths cause than it is to fix (or forever tip-toe around, with > mysterious breakages just when you don't need them) the mis-matched > "context paths". > > -Max > > On Thu, 2006-02-02 at 16:55 -0800, Michael Jouravlev wrote: > > AFAIK, <html:base> tag won't help you, it affects only <html:link > > href="..."> tags. I believe (though I have not verified it) that > > <html:form> tag uses the same algorithm as <html:link action="..."> > > tag. For actions, base directory is not used. Context is used instead. > > Server deduces context from incoming URL. > > > > * Browser sends request to > http://appserver.com:6000/Application/something.do > > * Request is transferred to appserver's > > http://devserver.com/dev/Application/something.do, which forwards to a > > page. > > * Obviously, proxy server sends a new request to an appserver address, > > therefore URL is changed! > > * The form tag on a page reads context, gets one from [changed] URL: > Application > > * The form tag builds address based on context: > /Application/processMain.do > > > > Now I would like to hear someone with the solution. At least, I seem > > to understand the problem ;-)) > > > > Michael > > > > On 2/2/06, J T <[EMAIL PROTECTED]> wrote: > > > The jsp code: > > > > > > <html:form action="/processMain.do" method="POST"> > > > ... > > > </html:form> > > > > > > When rendered produces the html: > > > > > > <form action="/Application/processMain.do" method="POST"> > > > ... > > > </form> > > > > > > My modified form tag produces the code: > > > > > > <form action="/dev/Application/processMain.do" method="POST"> > > > ... > > > </form> > > > > > > The application is hosted at > > > > > > http://appserver.com:6000/Application/ > > > > > > but since we are using a apache to proxy requests to the app server > the end > > > user sees > > > > > > http://devserver.com/dev/Application/ > > > > > > For what its worth I have had to override the html:link tag to do the > same > > > thing my modified form ta g is doing (so my index page links work). I > would > > > prefer using the out of the box tag libs but I am not clear how the > > > combination of html:base and html:link would resolve my problem. Could > you > > > provide a specific example? > > > > --------------------------------------------------------------------- > > 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] > >