Hi,
For the dot 1, you can put a hidden field in the form to indicate waht type of validation you have to use. In the method validate of the ActionForm, you will choice the fields you need validate depending hidden field's value. I hope help you |---------+----------------------------> | | Rafael Taboada | | | <kaliman.forever@| | | gmail.com> | | | | | | 15/07/2005 10:14 | | | Please respond to| | | "Struts Users | | | Mailing List" | | | | | | | | | | | | | |---------+----------------------------> >------------------------------------------------------------------------------------------------------------------------------| | | | To: Struts List <user@struts.apache.org> | | cc: | | bcc: | | Subject: Some advice | >------------------------------------------------------------------------------------------------------------------------------| Hi folks. I'm refining my project. I need to solve some inconveniences. 1)In my validation, all work fine. But I have an action class for an actionform. This action class extends dispatchaction because in my jsp i have several buttons in order to submit something. My doubt is if there is some way to validate only some fields. Because I want that 'search method' validate only username and date fields, and 'drope method' validate only chkBills field... How can I do that? I tried to use ValidatorActionForm instead of ValidatorForm but it's the same because I have only one Action and inside all my methods. 2)When I want to fill some fields in a 'mother jsp' I use a 'child jsp', this child search data from database and when I submit 'select button', it closes itself and fill some fields of the mother jsp. But of course I don't want the user modify those fields because it's only information. Those fields are specified as: <html:text maxlength="50" property="strRazonSocial" size="50" styleClass="Form" /> How can I disable this field in order to the user can't modify it?. I tried with 'disabled' option but I need this field in order to save this information and when I use 'disabled="true"' there is an error because it can't find that field. I tried to use html:hidden with write option but it doesn't show the data... Thanks in advance for ur help. -- Rafael Taboada Software Engineer Cell : +511-97753290 "No creo en el destino pues no me gusta tener la idea de controlar mi vida" --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]