cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giacomo <>
Subject Re: [c2] use examples for sendRedirect in xsp pages
Date Wed, 18 Apr 2001 05:35:49 GMT

On Tue, 17 Apr 2001, Donald Ball wrote:

> okay, i've come up a scenarios where i think it would be very handy to be
> able to issue redirects from xsp pages. suppose i have an action which
> adds a row to a database table, and i need three pieces of information in
> order to do the add. what i'd like to be able to do is link to the xsp
> page along with whatever information i have. if i don't have all of the
> information, the xsp page presents a form to capture the data i don't
> already have; the form action url is the database action. if i already
> have all of the information, though, i would like the xsp page to simply
> redirect to the database action. make sense?

Why do you let the xsp page take such decisions? It's part of you model
to know if you have everything and thus the action will knows if you
need the xsp page or not:

  <act type="not-complete">
    <redirect-to uri="more date"/>


To unsubscribe, e-mail:
For additional commands, email:

View raw message