| Author |
registration form code
|
Nishant Vashisth
Greenhorn
Joined: Jun 27, 2011
Posts: 23
|
|
hey guys i've just started using netbeans and i am making a project... and i need to make a login and registration system...
so can you please help me i Don't want to use DATABASE just want to save the id and password in strings.
so please help me out with a code on servlets to handle the registration of users !!!
|
 |
Seetharaman Venkatasamy
Ranch Hand
Joined: Jan 28, 2008
Posts: 5575
|
|
|
well, so far what you have done?
|
 |
Seetharaman Venkatasamy
Ranch Hand
Joined: Jan 28, 2008
Posts: 5575
|
|
Welcome to JavaRanch
|
 |
Mohit G Gupta
Ranch Hand
Joined: May 18, 2010
Posts: 634
|
|
tell us about the progress you have made.
THen,only we can help you
|
OCPJP 6.0 93%
OCPJWCD 5.0 98%
|
 |
Nishant Vashisth
Greenhorn
Joined: Jun 27, 2011
Posts: 23
|
|
well i have made 2 JSP
one is a simple login.jsp which contains two text inputs and a submit with the form action to a java servelet
and a register page with all fields required for a ticket booking system like name address etc.. and most important the desired username and password confirm password..
what i want to do is to save this desired user in a string login_id array dynamically plus checking that if the id already exists !!
and the password in a different string login_pass... with one user's id and password at same position of the array like login_id[1] and login_pass[1]
if you wanti can post the servelt code i could think off please help m just a beginner !!
|
 |
Nishant Vashisth
Greenhorn
Joined: Jun 27, 2011
Posts: 23
|
|
Here I could think of this naive code
I seriously need some professional help :P :P
|
 |
Abhay Agarwal
Ranch Hand
Joined: Feb 29, 2008
Posts: 716
|
|
appreciate if you could post your JSPs also.
Do you have only Servlet (login) in your application ?
~ abhay
|
Oracle certified Java 7 Programmer, SCJA 1.0, SCJP 5.0, SCWCD 5.0, Oracle SQL Fundamentals I
|
 |
Abhay Agarwal
Ranch Hand
Joined: Feb 29, 2008
Posts: 716
|
|
are you making this login and registration system just to gain hand on knowledge on Servlets ?
Saving login id and passwords in String object will not have any retentivity. As soon as web conainer is restarted, all login id and passwords will be lost
~ abhay
|
 |
Nishant Vashisth
Greenhorn
Joined: Jun 27, 2011
Posts: 23
|
|
Abhay Agarwal wrote:are you making this login and registration system just to gain hand on knowledge on Servlets ?
Saving login id and passwords in String object will not have any retentivity. As soon as web conainer is restarted, all login id and passwords will be lost
~ abhay
ya i know every thing will be lost i am just making it to show that the thing works... because i have to show it on different computers
plus if i have to use database it'll increase the complexity of the program !!
but no problem if you can post a easier database code
the jsp is very simple one just a file with three inputs desired login id and password
PLEASE HELP !
|
 |
Dieter Quickfend
Ranch Hand
Joined: Aug 06, 2010
Posts: 280
|
|
|
If you know I/O, you can always save it to a file...
|
Oracle Certified Professional Java Programmer
|
 |
Nishant Vashisth
Greenhorn
Joined: Jun 27, 2011
Posts: 23
|
|
Dieter Quickfend wrote:If you know I/O, you can always save it to a file...
yes i thought of that option but that's the problem of being new to the language...
i don't know how to do it !!
i will appretiate if you could post the i\o code !!
|
 |
Dieter Quickfend
Ranch Hand
Joined: Aug 06, 2010
Posts: 280
|
|
But then, what would you learn? If you want code snippets, google it? You should really make it yourself, that's how you learn.
I find it strange to start developing Servlets and JSP's without a minimal understanding of Java SE API's...
|
 |
Nishant Vashisth
Greenhorn
Joined: Jun 27, 2011
Posts: 23
|
|
Dieter Quickfend wrote:But then, what would you learn? If you want code snippets, google it? You should really make it yourself, that's how you learn.
I find it strange to start developing Servlets and JSP's without a minimal understanding of Java SE API's...
ya i know but the point is
right now my priority is to make this website because i've been given this project and will be graded for it.
i tried to google the code but it was difficult and as you saw above i tried to make the code too so i was seeking a simple or atleast understandable code.
that's why i came for help here.
that's why this forum was built no ??
|
 |
 |
|
|
subject: registration form code
|
|
|