如题,这样的写法报错了:“org.apache.jasper.JasperException:。。attribute for %>" is not properly terminated”,
由于这个page属性需要动态指定,请问,这个应该怎么做?谢谢了,很着急,大侠们帮忙下!
由于这个page属性需要动态指定,请问,这个应该怎么做?谢谢了,很着急,大侠们帮忙下!
调试欢乐多
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/x-tags" prefix="b"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
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>
<b:head includes="ext" />
<link href="/dss/style/main.css" rel="stylesheet" type="text/css"/>
<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> <body>
<table style="width: 100%;">
<tr>
<td style="width: 95%;">
<div id="buttonPanel"
style="width: 100%; float: right; text-align: right;">
<table style="float: right; width: 95%; text-align: right;">
<tr>
<td>
<input type="button" value="查询" />
<input type="button" value="新增" />
<input type="button" value="删除" />
</td>
</tr>
</table>
</div>
</td>
</tr> <tr>
<td>
<b:form id="queryCondition">
<div id="queryConditionPanel" style="width: 100%; float: left;">
<table
style="font-size: 9pt; border: 1px solid black; padding: 3px; width: 99%;">
<tr>
<td style="width: 40%;">
所属类型:
<input type="text" id="selectedCategory"
style="border: none; border-bottom: 1px solid black; width: 150px;"
readonly="readonly" />
<input type="text" name="widgetCategoryId"
style="display: none;" /> <input type="button" value=".." style="font-size: 8pt;" />
</td>
<td>
小组件名称或功能描述:
<input type="text" name="widgetNameOrDesc" />
</td>
</tr>
</table>
</div>
</b:form>
</td>
</tr> <tr>
<td>
<div id="listDiv">
<jsp:include page="<%=basePath%>pages/pconf/widget/WidgetInfoManage-widgetListDetail.jsp"></jsp:include>
</div>
</td>
</tr>
</table>
</body>
</html>
struts错误:Struts Problem ReportStruts has detected an unhandled exception:
# Messages: /pages/pconf/widget/WidgetInfoManage-listWidgets.jsp(76,28) attribute for %>" is not properly terminated
File: org/apache/jasper/compiler/DefaultErrorHandler.java
Line number: 40对不起,发贴的时候手误少写个引号,麻烦帮我看一下这个页面,最下面部分的include,用到框架struts2,是不是这个原因?
<%@ page file="" %>
<c:include url=""/>