cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: Cocoon2 Design
Date Fri, 02 Jun 2000 14:17:41 GMT
Neeme Praks wrote:

> > How would something like that work?
> >
> > Let's make a possible example:
> >
> > 1) you request "GET /employee/add" from your HTML browser
> > 2) Cocoon returns you an HTML form with the proper pre-commit
> > validation
> > logic (implemented as ECMAScript, for example)
> > 3) you submit "POST /employee/add" from the above form
> > 4) Cocoon returns you with the response from the above action (which
> > might redirect you to another resource).
> 
> yes, this what I was looking for. Instead of trying to pass in many
> URLs, you can achieve the same effect by doing redirects. However, for
> some reason I have been reluctant to use redirects extensively so
> far...can't tell exactly why, though... how is the browser support for
> redirects?

Careful: "redirect" doesn't mean necessarely "client-side redirect".

It could also be internal redirection.

> > > Right now I don't see a way how Cocoon could handle this need for
> > > post-processing through a simple request for a single
> > URL... Maybe only
> > > through POSTing information, instead of GETting it, but the
> > possibility
> > > to do a POST is not always available.
> 
> for example, when I want to use simple link for some action (very common
> problem): I cannot POST information together with a hyperlink (without
> any use of JavaScript).

I still don't get it :/ (sorry, but I need to visualize it to be able to
express a meaningful comment)

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



Mime
View raw message