请教各位,我在JBuider2006能够编译成功以下的两个JSP页面:
--Include.jsp
<%@ page contentType= "text/html; charset=gb2312 " %>
<html>
<head>
<title>
Include.jsp
</title>
</head>
<body bgcolor= "#ffffff ">
<jsp:include page= "IncludeTo.jsp " flush= "true ">
<jsp:param name= "IncludeTo.jsp " value= "true "/>
</jsp:include>
</body>
</html>
--IncludeTo.jsp
<%@ page contentType= "text/html; charset=gb2312 " %>
<html>
<head>
<title>
IncludeTo.jsp
</title>
</head>
<body bgcolor= "#ffffff ">
Welcome to xi 'an JiaoTong University
</body>
</html>
但是在Eclipse下却出错,而且编译其他的JSP文件也是这样:
2007-5-31 14:31:59 org.apache.commons.digester.Digester fatalError
严重: Parse Fatal Error at line 359 column 23: The entity name must immediately follow the '& ' in the entity reference.
org.xml.sax.SAXParseException: The entity name must immediately follow the '& ' in the entity reference.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.scanAttributeValue(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanAttribute(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.Catalina.load(Catalina.java:489)
at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)
Catalina.start using C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\server.xml: org.xml.sax.SAXParseException: The entity name must immediately follow the '& ' in the entity reference.