May 2001
Intermediate to advanced
1088 pages
30h 13m
English
Servlets and Java Server Pages have their own special type of JAR file for deployment. This JAR file is called a WAR file (short for Web Archive).
When you create a WAR file, you must include a web.xml file that describes the application. Usually, you will at least need descriptions of the various servlets in your application. Listing 21.4 shows a crude servlet that calls a Java Server Page.
package usingjsp.warexample; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; public class ExampleWARServlet extends HttpServlet { public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException ... |
Read now
Unlock full access