struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@software.ramapuram.in
Subject Re: Validation Problem
Date Tue, 11 Dec 2007 04:47:54 GMT
iam using struts2 iam getting a validation Problem
All the fields get Validated while using the get method for a particular
action while using the post method (using  5 Fields)only two fields get
validated



In jsp

   <s:textfield key="externalPosting.externalPostingName" required="true"
cssClass="text medium" />
    <s:textfield key="externalPosting.externalPostingUserName"
required="true" cssClass="text medium" />
    <s:textfield key="externalPosting.billReferenceNumber" required="true"
cssClass="text medium" />


in validation.xml


 <field name="externalPosting.externalPostingName">
         <field-validator type="required">
             <message key="errors.required"/>
         </field-validator>
     </field>
    <field name="externalPosting.externalPostingUserName">
         <field-validator type="required">
             <message key="errors.required"/>
         </field-validator>
     </field>
    <field name="externalPosting.billReferenceNumber">
         <field-validator type="required">
             <message key="errors.required"/>
         </field-validator>
     </field>

in struts.xml
 <action name="addExternalPosting" class="addExternalPostingAction"
method="execute">
             <result>/WEB-INF/pages/folio/folioSpecificPostingListPage.jsp</result>
             <result
name="input">/WEB-INF/pages/folio/externalPosting.jsp</result>
        </action>

Ginu
















 Please put some more inputs.
>
> On Dec 8, 2007 12:40 PM, <ginu@software.ramapuram.in> wrote:
>
>>
>>
>> Hi all
>>
>> iam using struts2 iam getting a validation Problem
>> All the fields get Validated while using the get method for a particular
>> action while using the post method only two fields get validated
>>
>> Ginu
>>
>> ---------------------------------------------------------------------
>>

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


Mime
View raw message