This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes Edit DataTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Edit DataTable " Watch "Edit DataTable " New topic

Edit DataTable

Anthonio Booysen

Joined: Oct 27, 2008
Posts: 10
Good Morning All (Beginner to Java)

I am connected to a mssql database and displaying the results set in my index.jsp page. I now want to update the datable directly to the database. I have a h:selectBooleanCheckbox and want to update the table via the check box

Can someone help em with the code

Campbell Ritchie

Joined: Oct 13, 2005
Posts: 38075
I take it you are familiar with the JDBC API?

I think this thread would sit better on the JDBC forum. Moving.
Anthonio Booysen

Joined: Oct 27, 2008
Posts: 10

I am not that clued with API, but I have the connections in place. The only thing i need to get my update working.

What I have currently is a selectBooleanCheckbox where they can select what they want to update. I would like to let it render a input text which I have in my code and to buttons

So when they click the radio selectBooleanCheckbox and press the webPageUpdate it should open a text for them to change the values. After changing the values they will then click the saveChanges button it will then write the value to the database.

In my SDRDataAccessDAO class I have a method with my update statement

I need some assistance with this please.

jQuery in Action, 2nd edition
subject: Edit DataTable
Similar Threads
cache data
Making Systems for Web Services?
Not to update database before 1 minute
how can I update xml file in java?
update query