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

📄 userinterestresult.jsp

📁 该源码包括了基于J2EE的数据持久层设计,设计中使用了DAO,Service,等模式,并在Struts下进行了测试.
💻 JSP
字号:
<!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">&nbsp;<bean:write name="similarusers" property="usernum"/></th>
      <th height="20" bgcolor="#FFFFFF" class="style3" scope="col">&nbsp;<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>&nbsp;</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>&nbsp;  </p>
</div>
</body>
</html>

⌨️ 快捷键说明

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