>
> > Or is the only way to prevent the double-submit problem to use the
> > REDIRECT_TO_RENDER or REDIRECT_TO_BUFFER options (and therefore require
> > sticky load balancing)?
>
> No, you can do whatever you like. Note that redirect-to-render should
> work in a clustered environment as well, but would increase the load
> quite a bit. The main reason for it's existence is to support
> portlets. At least, that's how it got introduced.
>

And the increase in load is because the second redirect request needs to
completely
repopulate your page (creating a new hibernate session or that kind of
stuff)
And people don't expect that when they do:

setResponsePage(new Page())

that that page is populated twice (everything they do in the constructor)
and when the redirect happens. So because of that we have redirect to buffer
that means that the complete handling of the first request and the real
response page
is done in 1 go. But yes that strategy only works with sticky sessions.

johan

Reply via email to