How do I add, into a merge file, my existing validation rules? I want to start using these, but I have existing ones I need to keep as well...
-----Original Message----- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Monday, May 24, 2004 2:01 PM To: [EMAIL PROTECTED] Subject: [Xdoclet-user] Re: Generating a maxlength validation rule for Struts Nevermind, I figured it out: * @struts.validator type="maxlength" arg1value="${var:maxlength}" * @struts.validator-var name="maxlength" value="2000" On May 24, 2004, at 2:17 PM, Matt Raible wrote: > I'm trying to generate the following validation rule: > > <field property="name" depends="maxlength"> > <arg0 key="customer.name"/> > <arg1 name="maxlength" key="${var:maxlength}" > resource="false"/> > > <var><var-name>maxlength</var-name><var-value>30</var-value></var> > </field> > > Here's my XDoclet tags: > > * @struts.validator type="maxlength" > * arg1value="maxlength" arg1key="${var:maxlength}" > * @struts.validator-var name="maxlength" value="30" > > And I end up with: > > <field property="name" > depends="maxlength"> > > <arg0 key="customer.name"/> > <arg1 > name="maxlength" > key="maxlength" > resource="false" > /> > <arg1 > name="maxlength" > key="${var:maxlength}" > /> > <var> > <var-name>maxlength</var-name> > <var-value>2000</var-value> > </var> > </field> > > Any ideas how to fix this? > > Thanks, > > Matt > ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user