How to validate MobileNumber using regex Expression

2007-12-12 Thread ginu
iam validating mobile number using the regex Expression
 But even though iam giving a valid number,
its showing invalid number message

field-validator type=fieldexpression
   param name=expression
 
(cityLedger.contactDetails.mobileNumber.matches('^(\?([0-9]{3})?([0-9]{4}|[0-9]{4})$'))
   /param
   message key=errors.phone/
   /field-validator
  /field
Ginu

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validation Problem

2007-12-10 Thread ginu
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]



Re: Validation Problem

2007-12-10 Thread ginu
Hi Jerome,
   I have created a new thread.  I never did reply to any e-mail when
composing this email.  However I did reply to a reply I could have got.
   This problem could have been caused by both the threads having the same
subject.  It is unintentional.
   Ginu.

 [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]




 Hi Ginu, in the future try not to 'hijack' the thread of another user.
 The original poster (Adi) was asking about Struts 1 validation but you
 took over his thread (and subject) to ask about your own struts2
 validation problem, which means Adi's original question is essentially
 lost in the noise.  It's not very courteous to do that.

 Next time, create a new thread by composing a new message instead of
 replying to an existing one.  It also helps to change the subject.

 Thanks,
  Jeromy Evans

 PS. I don't know the answer to Adi's question nor your's.

 -
 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]



Re: Validation Problem

2007-12-10 Thread ginu george
This are the two Fields get validated
s:textfield key=externalPosting.amount.amount required=true
cssClass=text medium /
s:textfield
id=postingAppDatekey=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]



Validation Problem

2007-12-07 Thread ginu


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]