cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <>
Subject Re: [c2] use examples for sendRedirect in xsp pages
Date Wed, 18 Apr 2001 19:05:37 GMT
On Wed, 18 Apr 2001, Berin Loritsch wrote:

> > heh, i was just sitting down trying to puzzle out exactly what you meant.
> > thing is, when i'm creating a link to the database record update url, i
> > don't want to have to put in one url when i have all of the data and
> > another when i don't - i want to link to one url and have it handle the
> > extra data collection if necessary.
> >
> > in c1, i would do this by writing an xsp page which did everything - the
> > extra data collection and the database update and redirect. this solution
> > requires xsp pages to be able to send redirects, but isn't optimal since
> > i'm mixing form generation code and database update code in a single page.
> > plus, i wanted to try out berin's sexy database actions.
> >
> > so in c2, i figured i'd do as i outlined above - have an xsp page which
> > serves as the master database update url, and have it post or redirect to
> > the database action url when it has all of the data.
> >
> > convincing? or stupid? you be the judge. :)
> It sounds good.  So do you want to send a Map on successful insertion and
> not when there is an error?

that could be a solution, but then how would i distinguish between being
unable to insert a row due to lack of data and being unable to insert a
row due to a database error?

- donald

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

View raw message