<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ page
language="java"
contentType="text/html; charset=GB2312"
pageEncoding="GB2312"
%>
<%@ page import="com.web.util.PageUrlManage"%>
<META http-equiv="Content-Type" content="text/html; charset=GB18030">
<META name="GENERATOR" content="IBM WebSphere Studio">
<script language=javascript src="<%=request.getContextPath()%>/js/univerify.js"></script>
<script language=javascript src="<%=request.getContextPath()%>/js/layer.js"></script>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
td { font-size: 12px}
.STYLE1 {
font-size: 36px;
font-weight: bold;
}
-->
</style>
<TITLE>用户登录</TITLE>
</HEAD>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<%
if(request.getSession().getAttribute("LOGIN_USER")!=null){
session.setAttribute("PAGE_MANAGE",null);
if(request.getParameter("login")!=null)
out.println("<script language=javascript>location.href='default.jsp';</script>");
}
%>
<form method="post" action="UserServlet" onSubmit="return verifyAll(this)">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<table width="768" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td width="766" height="431">
<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td height="20"></td>
</tr>
<tr>
<td height="324"align="center" ><span class="STYLE1">连锁店管理系统</span></td>
</tr>
<tr>
<td height="5%"></td>
</tr>
<tr>
<td height="30"><div align="center" >
用户名:
<input name="userId" nullable="no" datatype="text" chname="用户名">
密码:
<input type="password" name="userPwd" nullable="no" chname="密码">
<input value="登录" type="submit">
<input name="actionType" value="login" type="hidden">
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</html>
运行这个页面,为什么总是不会跳转?总是回到这个页面
<HTML>
<HEAD>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ page
language="java"
contentType="text/html; charset=GB2312"
pageEncoding="GB2312"
%>
<%@ page import="com.web.util.PageUrlManage"%>
<META http-equiv="Content-Type" content="text/html; charset=GB18030">
<META name="GENERATOR" content="IBM WebSphere Studio">
<script language=javascript src="<%=request.getContextPath()%>/js/univerify.js"></script>
<script language=javascript src="<%=request.getContextPath()%>/js/layer.js"></script>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
td { font-size: 12px}
.STYLE1 {
font-size: 36px;
font-weight: bold;
}
-->
</style>
<TITLE>用户登录</TITLE>
</HEAD>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<%
if(request.getSession().getAttribute("LOGIN_USER")!=null){
session.setAttribute("PAGE_MANAGE",null);
if(request.getParameter("login")!=null)
out.println("<script language=javascript>location.href='default.jsp';</script>");
}
%>
<form method="post" action="UserServlet" onSubmit="return verifyAll(this)">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<table width="768" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td width="766" height="431">
<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td height="20"></td>
</tr>
<tr>
<td height="324"align="center" ><span class="STYLE1">连锁店管理系统</span></td>
</tr>
<tr>
<td height="5%"></td>
</tr>
<tr>
<td height="30"><div align="center" >
用户名:
<input name="userId" nullable="no" datatype="text" chname="用户名">
密码:
<input type="password" name="userPwd" nullable="no" chname="密码">
<input value="登录" type="submit">
<input name="actionType" value="login" type="hidden">
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</html>
运行这个页面,为什么总是不会跳转?总是回到这个页面
解决方案 »
- 遇到点小问题。望解答
- 树??????????????
- ant的具体优势是什么?急。。。
- 关于tomcat的问
- 一个JSP网页,在自己的机子上能运行,放别人的机子上则不行,而且TOMCAT资源占用100%
- 求助!!!用jsp,怎样将sql server中的数据导入excel表中!!!
- 在用smartupload上处的时候如何改文件的名字呀
- 怎么把字符串"#00FF00" 转成(0,255,0) 急!!!!
- 最后30分,用jsp中连接过informix的jsp高手请进来看看这个问题,好么?55555
- 询问一下报价,谁熟悉?
- 急:struts里读取数据库后如何将数据保存在session里供登录成功后,跳转的页面使用改session数据
- 请高手看下,这个能连上数据库吗?
out.println(" <script language=javascript>location.href='default.jsp'; </script>"); 你的login 在哪里?我怎么没有看到呢?
我只看到 <input name="actionType" value="login" type="hidden">
你是不是写错了,应该是
if(request.getParameter("actionType")!=null) 吧