It can be either container upload limitation or the upload library (commons-fileupload) configuration. Or both. Dave On Wed, Nov 10, 2010 at 9:56 AM, Anjib Mulepati wrote: > I am writing file upload application in Struts 1.3.8. The problem I am > having is whenever I have file over 200MB to be upload application doesn't > work properly. I have couple of text field beside files upload and those > field value are shown null if I try to upload file over 200MB. > > JSP File > ---------- > method="post" enctype="multipart/form-data" > >
aria-labelledby="errors" aria-live="assertive">
> > property="trans_name" tabindex="1" size="35" /> >
> > > styleId="recipientsName" property="recpt_name" tabindex="2" cols="75" /> >
> >
> > tabindex="3" size="60" />
> tabindex="4" size="60"/>
> tabindex="5" size="60"/>
> tabindex="6" size="60"/>
>
> > class="submitbutton" tabindex="8" value='' > />
>
> > ActionForm > ---------------- > public class UploadForm extends org.apache.struts.action.ActionForm { > >    private String trans_name; >    private String recpt_name; >   private List testFile; > >    /** >     * >     */ >    public UploadForm() { >        super(); >        testFile = new ArrayList(); >    } > >    public FormFile getTestFile(int i){ >        return (testFile.size() > i) ? (FormFile)testFile.get(i) : null; >    } > >    public List getList(){ >        return testFile; >    } > >    public void setTestFile(int i, FormFile f){ >        if(f.getFileSize() <= 0){ >            f.destroy(); >        }else{ >            testFile.add(f); >        } >    } > >    public int getFileCount(){ >        return testFile.size(); >    } > >    public String getRecpt_name() { >        return recpt_name; >    } > >    public void setRecpt_name(String recpt_name) { >        this.recpt_name = recpt_name; >    } > >    public String getTrans_name() { >        return trans_name; >    } > >    public void setTrans_name(String trans_name) { >        this.trans_name = trans_name; >    } > > > >    /** >     * This is the action called from the Struts framework. >     * @param mapping The ActionMapping used to select this instance. >     * @param request The HTTP Request we are processing. >     * @return set of errors. >     */ >    @Override >    public ActionErrors validate(ActionMapping mapping, HttpServletRequest > request) { >       ActionErrors errors = new ActionErrors(); >        String transactionName = getTrans_name();             // HERE I AM > GETTING NULL IF FILE SIZE IS > 200MB >        String recipientName = getRecpt_name();                // FOR BOTH > transactionName and recipientName. > >        if(transactionName == null){ >            errors.add("error", new ActionMessage("error.transactionName")); >        } >        if(recipientName == null){ >            errors.add("error", new ActionMessage("error.recipientName")); >        } >        return errors; >    } > } > > > Any help will be appreciated. > Anjib > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org