Hi,
I have a data entry page in
jsp, where there are 10 textfields for input, the user will enter data in these fields and press enter, then i want to take this data from input field and pass to a validating bean , this bean will validate the data, if the data is valid it will update the database, and return true, and if the data is not valid return false,
so if the result is true, i want to send the success message and blank the entry fields which happens because i am submitting the form, or if the result is false, i want to retain all the data entered by the user on the screen and display the error messages.
But when i sumbit the form all the fields get intialized and then i have to put those back in session and reload them on the jsp page.
Is there a better way, has anyone designed this kind of arctiecture