Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Struts File Upload Issue

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a query regarding file upload functionality in Struts. I am having a screen from where I can upload multiple files. When files are browsed and submit button is clicked, it will first hit a filter, validate the user and calls the action method where uploading the files to the repository is done. It happens fine normally. But rarely when submit is clicked in UI, it goes to the filter, validates the user and doesn’t call the action method. It fails somewhere between the filter and the action class. It doesn’t throw any exceptions from the framework too.

First we thought, it happens when big files are uploaded. Then we found even for small files, this happens occasionally. Below is the JRE details being used.
Java version = J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223ifx-20080811 (JIT enabled)

I couldn’t figure out why this is happening. Any suggestion regarding this is most welcome.

Thanks in advance,
Vijay S
 
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you working with struts 1 or struts2. You can specify allowed file size and post the what is the exception you are getting.
 
VijayaRajan SuruliRajan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using Struts 2+ and I dont get any exceptions. Also the user validation is successful. But it goes to 'Page Cannot Be Found'.
 
This looks like a job for .... legal tender! It says so right in this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic