Accomplishing this is no more difficult than posting to another webapp on the same server.
You simply agree on the sending/receiving fields required by both sites. (or in the case of 3rd party, you make YOURs conform to what THEY want ;) Then use any normal jsp view on your site (modified slightly to change the action="" part) and then the user will submit the form (post) to the site url that you choose. You will need to: 1. use html:form, but change the action="" dynamically (JavaScript) on the page (onSubmit="JavaScript:document.forms.myform.action='http://whereever.com/pro cess/my/form'"....ok........you get the idea) or 2. do not use html:form and manually define the bean on the page the same way struts form tag does for you. (request scope) That way, its available to your other tags. *Hint*....from the org.apache.struts.taglib.html.FormTag.java : 596 ... ... // Store this tag itself as a page attribute pageContext.setAttribute(Constants.FORM_KEY, this, PageContext.REQUEST_SCOPE); ... ... *DISCLAIMER* Using either of these will eliminate the ability to prevent duplicate form submission (something the transaction token does for you automagically). However, if you are submitting to a 3rd party server, chances are that they are handling it, since its probably a common problem.....otherwise, you need to handle those cases directly yourself. Hope that helps James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the "Open Minded Developer Network" http://www.open-tools.org/struts-atlanta > -----Original Message----- > From: Manish_Purang [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 08, 2002 12:35 AM > To: [EMAIL PROTECTED] > Subject: HOw to define the action ..?? > > > Hi all..! > > Hey how come you guyz have missed this one..! or is that it cannot be > done...?? ( the Query posted below earlier ) > Let me again phrase in a way it's clearer..! > > How do i define the action of my form when i have to post the form to > another website. Can we do it through the Struts framework..! > The scenario > is similar to posting your form to a payment gateway website ( such as > verisign) If anybody has tried this before...!!) > > eagerly waiting for any response on this one...! > > Manish > > -----Original Message----- > From: Manish_Purang > Sent: Thursday, July 04, 2002 11:01 AM > To: [EMAIL PROTECTED] > Subject: HOw to define the action ..?? > > > Hi, > > We are trying to build a web application which posts the data > obtained from > the user form to another website. Using just simple HTML we were > able to do > so with the URL of the website's ( a certain application running there -- > situation similar to contacting the payment gateway from your > JSP's ) given > in the form's action variable. Howver now we need to do it though > the struts > framework. > Not sure how we have to go on about this. How is the action supposed to > be.....? > Any ideas...? > > Regards > Manish Purang. > > > ****************************************************************** > ******** > This email (including any attachments) is intended for the sole use of the > intended recipient/s and may contain material that is CONFIDENTIAL AND > PRIVATE COMPANY INFORMATION. Any review or reliance by others or > copying or > distribution or forwarding of any or all of the contents in this > message is > STRICTLY PROHIBITED. If you are not the intended recipient, please contact > the sender by email and delete all copies; your cooperation in this regard > is appreciated. > ************************************************************************** > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > ****************************************************************** > ******** > This email (including any attachments) is intended for the sole use of the > intended recipient/s and may contain material that is CONFIDENTIAL AND > PRIVATE COMPANY INFORMATION. Any review or reliance by others or > copying or > distribution or forwarding of any or all of the contents in this > message is > STRICTLY PROHIBITED. If you are not the intended recipient, please contact > the sender by email and delete all copies; your cooperation in this regard > is appreciated. > ************************************************************************** > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>