File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

registration form code

 
Nishant Vashisth
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5575
Eclipse IDE Java Windows XP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well, so far what you have done?
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch
 
Mohit G Gupta
Ranch Hand
Posts: 634
Chrome Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tell us about the progress you have made.
THen,only we can help you
 
Nishant Vashisth
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here I could think of this naive code
I seriously need some professional help :P :P


 
Abhay Agarwal
Ranch Hand
Posts: 1375
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
appreciate if you could post your JSPs also.
Do you have only Servlet (login) in your application ?

~ abhay
 
Abhay Agarwal
Ranch Hand
Posts: 1375
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 543
4
Java Netbeans IDE Redhat
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you know I/O, you can always save it to a file...
 
Nishant Vashisth
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 543
4
Java Netbeans IDE Redhat
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ??
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic