In 1.1b2, I have found that if you have to forward from an Action class following a JSP to an Action class that precedes the JSP ( like a setup Action ) and both Actions are set to scope="session", then the first Action creates a new form and wipes out the one in the session. I worked around this by putting a copy of the populated form in the session and repopulating the newly created form in the pre Action when it got returned there.

I believe that the nightly builds have fixed this, although I have other problems with those that preclude me from using it at this time.

Eric

Sri Sankaran wrote:

Make sure that the scope of the form-bean (as defined in the action mapping) is 'session'.

Sri

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:meissa.Sakho@;bpam.fr] Sent: Thursday, November 07, 2002 5:52 AM
To: [EMAIL PROTECTED]
Subject: empty form after errors


When a submit my form with errors,
the jsp is returned back with errors displayed as i expect.
But all fields are empty.
is it because I define my form like this
<html:form action="/newReception" name="readMailForm" type= "com.bpam.mail.forms.ReadMailForm">

I'm saying this because it seem like that a new actionForm is created when the page is loaded.

can someone helps.

Meissa



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


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






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

Reply via email to