Win a copy of Functional Reactive Programming this week in the Other Languages forum!
    Bookmark Topic Watch Topic
  • New Topic

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

 
athi ram
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


 
sudhir nim
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.
 
ramakrishna rayudu
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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65218
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please post your database question in the JDBC forum.
 
    Bookmark Topic Watch Topic
  • New Topic