Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

http 404 error in uploading the file

 
madhuri kunchala
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i had done sample application program i.e.,http://www.vaannila.com/struts-2/struts-2-example/struts-2-file-Upload-example-1.html.i had done as it is but im getting 404 error if im uploading the image file..can any one provide me the solution.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about if you post the *relevant* portions of the config, JSP, and action instead of making us hunt for it? And provide the exact circumstances of when you get the 404: is it on submit?
 
madhuri kunchala
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi David,
by clicking the submit button im getting that error
UserImage.jsp

rendered HTML Page

and im getting Error on Clicking Submit button
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
message There is no Action mapped for namespace / and action name fileUpload.

Is there?
 
madhuri kunchala
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it is present in struts.xml file..here is struts.xml file code.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Really? There's an action configured at fileUpload? Show me where in the config you posted it is.

You can also use the Struts 2 Config Browser plugin to see what Struts 2 thinks your configuration is.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic