aspose file tools*
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
Author

Struts2 file upload problem

Daniel Spee
Greenhorn

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 UploadImage.java:


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: 296

hi,

refer this Thread.

Regards
Jatan
 
 
subject: Struts2 file upload problem