Re: How configure struts2 to get validation rules from Spring via @value

2013-09-20 Thread Lukasz Lenart
2013/9/20 Alireza Fattahi : > Let me ask this way. > In below validation > @IntRangeFieldValidator(type =ValidatorType.FIELD,min ="10" > > is there any way we can read '10' from external resource files ! Directly not, but there is built-in support for expression, so you can use minExpression="${mi

Re: How configure struts2 to get validation rules from Spring via @value

2013-09-20 Thread Alireza Fattahi
Mailing List Sent: Tuesday, 17 September 2013, 12:48 Subject: Re: How configure struts2 to get validation rules from Spring via @value Code formatting? Maybe use some web service to present your code. Does system.properties is defined as a Struts 2 properties file? 2013/9/17 Alireza Fattahi : >

Re: How configure struts2 to get validation rules from Spring via @value

2013-09-20 Thread Alireza Fattahi
Mailing List Sent: Tuesday, 17 September 2013, 12:48 Subject: Re: How configure struts2 to get validation rules from Spring via @value Code formatting? Maybe use some web service to present your code. Does system.properties is defined as a Struts 2 properties file? 2013/9/17 Alireza Fattahi : >

Re: How configure struts2 to get validation rules from Spring via @value

2013-09-17 Thread Lukasz Lenart
Code formatting? Maybe use some web service to present your code. Does system.properties is defined as a Struts 2 properties file? 2013/9/17 Alireza Fattahi : > We are using spring 3 and struts 2. We use spring @value annotation to get > values from property files. > We want to get validation ru

How configure struts2 to get validation rules from Spring via @value

2013-09-17 Thread Alireza Fattahi
We are using spring 3 and struts 2. We use spring @value annotation to get values from property files. We want to get validation rules from property files instead of hard-coding them in action. Here is sample property system.properties transfer.account.min.amount=10 Here is the action: public