• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1260
  • Last Modified:

Java login form in eclipse

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
oggiemc
Asked:
oggiemc
  • 2
  • 2
1 Solution
 
CEHJCommented:
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
 
objectsCommented:
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
 
CEHJCommented:
>>http://www.javaworld.com/javaworld/javaqa/2001-06/04-qa-0629-excel.html

Bear in mind that shows a platform-specific solution
0
 
objectsCommented:
> Bear in mind that shows a platform-specific solution

not really relevant here
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now