You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by john lee <sh...@yahoo.com> on 2008/01/15 05:13:38 UTC

pls help:

if i specify the following
     ActionErrors errors;
     errors.add("Example", new ActionMessage("error.example"));
     saveErrors(request.errors);
  then i can display the "Example" at the .jsp by 
         <html:errors property="Example">
   
  My puzzle is that 
   i have an the folowing at struts-config.xml
      <form-bean name="qtyform" type="org.apache.struts.validator.DyValidatorForm">
       <forn-property name="qty" type="javalang.String[]/>
     </fom>
   at validation.xml i have
      <form name="qtyform">
         <field property="qty" indexedListProperty="qty" depends="required">
           <arg position="0" key="label.qtyform.qty"/>
         </field>
     </form
  at .jsp file, i have
       <html:text property="qty"/>
   
  after submit, 
      <html:errors/> will generate correct error message,
  but if i specify 
      <html:errors property="qty"/> can not generate any error message, why?
   
  tks in advance for any expert input
   
  john 
      
      

       
---------------------------------
Never miss a thing.   Make Yahoo your homepage.