my dog learned polymorphism
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

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 '' is as follows

from there the call goes to servlet '' 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

Joined: Jan 10, 2002
Posts: 63858

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

[Asking smart questions] [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

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

Anyway i solved the problem, i'm exteremely sorry i wasted your precious time.
I agree. Here's the link:
subject: HTTP 405 Resource not allowed
It's not a secret anymore!