Prev | Current Page 129 | Next

Frank Zammetti

"Practical DWR 2 Projects"


The and tasks you??™ll notice don??™t delete WEB-INF/classes, they delete WEB-INF/
classes/com. The reason is that in many of the applications in this book, there are files in WEB-INF/
classes that can??™t be deleted if the application is to function properly.
Application Configuration: web.xml
Now that we??™ve essentially put together the infrastructure for the application, let??™s get to the
application components themselves. First up is the web.xml file, as shown in Listing 2-2. Save
this to simpleapp/WEB-INF.
Listing 2-2. The web.xml File for the Application

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">


MathServlet
app.MathServlet


MathServlet
/MathServlet