adele
Uploaded by
3 SLIDES
187 VUES
30LIKES

Managing Tomcat and Servlets for CSE 3330 at Southern Methodist University

DESCRIPTION

This guide provides essential information for managing Tomcat and Servlets in CSE 3330 at Southern Methodist University. When modifying your servlet, remember to notify Tomcat by restarting the server or using the manager app. You may also need to adjust the tomcat-users.xml file in your Tomcat configuration. To handle request parameters, use the request object’s `getParameter()` method to retrieve values. For instance, accessing `req.getParameter("fname")` allows you to retrieve the value associated with a specific key in your web application.

1 / 3

Télécharger la présentation

Managing Tomcat and Servlets for CSE 3330 at Southern Methodist University

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Tomcat and Servlets CSE 3330 Southern Methodist University

  2. 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

  3. 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

More Related