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 <laiqi...@gmail.com>: > > 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! > > > > <field name="birth"> > > <field-validator type="date"> > > <param name="min">1900-01-01</param> > > <param name="max">${current Date}</param> > > <message>your birthday shall be ${min}---${max}</message> > > </field-validator> > > </field> > > > > Regards, > > Mead > > > > > > On Thu, Nov 18, 2010 at 8:04 PM, Dave Newton <davelnew...@gmail.com> wrote: > > > >> Dave > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org >