日期:2014-05-17  浏览次数:20695 次

求问?多个页面include的 部分jsp不显示,有代码
有个 Thingshow.jsp 它由三个jsp组成  
它的主要代码是:
 <body>
  <jsp:include page="Header.jsp"></jsp:include>
  <jsp:include page="body.jsp"></jsp:include>
  <jsp:include page="foot.jsp"></jsp:include>

  </body>

但是 Header.jsp代码的部分
在Header.jsp页面中正常显示,但是不显示在Thingshow.jsp页面中
代码如下:
<style type="text/css">
<!--
.STYLE1 {font-family: "楷体_GB2312"; font-weight: bold; font-size: large;color:#D237CB;
}
#Layer1 {
position:absolute;
width:1330px;
height:67px;
z-index:0;
top: 5px;
background-color: #EFBAED;
}
-->
  </style>
<body>
  <span class="STYLE2"></span>
 
  <div id="Layer1">
  <table width="336" height="26" border="0">
  <tr>
  <td><span id="state" style="color:red"><%=state %></span> 
  <a href="Longin.jsp" target="_parent"><span id="lg" style="color:red"><%=lg %></span></a>&nbsp;&nbsp;
  <a href="Register.jsp" target="_parent"><span id="rg" style="color:red"><%=rg %></span></a>
  <a href="exit.jsp" target="_parent"><span id="exit" style="color:red"><%=exit %></span></a></td>
  </tr>
  </table>
  <div align="center" class="STYLE1">公平的交易,美好的回忆<hr /></div>
  </div>
</body>
啊啊啊 纠结无比 求大神求救啊

------解决方案--------------------
没看到你代码中哪里引用了Header.jsp,如果引用就要看路径了
------解决方案--------------------
仔细检查一下
------解决方案--------------------
Header.jsp,Thingshow.jsp,body.jsp,foot.jsp这些文件的路径应该保证在同一个目录下,另外好像记得有一种情况被引用的那个jsp文件中好像不能有<body>标签,不知道是不是这个情况,把Header.jsp中的<body>标签删除下试试吧,其他原因就不知道了
------解决方案--------------------
把style移到Thingshow.jsp中,header中只要放body中那部分代码。。