I have a single form bean (it's a subclass of
org.apache.struts.validator.ValidatorActionForm) that is used by several
different actions. Since my form bean is a ValidatorActionForm, the
'name' attribute of the respective <form> element in validation.xml
should be the path and not the name. The
xdoclet.modules.apache.struts.StrutsValidatorTagsHandler class takes
care of this via its formName(Properties attributes) method. However,
I'm only able to generate a single <form> element in validation.xml
using:

/**
 * @struts.form name="fooForm" path="/foo"
 */
public class FooForm extends ValidatorActionForm
{
        private String bar;

        public String getBar()
        {
                return bar;
        }
        
        /**
         * @struts.validator type="required"
         */
        public void setBar(String bar)
        {
                this.bar = bar;
        }
}

validation.xml:

<formset>
        <form name="/foo">
                <field property="bar" depends="required">
                        <arg0 key="fooForm.bar"/>
                </field>
        </form>
</formset>
_______________________

I really need the following in my validation.xml:

<formset>
        <form name="/foo1">
                <field property="bar" depends="required">
                        <arg0 key="fooForm.bar"/>
                </field>
        </form>
        <form name="/foo2">
                <field property="bar" depends="required">
                        <arg0 key="fooForm.bar"/>
                </field>
        </form>
        <form name="/foo3">
                <field property="bar" depends="required">
                        <arg0 key="fooForm.bar"/>
                </field>
        </form>
</formset>

Does anyone know how I can get XDoclet to generate multiple <form>
elements in validation.xml from the same (ValidatorActionForm) form
bean?

Thanks in advance for any suggestions...

-Kelly



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to