File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts2 file upload problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 file upload problem" Watch "Struts2 file upload problem" New topic

Struts2 file upload problem

Daniel Spee

Joined: Oct 02, 2012
Posts: 1
Hey all,

I'm stuck with this problem for hours and I can't find out where it's going wrong.
When I upload an image, the action doesn't give any information I asked for to the jsp.

This is in the struts.xml:

This is the

And this is in the ImageAdded.jsp:

The action sends me to the ImageAdded.jsp, but the page only gives me this:
Product Image: Content Type: File Name: Uploaded Image:

The interceptor works, I can't add other files.

I hope somebody can help me.
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

Hey!! Post your uploadImage.jsp file please

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.
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 297


refer this Thread.

I agree. Here's the link:
subject: Struts2 file upload problem
It's not a secret anymore!