For循环显示邮件列表
来源:互联网 发布:中国移动送话费软件 编辑:程序博客网 时间:2024/06/05 04:25
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'for.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
</head>
<body>
<%
Object[][] letters = {
{true,"恭喜您注册的信息已经生效","e_inn@163.com","helloworld@gmail.com","2007-8-8"},
{true,"Java EE 5.0 release!!","admin@sun.com","helloworld@gmail.com","2007-6-24"},
{false,"来信已经收到,下周末见面商谈","foo@bar.com","helloworld@gmail.com","2007-5-20"},
{false,"您的博客有新的留言","blog@foo.bar.com","helloworld@gmail.com","2007-3-2"},
};
String[] colors={"#DDDDDD","#AAAAAA",};
%>
<table border=0 cellspacing=1 cellpadding=2 width=700 align=center>
<tr style="background:url(images/vertical_line.gif);">
<td align="center" style="line-height:22px;"> </td>
<td align="center" style="line-height:22px;">标题 </td>
<td align="center" style="line-height:22px;">发信人 </td>
<td align="center" style="line-height:22px;">收信人 </td>
<td align="center" style="line-height:22px;">时间 </td>
</tr>
<%
for(int i=0;i<letters.length;i++){
Object[] letter = letters[i];
%>
<tr style="background:<%=colors[i%2] %>">
<td align="center">
<%
if(letter[0] == Boolean.TRUE){
%>
<img src="images/mail.gif"/>
<%
}else{
out.println(" ");
}
%>
</td>
<td><a href="#"><%=letter[1] %>></a></td>
<td><%=letter[2] %></a></td>
<td><%=letter[3] %></a></td>
<td align="center"><%=letter[4] %></a></td>
</tr>
<%
}
%>
</table>
</body>
</html>
- For循环显示邮件列表
- for循环创建列表
- 列表和for循环
- Linux for循环之列表for循环
- android for循环创建列表
- Python-for循环遍历列表
- Linux for循环之不带列表for循环
- for循环在列表中的使用
- 学习Python语言-列表和for循环
- 练习32:列表与for循环
- 微信小程序-wx:for 循环列表
- 使用for循环对列表编译
- 微信小程序wx:for循环列表渲染
- for while循环 列表长度变化
- 邮件列表
- 邮件列表
- python 列表处理,for循环语句,if条件判断
- Python零基础入门之三---(for循环+列表)
- ttt
- 在WIN32控制台程序中使用MFC头文件
- projecteuler No.64 Odd period square roots
- Wininet模拟登陆网站
- TOJ-3499. Network
- For循环显示邮件列表
- 一个简单PDF文件的结构分析
- ttt
- Android使用SimpleAdapter更新ListView里面的Drawable元素
- Oracle SQL优化规则详解
- 《高效学习OpenGL》之Hello OpenGl
- 马化腾:移动互联网的未来空间
- 背景随高度变化
- Cocos2d-x 的onEnter() 和 onEnterTransitionDidFinish() 场景延时跳转