Hi all, I am trying to create a
test login jsp/servlet app. For now I want to create a HashMap to store the username and passwords (I would not do this in real life) and then serialize the HashMap.
I would like to open the serliized object to search when the user logs back on and when a new one is created to check the username is not already in use.
I have written a
java class for the
servlet to instantiate with methods to do both the verification and creation but the serialization part does not seem to work.
My question is this: Am I able to serialize and de-serialize a HashMap in a web app?
This is my current code for doing so:
Many Thanks.