Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2 file upload problem

 
Daniel Spee
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey!! Post your uploadImage.jsp file please
 
jatan bhavsar
Ranch Hand
Posts: 299
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

refer this Thread.

Regards
Jatan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic