https://issues.apache.org/bugzilla/show_bug.cgi?id=51894

             Bug #: 51894
           Summary: Dynamic includes (with jsp:include or in Java code) of
                    static content fails with Spring + Tomcat
           Product: Tomcat 7
           Version: 7.0.21
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: j...@digitalmeasures.com
    Classification: Unclassified


The contents of an including JSP are delivered, and an exception thrown, when
attempting to include static contents with <jsp:include/>. The error also
occurs when including dynamically with Java code; in this case no content is
delivered. Attached is a bare-bones spring web-app that exhibits this behavior
when the war file is run in Tomcat.


{servlet}/helloworld/dynamic returns (as expected):
<html>
<body>
<p>Hello World!</p>
</body>
</html>


{servlet}/helloworld/static should return the same as above but instead
returns:
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="include/helloWorld.html"/>

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to