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

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

Similar Messages

  • Firefox will not print a web page but other programs will.

    Firefox will not print a web page but my other browser will print it. It activates the printer and shows the page frame but does no printing of the page.
    == This happened ==
    Every time Firefox opened
    == About two months ago.

    Ever since the last Firefox update, I have been unable to use my printer while in Mozilla, but it works with Internet Explorer.

  • I have developed one website and provied print fuctionality to print entire web from , but it is not printing the web page correctly, even in print preview it is showing wrong out put

    i have developed one website and provied print fuctionality to print entire web from , but it is not printing the web page correctly, even in print preview it is showing wrong out put...

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.
    Make sure you provide the URL for the problematic page, so they can see the problem for themselves.

  • Printer will not print most web pages.

    Wireless Photosmart all in one Printer will not print most web pages.  Everything elso prints consistantly but cannot determine why web pages generally do not print.  It soes not seem to matter whether I click file - print or control P  or clicking the print Icon. The print icon appears at the bottom of the screen for a couple of seconds then disappears & nothing prints. Is there a setting I am missing?

    Hi. Go to this link http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02114788&cc=us&dlc=en&jumpid=reg_R1002_USEN&lc=... and download the PDU and run it.
    Feel free to provide Kudos if I have helped you!

  • Printing does not print the web page only the http info at top of page and dated and time at bottom of page, nothing in between. help! Thanks.

    Printing a web page works fine from the microsoft windows browser but fire fox browser will not print a web page only the heading at the top and the date and time at the bottom.

    Does that happen on all pages or only on some?
    You can try to reset the print prefs on the about:config page.<br />
    * http://kb.mozillazine.org/Problems_printing_web_pages
    You can open about: pages via the location bar like you open a website.

  • My printer will not print the web pages using firefox...how do I set it up to print a web page?

    I have an hp photosmart c4180 printer and it will not print the web pages in firefox...how exactly do I set up FF so I can print web pages? I will need step by step instruction also on exactly where to go to set it up.

    Open System Preferences (gear icon on the dock), then open Print & Scan
    Click the + button at the bottom of the printer list
    If your printer appears....not all printers are supported....click on the name to highlight it
    Click the Add button to install the printer at the AirPort Express location
    Try to print. You must choose the correct printer at the AirPort Express location since the printer is "installed" at other locations on your network.
    If you open Print & Scan again, and select the printer at the AirPort Express, there is an option to make the printer the "default" location, so you do not have to choose which location to select when you want to print.

  • Can not print a web page from firefox site. What's wrong?

    When I try to print a page I get the follow screen after the print screen.
    Save file as : *xps, next line xps document (*xps). How do I print a web page.

    {Ctrl + P} or File > Print = is your printer selected in the Printer - Name box?

  • Google does not find my Web Page but it has been published.

    The search engines are not finding my Web Page is there something I need to do?

    Tell them you exist : http://www.google.com/addurl/
    And to speed up the process, provide clickable links in your posts.
    Google indexes this forum in real-time and will find your Site within hours.

  • Firefox 3.6.15 Can not print entire web page

    When using the print icon or "print preview" I only get/see the first and last page of a web page, all pages in between are missing. Only time it prints correctly is when web page is 1 or 2 pages.
    Copying URL to IE and printing works fine.
    This used to work. I think problem started with last Firefox update.
    I updated to 3.6.14 and a few days later 3.6.15 was released to fix bugs and not sure which version it started with.
    It worked in RC 3.6.13

    {Ctrl + P} or File > Print = is your printer selected in the Printer - Name box?

  • My HP Deskjet 1510 All-in-One Prints Test Page But not emails or Web Pages, ect

    My Deskjet 1510 All-in-One Printer is Hooked up. All tests show a Green Arrow, It is Turned on, and Online. It will Print a TEST PAGE, but nothing else. I have Run the HP DR Support program several times to no avail. No Error Codes or Signs appear. It simply will NOT WORK other than printing a TESTPAGE or Scanning Copies on the Printer/Copy Machine. Please Help. I have been trying to get it to work for a week. It IS a New Printer. I have tried it on 2 seperate Computers which work well with other Brands of Printers. One Runs Windows 7 Home Premium 64 Bit, Acer Aspire Desktop. The Other a Dell T5400 running Windows 7 Professional 64 Bit . Printer is set as DEFAULT. ALL SOFTWARE is UPDATED AND INSTALLED. It says it is installed properly, and that it is Hooked up Properly, Yet it will NOT work properly. Thank you.

    Welcome to the HP Community , I read through your post about the printing issues you have been having, and I hope to help you! Seeing how the printer will make copies and test print tells us that the printer itself is fine and there is no hardware issues. However, seeing how printing from two different computers will not work, flags a software problem on the computers. Please try out the steps below and get back to me with the results and we will go from there. If you did not install the Full Driver, run the HP Printer Install Wizard for Windows to search and install the complete driver and software. This will need to run on both computers individually. Manually restart the print spoolers on the computers:1. Click Start
    2. Type "Services" in the search field.
    3. Open SERVICES
    4. At the bottom, click "Extended View"
    5. Search for Print Spooler
    6. Right-click it and choose Properties
    7. Select as Automatic in the drop down box, close the Window
    8. Right click on Print Spooler and choose "Stop", wait until it stops and then right click again and "Start".
    9. Close out of Services and try printing from Notepad.10. Try printing from a web browser now, if there is a problem with the print, try a different web browser.  Show thanks for my reply to help you today by hitting the "thumbs up" icon below!I hope to hear from you, good luck! 

  • Printing from web pages is excruciatingly slow with most recent upgrades of Firefox .Use an iMac and an HP officejet printer. Printer works fine with Safari and woodprocessed files, but not with Firefox and web pages.

    Printing from web pages is excruciatingly slow since downloading most recent upgrades of Firefox Mozilla. I have a desktop iMac, OS 10.6.8, and an HP officejet printer 4500 G510n. The printer works fine with the Safari Browser and with woodprocessed files, but not with Firefox and web pages. Help please! It used to print fast with earlier versions of Firefox.

    Hello and welcome to the Apple Discussions Forum.
    I have hardly any experience with HP printers but since your posting has not been replied to yet I thought I'd offer some assistance.
    With the printer status and ink levels working, it shows that you have a connection to the printer. So I would look at the issue being with the protocol being used for the print queue on the Mac.
    Since you have XP and Vista working, I would check the printer queue configuration on either box. In XP, go to the Properties and select Ports. Click the Configure Port tab to view the connection. If you are using RAW, then this is known as HP Jetdirect-Socket on OS X. So if you are not sure what protocol was used before I would create another printer queue, this time selecting IP > HP Jetdirect-Socket. Then enter your IP address and select the K5400dn from the Print Using menu.
    If this still fails to print then please reply. There may be limitations with adding the HP driver this way that I am not aware of. There may also be other driver options you can look at, such as HPIJS. If Greg Sahli reads this posting he has expert knowledge on this matter and will be able to offer some guidance.
    PaHu

  • HP Officejet Pro 8500A Premium will not print docs from computer, but will print a test page.

    HP Officejet Pro 8500A Premium will not print docs from computer, but will print a test page.  I continually get a message that the computer cannot communicate with the printer.   Not only will it not print docs, it will not print web pages using IE 11 or Google Chrome.
    I've used Print and Scan Doctor, it always reports there are no issues and prints a test page even though I can't print anything else. 
    Each time I want to print, I must reboot the computer.  After reboot I have one chance to print.   This problem started February 15, 2015.  
    My operating system is Windows 8.1.   I have unintalled the HP software, rebooted, then reinstalled the software:
    OJ8500_A910_1315-1.exe
    HP Print and Scan Doctor - HPPSdr.exe
    HPSupportSolutionsFramework-11.51.0049.msi
    All versions were last downloaded on April 4, 2015.
    I have a home wireless network (Ubee DDW366 router).  All other devices in the house will print to the 8500A printer without issues:  2 Toshiba laptops, 2 Android phones, and 1FireHD.
    The desk top is installed with a Netgear Network card I don't know the model, but I had it tested by a PC Tech to confirm that the card is working.   The card and Windows 8.1 were installed on January 3, 2015.
    I have run virus scans and malware scans.  Each time they show there are no issues with my desktop.  What kind of desktop? Specifically made to my specs from store parts. . . no brand name computer.  ASUS Motherboard P6X580 Premium.  Now I will probably get hacked!
    I am at my wits end.  And it is frustrating when I need to make a print of something and the system locks up.  I often resort to screen printing to a word document to save in order to reboot. . . .but then I lose all sorts of capabilites when I salvage what I needed.  Also this is a time consumer.
    This printer has served us well for two years and I have expensive cartridges waiting; another two rounds of refills.
    Help?
    Addendum:  I can scan using HP Printer Assistance.  I open the HP Printer assistant, it "retrieves" info from the printer, then I select "scan a document or photo" and the printer responds.   I have no trouble with scanning.
    This question was solved.
    View Solution.

    Hi ArielAce , thanks for getting back to me!
    I would recommend downloading and running the HP Print and Scan Doctor.
    Please keep me posted!
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • I updated my mac book pro to mountain lion recently and my safari is not loading few web pages including apple sites please help me

    i updated my mac book pro to mountain lion recently and my safari is not loading few web pages including apple sites please help me

    I have this problem too but it seems pot luck and only like 5% of the time, the website will say the page is loaded but the page is just blank white...refreshing does not work and I have to go back and navigate to the page again

  • HAVING A PROBLEM WHEN I PRINT A WEB PAGE WHICH IS MORE THAT ONE PAGE LONG. ONLY THE FIRST PAGE PRINTS TO SCALE...THE REMAINING PAGES PRINT OFF THE PAGE????HELP-IT IS DEFINITELY A PROBLEM WITH FIREFOX BECAUSE IT DOES NOT HAPPEN WITH SAFARI???

    Question
    HAVING A PROBLEM WHEN I PRINT A WEB PAGE WHICH IS MORE THAT ONE PAGE LONG. ONLY THE FIRST PAGE PRINTS TO SCALE...THE REMAINING PAGES PRINT OFF THE PAGE????HELP-IT IS DEFINITELY A PROBLEM WITH FIREFOX BECAUSE IT DOES NOT HAPPEN WITH SAFARI??

    Thank you for the response. I tried to fix the problem with some of the suggestions on that page, but none seem to work. I believe that is the only website that I'm having that problem on. I got to fooling with it a bit more and when I highlight the whole page and select to print the selected area, it actually prints the whole page then, but it won't do it as a default. I guess I can just do it like that from now on, but I thought there would be something in the settings that I could have changed. Thanks again for the help.

  • Have been using firefox for years but now having many problems two days ago could not acess any web pages without a firefox message saying page could not be ver

    Went on the internet on Friday but a box appeared saying firefox could not verify web page and somebody could be trying to impersinate the web page this was my home page it gave me two options the first was get me out of here or that I understood the risks and to continue I clicked the latter and my home page came up this box continued to appear on each occasion I tried to acess any web pages but when I tried to acess Facebook the box only gave me the option of get me out of here it also did this when I tried to acess Mozilla Firefox to see whether there was a problem with the browser I tried to reinstall the browser but the problem persisted I finally got round the problem by reinstalling my computer to an earlier time before I did this I also have the option for Google chrome on my computer and this browser worked fine Facebook etc I prefere Firefox but although the warning box hasn't materialised since I reset my computer Firefox has become unstable where it has frozen on a web page and the only way I can get out is to start the task manager and end the programme even though the task manager is saying that the page is still working correctly but after I have ended the running of the programme it will not reload the firefox browser but again google chrome is fine I have to restart the computer to fix this problem any ideas thanks.

    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    *Use a compressed image type like PNG or JPG to save the screenshot
    *Make sure that you do not exceed the maximum size of 1 MB
    Check the date and time and time zone in the clock on your computer: (double) click the clock icon on the Windows Taskbar.
    Check out why the site is untrusted and click "Technical Details" to expand this section.
    If the certificate is not trusted because no issuer chain was provided (sec_error_unknown_issuer) then see if you can install this intermediate certificate from another source.
    You can retrieve the certificate and check details like who issued certificates and expiration dates of certificates.
    *Click the link at the bottom of the error page: "I Understand the Risks"
    Let Firefox retrieve the certificate: "Add Exception" -> "Get Certificate".
    *Click the "View..." button and inspect the certificate and check who is the <b>issuer of the certificate</b>.
    You can see more Details like intermediate certificates that are used in the Details pane.
    If <b>"I Understand the Risks"</b> is missing then this page may be opened in an (i)frame and in that case try the right-click context menu and use "This Frame: Open Frame in New Tab".
    *Note that some firewalls monitor (secure) connections and that programs like Sendori or FiddlerRoot can intercept connections and send their own certificate instead of the website's certificate.
    *Note that it is not recommended to add a permanent exception in cases like this, so only use it to inspect the certificate.

Maybe you are looking for

  • My iPod loads songs very slowly

    I had some trouble with the battery-life of my iPod, and I thought erasing the whole iPod would cure this, so I've resetted it. After doing this, my iPod, upon connecting it with my PC (Sony Vaio notebook - Windows XP SP2), started loading songs very

  • What channels are in the HD queue?

    Can anyone lay let us know what the HD queue for FiOS looks like?  Now that FSC has been rolled out, what other HD channels are in the works? And, an entirely different question: Has there been any talk about doing away with Standard Definition in th

  • Default calender stamp in infoview ( webi/deki)

    I am facing a problem related to date formats when picked from calender. I have noticed this in almost all ful client reports viewed through infoview. I am using a date object in the prompt, this object is set as mm/dd/yyyy format in the universe. Wh

  • Running multiple Photoshops on the same version?

    Is there a way to run more than one version of photoshop on the same computer? You could do it with a virtual machine but I'd like to know if there are other options. My system has a 6-core CPU (12 threads) and most of my cores are idle all the time.

  • Where are my all plug-in in photoshop CC 2014? Mac OS X

    After installing the New CC 2014, there's no plug-in in my list of plug. I'm on mac OSX. Thx