Problem with <jsp:include> tag

Discussions

Web tier: servlets, JSP, Web frameworks: Problem with <jsp:include> tag

  1. Problem with <jsp:include> tag (1 messages)

    I am attempting to use the <jsp:include> tag as follows:
    The including file contains: <jsp:include page="Progress.jsp flush="true" /> Both the including file and the included files are contained in the same .war file. However, I get "Cannot find resource '/jspProject/Progress.jsp' in document root 'c:\weblogic\myserver\jspProject.war'" upon invoking the including file. It works fine when I use <%@ include file="Progress.jsp">. However, I need to have Progress.jsp regenerated so this is not suitable. Any advice?

  2. Problem with <jsp:include> tag[ Go to top ]

    Keith,

    Try using an absolute URL for the page attribute, like:

    <jsp:include page="/Progress.jsp" .../>

    Or, if Progress.jsp is in a subdirectory off the root:

    <jsp:include page="/subdir/Progress.jsp" .../>

    And be case sensitive.

    Regards,

    Gordon.