JavaServer Pages (JSP) and JSTL - Ergent problem with the jsp file access in tomcat. HELP...

I use tomcat as my server, I have one JSP file located in :

webapps\abc\war\WEB-INF\jsp\index.jsp

You see my project name is abc, I want to access the index.jsp file, I define another jsp file in the path:webapps\abc callled outside.jsp. I want to use outside.jsp to invoke the index.jsp.

Inside outside.jsp it is :


<html>

<head>

<title>index</title>

</head>

<body>

<%@ include file="war/WEB-INF/jsp/index.jsp" %/>

</body>

</html>


When I open the browser, and access,http://localhost:8080/abc/outside.jsp , the content ofindex.jsp was shown as expect. But, all the link pages of the index.jsp can not shown (PS: the link pages is located in the same path as index.jsp, they are all jsp files). I guess the problem may be that the<%@ include file="war/WEB-INF/jsp/index.jsp" %/> inside outside.jsp include the index.jsp as a static file. Is there any method to make all the link pages of index.jsp can be shown when call from outside.jsp?HELP

Message was edited by:

Mellon

Message was edited by:

Mellon

[1247 byte] By [Mellona] at [2007-11-26 23:08:15]
# 1

I don't know why your links can't be shown, but I can tell you that your suspect:

I guess the problem may be that the <%@ include file="war/WEB-INF/jsp/index.jsp" %/> inside outside.jsp include the index.jsp as a static file.

is wrong, because included jsp is dynamic, not static.

mimi_tan1985a at 2007-7-10 14:02:47 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...