PDA

View Full Version : <property name="sessionForm"> for a bean definitio


crisss
Aug 14th, 2007, 11:22 AM
Hi all, could anyone say to me why shoud I use in the servlet definition :
<property name="sessionForm">
<value>true</value>
</property>
instead of
<property name="sessionForm">
<value>false</value>
</property>
or in the other way when defining a new bean????
I am making a web application based on Springframework. And I have all those properties (sessionForm) set to "true" but I don't know why...I have some problems with a JSP page using the controller it shouldn't and maybe is that a reson.

Thanks a lot.
Cristina.

Jörg Heinicke
Aug 14th, 2007, 06:02 PM
sessionForm="true" means the form backing object is kept in the session during form processing. In most cases you probably don't need it. But read about it here (http://forum.springframework.org/showthread.php?t=42415).

Joerg