In my application, I want to display all the rows from a table in a JSP.
The data that is to be shown should be populated in text boxes.
A user when successfully logs into the application will be able to view the Database table contents in the JSP Page, he can also modify the values from the Text boxes.
On clicking submit, the user should be able to post the whole of the Form will all the values altogether and the new values should be updated in the database.
Can you suggest a suitable approach for the same?
lets say we have an Employee table
now we need to display all the data (note the no. of rows are not constant) in the JSP inside the text boxes.
The user will be able to modify the data that is being displayed and on clicking submit the new data will be updated in the database.
I have build the application using Struts 1.2.7 and Hibernate 3.0.
Have you done something till now or do you want us to give you a basic idea of how to achieve this?? This shouldn't be that hard to do, all the values can be easily submitted to an action which can update the values in the database. Read a basic tutorial on web applications, you'll grab basic knowledge of how to achieve this...