aspose file tools*
The moose likes Servlets and the fly likes Problems in Database Query with Servlets and html Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problems in Database Query with Servlets and html" Watch "Problems in Database Query with Servlets and html" New topic
Author

Problems in Database Query with Servlets and html

Debanjana Dasgupta
Ranch Hand

Joined: Aug 11, 2000
Posts: 101
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


Thanks<br /> <br />Debanjana<br /> <br />SCJP2<br />SCEA
MSD
Greenhorn

Joined: Jan 22, 2000
Posts: 20
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
 
Consider Paul's rocket mass heater.
 
subject: Problems in Database Query with Servlets and html