Package common.util

Examples of common.util.HttpSessionListenerLog


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

        PrintWriter out = response.getWriter();
        out.println( "In HttpSessionDestroyedTest servlet<BR>" );

        HttpSessionListenerLog sl = new HttpSessionListenerLog();

        HttpSession session = request.getSession( true );

        sl.resetLog();

        session.invalidate();

        Enumeration result = sl.readFromLog();

        while ( result.hasMoreElements() ) {
            String tmp = ( String ) result.nextElement();
            out.println( tmp );
        }
View Full Code Here


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

        PrintWriter out = response.getWriter();
        out.println( "In HttpSessionCreatedTest servlet<BR>" );

        HttpSessionListenerLog sl = new HttpSessionListenerLog();

        sl.resetLog();

        HttpSession session = request.getSession( true );

        Enumeration result = sl.readFromLog();

        while ( result.hasMoreElements() ) {
            String tmp = ( String ) result.nextElement();
            out.println( tmp );
        }
View Full Code Here

TOP

Related Classes of common.util.HttpSessionListenerLog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.