Servlet + HTML + SQL

Hey All,

I am having tables in the SQL with some data. Now I want to create a Edit page with Servlet *** HTML so that I can manupulate the data of backend in frontend.

I have accepted the value of the primary key, depending on which I am displaying all data in Servlet *** HTML (textboxes).

Now I am not getting what to do next so that once I make changes to the shown data, and press "save" button, all data get Updated in backend itself.

Can any1 please help me regarding this? If any data is req`d please ask me.

thax & rgds,

nhb007

[582 byte] By [nhb007a] at [2007-10-3 9:31:57]
# 1
you have to post your form to a servlet, which will get the form values using :request.getParameter("paramname");and the will make a UPDATE/INSERT request on the db
alban.maillerea at 2007-7-15 4:46:54 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Hey again alban,

I am not getting what you have suggested. I have already done till I am able to retreive the values of various fields in the respective textboxes. the only thing left is that, I should be able to slick on "SAVE" button and itself it updates the DB.

How is it possible?

thax & rgds,

nhb007

nhb007a at 2007-7-15 4:46:54 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
you mean clicking the an html button, named "save", would automaticaly save your datas in the db?i'm afraid you'll have to use a third party tool like JSF or else
alban.maillerea at 2007-7-15 4:46:54 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
I want to SAVE the changes into DB once I click save button. Can`t I do it with the help of Servlet/ HTML/ JS? I am thrusting on these coz I have knowledge for these things only. Guide me regarding this.thax & rgds,nhb007
nhb007a at 2007-7-15 4:46:54 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
Can anyone help regarding this? any other solution will also be helpful for this...:-)thx rgds,nhb007
nhb007a at 2007-7-15 4:46:54 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
I think you have already got all the infos you neededplz , use your brainor read a tutorial, there are hundreds
alban.maillerea at 2007-7-15 4:46:54 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...