I am looking for design suggestions on the case below. Please let me know if this a common code style and if there are any alternatives -

I do form validations in the Action methods. When there is an error and I need to repaint the form and default select the previously selected list options.

In Action method -
HttpServletRequest req = data.getRequest();
req.setAttribute( "previous", arrayObj );

In the corresponding screen class, I do -
ArrayList arrayObj = req.getAttribute( "previous" );

Process it for screen logic and put it in Context.




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

Reply via email to