JSP frameset无法引用WEB-INFO下JSP
2017-12-15 本文已影响0人
a9b854aded01
<frameset rows="95,*,30" cols="*" frameborder="no" border="0" framespacing="0">
<!--top样式-->
<frame src="./top" name="topframe" scrolling="no" noresize id="topframe" title="topframe" />
<!--contact样式-->
<frameset id="attachucp" framespacing="0" border="0" frameborder="no" cols="194,12,*" rows="*">
<frame scrolling="auto" noresize="" frameborder="no" name="leftFrame" src="left.html"></frame>
<frame id="leftbar" scrolling="no" noresize="" name="switchFrame" src="swich.html"></frame>
<frame scrolling="auto" noresize="" border="0" name="mainFrame" src="main.html"></frame>
</frameset>
<!--bottom样式-->
<frame src="bottom.html" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" title="bottomFrame" />
</frameset><noframes></noframes>
<!--不可以删除-->
</html>
Web.XML添加top文件的映射
<servlet>
<servlet-name>top</servlet-name>
<jsp-file>/WEB-INF/jsp/top.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>top</servlet-name>
<url-pattern>/top</url-pattern>
</servlet-mapping>
image.png