You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Alvaro Martinez <in...@wanadoo.es> on 2004/01/29 12:48:50 UTC

lifetime for scope page

Hi,
I have written in the file struts-config.xml a bean with scope="page". This
bean inherits from ValidatorForm. If I overwrite the request method and I
set
all the attributes of the bean to null then, after having populated the
bean in a form when I use it again in the same page, the values have a null
value.
But if I donĀ“t overwrite the reset method after having populated the bean,
when
I return to the same form where I have previously populated the bean it
keeps
the same values. Even if I stop tomcat this bean keeps without change the
values of
the atributes.
The only way of making the bean dissapear is opening a new explorer window.
Why is this happening?
What lifetime does a bean have with scope="page"?
Without a reset method a bean with page scope behaves equally to a bean
with a sesion scope?

Best Regards


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org