1 Reply Latest reply on Oct 26, 2006 8:30 PM by peterj

    Accessing a JSP file under WEB-INF..Please help..

    mnsweeps

      I have a JSP file .../WEB-INF/jsp/myjsp.jsp which has an include of a menu.jspf file. This menu.jspf is located in /WEB-INF/jsp/menu/menu.mspf . No matter what I try I am not able to include the menu file in myjsp.jsp

      This is not working...

      <%@ include file="/WEB-INF/jsp/menu/menu.jspf" %>. what path should I use ?

        • 1. Re: Accessing a JSP file under WEB-INF..Please help..
          peterj

          As far as I can see, what you did should work (it's what I do and it works for me). Here is what I would try:

          1) Check the war file to make sure the menu.jspf file is where I think it is.

          2) Double check the spelling.

          3) View the generated HTML source in my browser (sometimes the jsp text is included but nothing displays due to an error in the text)

          4) Create a simpler file in the same (or other location) and try to include it.

          5) Examine the generated java servlet in the server/default/work directory.