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

📄 header.jsp

📁 Oracle的J2EE Sample
💻 JSP
字号:
<%--
 * @author  Pushkala
 * @version 1.0
 *
 * Development Environment : Oracle9i JDeveloper
 * 
 * Name of the File : Header.jsp
 *
 * Creation/Modification History  :
 *    Pushkala     26-Apr-2002      Created
 *
 * Overview of Application        :
 *
 *   This page is part of the IBFBS application.
 *   This page displays the Header information ie,. the Title gifs and the User Name of the user logged in.
 *   This also displays the Tab images required to navigate to the other pages in the application.
 *   This is included in all JSPs to display the header information.
 *
--%>
<%-- Set Context type and characterset --%>
<%@page contentType="text/html;charset=WINDOWS-1252" language="java" %>

<%
  // This request parameter contains the name of the image which has to be displayed 
  // This represents the funtionality that the user is currently trying to navigate to
  String srctabs = request.getParameter("TABIMAGE");

  // Get the user name of the logged in user, to display a welcome message in the header  
  String userName = (String) session.getAttribute("USERNAME.RESPONSE");  
%>	

<jsp:include page="TitleGifs.jsp" flush="TRUE"/>

<table border="0" cellspacing="0" cellpadding="0" width="100%">
  <tr bordercolor="#008000" border="1">
    <td align="left" bgcolor="#FFFFEA" bordercolor="#008000" >&nbsp;&nbsp;
      <b><font face="Verdana, Times New Roman, Times, serif" color="#990000" size="2">
            Welcome <%= userName %>
      </font></b>
    </td>
    <td width="420" align="right" bgcolor="#FFFFEA" ><img name="TabImage" src="images/<%=srctabs%>" ismap usemap="#menu" border=""></td>
    <map name="menu"> 
      <area shape="rect" coords="5,2,95,22"    alt="My Home"               href="controllerservlet?EVENTNAME=MYHOME"
	    onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('TabImage','','images/myhome.gif',1)">
      <area shape="rect" coords="112,1,202,21" alt="View/Edit Profile"     href="controllerservlet?EVENTNAME=PROFILE"
	    onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('TabImage','','images/profile.gif',1)">
      <area shape="rect" coords="212,1,310,21" alt="Preferences & Alerts"  href="controllerservlet?EVENTNAME=PREFS"
	    onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('TabImage','','images/personalize.gif',1)">
      <area shape="rect" coords="318,1,412,21" alt="Portfolio Management"  href="controllerservlet?EVENTNAME=PORTFOLIO"
	    onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('TabImage','','images/portfolio.gif',1)">
      <area shape="rect" coords="428,1,510,21" alt="Logout"                href="controllerservlet?EVENTNAME=LOGOUT"
	    onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('TabImage','','images/logout.gif',1)">
    </map>
  </tr>
</table>   

⌨️ 快捷键说明

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