How do I install Servlets within my web application?
• Compile the Servlet and determine which web application context you will add it to. • Add the Servlet class file to the WEBAPP/WEB-INF/servlets directory. • Activate the newly installed Servlet by registering (adding) the servlet in the WEBAPP/WEB_INF/servlets.properties file. See the Examples/WEB-INF/servlets file for an example. • Optionally, you can map the Servlet to URI requests relative to the context in which the Servlet is located by adding an entry in the WEBAPP/WEB-INF/mappings.properties file. See the Examples/WEB-INF/mappings.properties file for an example. • Restart the server.
Related Questions
- Does anyone know of any detailed architectural design patterns for organizing a web application with multiple servlets (and optionally, JSPs)?
- I have an existing server with web application already running on port 80 (such as Moodle). Can I also install BigBlueButton on that server?
- How do I install JSP pages and Java Beans in a web application?