• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HTTP 405 Resource not allowed

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic