I think that the easiest way is not to use automatic validation. Call
validate() manually from action class. If errors found, stick your
datalist into request object and forward to dataform.jsp.
If you want to redirect, append datalist to URL. You would need to
create new ActionForward instance.
]
Sent: 28 June 2005 16:54
To: Struts Users Mailing List
Subject: Re: Help me with my problem in Automatic Validation please
There are two approaches to correcting this.
1. If you are using Sessions, Place the datalist into the session instead of
the request. This will insure the datalist is
There are two approaches to correcting this.
1. If you are using Sessions, Place the datalist into the session instead of the request. This will insure the datalist is available, but can does add overhead to the application. Additionally, if you do not clean up the data, this can use up memory
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
ww
4 matches
Mail list logo