struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorge Martín Cuervo <jorge.mar...@defactops.com>
Subject Re: Validator FRamework
Date Tue, 05 Sep 2006 15:01:07 GMT
ups, sorry i thought you were using dinaform

sorry

El mar, 05 de 09 de 2006 a las 13:13, Jorge Martín Cuervo escribió:

> hi
> 
> why you use
> com.hns.nme.frontend.apps.cmdexecution.form.SelectCommandForm instead
> java.lang.String in form-bean type?
> 
> El mar, 05 de 09 de 2006 a las 10:48, sheetal escribió:
> 
> > Hi All,
> > I had problem..
> > I am trying to implement client side validation  using Validator  FRamework.
> > I have added validator-rules.xml,  and validation.xml, in my web -inf file.
> > And made following entry in validation.xml
> > <formset>
> > 
> >         <form name="runCommandForm">
> > 
> >             <field property="commandId"
> >                     depends="required">
> >              <arg0   key="cmdView.errors.required" />
> >             </field>
> >                   
> >         </form>
> >     
> >   </formset>
> > 
> > i have also added added an entry in struts config.xml.
> > <struts-config>
> >   <data-sources />
> >   <form-beans >
> >     <form-bean name="selectCommandForm" 
> > type="com.hns.nme.frontend.apps.cmdexecution.form.SelectCommandForm" />
> >     <form-bean name="runCommandForm" 
> > type="com.hns.nme.frontend.apps.cmdexecution.form.RunCommandForm" />
> >     </form-beans>
> > 
> >   <global-exceptions />
> >   <global-forwards />
> >   <action-mappings>
> >     <action  path="/selectCommand"
> >       
> > type="com.hns.nme.frontend.apps.cmdexecution.action.SelectCommandAction"
> >       scope="request">
> >       <forward name="success" path="/JSP/RunCommand.jsp" />
> >       <forward name="failure" path="/JSP/Error.jsp" />
> >     </action>
> >    
> >     <action  path="/runCommand"
> >       type="com.hns.nme.frontend.apps.cmdexecution.action.RunCommandAction"
> >       input="/JSP/RunCommand.jsp"
> >       attribute="runCommandForm"
> >       name="runCommandForm"
> >       scope="request">
> >       <forward name="success" path="/selectCommand.do" />
> >       <forward name="failure" path="/selectCommand.do" />
> >     </action>
> >    
> >    </action-mappings>
> > 
> >   <message-resources 
> > parameter="com.hns.nme.frontend.apps.cmdexecution.ApplicationResources" />
> >  
> >   <!-- Validator Configuration -->
> >     <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
> >       <set-property property="pathnames"
> >                
> > value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
> >     </plug-in>
> >  
> > </struts-config>
> > 
> > Extended my form class  from ValidatorActionForm.
> > AND iN JSP PAGE i HAVE ADDED
> > <html:form   action="runCommand"   onsubmit="return 
> > validateRunCommandForm(this);"
> > also..
> > 
> > Still it's not working..
> > 
> > Can anybody help  me out..
> > 
> > 
> > Thanks
> > 
> > Regards,
> > Sheetal
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> > 

-- 
;-)
____________________________________
Jorge Martin Cuervo
Analista Programador

Outsourcing Emarketplace
deFacto Powered by Standards

email <jorge.martin@defactops.com>
voz +34 985 129 820
voz +34 660 026 384
____________________________________

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message