[ 
https://issues.apache.org/jira/browse/WW-4687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15811183#comment-15811183
 ] 

Hudson commented on WW-4687:
----------------------------

SUCCESS: Integrated in Jenkins build Struts-JDK7-master #578 (See 
[https://builds.apache.org/job/Struts-JDK7-master/578/])
WW-4687 Allows define interceptors with dynamic parameters (lukaszlenart: rev 
2b12f06b01f01fb02f4fae0370ae1be48bf81be3)
* (edit) core/src/main/java/com/opensymphony/xwork2/DefaultActionInvocation.java
* (edit) 
core/src/main/java/com/opensymphony/xwork2/factory/DefaultInterceptorFactory.java
* (edit) core/src/test/resources/xwork-test-default.xml
* (edit) 
core/src/main/java/com/opensymphony/xwork2/config/entities/InterceptorMapping.java
* (add) core/src/test/java/com/opensymphony/xwork2/mock/MockLazyInterceptor.java
* (edit) 
core/src/main/java/com/opensymphony/xwork2/config/providers/InterceptorBuilder.java
* (add) 
core/src/main/java/com/opensymphony/xwork2/interceptor/WithLazyParams.java
* (edit) core/src/test/resources/xwork-sample.xml
* (edit) 
core/src/test/java/com/opensymphony/xwork2/DefaultActionInvocationTest.java


> Make interceptor parameters dynamic
> -----------------------------------
>
>                 Key: WW-4687
>                 URL: https://issues.apache.org/jira/browse/WW-4687
>             Project: Struts 2
>          Issue Type: Improvement
>            Reporter: Alireza Fattahi
>            Assignee: Lukasz Lenart
>             Fix For: 2.5.next
>
>
> In a struts 2 application ... we use `fileUpload` interceptor to get file 
> from user.
> The `fileUpload`  has some configurations `maximumSize` , `allowedTypes` , 
> `allowedExtensions` that can be used as:
> {code}
>  <interceptor-ref name="fileUpload">
>       <paramame="maximumSize">200000</param>                                  
>                   
>         <param name="allowedTypes">text/plain</param>
>        <param name="allowedExtensions">txt</param> 
>       </interceptor-ref>
> {code}
> Is it possible to make these parameters dynamic !? For example 
> {code}
>     <param name="maximumSize">${maxsize}</param>      
> {code}
> and let the action set its max file size.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to