package com.baeldung.servlets.servlets.javaee;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet(name = "AnnotationServlet",
    description = "Example Servlet Using Annotations",
    urlPatterns = { "/annotationservlet" })
public class AnnotationServlet extends HttpServlet {
    private static final long serialVersionUID = 1L;

    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        request.getRequestDispatcher("/annotationservlet.jsp").forward(request, response);
    }
}
