📄 class.jsp~24~
字号:
<%@page contentType="text/html; charset=GB2312"%>
<%@page import="java.util.*"%>
<%@include file="top.jsp"%>
<html>
<head>
<title>软件园</title>
<LINK href="css.css" type="text/css" rel="stylesheet">
</head>
<body bgcolor="#ffffff">
<center>
<h1>
<%
String type = request.getParameter("classType");
System.out.println("2"+type+new String(type.getBytes("iso8859-1"),"gb2312" ));
//System.out.println("type:" + type);
try {
javax.naming.Context ic = new javax.naming.InitialContext();
Object obj = ic.lookup("softwareRemote");
software.softwareRemoteHome home = (software.softwareRemoteHome) javax.rmi.PortableRemoteObject.narrow(obj, software.softwareRemoteHome.class);
Collection c = home.findAll();
Iterator i = c.iterator();
String strSoftware, dbType;
while (i.hasNext()) {
software.softwareRemote s = (software.softwareRemote) i.next();
strSoftware = s.getSoftwareName();
// dbType=new String(s.getSoftwareType().getBytes("iso8859-1"),"gb2312");
//System.out.println("dbType:"+dbType);
//System.out.println(s.getSoftwareType());
if (!s.getSoftwareType().equals(type)) {
// System.out.println("1"+s.getSoftwareType()+new String(s.getSoftwareType().getBytes("iso8859-1"),"gb2312" ));
//System.out.println("2"+type+new String(type.getBytes("iso8859-1"),"gb2312" ));
%>
<tr>
<td>
<a href="software.jsp?softwareName=<%=new String(strSoftware.getBytes("iso8859-1"),"gb2312")%>"><%=new String(strSoftware.getBytes("iso8859-1"),"gb2312")%> </a>
</td>
</tr>
<%
}}
} catch (Exception ex) {
ex.printStackTrace();
}
%>
</h1>
</center>
</body>
</html>
<%@include file="foot.jsp"%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -