main.jsp
上传用户:zhihansy
上传日期:2014-12-04
资源大小:7241k
文件大小:2k
- <%@ page language="java" contentType="text/html;charset=GBK"%>
- <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"
- prefix="bean"%>
- <%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
- prefix="html"%>
- <%@ taglib uri="http://jakarta.apache.org/struts/tags-logic"
- prefix="logic"%>
- <html>
- <head>
- <title>城市通搜索</title>
- </head>
- <body>
- <br>
- <br>
- <br>
- <br>
- <br>
- <html:form method="post" action="/searcher">
- <div align="center">
- 城市通搜索 :
- <html:text property="search" />
- <html:errors property="search" />
- <html:submit>搜索</html:submit>
- </div>
- <br>—————————————————————————————————————————————排序方式:
- <html:select property="sort">
- <html:option value="1">价格</html:option>
- <html:option value="2">销量</html:option>
- <html:option value="3">折扣</html:option>
- </html:select >
- <br>
- <logic:present name="photo">
- <logic:iterate id="item" name="photo" indexId="index"
- scope="request">
- <logic:iterate id="elementValue" name="item" property="value"
- length="5">
- <bean:write name="elementValue" />
- </logic:iterate>
- <br>------------------------------------------------
- <br>
- </logic:iterate>
- </logic:present>
- <br>
- <logic:notPresent name="photo">
- <br>什么也没有 </logic:notPresent>
- <%
- String str = (String)request.getAttribute("page");
- %>
- <%= str%>
- </html:form>
- </body>
- <script type="text/javascript">
- function search(){
- alert("test");
- }
- </script>
- </html>