userinterestresult.jsp
来自「该源码包括了基于J2EE的数据持久层设计,设计中使用了DAO,Service,等」· JSP 代码 · 共 73 行
JSP
73 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<%@ page language="java" contentType="text/html; charset=gb2312"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ page import="java.util.List"%>
<%@ page import="org.conference.action.UserSimilarInterestAction" %>
<title>Similar User</title>
<style type="text/css">
<!--
.style1 {
color: #000000;
font-size: 24px;
}
.style2 {color: #FFFFFF}
.style3 {font-size: 18px}
.style4 {color: #FFFFFF; font-size: 18px; }
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a:active {
text-decoration: none;
}
-->
</style>
</head>
<body>
<div align="center" class="style1">
<p>Similar users </p>
<table width="780" border="1">
<%UserSimilarInterestAction service=new UserSimilarInterestAction();%>
<tr>
<th width="239" bgcolor="#61B2DF" class="style2 style3" scope="col">User</th>
<th width="525" bgcolor="#61B2DF" scope="col"><span class="style4">Interests</span></th>
</tr>
<logic:present name="similarusers">
<logic:iterate id="similarusers" name="similarusers">
<tr>
<th bgcolor="#FFFFFF" class="style3" scope="col"> <bean:write name="similarusers" property="usernum"/></th>
<th height="20" bgcolor="#FFFFFF" class="style3" scope="col"> <bean:define id="xllink" name="similarusers" property="interests"/>
<%List interestlink = service.separatestationchange((String)xllink);%>
<%int j=0;
for(j=0;j<interestlink.size();j++){%>
<a href="<%=request.getContextPath()%>/userSimilarInterest.do?interestname=<%=interestlink.get(j)%>"> <%=interestlink.get(j)%></a>
<%}%>
</tr>
</logic:iterate>
</logic:present>
</table>
<p> </p>
<table width="58" border="0">
<tr>
<td bgcolor="#61B2DF"><span class="style2"><a href="<%=request.getContextPath()%>/pages/mainmenu.jsp">return</a></span></td>
</tr>
</table>
<p> </p>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?