Today, Budi walks us through a refresher and brief overview of server JSP programming. Today's portion covers Servlet technologies, including servlets and Tomcat. This excerpt comes from chapter one of JavaServer Faces Programming, by Budi Kurniawan (McGraw-Hill/Osborne, ISBN 0-07-222983-7, 2004).
Before you can access a servlet from a Web browser, you must map the servlet to a path in your deployment descriptor. For example, the deployment descriptor in Listing 1 creates the servlet name MyServlet and maps it to /aUrl.
This enables your users to access the servlet using the following URL:
http://localhost:8080/appName/aUrl
Remember: This is part one of the first chapter of JavaServer Faces Programming, by Budi Kurniawan (McGraw-Hill/Osborne, ISBN 0-07-222983). Stay tuned for part 2 of "Overviews of Java Web Technologies," where we learn about JSP, JavaBeans, and Model 2. Buy this book!