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]