hsp框架集中的jsp未编译:weblogic

时间:2011-09-02 08:39:25

标签: jsp weblogic frameset

我有这个简单的代码:

<%@ page import="java.io.*"%>
<%@ page import="java.util.Properties"%>
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Vijay's TEst</title>
</head>
<frameset rows="17%,*">
<frame name="header" src="test_headers.jsp" scrolling="no" noresize frameborder="0" />
</frameset>
</html>

但问题是我收到错误404 - 我编译时未找到&amp;在weblogic中运行这个jsp。

请帮助我。

1 个答案:

答案 0 :(得分:0)

让我们说运行的jsp是 Test.jsp

Test.jsp 的位置 - WebContent

test_headers.jsp的位置 - WebContent

然后这是有效的。

<frame name="header" src="test_headers.jsp" scrolling="no" />

Test.jsp 的位置 - WebContent

test_headers.jsp的位置 - WebContent / jsp

然后这是有效的

<frame name="header" src="/jsp/test_headers.jsp" scrolling="no" />