struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dirck Hecking" <dheck...@finaplex.com>
Subject RE: apache proxy/form action rewrite issue
Date Tue, 24 Jun 2003 04:43:48 GMT
The magic ingredient here is to set redirect="true" in the
struts-config.xml for the individual form mappings. -Dirck

-----Original Message-----
From: Chris Reeves [mailto:chris@reeveslog.com] 
Sent: Monday, June 23, 2003 9:36 PM
To: Struts User Mailing List
Subject: apache proxy/form action rewrite issue

I have a web app using struts that runs under tomcat, behind an apache
server using mod proxy.

My web app works exactly as expected when run directly against tomcat,
but
fails when I attempt to use actions behind apache.

For instance, my app (let's call it "thing1") has a form at
/contact/index.jsp.

The action in the form, after being rewritten by struts, becomes
"/thing1/contact/contact.do".

Is there any way to get around this? I don't want to throw more rules at
the
apache server, and I see no way (short of rewriting the from action with
javascript on the client) to get rid of the rewriting (at least, I've
found
no way thus far).

Any ideas? I've been banging my head on this one for a while now... I
have
some apps in struts 1.0 that just don't seem to suffer from this issue.

Thanks!

Chris




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message