Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8719095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:42:30+00:00 2026-06-13T06:42:30+00:00

I have a problem with Struts 2 and its file upload interceptor. It is

  • 0

I have a problem with Struts 2 and its file upload interceptor. It is have validated my content type and my file size, but the upload process dont stop.
Example my upload limit is 2Mb and user send a file with 500MB, the interceptor struts 2 log that file is too larger, but continue upload file

I’d like to stop the upload process, in error case, beacuse the struts2 have returned to my page only when the sending file is finished.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T06:42:31+00:00Added an answer on June 13, 2026 at 6:42 am

    You can’t in Struts – since Struts doesn’t get hold of the response object until your servlet container has finished processing it.

    However – most containers have a means of controlling upload file sizes and, for tomcat, this is the maxPostSize parameter (default is 2GB) – as far as I can tell tomcat will count the number of incoming bytes and then exit if this value is exceeded. i.e Tomcat will not continue reading past maxPostSize. Other containers will have similair configuration parameters. I’ve never used it so I can’t be of any further help here.

    If you have nested containers/serves (for example, tomcat sitting behind Apache Web Server) make sure you configure the right one

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have problem with TableView its empty. In (.h) file: @interface TableViewController : UITableViewController{
I am using Struts and Java. The problem is that I have a page
I have problem SIMILAR to preventing form data reposting, but not quite the same
I have problem on processing input request parameter (of course it's type String) to
I have a very annoying problem with Struts. The input page is located under
i have a problem and i think the solution might be pretty easy but
I am creating a project with struts and I have a problem using Jasper
Its late and im tired, but this problem is bugging me like crazy. I
I really have no problem with SDL in C , but it's kind of
I have a problem calling EJB object in struts action. I deployed my application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.