【JSP开源代码栏目提醒】:网学会员在JSP开源代码频道为大家收集整理了forword.jsp提供大家参考,希望对大家有所帮助!
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!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=gb2312">
<title>无标题文档</title>
</head>
<body>
<%
String name=request.getParameter("text1");
String password=request.getParameter("text2");
if((name.equals("admin"))&&(password.equals("admin")))
{
%>
<jsp:forward page="forword1.jsp"></jsp:forward>
<%
}
else
{
%>
<jsp:forward page="yh.html"></jsp:forward>
<%
}
%>
</body>
</html>
上一篇:
forward_file.jsp
下一篇:
多年来只想说一句,我不怪你