<%@ page contentType="text/html;charset=GB2312" %>
<HTML>
<BODY bgcolor=cyan><FONT Size=1>
<BR>
<% String str=request.getParameter("boy");
     if(str==null) 
       {str="0";
       }
      int guessNumber=Integer.parseInt(str);
      Integer integer=(Integer)session.getAttribute("save");
      int realnumber=integer.intValue();
     if(guessNumber==realnumber)
        { int n=((Integer)session.getAttribute("count")).intValue();
          n=n+1;
          session.setAttribute("count",new Integer(n));
           response.sendRedirect("success.jsp");
        } 
       else if(guessNumber>realnumber)
        { int n=((Integer)session.getAttribute("count")).intValue();
          n=n+1;
          session.setAttribute("count",new Integer(n));
          response.sendRedirect("large.jsp");
        }
    else if(guessNumber<realnumber)
        { int n=((Integer)session.getAttribute("count")).intValue();
          n=n+1;
          session.setAttribute("count",new Integer(n));
         
          response.sendRedirect("small.jsp");
        }
%>
</FONT>
</BODY>
</HTML>