首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Eclipse开发 >

Eclipse中include 标签使用出现的有关问题

2012-10-29 
Eclipse中include 标签使用出现的问题在MyEclipse中使用%@ include %标签让一个页面包含另一个页面。结果

Eclipse中include 标签使用出现的问题
在MyEclipse中使用<%@ include %>标签让一个页面包含另一个页面。结果出现了如下的错误:

Multiple annotations found at this line:- Syntax error on token "}", { expected- Syntax error, insert "Finally" to complete TryStatement


我的主页面seriesManage.jsp主要部分如下:
<div id="content3" items="${requestScope.biaozhunParameters}">    <%@include file="seriesItem.jsp" %>    </c:forEach>    </c:otherwise>    </c:choose>    </div>    <div id="content4" items="${requestScope.xingnengParameters}">    <%@include file="seriesItem.jsp" %>    </c:forEach>    </c:otherwise>    </c:choose>    </div>    <div id="content5" items="${requestScope.caizhiParameters}">    <%@include file="seriesItem.jsp" %>    </c:forEach>    </c:otherwise>    </c:choose>    </div>


seriesItem.jsp页面主要对应内容如下:
<%@ page language="java"  pageEncoding="gb2312"%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%><c:choose><c:when test="${parameter.opinionType == 4}"><div><label>${parameter.name }:</label><input type="button" value="选择"></div></c:when><c:otherwise>....内容省略        </c:otherwise></c:choose>


主页面中的第一个include并没有提示错误,后面的include都提示了错误。但是可以运行~~
请问怎么解决这个问题?? 1 楼 babbyyang 2009-05-20   去掉 <%@ page language="java"  pageEncoding="gb2312"%>   这一行试试 2 楼 wnzz95391511 2009-05-20   babbyyang 写道
去掉 &lt;%@ page language="java"&nbsp; pageEncoding="gb2312"%&gt;&nbsp;&nbsp; 这一行试试

谢谢,不过好像不行啊!不用那个gb2312,我的jsp保存不了,因为文件中有中文!!

热点排行