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

Make interceptor parameters dynamic

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.5.10
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: