In the past week I've had to do a crash course in servlets and jsp for an interview. Anyway I completely fluffed the interview. What really threw me off though was the idea of multiple servlets in a class. Everything I had practiced had just one servlet performing one function. For example:
Products class
protected void doSearch(HttpServletRequest request, HttpServletResponse response)
//Complete method
protected void doNew(HttpServletRequest request, HttpServletResponse response)
//Complete method
protected void doDelete(HttpServletRequest request, HttpServletResponse response)
//Complete method
How does one register these servlets in the web.xml and perform the doGet/doPost ? Does any one know where I can find an example of this type of method ?