这是检验登录界面
<%@ page import="station.run.login,station.util.DataBase" %><jsp:useBean id="loginId" scope="page" class="station.run.login"></jsp:useBean>
<jsp:setProperty name="loginId" property="*"/>
<%@ page import="java.sql.*;" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title></head><body>
<% loginId..setSqlProxy(new SQLProxy());%><%
if(loginId.excute()==false){
%>
<strong> </strong>
<% }else{%>
<a href="userLogin.jsp">
<jsp: forward page="userLogin.html"/>
</a>
<% }%></body>
</html>
可是页面没有跳转到userLogin.html,无论在表单中填什么都会跳到此页面来
<%@ page import="station.run.login,station.util.DataBase" %><jsp:useBean id="loginId" scope="page" class="station.run.login"></jsp:useBean>
<jsp:setProperty name="loginId" property="*"/>
<%@ page import="java.sql.*;" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title></head><body>
<% loginId..setSqlProxy(new SQLProxy());%><%
if(loginId.excute()==false){
%>
<strong> </strong>
<% }else{%>
<a href="userLogin.jsp">
<jsp: forward page="userLogin.html"/>
</a>
<% }%></body>
</html>
可是页面没有跳转到userLogin.html,无论在表单中填什么都会跳到此页面来
解决方案 »
- Struts从页面传值与接收问题
- JSPGenSDF系列讲解五:模板引擎
- hibernate 插入数据时报 could not insert 高手进
- 如何传递带+的参数
- 各位大虾谁能帮帮小弟解决一下这个函数调用问题 谢谢了
- 有哪位高手给我讲讲怎么弄本论坛那个“你有短消息”闪动的功能的制作
- Tomcat5的问题
- 小弟初来,提一个问题,请大侠指教
- 菜鸟提问:我的页面上有N个INPUT框,都是顺序排开的。我想实现用回车键来顺序切换输入焦点?请问如何实现?还有,如何实现动态生成页面元
- 如何把这些信息在页面上隐藏???
- jsp与sql2000连接的问题!在线等待
- 求助freemarker获取session问题
我改了试了一下还是不行,而且我象下面这样直接判断
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %><%@ page import="java.lang.*,java.sql.*" %><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>login2.jsp</title>
</head><body>
<%
if( request.getParameter("username")equals("user1") && !request.getParameter("passwd").equals("user1"))
{
response.sendRedirect("Myindex.jsp");
}
else{
out.println("error!");
}
%></body>
</html>
也是跳到了login2.jsp 不能跳转到Myindex.jsp
这是怎么回事呢