请高手们帮帮忙:
我是使用Spring进行开发的web开发,其中按照Spring通常的做法是把jsp文件放在工程WEB-INF目录下面的目录下面.下面的frame.jsp文件中使用frame就出现了问题(如下):
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>frame</title>
</head>
<frameset rows="0,*,18" cols="*" frameborder="no" border="0" framespacing="0">
<frame src="top.jsp" name="topFrame" scrolling="no" noresize >
<frameset cols="190,*" name="main" frameborder="yes" border="0" framespacing="0">
<!-- <frame src="<%=tree%>" name="leftFrame" scrolling="no">-->
<frame src="menu.jsp" name="leftFrame" scrolling="no">
<frame src="main.jsp" name="mainFrame"> </frameset>
<frame src="bottom.jsp" name="bottomFrame" scrolling="no" noresize>
</frameset>
<noframes>
<body>
</body>
</noframes>
</html>程序运行的时候,把frameset框架打开了,但是文件中frame引用的top.jsp,menu.jsp,main.jsp和bottom.jsp四个文件在页面中没有找到.这四个文件和frmae.jsp是在同一个目录下面的.
我认为是路径问题,试图在frame的src中绝对路径(/AppProject/WEB-INF/jsps/*.jsp)也是不行的.(WEB-INF在web应用中是私有目录,是不准外面访问的),请问高手们有没有什么办法?
我是使用Spring进行开发的web开发,其中按照Spring通常的做法是把jsp文件放在工程WEB-INF目录下面的目录下面.下面的frame.jsp文件中使用frame就出现了问题(如下):
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>frame</title>
</head>
<frameset rows="0,*,18" cols="*" frameborder="no" border="0" framespacing="0">
<frame src="top.jsp" name="topFrame" scrolling="no" noresize >
<frameset cols="190,*" name="main" frameborder="yes" border="0" framespacing="0">
<!-- <frame src="<%=tree%>" name="leftFrame" scrolling="no">-->
<frame src="menu.jsp" name="leftFrame" scrolling="no">
<frame src="main.jsp" name="mainFrame"> </frameset>
<frame src="bottom.jsp" name="bottomFrame" scrolling="no" noresize>
</frameset>
<noframes>
<body>
</body>
</noframes>
</html>程序运行的时候,把frameset框架打开了,但是文件中frame引用的top.jsp,menu.jsp,main.jsp和bottom.jsp四个文件在页面中没有找到.这四个文件和frmae.jsp是在同一个目录下面的.
我认为是路径问题,试图在frame的src中绝对路径(/AppProject/WEB-INF/jsps/*.jsp)也是不行的.(WEB-INF在web应用中是私有目录,是不准外面访问的),请问高手们有没有什么办法?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货