checklogin.jsp

来自「BBS 论坛系统 使用JSP struts hibernate spring」· JSP 代码 · 共 22 行

JSP
22
字号
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="net.acai.forum.*,
		 net.acai.forum.util.*,net.acai.util.*"%>
<%
String username= ParamUtil.getString(request,"username");
String password= ParamUtil.getString(request,"password");
String erroMsg="";
if(username!=null&&password!=null)
	try
	{
		SkinUtil.login(request,response,username,password);
		response.sendRedirect("index.jsp");
	}
	catch(UserNotFoundException e)
	{
		erroMsg="错误的用户名和密码";
		response.sendRedirect("login.jsp?"+response.encodeURL(erroMsg));
	}
else{
	out.println("请填写好你的个人信息!");
}
%>

⌨️ 快捷键说明

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