Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,195,121 members, 7,957,199 topics. Date: Tuesday, 24 September 2024 at 08:57 AM |
Nairaland Forum / Science/Technology / Programming / Please Help Me On Login Code In Java. (1626 Views)
I Want To Develop A Software In Java To Calculate CGPA / Login Code In Vb6.0 / Marquee Code In Vb (2) (3) (4)
Please Help Me On Login Code In Java. by xtianh(m): 12:19am On Oct 16, 2013 |
i kindly ask for help from one that can do so. I have been trying to develope a login program in java. Where d major problem is, is integrating the java and mysql database. I also needed a good illustration on hw to code the login and read frm the database thanks |
Re: Please Help Me On Login Code In Java. by BetaQuick: 2:00am On Oct 16, 2013 |
A crude login Process 1. First you need a login form to get the username and password <form action="/login" method="POST"> 2. Then you need a servlet running on your server to get the information and process it.
|
Re: Please Help Me On Login Code In Java. by xtianh(m): 1:44am On Oct 17, 2013 |
thanks bro i will try it out |
Re: Please Help Me On Login Code In Java. by Nov1ce(m): 5:28am On Oct 17, 2013 |
I think the first question to ask is are you coding for Java Web or Desktop? 2 Likes |
Re: Please Help Me On Login Code In Java. by ogunayo: 11:17am On Oct 17, 2013 |
Goto echelontrainingportal.com, subscribe for free and start learning JAVA. All our posted answers are tested and confirm runing 2 Likes |
Re: Please Help Me On Login Code In Java. by jboy01(m): 6:04pm On Oct 17, 2013 |
i need d one for desktop app |
Re: Please Help Me On Login Code In Java. by xtianh(m): 4:17pm On Oct 18, 2013 |
Nov1ce: I think the first question to ask is are you coding for Java Web or Desktop? for desktop app. A standalone program |
Re: Please Help Me On Login Code In Java. by danvery2k6(m): 3:52pm On Oct 19, 2013 |
1. create a table in your database called user or any name of your choice. 2. create two fields of type varchar called username and password with username as the primary key. 3. create a class called UserLogin with username and password as instance variables. 4.create a constructor that initialises these variables. 5. create method login that returns a boolean value and that takes two arguments: user and pass and fetches a row from the database where username = user 6. pass the result and the arguments of the method login to another method verifyUser that returns a boolean eg verifyUser(user, pass, dbUser, dbPass). this method should verify if the database values equal the passed arguments to method login. hope this helps. still confused? post confusion here #teamJava |
Re: Please Help Me On Login Code In Java. by xtianh(m): 7:49am On Oct 21, 2013 |
danvery2k6: 1. create a table in your database called user or any name of your choice. my confusion cmes in at stage 5 down could u pls explain in mre details. Thanks fr ur effort |
Re: Please Help Me On Login Code In Java. by danvery2k6(m): 1:36pm On Oct 22, 2013 |
|
Re: Please Help Me On Login Code In Java. by Danyl(m): 8:53pm On Oct 25, 2013 |
y dont u resort to using one of dis ORM frameworks its safer n faster..... one of such is oracle toplink n hibernate or better still go for apache derby db cos packaging mysql wt ur apl might give u problems even if it works.... |
Re: Please Help Me On Login Code In Java. by AZeD1(m): 5:36pm On Oct 28, 2013 |
xtianh:A boolean value can either be true or false. That is also the same in the login process i.e its either the login details supplied by the user matches a previously stored value or they don't. So in stage 5, your login in function should take the user supplied variable (username/email and password) and compare with the values present in the database. Only one value in the database should return true. PS: its horrible writing shorthand in a public forum, its ever more horrible when the so called offender is a programmer. If you do that in forums like stackoverflow, you would not get a reply. |
(1) (Reply)
Cb#nets.technologies / Which Is The Best Serve Side Scriptn Language Php Vs Ruby Vs Python Vs Perl / I Have Netspend Debit Card
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 27 |