jsp equals() 问题
<%@pagecontentType="text/html;charset=gb2312"%><%@pageimport="java.sql.*"%><jsp:useBe...
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="java.sql.*"%>
<jsp:useBean id="condata" scope="page" class="wuliu.conndata"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../CSS/style.css">
<title>
search page
</title>
</head>
<%!
ResultSet rs=null;
String sql="",rsql;
String text,style;
int n;
int pagesize=10;
int rowcount=0;
int pagecount=1;
String column[];
%>
<%
request.setCharacterEncoding("gb2312");
text=request.getParameter("text");
style=request.getParameter("style");
%>
<jsp:include page="/top.jsp"/>
<body bgcolor="#ffffff">
<%
String login=(String)session.getAttribute("login");
String username=(String)session.getAttribute("name");
if(login==null)
{
%>
<script language="javascript">
alert("您还未登录,不能浏览详细信息!!!");
<%
response.sendRedirect("/logistics/login.jsp");
%>
</script>
<%
}if(style.equals("db_CarMessage")) --》这里错误,为什么?
{
%>
<table width="785" border="1" align="center" cellpadding="0" cellspacing="0"bordercolor="#FFFFFF" bordercolordark="#333333" bordercolorlight="#FFFFFF"> 展开
<%@ page import="java.sql.*"%>
<jsp:useBean id="condata" scope="page" class="wuliu.conndata"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../CSS/style.css">
<title>
search page
</title>
</head>
<%!
ResultSet rs=null;
String sql="",rsql;
String text,style;
int n;
int pagesize=10;
int rowcount=0;
int pagecount=1;
String column[];
%>
<%
request.setCharacterEncoding("gb2312");
text=request.getParameter("text");
style=request.getParameter("style");
%>
<jsp:include page="/top.jsp"/>
<body bgcolor="#ffffff">
<%
String login=(String)session.getAttribute("login");
String username=(String)session.getAttribute("name");
if(login==null)
{
%>
<script language="javascript">
alert("您还未登录,不能浏览详细信息!!!");
<%
response.sendRedirect("/logistics/login.jsp");
%>
</script>
<%
}if(style.equals("db_CarMessage")) --》这里错误,为什么?
{
%>
<table width="785" border="1" align="center" cellpadding="0" cellspacing="0"bordercolor="#FFFFFF" bordercolordark="#333333" bordercolorlight="#FFFFFF"> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询