Our main aim is to authenticate user details from xml file.Now this xml file can be normal one or u can take web.xml for implementation also.
I will explain u both the ways one after the other
1.Normal XML file using Document Builder
The folder structure for this jsp program is as follows:
Below you can find the index.html file which accepts username and password:
This is the jsp file xret.jsp where the actual logic is specified:
I will explain u both the ways one after the other
1.Normal XML file using Document Builder
The folder structure for this jsp program is as follows:
This is the xml file which we have to use:
Below you can find the index.html file which accepts username and password:
This is the jsp file xret.jsp where the actual logic is specified:
These are the output screens cross check with xml file:
2)Using InitParam in web.xml
The output for this is as follows:
No comments:
Post a Comment