I want to implement a basic login mechanism using java servlet and xml schema.
I want to write a servlet which reads the values and from the xml file and accepts POST requests from a login form(typically username and password).
<form action="" method="post" >
<table border="1" align="center">
<td><input type="text" id="username"></td>
<td><input type="password" id="password"></td>
<td><input type="submit" name="submit" id="sub" value="Submit"></td>
Can someone guide me over this.??
Pinned topic Parsing xml using java servlets
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-05-25T03:11:42Z at 2012-05-25T03:11:42Z by Maddy_tryingtobesmarl
Maddy_tryingtobesmarl 270005CF8J1 Post
Re: Parsing xml using java servlets2012-05-25T03:11:42ZThis is the accepted answer. This is the accepted answer.Hi,
All you can do is submit to a servlet that is mapped in web.xml file.
Then in the servlet java file use JAXP DOM API to read/write the xml file.
PFA the customerservice which parses a customer.xml file