<%@ page language="java" pageEncoding="gb2312"%>
<%@page import="bean.LoginBean"%>
<jsp:useBean id="user" class="bean.LoginBean" scope="page">
<jsp:setProperty name="user" property="*"/></jsp:useBean>
<%
if (user.checklogin()){
String username = request.getParameter("username");
session.setAttribute("username", username);
%>
<jsp:forward page="welcome.jsp"></jsp:forward>
<%
} else {
%>
<jsp:forward page="error.jsp"></jsp:forward>
<%
}
%>
Helenr
慕田峪7331174
相关分类