Compiled JSPs With Jasper - Now Includes don't work

I am using a template page (index.jsp) that includes other jsp pages to fill the body of the page. Previously, I had my index.jsp page as the root document and the other jsp's in a 'jsp' subfolder. To include the other jsp's, I was using hyperlinks like this:
where 'XXXX' is the name of the jsp page without the '.jsp' extension.
So, in the index.jsp page, I had the following line of code that included the jsp pages:
<%
pageContext.include("/jsp/" + include + ".jsp"); // include is the 'page' request parameter.
%>
This has worked flawlessly up to this point. However, now I want to precompile all JSP pages using Ant and Jasper as this is a distributed app and I don't want to ship jsp pages. I compiled the pages and updated the web.xml file with the new mappings. Now the index.jsp page (servlet) displays but does not include the compiled jsp pages. Will the same link to a jsp page use the servlet mappings in the web.xml file to map to the new servlet?
I also tried the following with the same result:
request.getRequestDispatcher("/jsp/" + include + ".jsp").include(request,response);
Can someone suggest a solution? How can I get the compiled jsp's (servlets) to be included and displayed in the same way they were when used as jsp pages?

Well, good news and bad news....
I got the includes to work by changing my index.jsp page to use the following:
<jsp:include page="<%=includePage%>" flush="true"/>
instead of:
pageContext.include("/jsp/" + include + ".jsp");
This seems to work.
However, this has uncovered another issue. Now none of the graphics for the page display. So I am left with a page that has broken images links all over it. Does anyone know how to get around this? All my links follow the format:
<img src="/images/...
so they should resolve to the base directory, then 'images' right? When I look at the properties for each broken image, they have the correct path... does anyone know why they wouldn't display? What do I need to do to allow the servlets to display the images properly like the jsp pages did?
Thanks in advance...

Similar Messages

  • Speakers were working with Airport, now they don't work...can someone help?

    My external speakers were working nicely with Itunes and Airport for the last year and then last week, they do not work with Itunes. I think it has to do with the new itunes update. I have tried rebooting my computer and Airport Extreme with no luck. Can somebody please walk me thru the process to get my computer reconnected with my airport!?
    Thank you very much in advance!

    Can somebody please walk me thru the process to get my computer reconnected with my airport!?
    Sure, here are the basic steps to configure the AirPort Express for iTunes streaming:
    AirPort Express Base Station (AX) - iTunes Setup
    Either connect to the AX's wireless network or connect directly, using an Ethernet cable, to the Ethernet port of the AX, and then using the AirPort Utility in "Manual Setup" mode, make the following changes:
    AirPort > Wireless
    o Wireless Mode: Join a wireless network
    o Network Name: <existing wireless network>
    o Wireless Security: <select the encryption type of the existing wireless network>
    o Wireless Password: <enter the existing wireless network password>
    o Verify Password: <re-enter the existing wireless network password>
    Music
    o Enable AirTunes (checked)
    o iTunes Speaker Name: <enter desired speaker name>
    o iTunes Speaker Password: (optional)
    o Verify Password: (optional)
    o Click Update to write the new settings to the AX
    In iTunes:
    iTunes > Preferences... > Advanced > General
    o Look for remote speakers connected with AirTunes (checked)
    The other thing to take into consideration, is that the iTunes host must be able to "communicate" to the AX in order to stream to it. Anything that would "block" the path could prevent audio from reaching the speakers. I would also check your computer's firewall settings to make sure iTunes is not being blocked.

  • Forgotten my security questions and cannot purcahse any apps etc. solutions on internet with rescue e-mail don't work . Have been trying to resolve this issue for 3 days now

    Forgotten my security questions and cannot purcahse any apps etc. solutions on internet with rescue e-mail don't work . Have been trying to resolve this issue for 3 days now

    If you don't have a rescue email address (or you do but aren't the receiving the email to it) then you will need to contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312

  • Bought adobe ID is not the same as trail version, now it don't work

    Hi,
    First I use a trial version of Creative Cloud with ID.
    Later I bought this program with another ID on the same computer.
    Now it don't work.
    Can anybody help?

    Sign in, activation, or connection errors | CS5.5 and later
    Mylenium

  • I Need help. I Change My Number and now imessage don t work.

    I Need help. I Change My Number and now imessage don t work.

    Hi Ivonka88,
    Here are some steps to try troubleshooting your issue with, depending on your specific symptoms:
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    Cheers!
    - Ari

  • Trying to edit a wordpress then in dreamweaver cc with mamp but things don't work out. dreamweaver can't establish connection with my server.

    Trying to edit a wordpress then in dreamweaver cc with mamp but things don't work out. i've been searching through the net bt i didn't find an answer. i've followed many tutorials and did exactly the things that was asked but dreamweaver can't establish connection with my server. here's a few pics with the preferences i'm trying to establish a connection. Note that i tried it without "localhost" in the weburl. mamp is running with apache and mySql. Anyone please.

    Hi Gareth,
    See if the following link helps:
    <a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=174271">https://www.sdn.sap.com/irj/sdn/thread?threadID=174271</a>
    Bye
    Ankur

  • HT3529 I just upgraded to iphone 5 and now imessage don't work. it sends as sms. i've checked imessages is on in settings.

    I just upgraded to iphone 5 and now imessage don't work. it sends as sms. i've checked imessages is on in settings.

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.
    It might also be a good idea to contact Square for assistance.

  • Updated iPad and now bookmarks don't work  says address invalid

    Updated iPad and now bookmarks don't work         Safari says address invalid for the bookmark symbol

    Clear Safari. Close Safari. Reset your iPad.
    Go to Settings>Safari>Clear Cookies and Data.
    To close an app, drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the Safari app then swipe "up" on the app preview thumbnail to close it.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Starting on external hard drive with OSX.6.8 don't works

    starting on external hard drive with OSX.6.8 don't works
    On mac book with OSX.7.5 it start with my external hard drive with OSX6.8

    10.6 does not support an iMac that came with a later OS X version.
    see > Don't install a version of Mac OS X earlier than what came with your Mac

  • ADSL socket fitted - now extensions don't work

    Hopefully someone can help - BT don't seem to be able to!
    Problems with very slow Broadband speed solved by engineer replacing main socket with ADSL V1.0 (improved speed slightly).  Wasn't tilll after he left I realised none of my extensions worked.
    After many emails & hours on the phone to BT I was told to put old socket back on!  Have done this and extensions now work but broadband speed back to original - very slow.
    Why doesn't ADSL socket work with extensions?  The same wires are involved in same terminals.  Is there anytihing I can do to make extensions work?  Extensions are, I think this is right term, star wired.
    Thanks in advance for any replies
    Solved!
    Go to Solution.

    You can hardwire extensions from the BACK of an NTE5 faceplate,
    for good advice about wiring try here
    http://www.clarity.it/telecoms/adsl_bits.htm
    http://www.clarity.it/telecoms/adsl_faceplate.htm
    http://www.clarity.it/xcart/home.php?cat=250
    http://www.clarity.it/telecoms/extensions.htm
    If you want to hardwire a dedicated ADSL extension, then for maximum quality use either cat5e or cat6 ethernet quality cable. (as explained in the last link above). Treat it gently, and do not use staples but use slightly oversized cable clips, don't hit the cable with the hammer, and don't take the cable round sharp bends at a right angle, use radial curves - it is fragile. It will give you very good results. I am a customer of the above firm, and they supply good kit. I have no financial interest in recommending them.
    My broadband secrets and tips

  • Photoshop Liquify Brush Size increase/decrease with alt+crtl drag don't work anymore...

    Hi :-)
    I have installed the last Update to Photoshop CS6 13.0.4...
    Now I can't increase/decrease the Brush Size in the Liquify-Dialog anymore (before I installed the update, it works fine with alt+crtl and drag)...
    If I press alt+crtl, the "Cancel"-Button is shown as "Revert", but the Brush resizing don't work... :-/
    I use a Mac on OS X 10.6.8...
    But it seems it has to do with the system... beacause at home I use 10.8.3 and there works everything fine with the 13.0.4 Update!!!

    Files has been uploaded here:
    http://soloporhoy.1free.ws/test/soluperguei/index.php

  • Servlet Include don't work on tomcat 4

    Hello all!
    I use the ServletInclude tag in uix to include a jsp-snippet or a servlet. It works in my local deployment, but not on the Tomcat 4 Server. No content of the jsp/Servlet is shown and the other part of the uix after the include tag aborts.
    Has anyone the same behaviour on the tomcat too?
    What is the solution?
    Thanks Roger

    Hello,
    doesn't anybody work with the Tomcat?

  • Saved Pages document as PDF. Now hyperlinks don't work

    After saving my newsletter in Pages 09 as a PDF (Print>Compress as PDF) some embedded hyperlinks don't work. Strangely enough, the links to an e-mail DO work, but links to a URL DO NOT. Why is this and what do I do to overcome this problem?

    That's a fairly long thread I linked to. Did you get all the way down to this post with a screenshot? I see that others had the same problem you do & it took them a couple of tries to get it working. I would be nice to be able to see what you're doing (or not doing), but we have to make do with words & screenshots.

  • S3 - KitKat update now headphones don't work

    Like a lot of us I have been having various battery issues (draining quickly, hard to charge & hot battery) with my Galaxy S3 since the Kit Kat update came to town but I am also having a problem with headphones too.  I use headphones to listen to music and also as a hands free to speak while on calls.  After the latest update the microphone on my headphones wouldn't work (these are the Samsung headphones that came with the phone), music plays fine but people cannot hear me when I am on a call.  I tried other headphones as well and those don't work either.  Not loving this update at all...

    Found the problem.  We were hacked on Sunday. 
    http://forums.adobe.com/message/5046414?tstart=0

  • Satellite L500-13W: How to switch on Wlan with Win 7 - hotkeys don't work

    Hi there,
    i recently acquired this laptop, and i installed win7 64 bits prof. The first problem was that wireless card was not installed, but i go to toshib website and downloaded the new one, next to that i can't activate the card with the fn + f8 key, thats the only way to activate the card,
    i already downloaded some drivers and utilities and i can't activate the card, the hotkey don't work and there's not another switch, software won't work either
    Any help will be welcome
    Thanks

    Hallo Tito
    In front of me I have Satellite L500-154. This laptop has no WLAN switch and in preinstalled Vista you can enable WLAN card using FN+F8 only. I have searched a way to enable WLAN card without FN+F8 key combination. No way.
    So if you have OS without working FN+F8 key combination you will not be able to enable WLAN card.
    I really don't understand why do you think it can be because of laptop.
    Install supported operating system and you will see everything will be OK.
    So it has nothing to do with faulty hardware.

Maybe you are looking for