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

📄 searchresult.jsp

📁 Jsp写的一个语义检索的Demo
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import ="java.lang.*, java.util.*, com.hp.hpl.jena.rdf.model.*,com.hp.hpl.jena.util.*" %>
<HTML>
<HEAD>
<TITLE>语义检索实验系统——检索结果</TITLE>
<META http-equiv="Content-Type" content="text/html">

<link href="images/style.css" rel="stylesheet" type="text/css">
</HEAD>
<jsp:useBean id="bean0" scope="page" class="cyh.searchRerult" />
<%

 String item=request.getParameter("searchItem").trim() ;
 String value=request.getParameter("searchValue").trim() ;
          %>
<BODY BGCOLOR="#000000" text="#333333" link="#6666FF" alink="#6666FF" vlink="#6666FF"   topmargin="0">
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=640 HEIGHT=540 align="center" >
  <TR>
    <TD ROWSPAN=1 COLSPAN=6 WIDTH=640 HEIGHT=40><IMG SRC="images/index1x1.gif" WIDTH=640 HEIGHT=40 BORDER=0></TD>
</TR>
<TR>
    <TD ROWSPAN=1 COLSPAN=3 WIDTH=117 HEIGHT=56><IMG SRC="images/index2x1.gif" WIDTH=117 HEIGHT=56 BORDER=0></TD>
    <TD ROWSPAN=1 COLSPAN=1 WIDTH=318 HEIGHT=56><IMG SRC="images/index2x2.gif" WIDTH=318 HEIGHT=56 BORDER=0></TD>
    <TD ROWSPAN=1 COLSPAN=1 WIDTH=192 HEIGHT=56><IMG SRC="images/index2x3.gif" WIDTH=192 HEIGHT=56 BORDER=0></TD>
    <TD ROWSPAN=1 COLSPAN=1 WIDTH=13 HEIGHT=56><IMG SRC="images/index2x4.gif" WIDTH=13 HEIGHT=56 BORDER=0></TD>
</TR>
<TR>
    <TD ROWSPAN=1 COLSPAN=3 WIDTH=117 HEIGHT=159 background="images/index31b.gif" ><IMG SRC="images/index3x1(2).gif" WIDTH=117 HEIGHT=159 BORDER=0 >
     </TD>
    <TD ROWSPAN=2 COLSPAN=2 WIDTH=510 HEIGHT=425 align="center" valign="top" bgcolor="#FECA58">
      <p>&nbsp;</p>
      <table width="496" height="59" border="0"  >
        <tr height="300">
          <td height="55" bgcolor="#FECA58" valign="top" align="left">
          <b>检索项:</b><%
          if (item.equals("title")){
          out.print("标题"); }
          else if(item.equals("keywords")){
             out.print("关键词");
          }
          else if (item.equals("author")){
          out.print("作者");
          }
          %>&nbsp;&nbsp;&nbsp;&nbsp;<b>检索值:</b><%=value%>
            <table width="496" height="53" border="0">
              <tr >
                <th width="80" height="15" scope="col" >标题</th>
                <th width="380" scope="col">作者</th>
                <th width="80" scope="col">关键词</th>
              </tr>
              <%

          ResIterator result= bean0.search(item,value);
              while(result.hasNext() ){
                Resource res=result.nextResource() ;
                    %>
              <tr>
                <td height="15"><a href="display.jsp?res=<%=res.toString().split("#")[1]%>"><%=bean0.getValue(res,"title") %></a></td>
                <td><%=bean0.getValue(res,"author") %></td>
                <td><%=bean0.getValue(res,"keywords") %></td>
              </tr>
              <%
          }
              %>
          </table>
        </td>
        </tr>
    </table>
    <TD ROWSPAN=2 COLSPAN=1 WIDTH=13 HEIGHT=425 background="images/index3x3.gif" ><IMG SRC="images/index3x3.gif" WIDTH=13 HEIGHT=425 BORDER=0></TD>
</TR>
<TR>
    <TD ROWSPAN=1 COLSPAN=1 WIDTH=14 HEIGHT=266><IMG SRC="images/index4x1.gif" WIDTH=14 HEIGHT=266 BORDER=0></TD>
    <TD ROWSPAN=1 COLSPAN=1 WIDTH=87 HEIGHT=266><IMG SRC="images/index4x2.gif" width=87 height=266 BORDER=0></TD>
    <TD ROWSPAN=1 COLSPAN=1 WIDTH=16 HEIGHT=266><IMG SRC="images/index4x3.gif" WIDTH=16 HEIGHT=266 BORDER=0></TD>
</TR>
<TR>
    <TD ROWSPAN=1 COLSPAN=1 WIDTH=14 HEIGHT=19><IMG SRC="images/index5x1.gif" WIDTH=14 HEIGHT=19 BORDER=0></TD>
    <TD ROWSPAN=1 COLSPAN=1 WIDTH=87 HEIGHT=19><IMG SRC="images/index5x2.gif" WIDTH=87 HEIGHT=19 BORDER=0></TD>
    <TD ROWSPAN=1 COLSPAN=1 WIDTH=16 HEIGHT=19><IMG SRC="images/index5x3.gif" WIDTH=16 HEIGHT=19 BORDER=0></TD>
    <TD ROWSPAN=1 COLSPAN=3 WIDTH=523 HEIGHT=19><IMG SRC="images/index5x4.gif" width=523 height=19 BORDER=0 ></TD>
</TR>
</TABLE>
</BODY>
</HTML>

⌨️ 快捷键说明

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