Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4687

Make interceptor parameters dynamic

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.10
    • Component/s: None
    • Labels:
      None

      Description

      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:

       <interceptor-ref name="fileUpload">
          	<paramame="maximumSize">200000</param>				                          
              <param name="allowedTypes">text/plain</param>
          	 <param name="allowedExtensions">txt</param> 
         	</interceptor-ref>
      

      Is it possible to make these parameters dynamic !? For example

          <param name="maximumSize">${maxsize}</param>	
      

      and let the action set its max file size.

        Attachments

          Activity

            People

            • Assignee:
              lukaszlenart Lukasz Lenart
              Reporter:
              afattahi Alireza Fattahi
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: