Hi all !

Is it possible to do POST submit to the tomcat-A, redirect happens,
and then GET to the same tomcat-A again in a tomcat cluster ?
And, in hope to make things easier, all the tomcat servers in the
cluster are stateless wihout any sessions

This needs arise because each tomcat servers will have it's own spring
context (a kind of state, but not a per-user-session),
and i am making use of flash attribute feature detailed in here :
http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/mvc.html#mvc-flash-attributes

Here are the relevant quotes from the page :

Flash attributes provide a way for one request to store attributes
intended for use in another. This is most commonly needed when
redirecting — for example, the Post/Redirect/Get pattern. Flash
attributes are saved temporarily before the redirect (typically in the
session) to be made available to the request after the redirect and
removed immediately.

Flash attribute support is always "on" and does not need to enabled
explicitly although if not used, it never causes HTTP session
creation. On each request there is an "input" FlashMap with attributes
passed from a previous request (if any) and an "output" FlashMap with
attributes to save for a subsequent request. Both FlashMap instances
are accessible from anywhere in Spring MVC through static methods in
RequestContextUtils.

-- 
Do not pursue the past. Do not lose yourself in the future.
The past no longer is. The future has not yet come.
Looking deeply at life as it is in the very here and now,
the practitioner dwells in stability and freedom.
(Thich Nhat Hanh)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to