XML File format
<USER>
<USERID>sundaram</USERID>
<USERPASSWD>sun123</USERPASSWD>
<LASTNAME>Ramasamy</LASTNAME>
<FIRSTNAME>Sundaram</FIRSTNAME>
<EMAIL>sundaram123@yahoo.com</EMAIL>
</USER>
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-xml.xml into web.xml
In web.xml change the location of user database XML file Name
<init-param>
<param-name>filename</param-name>
<param-value>c:\tomcat\webapps\authenticate\WEB-INF\data\userinfo.xml</param-value>
</init-param>
Add some sample records in that file
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.
Note :
This program uses IBM XML Parser. you can find IBM XML Parser in lib (WEB-INF/lib/xml4j.jar) directory.