zoukankan      html  css  js  c++  java
  • 每日博客

    时间:上午8:50-9:50,下午4:00-6:00

    代码:200多行?

    博客:1

    知识点:web,数据库,html

    <%@ page language="java" contentType="text/html; charset=UTF-8"
        pageEncoding="UTF-8"%>
    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    </head>
    <body>
    <%
    String name=request.getParameter("name");
    String pwd=request.getParameter("pwd");
    if(name!=null&&pwd!=null&&name.equals("jsj")&&pwd.equals("123")){
    %>
    <jsp:forward page="success.jsp"/>
    <% 
    }else{response.sendRedirect("fail.html");} 
    %>
    </body>
    </html>
    <%
     Object oCount = application.getAttribute("count");
     Integer count=null;
     if(oCount==null)
     {
      count = new Integer(1);   
      application.setAttribute("count", count);
     }
     else
     {
      count = (Integer)application.getAttribute("count");
      count = new Integer(count.intValue()+1);  
      application.setAttribute("count", count);
     }
     %>
    这是第<%=count.intValue() %>次登录。
    <%
     Object oCount = application.getAttribute("count");
     Integer count=null;
     if(oCount==null)
     {
      count = new Integer(1);   
      application.setAttribute("count", count);
     }
     else
     {
      count = (Integer)application.getAttribute("count");
      count = new Integer(count.intValue()+1);  
      application.setAttribute("count", count);
     }
     %>
    这是第<%=count.intValue() %>次登录。
    <%request.setCharacterEncoding("utf-8");%>
    <%=(String)session.getAttribute("flag")%>
  • 相关阅读:
    mongodb安装及操作
    小白学jQuery
    python break 和continue区别
    pyqt5 Qlabel控件添加图片单击进入网站
    pyqt5 主窗口退出,子窗口退出问题
    pyqt5 关于主窗口闪退
    python 浮点数不精确原因
    定时器 sched模块
    python 获得文件大小、修改时间等系统信息
    原码
  • 原文地址:https://www.cnblogs.com/hfy717/p/14579236.html
Copyright © 2011-2022 走看看