2 Replies Latest reply on Jul 22, 2008 11:03 AM by peterj

    jboss not loading image from jsp:include

      OK, I have a a jsf jsp pages js tag for my application that occurs in several jsp pages:

      <tr>
       <td>
       <jsp:include page="/includes/footer.jsp"/>
       </td>
      </tr>
      


      footer.jsp has an image tag like this:

      <td align="left"><img src="images/logo.jpg" alt="X Systems"/></td>
      


      The jsp files are in a directory which is under the base directory like the include and image files. For some reason, in one jsp page the logo.jpg file does not get displayed. As I understand it, the application server jboss/tomcat resolves the image files. Why would it be displayed it in one page and not another?

        • 1. Re: jboss not loading image from jsp:include
          erasmomarciano

          Do you only use jboss?
          the problem is not about jboss but the img call

          When you use the special "jsp:include" tag the jsp will not be compiled directly, but it will be included into the calling JSP.

          So, you have to double check that the image you are calling is referred to the level on wich the JSP is called.


          • 2. Re: jboss not loading image from jsp:include
            peterj

            If you are using FireFox, get the Web Developer add-on. It has a bunch of great tools that can tell you everything about your images, including the URL it thinks the image should be pulled from. That will help you diagnose problems such as the one erasmomarciano mentioned.