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, 2010 at 9:55 PM, Li Ying  wrote:

> 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 don't work, you have to implement your check by a
> validate method in your action.
>
>
> 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 Date.
> > How to get current date time in the struts2 validation.xml,?
> > Thanks!
> >
> > 
> > 
> > 1900-01-01
> > ${current Date}
> > your birthday  shall be ${min}---${max}
> > 
> > 
> >
> > Regards,
> > Mead
> >
> >
> > On Thu, Nov 18, 2010 at 8:04 PM, Dave Newton 
> wrote:
> >
> >> Dave
> >
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


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

2010-11-19 Thread Martin Gainty

you need to first grant the desired permission (on the resource) otherwise 
SecurityManager will toss an error when performing an I/O operation
on that resource
http://download.oracle.com/javase/6/docs/api/java/lang/SecurityManager.html
 
Regards
Martin 
__ 
Verzicht und Vertraulichkeitanmerkung

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von 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"
> From: liying.cn.2...@gmail.com
> To: user@struts.apache.org
> 
> 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 don't work, you have to implement your check by a
> validate method in your action.
> 
> 
> 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 Date.
> > How to get current date time in the struts2 validation.xml,?
> > Thanks!
> >
> > 
> > 
> > 1900-01-01
> > ${current Date}
> > your birthday  shall be ${min}---${max}
> > 
> > 
> >
> > Regards,
> > Mead
> >
> >
> > On Thu, Nov 18, 2010 at 8:04 PM, Dave Newton  wrote:
> >
> >> Dave
> >
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
  

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 don't work, you have to implement your check by a
validate method in your action.


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 Date.
> How to get current date time in the struts2 validation.xml,?
> Thanks!
>
> 
> 
> 1900-01-01
> ${current Date}
> your birthday  shall be ${min}---${max}
> 
> 
>
> Regards,
> Mead
>
>
> On Thu, Nov 18, 2010 at 8:04 PM, Dave Newton  wrote:
>
>> Dave
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 Date.
> How to get current date time in the struts2 validation.xml,?
> Thanks!
>
> 
> 
> 1900-01-01
> ${current Date}
> your birthday  shall be ${min}---${max}
> 
> 
>
> Regards,
> Mead
>
>
> On Thu, Nov 18, 2010 at 8:04 PM, Dave Newton 
> wrote:
>
> > Dave
>



-- 
Maurizio Cucchiara


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  shall be ${min}---${max}



Regards,
Mead


On Thu, Nov 18, 2010 at 8:04 PM, Dave Newton  wrote:

> Dave


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

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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


struts2.1 validation problem! with "fileUploadStack"

2010-11-17 Thread Mead Lai
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 this bug before?
Thank you in advance...

Regards,
Mead