Hi all!
On my form I have a "send" button. When this button is pressed I activate a custom process to write the instance data to a file on the hard drive. What I want to do is, once the write operation is complete, redirect the browser to a Thank You page which informs the user that his form was received, etc. How do you redirect to another page after running a custom process? Thanks! - Dan -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Dan,
I would use the page-flow to do this. Place the XPL in model attribute and the thank you page in the view, like so: <page id="someID" path-info="some/path" Model="path/to.xpl" view="path/to/thank/you.xsl"/> The send button should use a submission to send the data with attribute replace="all" this will run the XPL and the forward to the page Not sure if this is best practice, but its how I would do it Ryan Puddephatt Web Developer TFX Group 1 Michaelson Square Livingston West Lothian Scotand EH54 7DP * [hidden email] ( 01506 407 110 7 01506 407 108 -----Original Message----- From: [hidden email] [mailto:[hidden email]] Sent: 22 December 2005 03:45 To: [hidden email] Subject: [ops-users] Redirecting a page Hi all! On my form I have a "send" button. When this button is pressed I activate a custom process to write the instance data to a file on the hard drive. What I want to do is, once the write operation is complete, redirect the browser to a Thank You page which informs the user that his form was received, etc. How do you redirect to another page after running a custom process? Thanks! - Dan -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Yes, the page flow is the way to go. But instead of the example you give
below, I would implement the process as a simple service and then do a redirect: <page id="my-service" path-info="..."> <action action="blah.xpl"> <result page="my-redirect-page"/> </action> </page> -Erik Ryan Puddephatt wrote: > Dan, > I would use the page-flow to do this. Place the XPL in model > attribute and the thank you page in the view, like so: > > <page id="someID" path-info="some/path" > Model="path/to.xpl" view="path/to/thank/you.xsl"/> > > The send button should use a submission to send the data with attribute > replace="all" this will run the XPL and the forward to the page > > Not sure if this is best practice, but its how I would do it > > Ryan Puddephatt > Web Developer > TFX Group > 1 Michaelson Square > Livingston > West Lothian > Scotand > EH54 7DP > > * [hidden email] > ( 01506 407 110 > 7 01506 407 108 > > > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] > Sent: 22 December 2005 03:45 > To: [hidden email] > Subject: [ops-users] Redirecting a page > > Hi all! > > On my form I have a "send" button. When this button is pressed I activate a > custom process to write the instance data to a file on the hard drive. > > What I want to do is, once the write operation is complete, redirect the > browser to a Thank You page which informs the user that his form was > received, etc. > > How do you redirect to another page after running a custom process? > > Thanks! > > - Dan -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |