954,600 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how to insert registration data into database by registration page in JSP in Netbeans

Hello everyone, i am new comer to web development & netbeans, i m a student.
I have been given a task to create registration page with username & password,
& after submitting this form it automatically stores data into databse,
which can later be seen by admin only...or can be used for retrievel of data for login purpose.
I have created 1 form in JSP netbeans with both username,password text field inputs .
& also installed Mysql into Netbeans & connected it & created 1 database with table columns username,password
(in which i want to store data of entered by user while registrating)

I know its simple task for u guys, but i'm nascent in programming,coding,developing..
.so guys please help me out..give code for this & also tell where to write this code.
& how to connect tht form to my databse , so it can store data?

pjyankee
Newbie Poster
4 posts since Aug 2011
Reputation Points: 10
Solved Threads: 0
 

1. You do want to submit form data from JSP page to servlet for processing and let servlet do what is supposed to do
2. Tool used for the task doesn't matter (posting that I want to do in NetBeans, Eclipse etc is just immature)
3. You may want to look at simple sample from top of this forum section JSP database connectivity according to Model View Controller (MVC) Model 2
4. To learn more get your hands on some good book like one of these mentioned in this post

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

thank you very much peter budo..yeah i'm new to java ..i will refer the books link u provided..

pjyankee
Newbie Poster
4 posts since Aug 2011
Reputation Points: 10
Solved Threads: 0
 

Very easy and fast start is Head First Servlet & JSP, then you may consider Pro JSP 2

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

ok.. Peter..is that book u mentioned gives practical idea of working with JSP ? cause i dont have too much time to go for deep theory lessons..which book u reccommend best for getting quick practical knowledge?

pjyankee
Newbie Poster
4 posts since Aug 2011
Reputation Points: 10
Solved Threads: 0
 

They both fast track, first is for new comers to Java development, the second is targeting sort of experienced developers

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

Thank you Very much.

pjyankee
Newbie Poster
4 posts since Aug 2011
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: