application错误编号500 求解
<%@ page language="java" import="java.util.Enumeration"contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
<h1>application内置参数</h1>
<%
application.setAttribute("city","北京");
application.setAttribute("postcode","10000");
application.setAttribute("email","boluo@162.com");
%>
所在诚实地:<%=application.getAttribute("city") %><br>
application中属性有<%
Enumeration attributes = application.getAttributeNames();
while (attributes.hasMoreElements())
{
out.println(attributes.nextElement());
}
%><br>
application引擎番号:<%=application.getServerInfo()%><br>
</body>
</html>