showsearchresult.jsp~3~

来自「100多M的J2EE培训内容」· JSP~3~ 代码 · 共 56 行

JSP~3~
56
字号
<%@ page contentType="text/html; charset=EUC_CN" %>
<%@ page info="JavaCamp.com - ShowSearchResult.jsp " import="java.util.Vector, slsbsample.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>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?