Javaweb(五)JSP的内置对象
博客说明
JSP各个页面之间的响应和传递的过程示例
一、用户注册页面:
效果预想图:
实现代码:
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="gb2312"%>
<%request.setCharacterEncoding("UTF-8"); %>
<html>
<head>
<title>register web</title>
</head>
<body>
<center>
<img src="my.jpg"width="30px" >
<font size="6" style="color: chocolate;margin-right: 230px" >用户注册</font><br><br>
<b><font style="margin-right: 10px" size="3">欢迎您注册为本网站的会员,请在下面表单填写注册信息<br></font></b>
<b><font style="margin-right: 10px" size="3">,要求每项必填,信息务必真实,方便我们联系您,谢谢!</font></b>
<form action="success.jsp" method="post" name="form" style="margin-top: 10px">
<fieldset style="border-style: dashed;border-color: grey;width: 380px;height:270px">
<legend style="background: maroon;color: white;border-radius: 10%;margin-right: 280px;" >创建新账户</legend>
<b>用户名:<input type="text" name="username" /></b><br>
<b>密码:<input type="password" name="password" style="margin-top: 10px"/></b><br>
<b>密码确认:<input type