Re: struts2.1 validation problem! with "fileUploadStack"

2010-11-17 Thread Mead Lai
While, I add the default interceptor into that action, everything work fine. But I am also do not know why,Ha ha... Thank you, all... Regards, Mead On Thu, Nov 18, 2010 at 2:19 PM, Mead Lai wrote: > interceptor

Re: struts2.1 validation problem! with "fileUploadStack"

2010-11-18 Thread Dave Newton
Because ofnyou define an interceptor (stack) for an action it will be the *only* interceptor (stack) for that action. So it doesn't work until you add the defaultStack because it doesn't have the defaultStack until you add it. Dave On Thursday, November 18, 2010, Mead Lai wrote: > While, I add t

Re: struts2.1 validation problem! with "fileUploadStack"

2010-11-18 Thread Mead Lai
Thank you, Dave. Your explain is helpful for me to understand it. I want to validate the birthday in struts2 validation.xml, The range of date is between 1900-01-01 and current Date. How to get current date time in the struts2 validation.xml,? Thanks! 1900-01-01 ${current Date} your birthday s

Re: struts2.1 validation problem! with "fileUploadStack"

2010-11-19 Thread Maurizio Cucchiara
Did you try something like this http://struts.apache.org/2.2.1/docs/date-validator.html ? 2010/11/19 Mead Lai > Thank you, Dave. > Your explain is helpful for me to understand it. > > I want to validate the birthday in struts2 validation.xml, > The range of date is between 1900-01-01 and current

Re: struts2.1 validation problem! with "fileUploadStack"

2010-11-19 Thread Li Ying
Maybe you can add a property in your action which return the current date. And reference this property in your validation configuration. Or create a Static method in an Utility class, return return the current date, And reference this property in your validation configuration. If both of these do

RE: struts2.1 validation problem! with "fileUploadStack"

2010-11-19 Thread Martin Gainty
Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > Date: Fri, 19 Nov 2010 22:55:42 +0900 > Subject: Re: struts2.1 validation problem! with "fileUploadStack" >

Re: struts2.1 validation problem! with "fileUploadStack"

2010-11-19 Thread Mead Lai
---Maybe you can add a property in your action which return the current ---date. And reference this property in your validation configuration. You mean, I shall add a property in the request-Scope, then retrieve it by EL expression? I will have a try, Thank you. Regards, Mead On Fri, Nov 19, 20