• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problems in Database Query with Servlets and html

 
Debanjana Dasgupta
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am having a problem.I have a html page and i get user inputs to query a database through a servlet, and the servlet after successful query returns another html page.
My problem is that even after successful query , I am not getting the html page displayed, it sayd http 405, resource not allowed. I am overriding the doPost method in my servlet.
Please can somebody help?
Thanks
Debanjana
 
MSD
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I guess a similar query is posted in this forum - http://www.javaranch.com/ubb/Forum7/HTML/000705.html
I think what u r doing is you are requesting the page using GET but doing database lookup in doPost. This error is usually generated if the resource at the given URI does not accept the requested method.
Hope this helps.
-Mohammed
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic