aspose file tools*
The moose likes Struts and the fly likes http 404 error in uploading the file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "http 404 error in uploading the file" Watch "http 404 error in uploading the file" New topic
Author

http 404 error in uploading the file

madhuri kunchala
Ranch Hand

Joined: Mar 30, 2010
Posts: 350
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

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Mar 30, 2010
Posts: 350
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

Joined: Sep 29, 2008
Posts: 12617

message There is no Action mapped for namespace / and action name fileUpload.

Is there?
madhuri kunchala
Ranch Hand

Joined: Mar 30, 2010
Posts: 350
it is present in struts.xml file..here is struts.xml file code.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: http 404 error in uploading the file
 
Similar Threads
Why I'm getting Web group exception while accessing html?
Error handling in file upload
File upload in struts 2
Hello World for Struts 2 application not working
uploading images using strut