File as Data Source

 

File format

    userid:password:Last Name:First Name:Email Address

To run the sample application Download the project files from http://sourceforge.net/projects/sfg/ here

Unpack the file under web application directory (webapps/)

Change the  authenticate/WEB-INF/Web-file.xml into web.xml

In web.xml change the user database file Name

<init-param>
<param-name>filename</param-name>
<param-value>c:\tomcat\webapps\authenticate\WEB-INF\data\userinfo.txt</param-value>
</init-param>

Add some sample records in that file ( : as a field separator )

Than start the web server and point your browser to http://localhost/authenticate/ you should be able to see index page.

To Debug please look into log file and web server console message.