1 Reply Latest reply on Jan 11, 2007 2:28 AM by vikash.anand

    Portal cannot see images directory in war file

    portalgeek

      Hi,

      We have a portal deployed on JBoss portal 2.4. This portal has a web application which includes images.

      We are using PortalRequestDispatcher which dispatches the JSP. This jsp has images. The portal is unable to find images unless there are in the ROOT.war directory under jbossweb-tomcat55.sar

      C:jboss-portal-2.4.0\server\default\deploy\jbossweb-tomcat55.sar\ROOT.war

      Is this a constraint or we are missing some thing.

      Please throw some light

      thanks

        • 1. Re: Portal cannot see images directory in war file
          vikash.anand

          I faced similar problem....

          Solution that worked for me:

          1. Put images inside WebContent/resources (whatever applicable web folder) folder in your application.
          2. Use <%= request.getContextPath() %>/(ImagePath) to get images

          try this and see....If u face any problem reply.

          Thanks and Regards;
          Vikash Anand.