0 Replies Latest reply on Nov 2, 2005 5:57 AM by Kevin Lam

    define root directory in web app

    Kevin Lam Newbie

      Hi all,

      Can anyone tell me how to define what "/" means in a web application in JBoss?

      eg if my war file is called "webapp.war"

      The current url to access it is via:

      http://localhost:8080/webapp/index.jsp

      and the image files that I need to refer to is using relative path i.e. ../images/hi.jpg

      because my directory structure is:

      webapp
      -images/hi.jpg
      -jsp/thepage.jsp

      if I refer the image using /images/hi.jpg, it thinks that it is referring to
      http://localhost:8080/images/hi.jpg
      instead of
      http://localhost:8080/webapp/images/hi.jpg

      How can I make the web to know I am referring to within webapp?

      Thx

      Kev