checkregname.jsp
资源名称:JSP-OA.rar [点击查看]
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:1k
源码类别:
Jsp/Servlet
开发平台:
Java
- <%@ page contentType="text/html;charset=gb2312"%>
- <%@ page import="cn.js.fan.util.ParamUtil"%>
- <%@ page import="com.redmoon.forum.person.*"%>
- <html>
- <head>
- <title>检查用户名</title>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <%@ include file="inc/nocache.jsp"%>
- <link rel="stylesheet" href="common.css" type="text/css">
- </head>
- <body bgcolor="#FFFFFF" text="#000000">
- <%@ include file="inc/inc.jsp"%>
- <jsp:useBean id="StrUtil" scope="page" class="cn.js.fan.util.StrUtil"/>
- <jsp:useBean id="userservice" scope="page" class="com.redmoon.forum.person.userservice"/>
- <%
- boolean re = false;
- try{
- String regName = ParamUtil.get(request, "RegName");
- re = userservice.isRegNameExist(request, regName);
- }
- catch(cn.js.fan.util.ErrMsgException e){
- out.println("<BR> <B>" + e.getMessage() + "</B>");
- return;
- }
- if (!re)
- out.print("<BR> <B>该用户名不存在,您可以注册!</B>");
- else
- out.print("<BR> <B><font color=red>对不起,该用户名已存在!</font></B>");
- %>
- <p> </p>
- <p> </p>
- </body>
- </html>