?
Solved

Java login form in eclipse

Posted on 2010-11-29
4
Medium Priority
?
1,254 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses
Course of the Month15 days, 8 hours left to enroll

741 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