📄 newslistright.jsp
字号:
<%@ page language="java" import="java.util.*,com.util.page.*"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%
Map newsValues = new HashMap();
newsValues.put("newsTypeId", request.getParameter("newsTypeId"));
newsValues.put("currentPage", ((Page) request.getAttribute("page"))
.getCurrentPage());
pageContext.setAttribute("newsValues", newsValues);
%>
<table align="center" width="543" border="0" bordercolor="#22AAAA" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<th colspan="2" align="center" valign="baseline"><font size="4"><%=request.getAttribute("typename")%></font></th>
</tr>
<logic:present scope="request" name="newsList">
<logic:iterate id="news" name="newsList">
<tr>
<td align="left">
<font color="red"><b>*<bean:write name="news"
property="id" /> </b> </font>
<html:link action="/newsForward" paramId="newsId" paramName="news" paramProperty="id"><bean:write
name="news" property="title" /></html:link>
</td>
<td align="left" width="20%">
<bean:write name="news" property="addTime" />
</td>
</tr>
</logic:iterate>
</logic:present>
<tr>
<td height="20px">
</td>
</tr>
<tr>
<td align="left" colspan="2">
共
<bean:write name="page" property="totalPages" />
页 第
<bean:write name="page" property="currentPage" />
页
<html:link action="/newsList?pageMethod=first" name="newsValues">首页</html:link>
<html:link action="/newsList?pageMethod=previous" name="newsValues">上一页</html:link>
<html:link action="/newsList?pageMethod=next" name="newsValues">下一页</html:link>
<html:link action="/newsList?pageMethod=last" name="newsValues">尾页</html:link>
</td>
</tr>
</tbody>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -