• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem in integrating form with servlet

 
Chandrashekhar B Manda
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to read form data, and i am unable to integrate
i)the html page
ii)the database inserting class
iii)the servlet to insert

can anybody please help me out of my predicament.
 
Dave Wingate
Ranch Hand
Posts: 262
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chandrasekhar,

You mentioned that your problem is integrating the components that process an html form and persist some values. It will be much easier for us to help you if you can post some or all of the code that you already have. That way we'll be able to more clearly see what type of integration problems you're having.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65520
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Chandrasekhar MB",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
 
Chandrashekhar B Manda
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your prompt reply Dave

i)My Html page is having
two text fields 'firstname' and 'lastname' - RegisterUser.html
ii) I have written a class which provides a method to insert values into database using insert(value1, value2, value3...) - DBProcess.java
iii) I want to write a servlet to read this html page and make use of the method insert() from DBProcesses - RegisterService.java


Hope i am not adding trouble to you..
thought you will definetely understand looking at these statements.

Awaiting your reply.

thanks,
Chandrasekhar.
 
Dave Wingate
Ranch Hand
Posts: 262
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd recommend that you review this sun tutorial, which gives an example of exactly what you want to do.
 
Chandrashekhar B Manda
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
many thanks Dave.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!