jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bret Kumler" <bkum...@firstam.com>
Subject catifywar question
Date Wed, 17 Sep 2003 15:54:26 GMT
<catifywar mergefile>
Does it merge 2 xml files that already contain data.

For example, temp-web.xml contains:

<?xml version="1.0" encoding="UTF-8"?>
<!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>
     <servlet>
        <servlet-name>ServletRedirector</servlet-name>

<servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet-class
>
        <init-param>
          <param-name>param1</param-name>
          <param-value>value1 used for testing</param-value>
        </init-param>
    </servlet>
    <servlet>
        <servlet-name>ServletTestRunner</servlet-name>

<servlet-class>org.apache.cactus.server.runner.ServletTestRunner</servlet-cl
ass>
   </servlet>
   <servlet-mapping>
        <servlet-name>ServletRedirector</servlet-name>
        <url-pattern>/ServletRedirector</url-pattern>
   </servlet-mapping>
   <servlet-mapping>
        <servlet-name>ServletTestRunner</servlet-name>
        <url-pattern>/ServletTestRunner</url-pattern>
   </servlet-mapping>
</web-app>

I want to merge temp-web.xml with web.xml but web.xml contains the
following:

<?xml version="1.0" encoding="UTF-8"?>
<!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>
    <servlet>
        <servlet-name>Knex</servlet-name>
        <servlet-class>weblogic.knex.dispatcher.KnexServlet</servlet-class>
        <init-param>
            <param-name>QueueJNDIName</param-name>
            <param-value>jws.queue</param-value>
        </init-param>
    </servlet>
    <servlet-mapping>
        <servlet-name>Knex</servlet-name>
        <url-pattern>*.wsdl</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>Knex</servlet-name>
        <url-pattern>*.ctrl</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>Knex</servlet-name>
        <url-pattern>*.java</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>Knex</servlet-name>
        <url-pattern>*.jsx</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>Knex</servlet-name>
        <url-pattern>*.class</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>Knex</servlet-name>
        <url-pattern>*.xmlmap</url-pattern>
    </servlet-mapping>
    <mime-mapping>
        <extension>map</extension>
        <mime-type>text/xml</mime-type>
    </mime-mapping>
</web-app>

Will the merge produce this:

<?xml version="1.0" encoding="UTF-8"?>
<!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>
    <servlet>
        <servlet-name>Knex</servlet-name>
        <servlet-class>weblogic.knex.dispatcher.KnexServlet</servlet-class>
        <init-param>
            <param-name>QueueJNDIName</param-name>
            <param-value>jws.queue</param-value>
        </init-param>
    </servlet>
<servlet>
        <servlet-name>ServletRedirector</servlet-name>

<servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet-class
>
        <init-param>
          <param-name>param1</param-name>
          <param-value>value1 used for testing</param-value>
        </init-param>
    </servlet>
    <servlet>
        <servlet-name>ServletTestRunner</servlet-name>

<servlet-class>org.apache.cactus.server.runner.ServletTestRunner</servlet-cl
ass>
   </servlet>
<servlet-mapping>
        <servlet-name>ServletRedirector</servlet-name>
        <url-pattern>/ServletRedirector</url-pattern>
   </servlet-mapping>
   <servlet-mapping>
        <servlet-name>ServletTestRunner</servlet-name>
        <url-pattern>/ServletTestRunner</url-pattern>
   </servlet-mapping>
    <servlet-mapping>
        <servlet-name>Knex</servlet-name>
        <url-pattern>*.wsdl</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>Knex</servlet-name>
        <url-pattern>*.ctrl</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>Knex</servlet-name>
        <url-pattern>*.java</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>Knex</servlet-name>
        <url-pattern>*.jsx</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>Knex</servlet-name>
        <url-pattern>*.class</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>Knex</servlet-name>
        <url-pattern>*.xmlmap</url-pattern>
    </servlet-mapping>
    <mime-mapping>
        <extension>map</extension>
        <mime-type>text/xml</mime-type>
    </mime-mapping>
</web-app>

Thanks,

Bret

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message