struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Benedict" <pbened...@apache.org>
Subject Re: pls help: struts 1.x /dynaValidatorForm/String[] type
Date Mon, 10 Sep 2007 04:53:33 GMT
You need to allocate array space. For example, add an initial="20" attribute
to the property.

On 9/9/07, john lee <sh_thorn_bird@yahoo.com> wrote:
>
> Any expert can give me your hands?
>
>   i have an DynaValidatorFrom as following:
>
>   inside struts-config.xml
>
>   <form-bean name="qtyform' type="
> org.apache.struts.action.DynaValidatorform>
>        <forn-property name="qty" type"java.lang.String[] "/>
>   </form-ban>
>
>   inside validation.xml
>
>   <form name="qtyform">
>     <field property="qty" depends="required,integer">
>       <arg position="0"  key="lable.qty" />
>    </field>
>   </form>
>
>   But, the execution give me the error message for null point exception.
> All the examples i could find is demonstrate how to use
> DynaValidatorform/String, for my case, i want to use
> DynaValidatorform/String[], how can i do it?
>
>   tks in advance
>
>   john
>
>
>
>
>
>
> ---------------------------------
> Boardwalk for $500? In 2007? Ha!
> Play Monopoly Here and Now (it's updated for today's economy) at Yahoo!
> Games.

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