struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vijaykumar <Vijaystr...@netscape.net>
Subject Re: Struts Validator with Indexed Properties
Date Mon, 03 Nov 2003 12:25:24 GMT
Hi Frederic,

I thing in validation.xml u must provide your setting as

<field
    property="orderNumber"
    indexedListProperty="parameter"
    depends="required,integer,positive">
    <arg0 key="rubis.strategy.label"/>
</field>

You have specified it as
    indexedListProperty="parameters"

Plz Verify your validation.xml.

-Vijay


Frederic Dernbach wrote:

>I would like to know how to use the Struts Validator with indexed
>properties.
>
>I cannot display error messages under the field (but the validator
>obviously works and performs validation). 
>
>Below is the relevant parts of my JSP and of my valdiation.xml file :
>Upon submission of the JSP's form, I can see the validator does not
>validate the 'orderNumber' property if it is empty. But no error
>messages is displayed.
>
>Can an error message be displayed under the input field if the property
>being validated is indexed ?
>
>Fred
>
>
>**** JSP ****
><table>
>    <th align="center">
>    <bean:message key="rubis.strategy.parameters.orderNumber"/>
>    </th>
>.../...                     
>    <logic:iterate  name="strategyForm"
>            property="parameters"
>            id="parameter" 
>            type="com.rubis.web.system.bean.ParamInterfaceElementBean">
>        <tr>
>        <td align="center">
>            <html:text  name="parameter"
>                    property="orderNumber"
>                    indexed="true"/>
>        </td>
>        .../...
>        </tr>       
>    </logic:iterate>
></table>
>
>**** validation.xml ****
><field
>    property="orderNumber"
>    indexedListProperty="parameters"
>    depends="required,integer,positive">
>    <arg0 key="rubis.strategy.label"/>
></field>
>
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>  
>

-- 
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with Shop@Netscape! 
http://shopnow.netscape.com/



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message