Example usage for javax.servlet.http HttpServlet subclass-usage

List of usage examples for javax.servlet.http HttpServlet subclass-usage

Introduction

In this page you can find the example usage for javax.servlet.http HttpServlet subclass-usage.

Usage

From source file SessionDisplay.java

public class SessionDisplay extends HttpServlet {

    public void doGet(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, java.io.IOException {

        response.setContentType("text/html");

From source file CookieServlet.java

public class CookieServlet extends HttpServlet {
    public void doGet(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, java.io.IOException {

        Cookie cookie = null;
        Cookie[] cookies = request.getCookies();

From source file Counter.java

public class Counter extends HttpServlet {
    static final String COUNTER_KEY = "Counter.count";

    public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        HttpSession session = req.getSession(true);
        resp.setContentType("text/html");

From source file CurrLocaleServlet.java

public class CurrLocaleServlet extends HttpServlet {

    public void doGet(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, java.io.IOException {

        //Get the client's Locale

From source file ForwardException.java

public class ForwardException extends HttpServlet {
    /** Called in response to a GET request (data encoded in the URL) */
    public void doGet(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {

        ServletContext application = getServletContext();

From source file ClientPost.java

public class ClientPost extends HttpServlet {

    public void doPost(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, java.io.IOException {

        HttpClient httpClient = new HttpClient();

From source file CounterRewrite.java

public class CounterRewrite extends HttpServlet {
    static final String COUNTER_KEY = "Counter.count";

    public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        HttpSession session = req.getSession(true);
        resp.setContentType("text/html");

From source file Cookies.java

public class Cookies extends HttpServlet {
    public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        resp.setContentType("text/html");
        req.getSession();
        PrintWriter out = resp.getWriter();
        Cookie cookies[] = req.getCookies();

From source file LocaleInformationServlet.java

public class LocaleInformationServlet extends HttpServlet {

    public void doGet(HttpServletRequest request, HttpServletResponse response)
            throws IOException, ServletException {

        response.setContentType("text/html");

From source file DateServlet.java

public class DateServlet extends HttpServlet {

    public void doGet(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {

        HttpSession hs = request.getSession(true);