> What exactly are the taglib fields in the web.xml file for?

In older web applications they were used to identify tag libraries used
in the application.  In more recent versions of the servlet
specification they are not needed (but still supported).  They are not
needed for a web service at all.

A basic Axis web.xml would look like this:

<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>
<web-app>
        <display-name>My Web Service</display-name>
        <description>My Web Service</description>       
        <servlet>
                <servlet-name>AxisServlet</servlet-name>
                <display-name>Apache-Axis Servlet</display-name>
        
<servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class
>
        </servlet>
        <servlet-mapping>
                <servlet-name>AxisServlet</servlet-name>
                <url-pattern>/services/*</url-pattern>
        </servlet-mapping>
</web-app>

Tim

Reply via email to