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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
;-)
____________________________________
Jorge Martin Cuervo
Analista Programador

Outsourcing Emarketplace
deFacto Powered by Standards

email <[EMAIL PROTECTED]>
voz +34 985 129 820
voz +34 660 026 384
____________________________________

Reply via email to