30 likes | 172 Views
Tomcat and Servlets. CSE 3330 Southern Methodist University. Tomcat. If you change your servlet , you’ll need to let Tomcat know. Restart the server Use the manager app Modify the tomcat- users.xml file in < TCHome >/conf. Request Parameters.
E N D
Tomcat and Servlets CSE 3330 Southern Methodist University
Tomcat • If you change your servlet, you’ll need to let Tomcat know. • Restart the server • Use the manager app • Modify the tomcat-users.xml file in <TCHome>/conf
Request Parameters • http://localhost:8080/MyServ/Serv?fname=Mark&lname=Fontenot • Use the request object’s getParameter() method to get the value of a particular key. • req.getParameter(“fname”); Parameters are key/value pairs