⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 informationlistright.jsp

📁 这个是完整的wap项目的源码 开发语言 Java 系统架构 Struts + hibernate + spring 数据库 Mysql5.0 应用服务器Tomcat5.0 开发工具 MyEc
💻 JSP
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="java.util.List"%>
<%@ page import="java.util.Iterator"%>
<%@ page import="com.longtime.wap.model.Information"%>
<%@ page import="com.longtime.wap.common.enums.CategoryEnum"%>
<%@ page import="com.longtime.wap.module.front.common.FrontConstant" %>
<%@ taglib uri="/page-tag" prefix="page"%>
<%String path = request.getContextPath();

                            String basePath = request.getScheme() + "://"

                                               + request.getServerName() + ":" + request.getServerPort()

                                               + path + "/";

 

                            %>
<FORM METHOD="POST" ACTION="" name="informationList">
	<input type="hidden" name="businessId" value="<%=request.getAttribute(FrontConstant.BUSINESS_ID)%>" />
	<table border="1" align="center" width="90%" class="TableFrontRightShow">
		<th>
			序号
		</th>
		<th>
			标题
		</th>
		<th>
			发布单位
		</th>
		<th>
			业务
		</th>
		<th>
			分类
		</th>
		<th>
			费用(单位:元)
		</th>
		<%List infos = (List) request.getAttribute(FrontConstant.INFORMATIONS_LIST);
			int i = 0;
			if (null != infos && infos.size() > 0) {
				Iterator it = infos.iterator();
				while (it.hasNext()) {
					i++;
					Information info = (Information) it.next();

					%>
		<tr>
			<td align="center">
				<%=i%>
			</td>
			<td>
				&nbsp;&nbsp;<a href="informationDetail.do?method=getInformation&id=<%=info.getInformationId()%>"><%=info.getTitle()%></a>
			</td>
			<td align="center">
				<%=info.getBusiness().getCp().getCompanyName()%>
			</td>
			<td align="center">
				<%=info.getBusiness().getBusinessName()%>
			</td>
			<td align="center">
				<%=CategoryEnum.getValue(
									info.getBusiness().getCategory())
									.toChinese()%>
			</td>
			<td align="center">
				<%=info.getPrice()%>
			</td>
		</tr>
		<%}
			}

		%>
		<tr>
			<td colspan="6">
				<page:page_tag formName="informationList" action="listInformations.do?method=listInformation" />
			</td>
		</tr>
	</table>
	<br/>
	<div align="center">
		<input type="button" value="返回首页" onClick="window.location.href='<%=basePath%>index.frame';">
	</div>
</FORM>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -