📄 index_control.jsp
字号:
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ page contentType="text/html; charset=gb2312" import="org.bit.demo.*"%>
<html:html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>建立索引</title>
<style type="text/css">
<!--
.style1 {color: #6699CC}
-->
</style>
</head>
<body>
<table width="700" border="0">
<tr>
<td>
<table width="700" border="0">
<tr>
<td width="100" height="30"> </td>
<td width="500" height="30" align="center" valign="middle"><span class="style1">请选择要建立索引的文档集合</span></td>
<td width="100" height="30"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="700" height="1" bgcolor="#6699CC"> </td>
</tr>
<tr>
<td>
<table width="700" border="0">
<tr>
<td width="100" height="30"> </td>
<td width="500" height="30" align="center" valign="middle">
<html:form action="/luceneAction/indexDocAction.do" method="post">
<html:select property="unindexedCollection" style="width:100" size="1">
<%
InitialCollection ic=(InitialCollection)application.getAttribute("collection");
for (int i=0;i<ic.size();i++)
{
DocCollection d=(DocCollection)ic.get(i);
if (!d.isIndexed())
{
%>
<html:option value="<%=String.valueOf(i)%>"><%=d.getName()%></html:option>
<%
}
}
%>
</html:select>
<html:submit value="开始建索" property="startIndex"/>
</html:form>
</td>
<td width="100" height="30"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="700" border="0">
<tr>
<td width="100" height="30"> </td>
<td width="500" height="30" align="center" valign="middle"><span class="style1">已索引的文档集合列表</span></td>
<td width="100" height="30"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="700" height="1" bgcolor="#6699CC"> </td>
</tr>
<tr>
<td>
<%
InitialCollection ic=(InitialCollection)application.getAttribute("collection");
if (ic.size()==0)
{
%>
<font color="red">目前没有文档集合</font>
<%
}
else
{
%>
<table border="0" bgcolor="#FFFF99">
<%
for(int i=0;i<ic.size();i++)
{
DocCollection d=(DocCollection)ic.get(i);
if (d.isIndexed())
{
%>
<tr>
<td width="10"><%=i+1%></td>
<td width="100"><%=d.getName()%></td>
<td width="300"><%=d.getUrl()%></td>
<td width="100"><%=d.getfileNum()%></td>
<%
String delurl = "/luceneAction/delCollectionAction.do?index=" + i;
%>
<td width="50"><html:link page="<%=delurl%>">Delete</html:link></td>
</tr>
<%
}
}
%>
</table>
<%
}
%>
</td>
</tr>
</table>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -