struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rey Francois <Francois....@capco.com>
Subject RE: Web-app_2_2.dtd
Date Tue, 04 Sep 2001 13:39:29 GMT

The ActionServlet does this resolution already, it looks for this DTD
locally:

ActionServlet {

    ...

    /**
     * The set of public identifiers, and corresponding resource names, for
     * the versions of the configuration file DTDs that we know about.
There
     * <strong>MUST</strong> be an even number of Strings in this list!
     */

    ...

    protected String registrations[] = {
        "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN",
        "/org/apache/struts/resources/struts-config_1_0.dtd",
        "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN",
        "/org/apache/struts/resources/web-app_2_2.dtd",
        "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN",
        "/org/apache/struts/resources/web-app_2_3.dtd"
    };


    ...

    protected Digester initDigester(int detail) {
      ...
	// Register our local copy of the DTDs that we can find
        for (int i = 0; i < registrations.length; i += 2) {
            URL url = this.getClass().getResource(registrations[i+1]);
            if (url != null)
                digester.register(registrations[i], url.toString());
        }

    ...
}

Not sure why it does not work in your case.  Check previous postings and
Struts resources about deploying Struts on WebLogic. Check also the parser
being used, maybe trying another one...

Fr.

-----Original Message-----
From: Sureka, Sushil [mailto:sushil.sureka@tgslc.org]
Sent: 04 September 2001 15:29
To: 'struts-dev@jakarta.apache.org'
Subject: Web-app_2_2.dtd


I posted it on struts-user mailing list but could not get a reply. Thats the
reason I am posting it on dev mailing list. 

Hello All, 
We are using struts for our application. One of the problem we have
encountered is with the finding of Web-app_2.2.dtd . Seems like the name of
the dtd is hard coded in the ActionServlet java class. During deployment of
the application (using weblogic) the server waits for like 2 minutes or so
before it determines it can not find the dtd since we are running behind the
firewall. We are not sure how can we change this behaviour it so that it
always look for it locally (instead of going on internet) and save us all
the wasted time 
Sushil 


************************************************************************
The information in this email is confidential and is intended solely
for the addressee(s).
Access to this email by anyone else is unauthorised. If you are not
an intended recipient, you must not read, use or disseminate the
information contained in the email.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Capco.

http://www.capco.com
***********************************************************************


Mime
View raw message