Possible Duplicate:
How to use Servlets and Ajax?
I have the following (part of) code:
$.ajax({
type: "POST",
url: "Myclass.DOSOMETHING(PARAMETER???)",
data: dataString,
dataType: "json???",
My question is: How can I send the post to a specific method of a Java servlet class (extension of HttpServlet)? For example: (OverviewServlet.java)
public void removeItem(int idItem) {
itemDAO.delete(idItem);
}