Is it possible to add jspf files to a jsp page without using jsp:include?

前端 未结 1 695
不思量自难忘°
不思量自难忘° 2021-01-19 06:24

What I want to achieve is something similar to a master page in asp.net. I\'m following a tutorial, but I may have missed something cause I have added my header.jspf and foo

相关标签:
1条回答
  • 2021-01-19 07:31

    I'm also doing that tutorial, and when I use Tomcat as the server it won't include the header and the footer, I have to use the glassfish server, is there any way to make tomcat include the header and the footer?

    EDIT:

    Replacing the default tag with this one seems to have solved the problem using tomcat as the server

        <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
        xmlns:xsi="http://www.w3.org/TR/xmlschema-1/"
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
    
    0 讨论(0)
提交回复
热议问题