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

📄 head.jsp

📁 NONO一族J2EE新闻系统 采用了目前流行的J2EE技术
💻 JSP
字号:
<%@ page import="news.*,javax.ejb.*,javax.naming.*, javax.rmi.PortableRemoteObject, java.rmi.RemoteException,util.*,java.io.*,java.util.*" %>
<%!
   private News myNews = null;
   
   public void jspInit() { 
      try {
         InitialContext ic = new InitialContext();
         Object objref = ic.lookup("java:comp/env/ejb/TheNews");
         NewsHome home = (NewsHome)PortableRemoteObject.narrow(objref,NewsHome.class);
         myNews = home.create();
		 
      } catch (RemoteException ex) {
            System.out.println("Couldn't create news bean."+ ex.getMessage());
      } catch (CreateException ex) {
            System.out.println("Couldn't create news bean."+ ex.getMessage());
      } catch (NamingException ex) {
            System.out.println("Unable to lookup home: "+ "TheNews "+ ex.getMessage());
      } catch(Exception ee){}
   }

   public void jspDestroy() {    
         myNews = null;
		 
   }
%>

<HTML>
<HEAD>
<TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="images/css.css" type=text/css rel=stylesheet>
</HEAD>
<BODY background="images/bg.gif" topMargin=0>
<DIV align=center>
<TABLE height=2 cellSpacing=0 cellPadding=0 width=770 align=center 
background="images/bg01.gif" border=0 bgcolor="#666666">
<td height="2">
  <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
      <td width="25%"></td>
      <td width="25%"></td>
      <td width="25%"></td>
      <td width="25%"></td>
    </tr>
  </table>
  <TBODY>
  <TR>
    <TD width=777 height=16>
      <TABLE height=159 cellSpacing=0 cellPadding=0 width=748 
      align=center background=images/top_bg.gif border=0>
        <TBODY>
        <TR>
          <TD width=745>
            <TABLE height="100%" cellSpacing=0 cellPadding=0 width=746 
              border=0><TBODY>
              <TR>
                <TD width=433><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="746" height="159">
                  <param name="movie" value="images/0002%5B1%5D.swf">
                  <param name="quality" value="high">
				  <PARAM NAME="wmode" VALUE="transparent">
                  <embed src="images/0002%5B1%5D.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="746" height="159"></embed>
                </object></TD>
                <TD width=313>
                  <DIV align=center>
                 </DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=770 align=center 
background=images/bg01.gif border=0>
  <TBODY>
  <TR>
    <TD>
      <TABLE class=style cellSpacing=0 cellPadding=0 width=748 align=center 
      border=0>
        <TBODY>
        <TR>
          <TD width=11 height="25" background="images/bg_foot.gif"> </TD>
          <TD>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD>
                  <table border="0" cellpadding="0" cellspacing="0" width="100%" height="15">
                    <tr>
                      <td width="100%" height="25" background="images/bg_foot.gif">
    <p align="left">
 
 <img src=images/navbar_Separator.gif align=absmiddle width="2" height="15">  
 <a href="index.jsp"><font size="2" color="#666666">首页</font></a> <img src=images/navbar_Separator.gif align=absmiddle width="2" height="15">&nbsp;&nbsp;
<%	

	Iterator sorts = myNews.getAllSorts().iterator();
		
	while(sorts.hasNext()){ 
		SortDetails sort = (SortDetails)sorts.next();
%>             
 <a href="articleList.jsp?sortId=<%=sort.getSortId()%>"><font color="#666666" size="2"><%=sort.getSortName()%></font></a>&nbsp;&nbsp;<img src=images/navbar_Separator.gif align=absmiddle width="2" height="15">&nbsp;&nbsp;             
 <%
 	}	///////////显示分类
 %>
    </p>
                      </td>
                    </tr>
                  </table><br>
                </TD></TR></TBODY></TABLE></TD>
          <TD width=11 background="images/bg_foot.gif" height="25">
        <DIV align=right> </DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>

⌨️ 快捷键说明

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