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.??
NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
1 reply Latest Post - 2012-05-25T03:11:42Z by Maddy_tryingtobesmarl
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 PostACCEPTED ANSWER
Re: Parsing xml using java servlets2012-05-25T03:11:42Z in response to javaxmlHi,
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