Skip to main content

Kenyth Zeng's Library tagged servlet   View Popular

Apache Tomcat 6.0 - Class Loader HOW-TO

  • Some JVMs may
    implement this as more than one class loader, or it may not be visible
    (as a class loader) at all.
  • the standard Tomcat 6 startup scripts
    ($CATALINA_HOME/bin/catalina.sh or
    %CATALINA_HOME%\bin\catalina.bat) totally ignore the contents
    of the CLASSPATH environment variable itself
  • 6 more annotations...
01 Nov 09

page 2 > The Chain of Responsibility pattern's pitfalls and improvements - JavaWorld

  • By nature, a global event hook chain is not classic CoR. The event must be delivered to all listeners in the chain,
    regardless of whether a listener already handles it. So the CallNextHookEx() call seems to be the job of the base class, not the individual listeners. Letting the individual listeners make the call
    doesn't do any good and introduces the possibility for stopping the chain accidentally.
  • "4. a) Either invoke the next entity in the chain using the FilterChain object (chain.doFilter()), 4. b) or not pass on the request/response pair to the next entity in the filter chain to block the request processing."

page 1 > The Chain of Responsibility pattern's pitfalls and improvements - JavaWorld

  • I wrote two Java programs (for Microsoft Windows OS) that must catch global keyboard events generated by other applications
    concurrently running on the same desktop. Microsoft provides a way to do that by registering the programs as a global keyboard
    hook listener.
  • The code that registers the program itself as a hook listener was missing the CallNextHookEx() call required by the hook framework.
  • 1 more annotations...
18 May 09

[疑难杂症]终于搞清了getServletContext()空指针异常的原因了~~ - windelk - JavaEye技术网站

  • 原来我重写了init(ServletConfig),但第一行没有调用super.init(config);就是这导致了错误!父类的init(ServletConfig)有处理获取ServletContext对象的引用,在doGet()等方法中才能够通过getServletContext()方法获取到SeverletContext对象!!
17 May 09

page 6 > Asynchronous HTTP and Comet architectures - JavaWorld

  • The long poll is one of the two Comet strategies to reduce the frequency of HTTP calls
  • The second Comet strategy is response body streaming.
  • 6 more annotations...
14 May 09

Resin : Tutorials : Server-Push Servlet

  • the browser executes the script as part of its
    progressive rendering, the user will see the updates immediately without
    waiting for the entire HTTP request to complete.
  • The CometController is Resin's thread-safe encapsulation
    of control and communication from the application's service to the
    Comet servlet.
  • 4 more annotations...

WEB-INF/classes/example/TestCometServlet.java

  • res.setHeader("Cache-Control", "no-cache, must-revalidate");
    res.setHeader("Expires", "Mon, 27 Jul 1997 05:00:00 GMT");

    res.setContentType("text/html");

    out.println("<html><body>");
06 Jan 09

Servlet Tutorial: Handling Form Data

  • It can be
    attached to the end of the URL after a question mark (as above), for
    GET requests, or sent to the server on a separate line, for
    POST requests.
  • traditionally
    one of the most tedious parts of CGI programming
  • 6 more annotations...
06 Oct 08

OpenEntityManagerInViewFilter (Spring Framework API 2.5)

  • Servlet 2.3 Filter that binds a JPA EntityManager to the thread for the
    entire processing of the request.
24 Aug 08

Diff btw response.sendRedirect, jsp:forward and RequestDispatch .forward methods? (Servlets forum at JavaRanch)

  • It actually modifies response header and tells the client the browser that the requested page is relocated and header also contains the new location of the page.
  • No response is send to the browser, the web container internally redirects the request to the other page.
  • 1 more annotations...
23 Aug 08

RequestDispatcher (Java EE 5)

  • as a wrapper around a server resource located
    at a particular path or given by a particular name
  • This interface is intended to wrap servlets
  • 1 more annotations...

HttpSession (Java EE 5)

  • across more than one page
    request
  • The session persists
    for a specified time period, across more than one connection or
    page request from the user
  • 4 more annotations...

Servlet Tutorial: Session Tracking

  • HTTP
    is a "stateless" protocol
  • three typical solutions
  • 7 more annotations...

Cookie (Java EE 5)

  • saved by the browser, and later sent back to the server
  • sent by a servlet to
    a Web browser, saved by the browser, and later sent back to the server
  • 4 more annotations...
1 - 20 of 41 Next › Last »
Showing 20 items per page

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo