Thanks you!  I figured they would not have implemented it with a lookup
over the web.

Thanks,
Ken Hoying
Practice Partner
TITAN Technology Partners
Pager: 216-275-7284


                                                                                       
                            
                    "Craig R.                                                          
                            
                    McClanahan"          To:     [EMAIL PROTECTED]         
                            
                    <craigmcc@apa        cc:                                           
                            
                    che.org>             Subject:     Re: DTD Location                 
                            
                                                                                       
                            
                    06/14/2001                                                         
                            
                    12:48 PM                                                           
                            
                    Please                                                             
                            
                    respond to                                                         
                            
                    struts-dev                                                         
                            
                                                                                       
                            
                                                                                       
                            





On Thu, 14 Jun 2001 [EMAIL PROTECTED] wrote:

> Currently, the XML indicates that the DTD is located over the web using a
> public qualifier.  Does it really check over the web for the DTD to
> validate against?  I would rather not do this for performance reasons.
If
> it does, can I change the reference to a SYSTEM ref instead.  What is the
> recommended approach for a production implementation?
>

If you look inside the controller servlet, you'll see that it registers a
local copy of the struts-config DTD, as well as the web.xml DTDs, with the
XML parser (the digester.register() calls).  This tells the parser to use
the local copy when a request for the specified public identifier is made.

Among other things, that means you can run Struts-based apps even when you
are not connected to the internet.  As long as your struts-config.xml file
has the correct public identifier, Struts does *not* go across the net to
perform the validation.

> Thanks in Advance,
> Ken Hoying
> Practice Partner
> TITAN Technology Partners
> Pager: 216-275-7284
>
>

Craig McClanahan





Reply via email to