ShowSearchResult.jsp~2~
资源名称:某公司的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, j2eebootcamp.developingEJB.chapter6.model.ScheduleVO" %>
- <html>
- <title> Chapter 6 Search Schedule Sample Application</title>
- <body>
- <center>
- <h2> Chapter 6 Search Schedule Sample Application</h2>
- <table border="5">
- <caption><font size="4"> Search Result of Java Class Schedules</font></caption>
- <tr>
- <th>Schedule ID</th>
- <th>Course Title</th>
- <th>Location</th>
- <th>Start Date</th>
- <th>End Date</th>
- <th>Cost(US)</th>
- <th>Status</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>
- </tr>
- <%
- }
- } catch(Exception e) {
- System.out.println(" ******* exception "+e);
- }
- }
- %>
- </table>
- <p>
- <a href=SearchCourse.htm>Search for Java Training classes</a>
- </center>
- </body>
- </html>