I have the servlet name ExampleServlet.java which have only init method with HttpServletRequest and HttpServletResponse parameters. I will forward the request to another servlet named ForwardedServlet.java which will display some text on the web page. But when i am trying to execute the ExampleServlet http://localhost:8080/Sample/ExampleServlet the following error occurs.
The request sent by the client was syntactically incorrect (HTTP method GET is not supported by this URL).
Please give the solution and why it this error occured... Thanks in advance