--- Renato Duarte Soffiatto
<[EMAIL PROTECTED]> wrote:

> Oh, I see... my bad.
> But using <root> doesn't work either. The <root> is
> copied with the 
> <plug-in> tag, so I get:
> <struts-config>
>     ...
>     <root>
>        <plug-in>
>        </plug-in>
>        <plug-in>
>        </plug-in>
>     </root>
> </struts-config>
> 
> which, as expected, doesn't validate against the
> dtd...


OK, I was able to achieve this:
<struts-config>
  <form-beans>
    <form-bean name="/simpleDynaForm"
type="org.apache.struts.validator.DynaValidatorForm"
validate="true">
      <form-property name="defaultField"
type="java.lang.Integer"/>
      <form-property name="fieldWithName"
type="java.a.Type"/>
      <form-property name="unamedField"
type="java.lang.String"/>
    </form-bean>
    <form-bean name="/inherited-form"
type="org.xdoclet.plugin.struts.complete.InheritedForm"
extends="org.xdoclet.plugin.struts.complete.SimpleForm"/>
    <form-bean name="/simpleForm"
type="org.xdoclet.plugin.struts.complete.SimpleForm"/>
    <form-bean name="/simpleValidatorForm"
type="org.xdoclet.plugin.struts.complete.SimpleValidatorForm"/>
    <form-bean name="/simpleValidatorFormWithNoField"
type="org.xdoclet.plugin.struts.complete.SimpleValidatorFormWithNoFields"/>
  </form-beans>
  <action-mappings>
    <action name="/simpleAction"
roles="foo,bar,baz,blurge"
type="org.xdoclet.plugin.struts.complete.SimpleAction"
validate="true" parameter="glarch" scope="request"
path="/simpleAction">
      <exception key="aKey" type="java.a.Type"
path="error.jsp"/>
      <set-property value="aValue"
property="aProperty"/>
      <forward name="success" path="success.jsp"/>
      <forward name="input" path="input.jsp"/>
    </action>
  </action-mappings>
  <struts-plugin name="goo gaa"></struts-plugin>
  <struts-plugin name="vlem vmal"></struts-plugin>
</struts-config>


Is it that what you like? 
( I myself do not use struts anymore since 2001, so
forgive me my ignorance of DTD ;) I'll have to look it
up. ) 

I could commit it really soon to CVS.


----[ Konstantin Pribluda ( ko5tik ) ]----------------
... Auf der Suche nach einen Projekt in Rhein-Main
ab 18.4.2005
----[ http://www.pribluda.de ]------------------------


                
____________________________________________________ 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
xdoclet-plugins-interest mailing list
xdoclet-plugins-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest

Reply via email to