在jsp页面中,出现Syntax error on token "else", delete this token
<%@pagelanguage="java"import="java.util.*"contentType="text/html;charset=gb2312"%><js...
<%@ page language="java" import="java.util.*" contentType="text/html;charset=gb2312" %>
<jsp:useBean id="sys" scope="page" class="com.bean.SystemBean" />
<jsp:useBean id="tb" scope="page" class="com.bean.TrainBean"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
List sysList=sys.getSiteInfo();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<TITLE><%=sysList.get(0).toString() %></TITLE>
<META http-equiv=Content-Language content=zh-cn>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META name="keywords" content="<%=sysList.get(2).toString() %>" />
<META name="description" content="<%=sysList.get(3).toString() %>" />
<META content="MSHTML 6.00.2900.3243" name=GENERATOR>
<LINK href="<%=basePath %>images/css.css" type=text/css rel=stylesheet>
<LINK href="<%=basePath %>images/default.css" type=text/css rel=stylesheet>
</HEAD>
<SCRIPT language=JavaScript src="<%=basePath %>images/Common.js"></SCRIPT>
<SCRIPT language=JavaScript src="<%=basePath %>images/index.js"></SCRIPT>
<SCRIPT language=JavaScript src="<%=basePath %>images/calendar.js"></SCRIPT>
<%if(sysList.get(5).toString().trim().equals("open")){%>(这行出错是这样的
Multiple annotations found at this line:
- Syntax error on token "}", delete this token
- Syntax error, insert "}" to complete ClassBody
- Syntax error, insert "else Statement" to complete IfStatement
- Syntax error, insert "}" to complete Block
)
<SCRIPT language=JavaScript>
<!--//屏蔽出错代码
function killErr(){
return true;
}
window.onerror=killErr;
//-->
</SCRIPT>
<SCRIPT language=JavaScript>
<!--//处理大分类一行两个小分类
function autoTable(div){
fs=document.getElementById(div).getElementsByTagName("TABLE");
for(var i=0;i<fs.length;i++){
fs[i].style.width='49.5%';
if(i%2==1){
if (document.all) {
fs[i].style.styleFloat="right";
}else{
fs[i].style.cssFloat="right;";
}
}else{
if (document.all) {
fs[i].style.styleFloat="left";
}else{
fs[i].style.cssFloat="left;";
}
}
}
}
求高手指点啊 展开
<jsp:useBean id="sys" scope="page" class="com.bean.SystemBean" />
<jsp:useBean id="tb" scope="page" class="com.bean.TrainBean"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
List sysList=sys.getSiteInfo();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<TITLE><%=sysList.get(0).toString() %></TITLE>
<META http-equiv=Content-Language content=zh-cn>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META name="keywords" content="<%=sysList.get(2).toString() %>" />
<META name="description" content="<%=sysList.get(3).toString() %>" />
<META content="MSHTML 6.00.2900.3243" name=GENERATOR>
<LINK href="<%=basePath %>images/css.css" type=text/css rel=stylesheet>
<LINK href="<%=basePath %>images/default.css" type=text/css rel=stylesheet>
</HEAD>
<SCRIPT language=JavaScript src="<%=basePath %>images/Common.js"></SCRIPT>
<SCRIPT language=JavaScript src="<%=basePath %>images/index.js"></SCRIPT>
<SCRIPT language=JavaScript src="<%=basePath %>images/calendar.js"></SCRIPT>
<%if(sysList.get(5).toString().trim().equals("open")){%>(这行出错是这样的
Multiple annotations found at this line:
- Syntax error on token "}", delete this token
- Syntax error, insert "}" to complete ClassBody
- Syntax error, insert "else Statement" to complete IfStatement
- Syntax error, insert "}" to complete Block
)
<SCRIPT language=JavaScript>
<!--//屏蔽出错代码
function killErr(){
return true;
}
window.onerror=killErr;
//-->
</SCRIPT>
<SCRIPT language=JavaScript>
<!--//处理大分类一行两个小分类
function autoTable(div){
fs=document.getElementById(div).getElementsByTagName("TABLE");
for(var i=0;i<fs.length;i++){
fs[i].style.width='49.5%';
if(i%2==1){
if (document.all) {
fs[i].style.styleFloat="right";
}else{
fs[i].style.cssFloat="right;";
}
}else{
if (document.all) {
fs[i].style.styleFloat="left";
}else{
fs[i].style.cssFloat="left;";
}
}
}
}
求高手指点啊 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询