The best you can do to redirect with a post is use javascript to autosubmit
a form

<html>
<body onload="document.myform.submit()">
<form name="myform" action="bankepaycenter.com" method="post">
  <input ...>
</form>
</html>

This can sometimes cause a glitch on the browser screen, so it may be useful
to display some actual text on the page like "Please wait while you are
being redirected" and put a timer on the autosubmit
e.g.
<body onload="setTimeout('document.myform.submit()', 2000)">

Joel

> -----Original Message-----
> From: Jason Carreira [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 29 January 2004 4:53 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [OS-webwork] How to redirect from doExecute to a url and
> post some values?
> 
> 
> I don't think you can redirect with a POST... Not sure...
> 
> > -----Original Message-----
> > From: Leonidas Papadakis [mailto:[EMAIL PROTECTED] 
> > Sent: Monday, January 26, 2004 4:56 AM
> > To: [EMAIL PROTECTED]
> > Subject: [OS-webwork] How to redirect from doExecute to a url 
> > and post some values?
> > 
> > 
> > Greetings,
> > 
> > i'm building a web application with webwork 1.4 that at some 
> > point will 
> > redirect to a bank e-paycenter. For that reason i would 
> like from the 
> > doExecute to redirect to a url i.e. 
> > https://www.mybank.com/epay/paycenter.jsp  , but also post 
> > values like : 
> > merchantid=200 , amount=20 e.t.c.
> > 
> > I would really appreciate your reply. Thank you very much.
> > Leon
> > 
> > 
> > 
> > -------------------------------------------------------
> > The SF.Net email is sponsored by EclipseCon 2004
> > Premiere Conference on Open Tools Development and Integration 
> > See the breadth of Eclipse activity. February 3-5 in Anaheim, 
> > CA. http://www.eclipsecon.org/osdn 
> > _______________________________________________
> > Opensymphony-webwork mailing list 
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> > 
> 
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to