A2:
| Unless you use the Tomcat Manager, it's possible that the classes are not reloaded automatically. You must restart the JSP/servlet engine to pick up changes in other classes. Tomcat does provide an option to reload servlets without restarting. To do this, you can add the attribute reloadable=true to a Context component in server.xml. Tomcat will automatically reload classes if a new war file is dropped into the webapps directory or in a few other cases. See the Tomcat documentation for details. |
A3:
| First, check to make sure you spelled the cookie name correctly. Next, make sure the browser has cookies enabled. Also, if you specified a root path for the cookie, make sure that the JSP or servlet reading the cookie is in that path. Remember, too, that if you don't give the cookie a specific expiration time, the cookie will vanish when the user shuts the browser down. |