cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <giac...@apache.org>
Subject Re: [c2] use examples for sendRedirect in xsp pages
Date Wed, 18 Apr 2001 07:01:51 GMT
Quoting giacomo <giacomo@apache.org>:

> 
> 
> 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"/>
>   </act>

Sorry, this might not be the best solution to your problem, it was too early in 
the morning to think about it :)

Giacomo

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message