Hello all,
I am now using struts2 "UserInfoAction-doModify-validation.xml" to validate
my form input. It is work fine.
but when I add a interceptor into this action, the validation not work
anymore.
/WEB-INF/pages/usermanage/modifyUser.jsp
IndexAction_search
Does anyone get th
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
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
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
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
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
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"
>
---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
8 matches
Mail list logo