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

📄 index.jsp

📁 struts+hibernate开发的BBS源码
💻 JSP
字号:
<%@ include file="top.jsp" %>
<%@ page contentType="text/html;charset=UTF-8"%>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>   
   
    <style type="text/css">
<!--
@import url("pic/OSX/OSX.css");
-->
    </style>
  </head>
  
  <body>
  <table width="100%" height="66" border="1">  
   
   <%
        	List allsubjects = (List)session.getAttribute(Constants.ALLSUBJECT);
        	System.out.println(allsubjects.size());
        	if(allsubjects != null && allsubjects.size()>0 )
        	{
        	for(Iterator it=allsubjects.iterator();it.hasNext();)
        	{
        	Subject subject = (Subject)it.next();
            request.setAttribute("now",subject);
      %>
    <tr>
      <td colspan="2" class="BodyHeader_Middle">&nbsp;</td>
    </tr>
    <tr>
      <td width="46%"><a href="<%=path%>/topic.do?method=listtopic&subjectid=<%=subject.getId()%>"><bean:write name="now" property="name"/></td>
      <td width="54%" align="right"><bean:write name="now" property="description"/></td>
    </tr>
   <%
    }
    }
    else{
    %>
	<h1> there is no subject</h1>
     <%
    }%> 
	
    </table>
    <%@ include file="bottom.jsp" %>
  </body>
</html>

⌨️ 快捷键说明

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