Re: Problem with Validation framework

2008-04-24 Thread Lukasz Lenart
>  class="com.intuit.sbfw.action.mc.UserLookupAction">


UserLookupAction-validation.xml is in the same path as class above?


> 2) I see this message when I invoke my very first action: INFO
>  [ActionValidatorManagerFactory] Detected AnnotationActionValidatorManager,
> initializing it...
> Does this mean that I have to use Annotation only to configure the
> validation rules and I cannot use the xml approach?


No, you can, but you can also use in the same time xml base validation


> 3) What could be wrong with my setup so that my validation classes are not
> working?
>

Check if xml file is in the same path when you deploy your application. Do
you use maven2?


Regards
-- 
Lukasz

http://www.linkedin.com/in/lukaszlenart


RE: Problem with Validation framework

2008-04-24 Thread Sanjeewa Saman
HI
I hope that this will help you 

http://struts2issues.blogspot.com/

BR,
sanj
-Original Message-
From: Pranav [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 24, 2008 6:32 AM
To: user@struts.apache.org
Subject: Problem with Validation framework

Hi All,

I am having a problem with validation framework. This is the first time I am
trying to use struts2 validation. Here's different code pieces that I have.

 UserLookupAction-validation.xml




   You must enter a value for Member ID.
   
   
 20
 
 Member ID cannot contain more than 20 characters
   
 




### finduser.jsp


  
  
   
   
Find user record by Member ID: 


   
   
  
  initial
content
  

## struts.xml


  /html/finduser.jsp
   /html/finduserResult.jsp



Notes:
1) My package extends from struts-default and so I am using the
defaultStack.
2) My Action class UserLookupAction extends from ActionSupport class.

Questions:
1) I am not seeing any validation error even when i leave the memberId as
blank. The log file does not say anything at all. Is it because I am using
theme as "ajax"?
2) I see this message when I invoke my very first action: INFO
[ActionValidatorManagerFactory] Detected AnnotationActionValidatorManager,
initializing it...
Does this mean that I have to use Annotation only to configure the
validation rules and I cannot use the xml approach?
3) What could be wrong with my setup so that my validation classes are not
working?

Thanks
Pranav




 


Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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



Problem with Validation framework

2008-04-23 Thread Pranav
Hi All,

I am having a problem with validation framework. This is the first time I am 
trying to use struts2 validation. Here's different code pieces that I have.

 UserLookupAction-validation.xml




   You must enter a value for Member ID.
   
   
 20
 
 Member ID cannot contain more than 20 characters
   
 




### finduser.jsp


  
  
   
   
Find user record by Member ID: 


   
   
  
  initial 
content
  

## struts.xml


  /html/finduser.jsp
   /html/finduserResult.jsp



Notes:
1) My package extends from struts-default and so I am using the defaultStack.
2) My Action class UserLookupAction extends from ActionSupport class.

Questions:
1) I am not seeing any validation error even when i leave the memberId as 
blank. The log file does not say anything at all. Is it because I am using 
theme as "ajax"?
2) I see this message when I invoke my very first action: INFO  
[ActionValidatorManagerFactory] Detected AnnotationActionValidatorManager, 
initializing it...
Does this mean that I have to use Annotation only to configure the validation 
rules and I cannot use the xml approach?
3) What could be wrong with my setup so that my validation classes are not 
working?

Thanks
Pranav




  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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