views:

67

answers:

0

Having the ServletAPI plus the configurations you can make to jetty or any other web container

  1. Do we have a way to limit the request sizes ? (ie to close the connection if posting more that 50 MB)
  2. Can we in some way kill the dispatching of a request that is taking too long ?
  3. While dispatching a request in your own configured servlet, can we forward ( not redirect ) the request to the 'default' servlet. ? Will this allways work ?

    RequestDispatcher rd = getServletContext().getNamedDispatcher("default");
    HttpServletRequest wrapped = new HttpServletRequestWrapper(req) {
      public String getServletPath() { return ""; }
    }; 
    rd.forward(wrapped, resp);
    

Thanks in advance!