Greetings all. I'm trying to do a basic Database view using
servlets and
JSP, and I'm not quite sure how to solve my current problem.
I've got a JSP (person_list.jsp) that will show all of the people currently in a database. Next to each person, there are hyperlinks to Update, Delete, or Create, with Update and Delete both taking the user ID from the current user and passing it on to... Somewhere? Well, it's appended to the url at this point at least, which I hoped the servlet would "see".
Since the person listing isn't part of a form, I'm not sure how to get the userID to my DeleteUser servlet. I've tried a few things here and there, but nothing is clicking and I get the following message if I try to go to:
http://localhost:8080/PillarTest/DeleteUser.do?userID=1 (or whatever the userID is)
***
HTTP Status 405 - HTTP method GET is not supported by this URL
type Status report
message HTTP method GET is not supported by this URL
description The specified HTTP method is not allowed for the requested resource (HTTP method GET is not supported by this URL).
***
I also tried it with a doPost, but that didn't seem to work either. I suspect I'm missing something simple... Any ideas?
Below is the code for person_list.jsp:
and here's the code for the DeleteUser.java servlet:
Sorry for the long post... thanks in advance.
[ August 22, 2005: Message edited by: dav mccartney ]