📄 searchresult.jsp~16~
字号:
<%@ page contentType="text/html; charset=GB2312" %>
<%@page import="javax.naming.*,java.util.*,javax.rmi.*" %>
<%@include file="top.jsp"%>
<html>
<head>
<title>
searchResult
</title>
<LINK href="css.css" type="text/css" rel="stylesheet">
</head>
<body bgcolor="#ffffff">
<center>
<table width="400">
<tr>
<td style="background-image:url('images/soft2.jpg');height='30';"> 搜索结果</td>
</tr>
<%
String keyword=request.getParameter("keyword");
try{
Context ic=new InitialContext();
Object obj=ic.lookup("search");
software.searchHome home=(software.searchHome)PortableRemoteObject.narrow(obj,software.searchHome.class);
software.searchBean b=(software.searchBean)home.create();
Collection c=b.showResult(keyword);
Iterator i=c.iterator();
while(i.hasNext()){
software.softwareRemote s=(software.softwareRemote)i.next();
String str=new String(s.getSoftwareName().trim().getBytes("iso8859-1"),"gb2312");
%>
<tr>
<td>
<a href=software.jsp?softwareName=<%=str%>><%=str%></a>
</td>
</tr>
<%
}
}catch(Exception ex){
ex.printStackTrace();
}
%>
</table>
</center>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
</body>
</html>
<%@include file="foot.jsp"%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -