Home > Articles > Programming > Java

  • Print
  • + Share This
From the author of

Server-Side Code

The server-side code in this example will be an XML file that contains all of the user data. In a real application, this XML file probably would be generated on the server side based on database information, which would make it more secure and reusable. The XML file will contain the first and last name, email address, username, and password, just as our form does:

<?xml version="1.0" encoding="iso-8859-1" ?>
<users>
    <user firstName="Kris" lastName="Hadlock" email="mail@mail.com" username="kris" password="hadlock" />
</users>

Next, we’ll gather user data and compare it with the values saved in this file.

  • + Share This
  • 🔖 Save To Your Account