JSP 04课 (1)

2021-03-31 04:27

阅读:712

YPE HTML>

标签:top   sheet   sep   cache   ram   odi   use   ext   pat   

技术图片

技术图片

"java" import="java.util.*" pageEncoding="utf-8"%>

String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

span>"-//W3C//DTD HTML 4.01 Transitional//EN">base href="">
    
    My JSP <span>‘</span><span>login.jsp</span><span>‘</span> starting page"pragma" content="no-cache">
    "cache-control" content="no-cache">
    "expires" content="0">    
    "keywords" content="keyword1,keyword2,keyword3">
    "description" content="This is my page">
    

  
  
  
  
"display.jsp" method="post" name="muform"> "0" cellpadding="0" cellspacing="0" align="center" width="600px">
"108" colspan="2">"images/top.jpg">
"195px" height="35px">用户名: "510px">"text" name="tUser">
"195px" height="35px">密码: "510px">"password" name="tPwd">
"195px" height="35px">确认密码: "510px">"password" name="tRwd">
"195px" height="35px">性别: "510px"> "radio" name="s" value="" checked>男 &nbsp; "radio" name="s" value="" class="input">
"195px" height="35px">email: "510px">"text" name="tEm">
"195px" height="35px">出生年月: "510px">"year" id="year" size="5" maxlength="5"> 年 &nbsp; select name="month"> select> 月 &nbsp; select name="day"> select>&nbsp;日
"2" align="center">
"submit" value="提交">
"java" import="java.util.*" pageEncoding="utf-8"%>

String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

span>"-//W3C//DTD HTML 4.01 Transitional//EN">

  base href="">
    
    My JSP <span>‘</span><span>display.jsp</span><span>‘</span> starting page"pragma" content="no-cache">
    "cache-control" content="no-cache">
    "expires" content="0">    
    "keywords" content="keyword1,keyword2,keyword3">
    "description" content="This is my page">
    

  
  
  
  
"center"> "images/top2.jpg">
"center">

信息显示

request.setCharacterEncoding("utf-8"); String name=request.getParameter("tUser"); String password=request.getParameter("tPwd"); String sex=request.getParameter("s"); String email=request.getParameter("tEm"); String y=request.getParameter("year"); String m=request.getParameter("month"); String d=request.getParameter("day"); %> 用户名是:
密码是:
性别是:
电子邮件地址是:
出生日期是:年月

 

JSP 04课 (1)

标签:top   sheet   sep   cache   ram   odi   use   ext   pat   

原文地址:https://www.cnblogs.com/naoguakerteng/p/12588863.html


评论


亲,登录后才可以留言!