首页 > 编程语言 > 详细

javaweb.jspp

时间:2017-09-27 23:43:10      阅读:360      评论:0      收藏:0      [点我收藏+]

<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP ‘login.jsp‘ starting page</title>
  </head>
 
  <body>
    <%String Name=request.getParameter("RdName"); %>
    欢迎,<%=Name %>成功登录!
  </body>
</html>

 

<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP ‘Second.jsp‘ starting page</title>
  </head>
  <body>
    <%String Name=request.getParameter("RdName");
    String Passwd=request.getParameter("RdPasswd");
    if(Name.equals("abcdef")&&Passwd.equals("123456")) %>
    <jsp:forward page="login.jsp"/>
  </body>
</html>

 

<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP ‘MyJsp.jsp‘ starting page</title>
  </head>
 
  <body>
    <form action="Second.jsp" method="post">
    姓名:<input type="text" name="RdName"><br>
    密码:<input type="password" name="RdPasswd"><br><br>
    <input type="submit" value="确定">
    </form>
  </body>
</html>

javaweb.jspp

原文:http://www.cnblogs.com/jgrs/p/7604385.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!