ShowSearchResult.jsp
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:1k
源码类别:
Java编程
开发平台:
Java
- <%@ page contentType="text/html; charset=EUC_CN" %>
- <%@ page info="JavaCamp.com - ShowSearchResult.jsp " import="java.util.Vector, sfsbsample.ScheduleVO" %>
- <html>
- <body>
- <table border="5">
- <caption><font size="4">Search results of Java courses </font></caption>
- <tr>
- <th>Schedule ID</th>
- <th>Course Title</th>
- <th>Location</th>
- <th>Start Date</th>
- <th>End Date</th>
- <th>Cost</th>
- <th>Status</th>
- <th>Option</th>
- </tr>
- <% if (request.getAttribute("vec") != null)
- {
- Vector vList = (java.util.Vector) request.getAttribute("vec");
- try
- {
- for( int i=0; i< vList.size(); i++ )
- {
- ScheduleVO schedule = (ScheduleVO) vList.elementAt(i);
- %>
- <tr>
- <td><%=schedule.getScheduleID()%></td>
- <td><%=schedule.getCourseTitle()%></td>
- <td><%=schedule.getLocation()%></td>
- <td><%=schedule.getStartDate()%></td>
- <td><%=schedule.getEndDate()%></td>
- <td><%=schedule.getCost()%></td>
- <td><%=schedule.getStatus()%></td>
- <td>
- <Form Action="shoppingcartclient" method="POST">
- <input type="hidden" name="requestAction" value="AddASchedule">
- <input type="hidden" name="ScheduleID" value="<%= schedule.getScheduleID() %>">
- <input type="submit" value="ADD to Cart">
- </form>
- </td>
- </tr>
- <%
- }
- } catch(Exception e) {
- System.out.println(" ******* exception "+e);
- }
- }
- %>
- </table>
- <p>
- <center>
- <a href="/WebApp3/shop.html">Show Search Result for Java training classes</a>
- </center>
- </body>
- </html>