@@ -0,0 +1,888 @@
+package com.chandra.demo.servlet;%0A%0Aimport java.io.IOException;%0A%0Aimport javax.inject.Inject;%0Aimport javax.servlet.ServletException;%0Aimport javax.servlet.annotation.WebServlet;%0Aimport javax.servlet.http.HttpServlet;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0A%0Aimport com.chandra.demo.managedbean.TestBean;%0A%0A@WebServlet(%22/index.html%22)%0Apublic class TestServlet extends HttpServlet %7B%0A%09private static final long serialVersionUID = 1L;%0A%0A%09@Inject%0A%09private TestBean bean;%0A%0A%09@Override%0A%09protected void doGet(HttpServletRequest request, HttpServletResponse response)%0A%09%09%09throws ServletException, IOException %7B%0A%09%09bean.test(%22Test Successful!%22);%0A%09%09bean.test2(%22Test Successful2!%22);%0A%09%09bean.test3(%22Test Successful3!%22);%0A%09%09request.setAttribute(%22status%22, %22Successful%22);%0A%09%09request.getRequestDispatcher(%22WEB-INF/pages/test.jsp%22).forward(request, response);%0A%09%7D%0A%7D%0A

Create TestServlet.java