aspose file tools*
The moose likes Struts and the fly likes Struts File Upload Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts File Upload Issue" Watch "Struts File Upload Issue" New topic
Author

Struts File Upload Issue

VijayaRajan SuruliRajan
Greenhorn

Joined: May 26, 2011
Posts: 2
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
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

Are you working with struts 1 or struts2. You can specify allowed file size and post the what is the exception you are getting.


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
VijayaRajan SuruliRajan
Greenhorn

Joined: May 26, 2011
Posts: 2
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'.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts File Upload Issue
 
Similar Threads
Mutiple File Uploading
Resource not Found error continues even after resource is removed from xml file
Applet for Mass File Upload
Cannot recognize conten type = "multipart/form-data" in JSP
how to upload using html or javascript?