aspose file tools*
The moose likes Struts and the fly likes HTTP 405 Resource not allowed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "HTTP 405 Resource not allowed" Watch "HTTP 405 Resource not allowed" New topic
Author

HTTP 405 Resource not allowed

Rahul Shivsharan
Ranch Hand

Joined: Jun 17, 2009
Posts: 83
here i'm trying to send data mostly .doc or .pdf from Struts Action to Browser.

from href a url is called for an Struts action , follows Struts-config.xml


the action 'AttachedFileViewAction.java' is as follows





from there the call goes to servlet 'FileReader.java' which is as follows,



My problem is, on my local machine it is working fine , but on production server , on the click of the link opens a browser with the message on header of browser 'HTTP 405 Resource Not Allowed'

what should be the problem , can any body tell me please
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60991
    
  65

Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Rahul Shivsharan
Ranch Hand

Joined: Jun 17, 2009
Posts: 83
I'm extremely sorry for asking this question which is already answered number of times on this forum,
actually it is already specified in this website that first try to search for the queries which we want to
ask, which i didn't did and directly fired the question on HTTP 405 error .

I got the solution of the problem i was facing , i got the answer by searching through the forum in Servlet
section.

The problem was that i didn't specified the path properly in the Struts-config.xml in the forward tag which calls the
servlet.

Anyway i solved the problem, i'm exteremely sorry i wasted your precious time.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTTP 405 Resource not allowed