<jsp:include> Not Printing On Web Page, But In Source Code

Hi there,

I just had a friend install Tomcat for me on my Apache server at school and it's working great with the test .jsp page I created... until I started to use the <jsp:include> tag. Here's my source for "index.jsp":

<html>

<head>

<% String title ="Hello World!"; %>

<title><%= title %></title>

</head>

<body>

<h1><%= title %></h1>

<jsp:include page="/inc/header.jsp" flush="true" />

</body>

</html>

Here's my source for "header.jsp":

This is an include from the"inc" directory!

When I load the page in a browser... "This is an include from the 'inc' directory!" does NOT show up on the page. However, if I view said page's source, I see this:

<html>

<head>

<title>Hello World!</title>

</head>

<body>

<h1>Hello World!</h1>

This is an include from the"inc" directory!

</body>

</html>

Can anyone please tell me why my include ("This is an include from the 'inc' directory!") is NOT being rendered on the web page... yet appears in its source? Thank you,

CabG

[1405 byte] By [CabriniGreensa] at [2007-10-3 4:53:21]
# 1

Well,

I'm not sure why, but out of desperation I threw this:

<%@ include file='inc/header.jsp' %>

below this:

<jsp:include page="inc/header.jsp" flush="true" />

And it's working. Even after I took "<%@ include file='inc/header.jsp' %>" back out of the code. I must have done something wrong initially? I also removed the first "/" from my original:

<jsp:include page="/inc/header.jsp" flush="true" />

To make it:

<jsp:include page="inc/header.jsp" flush="true" />

But I thought I'd done that before, too. If anyone has any insight as to why it began to work after I added (then removed) the new code... love to hear it, as a new guy.

CabG

CabriniGreensa at 2007-7-14 22:58:12 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...