@@ -0,0 +1,931 @@
+package com.github.sbugat.samplewebapp;%0A%0Aimport java.io.IOException;%0A%0Aimport javax.servlet.ServletException;%0Aimport javax.servlet.http.HttpServlet;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0A%0A/**%0A * Sample class of a web-app servlet%0A *%0A * @author Sylvain Bugat%0A *%0A */%0Apublic class SampleWebapp extends HttpServlet %7B%0A%0A%09private static final long serialVersionUID = 1997452078400181160L;%0A%0A%09@Override%0A%09protected void doGet(final HttpServletRequest httpServletRequest, final HttpServletResponse httpServletResponse) throws ServletException, IOException %7B%0A%0A%09%09System.out.println(%22SampleWebapp doGet on:%22 + httpServletRequest.getRequestURI());%0A%09%09httpServletRequest.setAttribute(%22requestedURI%22, httpServletRequest.getRequestURI());%0A%09%09// Redirect all get request to index.jsp page%0A%09%09httpServletRequest.getRequestDispatcher(%22/index.jsp%22).forward(httpServletRequest, httpServletResponse);%0A%09%7D%0A%7D

Add sample webapp servlet