帮忙看看这段程序,关于JSP和XML的!
这是某书上的一段例程,程序如下:
<?xml version = "1.0"?>
<jsp:directive.page contentType = "text/xml"/>
<PROPERTIES>
<DATE>
<% = new java.util.Date()%>
</DATE>
<TOTALMEM>
<% = java.lang.Runtime.getRuntime().totalMemory() %>
</TOTALMEM>
<FREEMEM>
<% = java.lang.Runtime.getRuntime().freeMemory() %>
</FREEMEM>
<JAVA>
<VERSION>
<% = System.getProperty("java.version")%>
</VERSION>
<VENDOR>
<% = System.getProperty("java.vendor") %>
</VENDOR>
</JAVA>
</PROPERTIES>
出错如下:
消息: Server caught unhandled exception from servlet [jsp10]: Compilation failed: "testxml.jsp" D:\WebSphere\AppServer\temp\default_host\default_app\_wrp_2F_xml_2F_testxml_2E_jsp_jsp_1.java:131: Missing term. _jspx_writeString(out, new String(_jspx_html_data[1])); ^ D:\WebSphere\AppServer\temp\default_host\default_app\_wrp_2F_xml_2F_testxml_2E_jsp_jsp_1.java:135: Missing term. _jspx_writeString(out, new String(_jspx_html_data[2])); ^ D:\WebSphere\AppServer\temp\default_host\default_app\_wrp_2F_xml_2F_testxml_2E_jsp_jsp_1.java:139: Missing term. _jspx_writeString(out, new String(_jspx_html_data[3])); ^ D:\WebSphere\AppServer\temp\default_host\default_app\_wrp_2F_xml_2F_testxml_2E_jsp_jsp_1.java:143: Missing term. _jspx_writeString(out, new String(_jspx_html_data[4])); ^ D:\WebSphere\AppServer\temp\default_host\default_app\_wrp_2F_xml_2F_testxml_2E_jsp_jsp_1.java:147: Missing term. _jspx_writeString(out, new String(_jspx_html_data[5])); ^ 5 errors
应用服务器WebSphere 3.5.4!
多谢各位!