This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
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...