extend user actionform with validationform then write validations in validation.xml like
<formset> <form name="employeeForm"> <field property="username" depends="required,maxlength"> <arg0 key="profile.username"/> <arg1 key="${var:maxlength}" name="maxlength" resource="false"/> <arg1 key="${var:minlength}" name="minlength" resource="false"/> <var> <var-name>maxlength</var-name> <var-value>15</var-value> </var> </field> </form> </formset> dont forgot to plugin this validator.xml in ur struts-config.xml file best luck Regards Nishant Patil Software Engineer Cybage Softwares Pvt. Ltd. (A CMM Level 3 Company) West Avenue, Kalyaninagar Pune - 411006 Ph. +91-20-4044700/4041700 Extn 355 [EMAIL PROTECTED] www.cybage.com "There is difference between knowing the Path and walking on the Path" ----- Original Message ----- From: "John Williams" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 25, 2004 2:21 PM Subject: Implementing using multiple text area using struts > > I am newbie in struts. Using struts I want to get the user input for phone > numbers in > 3-3-4 format. So there will be 3 text area, the 1st and 2nd text area > accepting only > 3 numbers and the 3rd text area accepting 4 numbers. > > I have implemented it as: > <html:text property="MyPhoneNo" styleId="MyPhoneNo"/> > However this has only 1 text area and the phone number is validated using > xdoclet. > > How can I implement it using 3 text area. Also with implementation done > using 3 text > area, iis there a way to get the phone number in one shot than getting the 3 > pieces > individually and merging it?. > > Thanks for the help in advance. > > John > > _________________________________________________________________ > On the road to retirement? Check out MSN Life Events for advice on how to > get there! http://lifeevents.msn.com/category.aspx?cid=Retirement > > > --------------------------------------------------------------------- > 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]