User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 392,263 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,567 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting

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

Join Date: Sep 2006
Location: Chicago, IL
Posts: 4
Reputation: CabriniGreens is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
CabriniGreens CabriniGreens is offline Offline
Newbie Poster

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

  #1  
Sep 13th, 2006
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 "inc/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
AddThis Social Bookmark Button
Reply With Quote  
All times are GMT -4. The time now is 7:22 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC