cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Per Kreipke" <...@onclave.com>
Subject RE: Redirects (again)...
Date Tue, 09 Jul 2002 22:34:24 GMT
Another thought:

- if I throw an exception in some step of the pipeline, could I configure an
error handler to do a redirect?

Per

> -----Original Message-----
> From: Per Kreipke [mailto:per@onclave.com]
> Sent: Tuesday, July 09, 2002 3:26 PM
> To: cocoon-users@xml.apache.org
> Subject: Redirects (again)...
>
>
> As I understand it handling successful form posting in XSP (e.g. without
> actions) can't involve redirecting the user back to the calling page.
>
> E.g. given the following pages:
>
> index.html -> main page, lists all widgets
> form.html -> form to add a new widget
> doPost.xsp -> add the widget
>
> in most cases, you'd like doPost.xsp to redirect back to the
> index.html page
> on _success_ to show the new widget added to the list.
>
> However in Cocoon 2.0.X:
>
> - you can't redirect from an XSP file
>
> - map:redirect-to can't be used after some stage in the pipeline (what is
> that stage?)
>
>
> I understand how to use the form validator to redisplay form.html until
> input is correct but I don't quite know how to handle the post (without an
> Action).
>
>
> Hmm. I just remembered that I can use XSP to create an action. I
> just might
> struggle with that next.
>
> Any other suggestions are welcome,
>
> Per
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message