Good catch Laurie ... through at least today's version of the 1.3 DTD,
it is indeed sensitive to the order of the elements.  For example, all
the <form-bean> elements need to be before the <action-mappings>
element that contains all the <action> elements.  Therefore, if you're
going to use the XML entities approach, you'll need to create multiple
entities for each logical segment ... one for the form beans, one for
the actions, and so on.

This was a lesson learned on the standards front ... in Servlet 2.4
and JavaServer Faces 1.0, the element order was defined to *not* be
important ... that's something we could consider in Struts 1.3,
because relaxing the restriction would not break any previously valid
configuration file.

Craig

On 6/18/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
> Craig McClanahan wrote:
> > Validation against the DTD requires two things:
> >
> > * Using the DOCTYPE declaration (as shown above) in the outer configuration 
> > file
> >
> > * Setting the servlet init parameter "validating" to "true" in 
> > /WEB-INF/web.xml
> >   for the Struts ActionServlet
> >
> > It doesn't matter whether you use XML entities or not.
> 
> One note of caution: validation also requires complying with the
> document order specified by the DTD, which can constrain the way you
> break the file out into external entities (they have to reassemble in
> valid document order).
> 
> I'm not familiar enough with the DTD to know if this'll be a factor for
> a struts-config.xml, or if Struts / Digester is sensitive to document
> order (if you turn off validation).
> 
> L.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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

Reply via email to