I have make a cell in a table editable. After editing the value in the cell and on clicking the update button, the database should be updated and the page refreshed.
I have three columns, the first column is date. All the rows of the date columns should be made editable on the client side itself on clicking the particular cell. I' am stuck at this point and cant think of any solution.
Please help me.
There is nothing in JSP that can help you. JSP just let's you create HTML pages that are sent to the browser. Once there, a JSP is just an HTML page like any other.
In the click handler, write script that either creates, or reveals previously created but hidden, input elements in the cells and hides the text values.
I dont really know how to work it out.
I have a table displaying a list of holidays with three columns, the date, the occassion and the state displayed as a checkbox. If the checkbox is checked, it I should be able to edit the occasion name otherwise it should not be editable. Please help me with some example code.
That's not the way that JavaRanch works. You write the code. We help you with problems that you may have with it. Please read this for more information.
Give it a try. Surely you can at least get it started!