Hi Antonio, Thanks a lot for the reply :-)
I need to put the form into session to make it work with DWR(I had some requirement). This part I cannot change. Is there any way I can refresh the values in the Form object? I read somewhere reset() function is not called in session scoped forms. If I call reset(), can it help? Thanks, Ramita Antonio Petrelli-3 wrote: > > 2007/10/3, Ramita Gambhir <[EMAIL PROTECTED]>: >> >> I integrated Struts with Ajax using DWR. For that I had to put the >> ActionForm in session scope. > > > > Why do you need to put it into session? > > Now I am facing a strange problem. >> >> When I change some values in the form, they are saved(marshalled) >> properly >> at the backend(an XML file). But in the JSP, it shows old values only. >> I suspect this is happening because of session scoped ActionForm. > > > Your suspect is right! The action form is persisted across the requests. > > > What's the basic difference between request-scoped and session-scoped form >> objects? > > > > That session scoped form objects are stored in session, so you don't clear > it after the end of the request. > > Immediate help is needed... > > > You get immediate help only if you pay someone... :-) > > Antonio > > -- View this message in context: http://www.nabble.com/Session-scoped-ActionForm-causing-strange-behaviour-tf4560983.html#a13016861 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]