What is the servlet lifecycle?
There is a servlet container around the web applications 1- Load Servlet Class 2- Create Instance of Servlet 3- Call the Servlet init() method 4- Call the servlet service() method 5- Call the servlet destroy method()
The steps are taken implicitly by the container
What is a helpful method to get the hostname of the web site?
Request.getContextpath() will return the web site path and then add in the address to the servlet
What are Java beans?
Java class that stores data. Has a bunch of methods to use. Need to have values initialized.
Who creates the cookie?
The browser creates the cookie and is stored and interacts with the server.