当前位置: 代码迷 >> Java Web开发 >> jsp初学者有关问题
  详细解决方案

jsp初学者有关问题

热度:6656   发布时间:2013-02-25 21:16:05.0
jsp菜鸟问题
报的错误:org.apache.jasper.JasperException: /user/course_list.jsp (line: 41, column: 37) attribute for %>" is not properly terminated

第41行代码是 <jsp:include flush="true" page="<%=path%>SessLoginServlet"></jsp:include> 求救!!


course_list.jsp的部分代码如下
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <meta http-equiv="Content-Language" content="zh-cn">
  <base href="<%=basePath%>">
   
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">  
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
  </head>
  <jsp:include flush="true" page="<%=path%>SessLoginServlet"></jsp:include>
  <body>&nbsp; 
  <jsp:include flush="true" page="<%=request.getContextPath()%>ListServlet"></jsp:include>
  <jsp:include flush="true" page="top.jsp"/>
  <form name="form1" action="" method="post">
  <div align="center">
  <table><tr><td align="center">&nbsp;
</td></tr>
<tr><td align="center">
<table border="0" width="780" align="center">
<tr>
<td>
<table id="table2" style="width: 100%; border-left: 1px solid #7BD676; border-right: 1px solid #7BD676; border-top: 11px solid #7bd676; border-bottom: 1px solid #7BD676; margin: 0; padding: 0" cellSpacing="1" cellPadding="0">
<tbody style="margin: 0; padding: 0">
<tr class="rb">
<td class="pl" align="center" colspan="3" height="20">
<span style="color: #874604">课程信息列表</span></td>
</tr>
<tr class="ry">
<td class="pl" align="center">
<span style="color: #874604">课程名称</span></td>
<td class="pl" align="center">
<span style="color: #874604">上课时间</span></td>
<td style="font-size: 13px; line-height: 24px !important; font-style: normal; font-variant: normal; font-weight: normal; font-family: 宋体; border: 0 none; margin: 0; padding: 0" align="center">
<span style="color: #874604">上课老师</span></td>
</tr>
<%
ArrayList shangpin = (ArrayList)request.getAttribute("course");
for(int i = 0;i < shangpin.size();i++){
ArrayList alRow = (ArrayList)shangpin.get(i);
if(i%2 == 0){
%>
<tr class="rb">
<%}else {%>
<tr class="ry">
<%} %>
<td class="pl" align="center">
<%=alRow.get(1) %></td>
<td class="pl" align="center">
  相关解决方案
本站暂不开放注册!
内测阶段只得通过邀请码进行注册!
 
  • 最近登录:Thu Feb 21 22:29:11 CST 2019
  • 最近登录:Thu Feb 21 22:29:11 CST 2019
  • 最近登录:Thu Feb 21 22:29:11 CST 2019
  • 最近登录:Thu Feb 21 22:29:11 CST 2019
  • 最近登录:Thu Feb 21 22:29:11 CST 2019