ShowSearchResult1.jsp~2~
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:1k
源码类别:

Java编程

开发平台:

Java

  1. <%@ page contentType="text/html; charset=EUC_CN" %>
  2. <%@ page info="JavaCamp.com - ShowSearchResult1.jsp " import="java.util.Vector, slsbsample.ScheduleVO"  %>
  3. <html>
  4. <title> Chapter 6 Search Schedule Sample Application</title>
  5. <body>
  6. <center>
  7. <h2> Chapter 6 Search Schedule Sample Application</h2>
  8. <table border="5">
  9. <caption><font size="4"> Search Result of Java Class Schedules</font></caption>
  10. <tr>
  11. <th>Schedule ID</th>
  12. <th>Course Title</th>
  13. <th>Location</th>
  14. <th>Start Date</th>
  15. <th>End Date</th>
  16. <th>Cost(US)</th>
  17. <th>Status</th>
  18. </tr>
  19. <%   if (request.getAttribute("sched") != null){
  20.      ScheduleVO schedule=(ScheduleVO)request.getAttribute("sched");
  21. %>
  22. <tr>
  23. <td><%=schedule.getScheduleID()%></td>
  24. <td><%=schedule.getCourseTitle()%></td>
  25. <td><%=schedule.getLocation()%></td>
  26. <td><%=schedule.getStartDate()%></td>
  27. <td><%=schedule.getEndDate()%></td>
  28. <td>$<%=schedule.getCost()%></td>
  29. <td><%=schedule.getStatus()%></td>
  30. </tr>
  31. <%
  32.          }
  33. %>
  34. </table>
  35. <p>
  36. <a href=SearchCourse.htm>Search for Java Training classes</a>
  37. </center>
  38. </body>
  39. </html>