⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 searchitem.jsp

📁 《J2EE专业项目实例开发》源代码
💻 JSP
字号:
<html>
<jsp:useBean id="search" scope="session" class="SearchBean" />

<jsp:setProperty name="search" property="*" />

<%! Vector vect; %>
<%! int cap,i;
Object obj;%>

<% vect = search.performSearch();%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">
<title>Search Page</title>
</head>


<body bgcolor="#C0C0C0" topmargin="0" background="http:\\localhost:8000\music\Background.bmp" >

<table border="0" width="100%">
  <tr>
    <td width="100%">
      <table border="0" width="97%" height="19">
        <tr>
          <td width="18%" height="13" valign="middle" align="right">
      <font face="Arial" size="5" color="#800000"><b><i>eMusicWorld-----&gt; The World of Music</i></b></font>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>


<form method="POST" action="SearchItem.jsp">

      
<table border="1" width="100%">
  <tr>
    <td width="18%">

<p><font face="Arial" size="2" color="#800000"><b><a HREF="http://localhost:8000/music/home_page.htm">Home</a></b></font></p>

<p><b><font face="Arial" size="2" color="#800000"><a HREF="http://localhost:8000/music/chart_toppers.jsp">Chart Toppers</a></font></b></p>
<p><b><font face="Arial" size="2" color="#800000"><a HREF="http://localhost:8000/SearchContext/SearchAlias">Search</a></font></b></p>
<p><b><font face="Arial" size="2" color="#800000"><a HREF="http://localhost:8000/music/vote_page.jsp">Vote</a></font></b></p>
<p><b><font face="Arial" size="2" color="#800000"><a HREF="http://localhost:8000/music/new_release_page.jsp">New Releases</a></font></b>
<p><font face="Arial" size="2" color="#800000"><b><a HREF="http://localhost:8000/Register/RegisterPage.htm">Register</a></b></font>
<p><font face="Arial" size="2" color="#800000"><b><a HREF="http://localhost:8000/music/login_page.htm">Login</a></b></font>
<p><font face="Arial" size="2" color="#800000"><b><a HREF="http://localhost:8000/music/help_page.htm">Help</a></b></font></p>
      <p>&nbsp;</td>
    <td width="82%" valign="top">
<p align="center"><font face="Arial" size="3" color="#800000"><b><u>Search Page</u></b></font></p>
  <font face="Arial" size="2" color="#800000">Select the search category from the <b>Search By</b> list box and then click the <b>Submit</b> button.</font>
  <p><font face="Arial" size="2" color="#800000"><b>Search By </b></font><select size="1" name="searchBy" style="color: #800000; font-family: Arial; font-size: 10pt">
    <option selected>Classical</option>
    <option>Jazz</option>
    <option>Pop</option>
    <option>Rock</option>
  </select> &nbsp;</p>
  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  &nbsp;
  <input type="submit" value="Submit" name="Submit">

<%
out.println("<font face=\"Arial\" size=\"2\" color=\"#800000\">");

cap=vect.size();
out.println("<table><tr><td valign=\"center\">");

out.println("<font face=\"Arial\" size=\"2\" color=\"#800000\"><b><u>Search Result</u></b></font></td></tr>");
int j=1;

for(i=cap-1;i>=0;i--, j++)
{
out.println("<tr><td><b>");
out.println("<font face=\"Arial\" size=\"2\" color=\"#800000\">");
out.println("</font>");
String str=(String)vect.elementAt(i);
out.println("<font face=\"Arial\" size=\"2\" color=\"#800000\">");
out.println((String)vect.elementAt(i));
out.println("</b></td></tr>");
out.println("</font>");
}
 vect.clear();
%>

    </td>

 

</tr>

</table>


</form>

</body>

</html>


</html>

⌨️ 快捷键说明

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