/*
   Generated by JavaEmitter on Thu Oct 21 16:29:22 GMT 1999
   Please do not modify.
 */

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.IOException;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public class jsp___2fgnujsp_2fsession_2ejsp extends org.gjt.jsp.HttpJspPageImpl{

   public final long _gnujspGetTimestamp() {
      return 940523362515L;
   }
   private static final String[] _gnujspDeps = new String[] { "/gnujsp/session.jsp" };
   public final String[] _gnujspGetDeps() {
      return _gnujspDeps;
   }
   public final long _gnujspGetCompilerVersion() {
      return 1999101701L;
   }
   public void _jspService (HttpServletRequest  request,
                            HttpServletResponse response)
       throws ServletException, IOException
   {
       response.setContentType ("text/html");
       JspFactory  factory     = JspFactory.getDefaultFactory ();
       PageContext pageContext = factory.getPageContext (this,
                                  request,
                                  response,
                                  null,
                                  true,
                                  8192,
                                  true);
       HttpSession session   = pageContext.getSession ();
       ServletContext application = pageContext.getServletConfig().getServletContext();
       JspWriter   out       = pageContext.getOut ();
       ServletConfig config  = pageContext.getServletConfig();
       Object      page      = this;

       try {


// line:/gnujsp/session.jsp:1
out.print ("<HTML>\n<HEAD>\n\t<TITLE>JSP session page</TITLE>\n\t");

// line:/gnujsp/session.jsp:5
out.print ("\n\t");

// line:/gnujsp/session.jsp:6
out.print ("\n</HEAD>\n<BODY>\n\n<H1>JSP session page</H1>\n\n<SCRIPT runat=server>\n\tprivate int totalHits = 0;\n\n\t/* make sure the session is created before anything else happens */\n\tpublic void service(HttpServletRequest req, HttpServletResponse res)\n\t\tthrows ServletException, java.io.IOException\n\t{\n\t\treq.getSession(true);\n\t\tdoIt(req, res);\n\t}\n</SCRIPT>\n\n");
// line:/gnujsp/session.jsp:24

	HttpSession ses = request.getSession(true);
	Integer ival = (Integer) ses.getValue("session.jsp.counter");
	if(ival == null) {
		ival = new Integer(1);
	} else {
		ival = new Integer(ival.intValue() + 1);
	}
	ses.putValue("session.jsp.counter", ival);


// line:/gnujsp/session.jsp:33
out.print ("\n\nThis page has been hit xx times, of which ");
// line:/gnujsp/session.jsp:34
out.print ( ival );

// line:/gnujsp/session.jsp:34
out.print (" hits were yours.\n\n</BODY>\n</HTML>\n");
        } catch (Exception e) {
             out.clearBuffer ();
             pageContext.handlePageException (e);
        } finally {
             out.close ();
             factory.releasePageContext (pageContext);
        }

   }

}
