1

I am novice in servlet development and I want to map these URL patterns to my BookController Servlet:

  1. mysite.com/Books/Add
  2. mysite.com/Books/Delete/1

How they can be mapped using Annotation or web.xml and can I process both of them inside doGet() method?

public class BookController extends HttpServlet {

public void doGet(HttpServletRequest request, HttpServletResponse response)
          throws ServletException {
  }

}
slashdottir
  • 7,835
  • 7
  • 55
  • 71
Enam Ahmed Shahaz
  • 195
  • 1
  • 2
  • 10

0 Answers0