1. You are correct that when using the struts:action-exception element, it will break validation. But this is not what I understand under "backwards compatibility" (and it is documented). 2. Validation is by default false 3. When struts goes final we will support the full struts DTD, and this will keep backward compatibility with struts 1.0 (but not with 0.5, as it is removed from the struts DTD)
IMHO adding a version attribute to the strutsconfig task is adding needless complexity. When upgrading to a new XDoclet version, expect problems with ancient packages (like for example struts 0.5). Regards, Mathias ----- Original Message ----- From: "Erik Hatcher" <[EMAIL PROTECTED]> To: "Mathias Bogaert" <[EMAIL PROTECTED]> Sent: Monday, March 25, 2002 7:16 PM Subject: Re: [Xdoclet-devel] CVS update: xdoclet/core/resources/xdoclet/web/vendor struts_config_xml.j > So adding the <exception> element to a 1.0 struts-config.xml does not cause > validation errors? I'm almost certain it would since its not part of the > DTD. Personally, I'm running off a nightly build of Struts from several > months ago, and I think it would break in my 1.1alpha version. > > I'm not using XDoclet for struts-config.xml generation though, so its not a > factor for me - I was just thinking that perhaps there should be a version > attribute on the <strutsconfig> element so that the 1.1 elements are > conditional on that? Or that a different template is used altogether for > different versions? > > Erik > > ----- Original Message ----- > From: "Mathias Bogaert" <[EMAIL PROTECTED]> > To: "Erik Hatcher" <[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]> > Sent: Monday, March 25, 2002 12:40 PM > Subject: Re: [Xdoclet-devel] CVS update: > xdoclet/core/resources/xdoclet/web/vendor struts_config_xml.j > > > > This will not break any current Struts stuff. But however, it is better to > > wait for a release to build > > production environment applications with XDoclet. The new struts stuff is > > not yet tested by many developers. > > > > Thanks! > > > > Mathias > > > > ----- Original Message ----- > > From: "Erik Hatcher" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]>; "Mathias Bogaert" > > <[EMAIL PROTECTED]> > > Sent: Monday, March 25, 2002 4:24 PM > > Subject: Re: [Xdoclet-devel] CVS update: > > xdoclet/core/resources/xdoclet/web/vendor struts_config_xml.j > > > > > > > Will this work with pre-1.1beta Struts also? > > > > > > I don't personally need it, but one major issue I see with XDoclet > > templates > > > is making sure that backwards compatibility is maintained and that > changes > > > to support new things don't break folks that are not upgrading to the > > latest > > > libraries all the time. > > > > > > But, that being said, nice job keeping up with the new Struts stuff! > > > > > > Erik > > > > > > ----- Original Message ----- > > > From: "Mathias Bogaert" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Monday, March 25, 2002 9:17 AM > > > Subject: [Xdoclet-devel] CVS update: > > > xdoclet/core/resources/xdoclet/web/vendor struts_config_xml.j > > > > > > > > > > User: pathoss > > > > Date: 02/03/25 06:17:08 > > > > > > > > Modified: core/resources/xdoclet/web/vendor struts_config_xml.j > > > > Log: > > > > Added support for Declarative Exception Handling (struts 1.1 beta). > > > > > > > > Revision Changes Path > > > > 1.13 +13 -0 > > > xdoclet/core/resources/xdoclet/web/vendor/struts_config_xml.j > > > > > > > > Index: struts_config_xml.j > > > > =================================================================== > > > > RCS file: > > > > > > /cvsroot/xdoclet/xdoclet/core/resources/xdoclet/web/vendor/struts_config_xml > > > .j,v > > > > retrieving revision 1.12 > > > > retrieving revision 1.13 > > > > diff -u -w -r1.12 -r1.13 > > > > --- struts_config_xml.j 2 Jan 2002 23:11:25 -0000 1.12 > > > > +++ struts_config_xml.j 25 Mar 2002 14:17:08 -0000 1.13 > > > > @@ -26,6 +26,14 @@ > > > > --> > > > > </XDtMerge:merge> > > > > > > > > + <!-- ========== Global Exception Definitions > > > ============================== --> > > > > + <XDtMerge:merge file="global-exceptions.xml"> > > > > + <!-- > > > > + Define your exceptions in a file called global-exceptions.xml > and > > > place > > > > + it in your merge directory. > > > > + --> > > > > + </XDtMerge:merge> > > > > + > > > > <!-- ========== Action Mapping Definitions > > > ============================== --> > > > > <action-mappings> > > > > <XDtClass:forAllClasses type="org.apache.struts.action.Action"> > > > > @@ -53,6 +61,11 @@ > > > > <forward name="<XDtClass:classTagValue > > > tagName="struts:action-forward" paramName="name"/>" > > > > path="<XDtClass:classTagValue > > > tagName="struts:action-forward" paramName="path"/>"> > > > > </forward> > > > > + </XDtClass:forAllClassTags> > > > > + <XDtClass:forAllClassTags tagName="struts:exception"> > > > > + <exception key="<XDtClass:classTagValue > > > tagName="struts:exception" paramName="key"/>" > > > > + type="<XDtClass:classTagValue > > > tagName="struts:exception" paramName="type"/>" > > > > + path="<XDtClass:classTagValue > > > tagName="struts:exception" paramName="path"/>"/> > > > > </XDtClass:forAllClassTags> > > > > </action> > > > > </XDtClass:forAllClassTags> > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > Xdoclet-devel mailing list > > > > [EMAIL PROTECTED] > > > > https://lists.sourceforge.net/lists/listinfo/xdoclet-devel > > > > > > > > > > > > > > > > _______________________________________________ Xdoclet-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
