•
•
•
•
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,271 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,668 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
Views: 3339 | Replies: 4
•
•
Join Date: Sep 2006
Location: Chicago, IL
Posts: 4
Reputation:
Rep Power: 0
Solved Threads: 0
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":
Here's my source for "inc/header.jsp":
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:
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
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
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
•
•
•
•
activation advertising blog browser code community data dell design development domains drivers firefox google gpl html intel internet java key legal linux marketing microsoft mozilla news open open source open-source php privacy product red hat report research rss search security serial software source sun ubuntu vista w3c web windows xml yahoo
- how do i write the code for taking out a hard copy of the web page (HTML and CSS)
- help!..VerySimple web browser(display source code of web pages) (JSP)
- Downloading web page source. (C)
- Change Web Page Font Size on the Fly (Windows tips 'n' tweaks)
- Printing Web Page (Windows 9x / Me)
Other Threads in the JSP Forum
- Previous Thread: Combo Box In Jsp+ Ajax Urgent Please Help Me
- Next Thread: How To Run A Jsp In The Weblogic



Threaded Mode