On 7/20/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
Jakub Milkiewicz ha scritto:
> I really like Refirect after post patterny by Jouravlev where author
> promotes saving submitted data in temporary storage (for example session)
> and then use redirect to output action adding some kind of identifier to
> data preivously saved in temporary storage.

This what "click" scope in Scopes does:
http://scopes.sourceforge.net/documentation/more-scopes/click-scope.html#how-it-works

<snip>
When a request of redirection happens, then the context object is moved
temporarily in session scope, with a "request id" associated to it. The
path to redirect to is modified so that it contains the request id as a
cookie parameter.After the redirection, the context object is searched
in session, using the cookie parameter in the URL. After that, the
context object is moved back to request.
</snip>

A cookie cannot be put into path by definition of a cookie ;-)
Automatically modifying redirect location may be undesirable, if
redirect is used to control the growth of browser session history list
by keep URL clean.

Other framewors like Stripes or Tapestry have similar feature calling
it Flash Scope.

Struts 1 has a rudimentary implementation of Flash Scope for errors
and messages. Messages can be queued to session scope, then you
redirect, then messages are shown, then they are automatically removed
from session. Implementing generic Flash Scope is one of the ideas for
future Struts 1 versions.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to