facebook

Included JSP files under WEB-INF/classes

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #267943 Reply

    mikeeboy
    Member

    We got a include.jsp file directly inside our webroot containing taglib declarations such as:

    <%@ taglib uri=”http://struts.apache.org/tags-bean&#8221; prefix=”bean”%>
    <%@ taglib uri=”http://struts.apache.org/tags-html&#8221; prefix=”html”%>

    This file is included by all JSP files with

    <%@ include file=”/include.jsp”%>

    This normally works fine – autocompletion & validation works. However, when editing a JSP file inside the src folder (such as src/com/foo/bar/example.jsp), it doesn’t work. Does anyone know any workaround or issue with this?

    #267974 Reply

    Scott Anderson
    Participant

    Mike,

    It might be a project configuration issue since JSP files are normally place under the web root folder in the path that corresponds to their lookup context from the root URL. Placing them in the src folder will copy them to WEB-INF/classes/com/foo.. at deployment time which is likely not what you want. This alteration could also break content assist and validation, as you found, in addition to making the deployed project unusable in the server.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Included JSP files under WEB-INF/classes

You must be logged in to post in the forum log in