帮忙看看这段程序,关于JSP和XML的!

yuanzi yuanzi 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
这是某书上的一段例程,程序如下:
<?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!
多谢各位!
...全文

相关推荐

评论 6
收藏 已收藏
分享
返回顶部
yuanzi
Web 开发 81,108 成员 341,721 内容