tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51894] New: Dynamic includes (with jsp:include or in Java code) of static content fails with Spring + Tomcat
Date Mon, 26 Sep 2011 18:28:09 GMT
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: jwu@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message