• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTTP 405 Resource not allowed

 
Rahul Shivsharan
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64620
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
 
Rahul Shivsharan
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic