1
HTTP Status 404 - No result defined for action com.strutsProject.action.AchievementsAction and result input uploading

Struts2 Action is not call when more than 4 option given for file uploading

<div class="form-group">
       <label for="email" class="col-sm-5 control-label" style=" text-align: left;">Upload Photo</label>
        <div class="col-sm-7">
          <input type="file"class="form-control" data-buttonName="btn-primary"  name="fileUpload7" >
        </div>
      </div>
      <div class="form-group">
       <label for="email" class="col-sm-5 control-label" style=" text-align: left;">Upload Photo</label>
        <div class="col-sm-7">
          <input type="file"class="form-control" data-buttonName="btn-primary"  name="fileUpload7" >
        </div>
      </div>
      <div class="form-group">
       <label for="email" class="col-sm-5 control-label" style=" text-align: left;">Upload Photo</label>
        <div class="col-sm-7">
          <input type="file" class="form-control" data-buttonName="btn-primary"  name="fileUpload7" >
        </div>
      </div>
      <div class="form-group">
       <label for="email" class="col-sm-5 control-label" style=" text-align: left;">Upload Photo</label>
        <div class="col-sm-7">
          <input type="file"class="form-control" data-buttonName="btn-primary"  name="fileUpload7" >
        </div>
      </div>
      <div class="form-group">
       <label for="email" class="col-sm-5 control-label" style=" text-align: left;">Upload Photo</label>
        <div class="col-sm-7">
          <input type="file"class="form-control" data-buttonName="btn-primary" name="fileUpload7" >
        </div>
      </div>
  
Roman C
  • 49,761
  • 33
  • 66
  • 176
Naveen Maurya
  • 197
  • 1
  • 1
  • 10

1 Answers1

1

I found the solution ,i forget to include below part in struts.xml file if you have used below code do not include this(<param name="maximumSize">9097152</param> ) because this will override the below code

<constant name="struts.multipart.maxSize" value="104857600" />
Andrea Ligios
  • 49,480
  • 26
  • 114
  • 243
Naveen Maurya
  • 197
  • 1
  • 1
  • 10
  • There is no "overriding" here. Read more on the two limits mentioned in your question: http://stackoverflow.com/a/16936095/1654265 – Andrea Ligios Jul 16 '15 at 12:23