开发者

editable table in jsp whose rows(may be more than one row) on updation are updated in database

I need to develop an jsp application where I need to bring data from database table and display it in table in frontend dynamically. I need to make this table editable. The user can edit any number of rows which all should be updated in the database table automatically on cl开发者_JAVA百科icking Save Changes button.

I am able to bring data from database table and display it. I am displaying the values obtained from table in each cell of input type text of form. We am i clicking edit button i am able to update only last edited row in the table. Please tell how to update all the edited rows at a time.


  • Provide two links for view and edit of table values
  • In view keep the values simply in td element of table.
  • In edit , use input elements of type text inside td element.
  • If you want to do everything in same page, Ajax can be used for both view and edit.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜