package com.github.sbugat.samplewebapp;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Sample class of a web-app servlet
 *
 * @author Sylvain Bugat
 */
public class SampleWebapp extends HttpServlet {

	private static final long serialVersionUID = 1997452078400181160L;

	@Override
	protected void doGet(final HttpServletRequest httpServletRequest, final HttpServletResponse httpServletResponse) throws ServletException, IOException {

		System.out.println("SampleWebapp class: doGet method called on:" + httpServletRequest.getRequestURI());
		httpServletRequest.setAttribute("requestedURI", httpServletRequest.getRequestURI());
		// Redirect all get request to index.jsp page
		httpServletRequest.getRequestDispatcher("/index.jsp").forward(httpServletRequest, httpServletResponse);
	}
}

@@ -102,16 +102,60 @@
 eption;%0A
+import javax.servlet.annotation.WebServlet;%0A
 import j
@@ -322,16 +322,17 @@
 rvlet%0A *
+ 
 %0A * @aut
@@ -353,16 +353,41 @@
 gat%0A */%0A
+@WebServlet(%22/redirect%22)%0A
 public c
@@ -952,19 +952,20 @@
 %22/index.
-jsp
+html
 %22).forwa

Change default webapp