Hi All,
I have an action called CreateNewUserPrepareAction. The
jsp has a User form to capture the data. In adition to this, the JSP has a list box whose items are retrieved from the database. The values for the list box are stored as a List in the request as an attribute and are then displayed as part of the form.
When the user submits the form the request gets sent to CreateNewUserAction. I validate the contents using the Validate method. If the user has entered some invalid entry I return to the page displaying an error message. However, the items for the list box are no longer in the request(which is correct). I do not want to store them in the session as I dont think they belong there.
Has anyone come across this problem before and can the recommend some
pattern that provides a nice solution. I dont think it is correct either if the Validate method sends a call to the database either.
Thank you
David