Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet

 
shashi bhushan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well, thank you arvind for your reply, what since it is very big program i have cut short and pasted in my reply.
actually when all the value collected from html to the httpservlet how to insert it into the backend Acess 97, by using the jdbc odbc bridge i used the prepared statement to insert the
values collect in terms of string.
the error is sqlException, does jdbc require a main function to insert values or we can insert values using doPost method itself.
try to help me na.

------------------
 
maha anna
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shashi,
I cut a code snippet from one of my appln and posted below for your reference. In Servlets, you just get the values from html page , and call the appropriate methods of database classes which add/delete/modify the database contents using SQL statements. NO SQL CODE in SERVLETS .
regds
maha anna

[This message has been edited by maha anna (edited November 26, 2000).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic