没用过template这个标签,不过我看应该是你后面的路径有问题!
上面的文件
<template:put name='content' content='/content/indexContent.jsp'/>
<template:put name='footer' content='/content/footer.jsp' />
这当中的content我觉得应该将前面的/去掉!

解决方案 »

  1.   

    去掉了也不行,
    <%@ page contentType="text/html; charset=gb2312" %>
    <%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %>
    <template:insert template='template/basicTemplate.jsp'>
    <template:put name='title' content='XiaoXiao Forum' direct='true'/>
    <template:put name='header' content='content/header.jsp' />
    <template:put name='content' content='content/indexContent.jsp'/>
    <template:put name='footer' content='content/footer.jsp' />
    </template:insert>但是这句可以显示出来呢。(title)
    <template:put name='title' content='XiaoXiao Forum' direct='true'/>
      

  2.   

    %WEB_HOME%
              |--jsp
              |    |--xiao
              |    |--content
              |    |--template
              |--WEB_INF
      

  3.   

    content中都是相对根目录来的,将它们都转化成相对根目录!
    将第一个文件中content都改成下面试试:
    ../jsp/contentheader.jsp
    都要改,看看!
      

  4.   

    <template:put name='header' content='/jsp/content/header.jsp' />
      

  5.   

    不好意思,昨晚上掉线了,
    <template:put name='header' content='/jsp/content/header.jsp' />
    可以<template:put name='header' content='../jsp/content/header.jsp'/>
    不行,
     
    当前目录就是/jsp, 谁能告诉我为什么??