Thanks for the info James.
-Adam

"James Holmes" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> From the 1.1 code base:
>
> lines: 341 - 355
>
>     /**
>      * 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",
>         "-//Apache Software Foundation//DTD Struts
> Configuration 1.1//EN",
>
> "/org/apache/struts/resources/struts-config_1_1.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"
>     };
>
>
> lines: 937 - 963
>
>     /**
>      * <p>Create (if needed) and return a new Digester
> instance that has been
>      * initialized to process Struts application
> configuraiton files and
>      * configure a corresponding ApplicationConfig
> object (which must be
>      * pushed on to the evaluation stack before
> parsing begins).</p>
>      */
>     protected Digester initConfigDigester() {
>
>         // Do we have an existing instance?
>         if (configDigester != null) {
>             return (configDigester);
>         }
>
>         // Create and return a new Digester instance
>         configDigester = new Digester();
>         configDigester.setDebug(detail);
>         configDigester.setNamespaceAware(true);
>         configDigester.setValidating(validating);
>         configDigester.setUseContextClassLoader(true);
>         configDigester.addRuleSet(new
> ConfigRuleSet());
>         for (int i = 0; i < registrations.length; i +=
> 2) {
>             URL url =
> this.getClass().getResource(registrations[i+1]);
>             if (url != null)
>
> configDigester.register(registrations[i],
> url.toString());
>         }
>         return (configDigester);
>     }
>
>
> Similar code exists in the 1.0x code base as well.
>
> -james
> [EMAIL PROTECTED]
> http://www.jamesholmes.com/struts/
>
>
>
> --- [EMAIL PROTECTED] wrote:
> >
> >
> >
> > James -
> >
> > Where is the code for this? Can I trace this from
> > the init() stuff in the
> > Action servlet?
> >
> > This is Struts and not Tomcat stuff?
> >
> > Appreciate any pointers....
> >
> > Thanks,
> > Kevin
> >
> >
> >
> >
> > James Holmes <[EMAIL PROTECTED]> on 05/30/2002
> > 03:50:07 PM
> >
> > Please respond to "Struts Users Mailing List"
> >       <[EMAIL PROTECTED]>
> >
> > To:   Struts Users Mailing List
> > <[EMAIL PROTECTED]>
> > cc:    (bcc: Kevin Bedell/Systems/USHO/SunLife)
> > Subject:  Re: DTD Question
> >
> >
> > What version of Struts are you using?  Struts 1.0
> > and
> > later use a resource locator that grabs the DTD from
> > the Struts Jar and should resolve DTDs very quickly.
> >
> > -james
> > [EMAIL PROTECTED]
> > http://www.jamesholmes.com/struts/
> >
> > --- Struts Newsgroup <[EMAIL PROTECTED]> wrote:
> > > Subject: DTD Question
> > > From: "Adam Cohen" <[EMAIL PROTECTED]>
> > >  ===
> > > I'm working on a web-app that is on a server that
> > > has no access to the web
> > > on port 80.
> > > When web.xml tries to get the dtd:
> > > <!DOCTYPE web-app PUBLIC "-//Sun Microsystems,
> > > Inc.//DTD Web Application
> > > 2.2//EN"
> > > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> > > The server waits for a long time for the request
> > to
> > > time out.
> > > I don't want to hard code a local path to the dtd
> > > and the server can't get
> > > accss to the web.
> > > Is there a better way to do?
> > > Thanks, Adam
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > >
> > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! - Official partner of 2002 FIFA World Cup
> > http://fifaworldcup.yahoo.com
> >
> > --
> > To unsubscribe, e-mail:   <
> > mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: <
> > mailto:[EMAIL PROTECTED]>
> >
> >
> >
> >
> >
> >
> >
> >
> --------------------------------------------------------------------------
-
> > This e-mail message (including attachments, if any)
> > is intended for the use
> > of the individual or entity to which it is addressed
> > and may contain
> > information that is privileged, proprietary ,
> > confidential and exempt from
> > disclosure.  If you are not the intended recipient,
> > you are notified that
> > any dissemination, distribution or copying of this
> > communication is
> > strictly prohibited.  If you have received this
> > communication in error,
> > please notify the sender and erase this e-mail
> > message immediately.
> >
> --------------------------------------------------------------------------
-
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to