正在加载图片...
構成這段功能的程式碼在 Petstore homelsrclapps'petstorelsrcldocrootlsidebar jsp( Petstore home即我們安裝 Petstore之目錄) <%( page content Type="text/html; charset=UTF-8%> <9@ taglib prefix=c"uri="/WEB-INF/c tld"%> <% taglib uri="/WEB-INF/waftags tld"prefix=waf"%> <waf cache name="sidebar en US"scope="context"duration=300000> sp use bea d="catalog class="com.sun j2ee blueprints. catalog. client. Catalog Helper scope="session"> <c: set value="en US"target="s(catalog) "property="locale" <c: set value="5"target=$(catalog)"property=count"> <c set value="0"target=$(catalog)"property="start"> <table border="0"width=100% cellpadding="1"cellspacing="0"> <td bgcolor="#336666 class=petstore title "align="center> <font color="#FFFFFF">Pets</font> </td> <td bgcolor=#336666"> <table border="0"width=100%"cellpadding="5"cellspacing=1"> <td bgcolor"#FFFFFF"class="petstore> <c: for Each var="item"items="S(catalog. categories. list)"> <a href="category. screen? category id=<c out value="$ item id "/> <c out value="S item name)"A </c forEach構成這段功能的程式碼在 Petstore_home\src\apps\petstore\src\docroot\sidebar.jsp(Petstore_home 即我們安裝 Petstore 之目錄)。 sidebar.jsp <%@ page contentType="text/html;charset=UTF-8" %> <%@ taglib prefix="c" uri="/WEB-INF/c.tld" %> <%@ taglib uri="/WEB-INF/waftags.tld" prefix="waf" %> <waf:cache name="sidebar_en_US" scope="context" duration="300000"> <jsp:useBean id="catalog" class="com.sun.j2ee.blueprints.catalog.client.CatalogHelper" scope="session"/> <c:set value="en_US" target="${catalog}" property="locale"/> <c:set value="5" target="${catalog}" property="count"/> <c:set value="0" target="${catalog}" property="start"/> <table border="0" width="100%" cellpadding="1" cellspacing="0"> <tr> <td bgcolor="#336666" class="petstore_title" align="center"> <font color="#FFFFFF">Pets</font> </td> </tr> <tr> <td bgcolor="#336666"> <table border="0" width="100%" cellpadding="5" cellspacing="1"> <tr> <td bgcolor="#FFFFFF" class="petstore"> <c:forEach var="item" items="${catalog.categories.list}" > <a href="category.screen?category_id=<c:out value="${item.id}" />"> <c:out value="${item.name}" /> </a> <br> </c:forEach> </td>
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有