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

📄 category.jsp

📁 《J2EE企业级应用开发》一书的配套源代码
💻 JSP
字号:
<jsp:include page="header.jsp" flush="true"/>
<jsp:include page="sidebar.jsp" flush="true"/>
<jsp:useBean id="shoppingSession" scope="session" class="com.j2eeapp.cdstore.bean.ShoppingSession" />
<%@ page contentType="text/html;charset=gb2312" import="java.util.*,com.j2eeapp.cdstore.vo.*	" %> 
<% Collection category=shoppingSession.getCategory();
Iterator it=category.iterator();
%>
<table border="0" cellspacing="0" cellpadding="2" width="500">

   <tr>
   <th background="images/titlebar_stretch.gif" valign="top" class="title" align="left">类别</th>
   <th background="images/titlebar_stretch.gif" align="right" valign="center" class="title">描述</th>
  </tr>
<% while(it.hasNext())
  {  
     Category cate=(Category)it.next();
  %>  
  <Tr>
  <td><a href="showitems.jsp?category=<%=cate.getCateId()%>" class="heading"><%=cate.getName()%></td>
  <td><%=cate.getDescription()%></td>
  </Tr>
  <%}%>
</table>
<jsp:include page="footer.jsp" flush="true"/>
 

⌨️ 快捷键说明

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