struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4687) Make interceptor parameters dynamic
Date Mon, 09 Jan 2017 09:08:58 GMT

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

ASF subversion and git services commented on WW-4687:
-----------------------------------------------------

Commit 2b12f06b01f01fb02f4fae0370ae1be48bf81be3 in struts's branch refs/heads/master from
[~lukaszlenart]
[ https://git-wip-us.apache.org/repos/asf?p=struts.git;h=2b12f06 ]

WW-4687 Allows define interceptors with dynamic parameters


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

Mime
View raw message