The datalist should probably sit in the session scope rather than request.
Until there is an "intermediary" scope, this is probably the most
cost-effective method.  Just ensure that Action2 performs some cleanup that
removes it from the scope when you are done with it.

Christopher Marsh-Bourdon
www.marsh-bourdon.com


-----Original Message-----
From: Thai Dang Vu [mailto:[EMAIL PROTECTED] 
Sent: 28 June 2005 16:35
To: user@struts.apache.org
Subject: Help me with my problem in Automatic Validation please

Hi everybody,

This is the situation:

welcome.jsp ----> action1 ---(forward)---> dataform.jsp ---(submit)--->
action2 ----> view.jsp

I use a drop-down list in dataform.jsp. The data for the list in
dataform.jsp are got from an attribute attached to the request. I use
automatic validation for dataform.jsp. When I go from action1 to
dataform.jsp, I can attach a datalist to the request. My problem is: when I
click submit in dataform.jsp and the data don't meet all the validation
requirements, the request is forwarded back to dataform.jsp. At that time no
datalist is attached to the request so the dataform.jsp can not display
correctly. How can I solve this problem?

Sincerely.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 ------


--------------------------------------------------------------------------------
The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express 
written permission of the sender. If you are not the intended recipient, please 
contact the sender either via the company switchboard on +44 (0)20 7623 8000, or
via e-mail return. If you have received this e-mail in error or wish to read our
e-mail disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender. 3166
--------------------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to