3 Replies Latest reply on Dec 21, 2004 9:58 AM by cparsons

    Images in JSP

    cparsons

      Can't get images to display in my JSP?

      According to the Tomcat docs as long as they are not in the WEB-INF folder (they are not) then it should be pretty straighforward??

      I have read the thread about serving shared static external files, and amending the server.xml file and adding an entry into the section
      but surely this is something that can be dealt with within the application config itself??

      <!-- ADD static images DIRECTORY -->



      Most web apps need graphics, have I missed something obvious?

      TIA

      Chris Parsons

        • 1. Re: Images in JSP
          cparsons

          Sorry, missed this from my previous post, this was the example code I saw!

          <!-- ADD static benchmark DIRECTORY -->



          which should go in the server.xml directory???

          Chris

          • 2. Re: Images in JSP
            cparsons

            Strewth, this is hard work - third time lucky!!!???

            <!-- ADD static benchmark DIRECTORY -->
             <Context path="/benchmark" appBase=""
             docBase="/home/anil/benchmark"
             debug="99" reloadable="true">
             </Context>
            


            Chris

            • 3. Re: Images in JSP
              cparsons

              Sorry folks, forget it, I am a muppet :(

              I had my images names capitalised (yes, you got it, they were lower case
              in the code)

              Talk about not seeing the wood for the trees - I am hanging my head in embarrassement...

              Chris