title: Creating Servlet Cookies
body: <p>I am rather new to servlets and currently I'm struggling with adding cookies. I believe this is a result of a modular approach i am taking in that I built a header utility class that simply inserts all the header information into the servlet so I want to take the same approach with adding cookies. </p>
  
  <p>I also have a crediential validator class that excepts the user name and password, validates it, then returns a valid/invalid response. Here i believe lies the problem. In the login form that passes the username and password to the credential validator, I have the form action directing to the credential servlet and the form method as a post. </p>
  
  <p>Doing it this way provides a problem if i want to send a value from the form to another servlet, or does it? </p>
  
  <p>The goal of this project, for school, is to create a simple website strictly with servlets then we get to use JSP to ease the pain. </p>
  
  <p>Is there another approach i should be considering? Is it possible to have these classes that perform a variety of functions on forms when the form action and method are utilized? </p>
  
  <p>Thank you for any help and guidance. </p>
  
  <p>Best
  E</p>