Which validators you used for the two fields, which are getting validated
rightly?
I am facing similar situation that whenever you use "required" validator,
it'll not work.
So for the string field you have to use "requiredstring" validator.
For number, specially which have "long" data type, I am not sure how to
validate for empty field.

On Dec 11, 2007 12:56 PM, ginu george <[EMAIL PROTECTED]> wrote:

> 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, <[EMAIL PROTECTED]> 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, <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Thanks & Regards
 Arpan Debroy

AOL Online India Private Ltd
RMZ EcoSpace Campus 1A
Outer Ring Road, Bellandur,
Bangalore - 560037
India
Mobile No :+9886006306
on-board :+91 (80) 4035 4528
E-mail : [EMAIL PROTECTED]

Reply via email to