Hi all..,
I'm trying to call a Servlet directly from a link (href) in my home page. But it gives me the following Message : HTTP method GET is not supported by this URL.
My coding is as follows...
HomePage.html
<html>
<head>
<title> Sample app</title>
</head>
<body>
<a href="searchallitems">Show all songs</a>
</body>
</html>
doPost() @ SearchAllItems.java --> The servlet
public void doPost(HttpServletRequest request,
HttpServletResponse response) throws ServletException,
IOException {
( More coding here.... )
RequestDispatcher view =
request.getRequestDispatcher("AllItems.jsp");
view.forward(request, response);
}
Can someone help me with this please...???
Thanx in advance...
Asela.