MCQs>IT & Programming>JSP And Servlets>Considering the following Servlet code, choose the statement which is true: package com.nullhaus; import javax.servlet.annotation.*; import javax.servlet.http.*; @WebServlet('nullHausServlet') public class NullServlet extends HttpServlet { }
JSP And Servlets MCQs
Considering the following Servlet code, choose the statement which is true: package com.nullhaus; import javax.servlet.annotation.*; import javax.servlet.http.*; @WebServlet("nullHausServlet") public class NullServlet extends HttpServlet { }
Answer
Correct Answer: This is an invalid usage of @WebServlet annotations because of the wrongly formed url-pattern value
Explanation:
Note: This Question is unanswered, help us to find answer for this one