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

📄 main.jsp

📁 经典的关于j2ee架构代码,采用alias+struts,其中struts的重构堪称经典中的经典,是学习j2ee和mvc模式最好的例子
💻 JSP
字号:
<%@ include file="../common/IncludeTop.jsp" %>

<div id="Welcome">
  <div id="WelcomeContent">
    <logic:present name="accountBean" scope="session">
      <logic:equal name="accountBean" property="authenticated" scope="session" value="true">
        Welcome <bean:write name="accountBean" property="account.firstName"/>!
      </logic:equal>
    </logic:present>
  </div>
</div>

<div id="Main">
  <div id="Sidebar">
    <div id="SidebarContent">
      <html:link page="/shop/viewCategory.shtml?categoryId=FISH">
        <img src="../images/fish_icon.gif"/></html:link>
      <br/>
      Saltwater, Freshwater
      <br/>
      <html:link page="/shop/viewCategory.shtml?categoryId=DOGS">
        <img src="../images/dogs_icon.gif"/></html:link>
      <br/>
      Various Breeds
      <br/>
      <html:link page="/shop/viewCategory.shtml?categoryId=CATS">
        <img src="../images/cats_icon.gif"/></html:link>
      <br/>
      Various Breeds, Exotic Varieties
      <br/>
      <html:link page="/shop/viewCategory.shtml?categoryId=REPTILES">
        <img src="../images/reptiles_icon.gif"/></html:link>
      <br/>
      Lizards, Turtles, Snakes
      <br/>
      <html:link page="/shop/viewCategory.shtml?categoryId=BIRDS">
        <img src="../images/birds_icon.gif"/></html:link>
      <br/>Exotic Varieties
    </div>
  </div>

  <div id="MainImage">
    <div id="MainImageContent">
      <map name="estoremap"><area alt="Birds" coords="72,2,280,250" href="viewCategory.shtml?categoryId=BIRDS"
                                  shape="RECT"/>
        <area alt="Fish" coords="2,180,72,250" href="viewCategory.shtml?categoryId=FISH" shape="RECT"/>
        <area alt="Dogs" coords="60,250,130,320" href="viewCategory.shtml?categoryId=DOGS" shape="RECT"/>
        <area alt="Reptiles" coords="140,270,210,340" href="viewCategory.shtml?categoryId=REPTILES"
              shape="RECT"/>
        <area alt="Cats" coords="225,240,295,310" href="viewCategory.shtml?categoryId=CATS" shape="RECT"/>
        <area alt="Birds" coords="280,180,350,250" href="viewCategory.shtml?categoryId=BIRDS" shape="RECT"/>
      </map>
      <img height="355" src="../images/splash.gif" align="center" usemap="#estoremap" width="350"/>
    </div>
  </div>

  <div id="Separator">&nbsp;</div>
</div>

<%@ include file="../common/IncludeBottom.jsp" %>

⌨️ 快捷键说明

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