Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

HTTP 405 Resource not allowed

 
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
 
Marshal
Posts: 67451
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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.
 
Or we might never have existed at all. Freaky. So we should cherish everything. Even this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic