Michael, it didn't work.. My ActionMapping is: <action path="/Colores" parameter="method" type=" com.sancristobal.Actions.ColorAction" name="colorForm" input="/pages/Colores.jsp" scope="request" validate="false"></action> My ActionForm is: public class ColorForm extends ValidatorForm { private String strFiltroDescripcion; private List lstResultado; private String idColor; private String strDescripcion; private String[] chkColores; ... // Each attribute has its getter and setter } My Action class is: public class ColorAction extends DispatchAction { public ActionForward buscarColor(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { ColorForm colorForm = (ColorForm) form; MySQLDAOFactory factory = new MySQLDAOFactory(); DataSource ds = getDataSource(request,Constantes.DATASOURCEKEY); Connection conn = ds.getConnection(); Collection collResultado;
try { ColorDAO colorDAO = factory.getColorDAO(conn); colorForm.validate(mapping,request); collResultado = colorDAO.findColorByDescripcion( colorForm.getstrFiltroDescripcion()); } finally { conn.close(); } colorForm.setlstResultado(collResultado); return mapping.getInputForward(); } ....... //There are other methods } My jsp is: <html:errors/> <html:form action="/Colores?method=buscarColor" focus="strFiltroDescripcion" method="post"> <tr class="RowHeight25Left"> <td width="20%"><bean:message key="Colores.filtredescripcion" /></td> <td width="80%"> <html:text maxlength="50" property="strFiltroDescripcion" size="50" styleClass="Form" /> <html:submit styleClass="Form"> <bean:message key="Colores.boton.buscar" /> </html:submit> </td> </tr> </html:form> .... then it has logic:iterate in order to show search result.. And my validator is: <form name="colorForm"> <field property="strFiltroDescripcion" depends="required"> <arg0 key="Colores.error.strFiltroDescripcion" /> </field> </form> So, what is wrong???? I tried to use ValidatorActionForm instead of ValidatorForm... And of course in my validator call my actionmapping like: "/Colores", "/Colores?method=buscarColor"... But it doesn't work too... How can I do???... THanks in advance... When I turned off validate attribute... It doesn't validate anything... I'm calling validate method in my action class but it doesn't work... Qny suggestion??? -- Rafael Taboada Software Engineer Cell : +511-97753290 "No creo en el destino pues no me gusta tener la idea de controlar mi vida"