<%@page import="com.wh.servie.RegisterServie"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
import="com.wh.utils.RegisterStatus " pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<style type="text/css">
#body {
background: orange;
}
#title {
background: graytext;
text-align: center;
}
.href{
color: orange;
}
</style>
<body>
<div id="body">
<div id="title">
<h1>注册状态页面</h1>
<hr>
</div>
<%
RegisterStatus status = (RegisterStatus) request.getAttribute("rs");
String contextPath = request.getContextPath();
if (RegisterStatus.SUCCESS == status) {
out.print("<h1>注册成功</h1><a href=" + contextPath + "/LoginServlet?function=reLogin>请点击登陆<a>");
} else if (RegisterStatus.FAILURE == status) {
out.print("<h2>注册失败</h2><a href=" + contextPath + "/RegisterServlet?function=reRegister>请点击重新注册<a>");
} else if (RegisterStatus.REAISTERED == status) {
out.print("<h3>已注册</h3><a href=" + contextPath + "/RegisterServlet?function=reRegister>请点击重新注册<a>");
}
%>
</div>
</body>
</html>
注册状态页面
最新推荐文章于 2023-02-06 16:30:22 发布