<?xml version="1.0" encoding="ISO-8859-1"?>

<!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>WebChat</display-name>
    <description>Smack-powered WebChat Application</description>
      
    <!-- Servlets -->
    <servlet>
        <servlet-name>ChatServlet</servlet-name>
        <servlet-class>org.jivesoftware.webchat.ChatServlet</servlet-class>
        <init-param>
            <param-name>host</param-name>
            <param-value></param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>        
    </servlet>

    <!-- Servlet mappings -->
    <servlet-mapping>
        <servlet-name>ChatServlet</servlet-name>
        <url-pattern>/servlet/ChatServlet/*</url-pattern>
    </servlet-mapping>
    
    <!-- Welcome file list -->
    <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
        <welcome-file>index.html</welcome-file>
    </welcome-file-list>
</web-app>
<?xml version="1.0" encoding="ISO-8859-1"?>

<!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>WebChat</display-name>
    <description>Smack-powered WebChat Application</description>
      
   <context-param>
        <param-name>host</param-name>
        <param-value>jivesoftware.com</param-value>
   </context-param>

    <!-- Servlets -->
    <servlet>
        <servlet-name>ChatServlet</servlet-name>
        <servlet-class>org.jivesoftware.webchat.ChatServlet</servlet-class>
        <load-on-startup>1</load-on-startup>        
    </servlet>

    <!-- Servlet mappings -->
    <servlet-mapping>
        <servlet-name>ChatServlet</servlet-name>
        <url-pattern>/servlet/ChatServlet/*</url-pattern>
    </servlet-mapping>
    
    <!-- Welcome file list -->
    <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
        <welcome-file>index.html</welcome-file>
    </welcome-file-list>
</web-app>
Use context params instead of servlet params, as this may make WAR deployment easier.
Use context params instead of servlet params, as this may make WAR deployment easier.


git-svn-id: 0d4d1bf2e47502aa0f0957c230a0ec7fa56198fd@1878 b35dd754-fafc-0310-a699-88a17e54d16e
