Redirect - Get == Annoying parameters on url

Hi everyone.

I have a web site with php deployed on Apache Web Server and a web app deployed on Apache Tomcat.

I want to redirect from an Action (struts servlet) to web site磗 php file with some request params. But when I do the redirect, my browser does a GET request, showing all the params in the url. There磗 anyway I could redirect with POST method with header params? I think forward is not a good idea because the url must be inside my app context to do that.

Ty.

[493 byte] By [ProgProga] at [2007-10-2 5:15:30]
# 1

You could cheat and instead of doing a redirect return a JSP that contains a form with hidden fields populated with the parameter values. At the end of the page (or an onLoad event) you have JavaScrit that automatically submits the form with the php as the action.

Of course the client will need to have JavaScript enabled.

tolmanka at 2007-7-16 1:17:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...