Solved

Java login form in eclipse

Posted on 2010-11-29
4
1,239 Views
Last Modified: 2012-05-10
Hi All,

I want to do a simple login form for an RMI application..I basically have a number of username/passwords in an excel file..i want the username/password inputted by the user to be checked against the values in the excel file..Problem is i dont know how to integrate the excel file into my class..Can someone please explain to me how to do this please / Point me in the direction of some useful tutorials..

PS Its a college assignment and excel files will do for data storage/retrieval (i.e i dont need to use a DB)
0
Comment
Question by:oggiemc
  • 2
  • 2
4 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 34232404
Get the values out of the spreadsheet first http://technojeeves.com/joomla/index.php/free/113-read-excel-spreadsheet-with-java then make a Credentials class. Have a List<Credentials> and check with something like
boolean validLogin = credentialsList.contains(new Credentials(username, password));

Open in new window

0
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 34234490
you could use POI but its not really necessary in your case.

you can instead simply use jdbc to access the file
http://www.javaworld.com/javaworld/javaqa/2001-06/04-qa-0629-excel.html
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 34234692
>>http://www.javaworld.com/javaworld/javaqa/2001-06/04-qa-0629-excel.html

Bear in mind that shows a platform-specific solution
0
 
LVL 92

Expert Comment

by:objects
ID: 34234745
> Bear in mind that shows a platform-specific solution

not really relevant here
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
couple of eclipse 5 46
maven disable workspace resolution 1 21
SequenceInputStream example 3 19
jsp error 6 25
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question