RE: apache proxy/form action rewrite issue

2003-06-23 Thread Dirck Hecking
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:[EMAIL PROTECTED] 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: apache proxy/form action rewrite issue

2003-06-23 Thread Chris Reeves
Are you referring to the action forward? I can put a redirect=true there,
but it has no effect on rendering the form action. Or am I missing
something?

Chris

 -Original Message-
 From: Dirck Hecking [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 24, 2003 12:44 AM
 To: Struts Users Mailing List
 Subject: RE: apache proxy/form action rewrite issue


 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:[EMAIL PROTECTED]
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 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]



RE: apache proxy/form action rewrite issue

2003-06-23 Thread Dirck Hecking
Yes, I was referring to the action forwards. After closer reading I
understand the issue, you are trying to override the struts form action
in the generated html, thought you were trying to alter the location
displayed in the browsers location bar. Not sure. -Dirck

-Original Message-
From: Chris Reeves [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 23, 2003 9:55 PM
To: Struts Users Mailing List
Subject: RE: apache proxy/form action rewrite issue

Are you referring to the action forward? I can put a redirect=true
there,
but it has no effect on rendering the form action. Or am I missing
something?

Chris

 -Original Message-
 From: Dirck Hecking [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 24, 2003 12:44 AM
 To: Struts Users Mailing List
 Subject: RE: apache proxy/form action rewrite issue


 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:[EMAIL PROTECTED]
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 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]


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