reginfo.jsp

来自「jsp博客网站系统做得还可以的需要的人可以」· JSP 代码 · 共 58 行

JSP
58
字号

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="huc.blog.util.ParamUtils" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<%
	String info = ParamUtils.getAttribute(request, "info", "fail");
	String strInfo = "";
	String strUrl = "";
	if(info.equals("succ")){
		strInfo = "注册成功!请您点击此处跳转到登录页面登录!";
		strUrl = "login.jsp";
	}
	else{
		strInfo = "注册失败!请您点击此处跳转到注册页面重新注册!";
		strUrl = "reg.jsp";
	}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>博客-注册处理</title>
    
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    
    <link rel="stylesheet" type="text/css" href="css/styles.css">
  </head>
  
  <body>
    <CENTER>
		<jsp:include page="common/indexheader.jsp" />
		<TABLE border="1" width="600px">
			<TR>
				<TD align="center">注册提示信息</TD>
			</TR>
			<TR>
				<TD align="center">
					<A href="<%=strUrl%>"><%=strInfo%></A>
				</TD>
			</TR>
		</TABLE>
		<TABLE>
			<TR><td height="280">&nbsp;</td></TR>
		</TABLE>
	</CENTER>
		<jsp:include page="common/footer.jsp" />
  </body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?