struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ginu george <g...@software.ramapuram.in>
Subject Re: Validation Problem
Date Tue, 11 Dec 2007 07:26:00 GMT
This are the two Fields get validated
<s:textfield key="externalPosting.amount.amount" required="true"
cssClass="text medium" />
<s:textfield
id="postingAppDate"key="externalPosting.postingApplicationDate"
required="true" cssClass="text medium" />

Field which are not getting Validated


<s:textfield key="externalPosting.externalPostingName" required="true"
cssClass="text medium" /><!--As Ex:Posting Details-->
    <s:textfield key="externalPosting.externalPostingUserName"
required="true" cssClass="text medium" />
    <s:textfield key="externalPosting.billReferenceNumber"
required="true" cssClass="text medium" />


Ginu


On Tue, 2007-12-11 at 11:30 +0530, Arpan Debroy wrote:
> Which are the two fields are getting validated and which are not..
> 
> On Dec 11, 2007 10:17 AM, <ginu@software.ramapuram.in> wrote:
> 
> > 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
> >
> >
> 
> 


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


Mime
View raw message