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
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

Getting Error :HTTP Status 405 - HTTP method GET is not supported by this URL

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Report post to moderator
hi
i insert data to database using Eclipse 3.4
web server: Tomcat 6.0
database: PostgreSQL
here my code is











get error on :HTTP Status 405 - HTTP method GET is not supported by this URL


please help me


 
Ranch Hand
Posts: 212
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
Your servlet ServletUser doesnt implement doGet method, and hence when you enter the URL to servlet in browser addressbar and hit enter, you get this error.
Implement doGet in your servlet and the error will go away.
 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi..

the default Method id HTTP GET method so You need to Implement The goGet(HttpServletRequest request,HttpServletResponse response) in your Servlet Class.

if your servlet is Excepting some data from the Browser(from HTML FROM)
then you have mention <from name="TestFrom" method="POST">
You Need to Specify The HTTP Method Like This...
 
athi ram
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Report post to moderator
thank you sir.

now i am got another error

SQLException caught: The column index is out of range: 1, number of columns: 0
 
ramakrishna rayudu
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi..
Check your DataBase Table Name And Number of coloumns in your message table
 
Marshal
Posts: 67478
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please post your database question in the JDBC forum.
 
Looky! I'm being abducted by space aliens! Me and this tiny ad!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic