I have been using the struts html base tag. Unfortunately, our new staging machine is done with a proxy pass. This means that the URL being sent to the box in which the tomcat is located is changed and the base is then wrong.

For example:

www.outside_firewall.com/tomcat

is proxy passed to

www.inside_firewall.com/tomcat

which means when the page returns to the client, the base tag is
<base href="www.inside_firewall.com/tomcat">

Currently the base tag determines the server via the following

1. Passed as parameter?
2. request.getServer()

I would like to add another step
1. Passed as parameter?
2. An init parameter in the ServletContext instance?
3. request.getServer()

In order to do this, I will add a field to Global entitled SERVER with value "server" which can be configured in web.xml. I will then access that variable via the ServletContext in the BaseTag class.

Does this sound feasible? Any other ideas? Is this something I should submit to be added to struts?

-Trav


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



Reply via email to