servlet服务器端验证(7)
来源:未知 责任编辑:责任编辑 发表时间:2014-02-02 17:48 点击:次
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<%
ArrayList l = new ArrayList();
l = (ArrayList) request.getAttribute("error");
Iterator i = l.iterator();
String str = "";
while (i.hasNext()) {
str = (String) i.next();
out.println("<table BORDER=1 width=200><tr><td>" + str + "</td></tr></table>");
}
%>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>error</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<%
ArrayList l = new ArrayList();
l = (ArrayList) request.getAttribute("error");
Iterator i = l.iterator();
String str = "";
while (i.hasNext()) {
相关新闻>>
- 发表评论
-
- 最新评论 更多>>