试了半天也没搞明白怎么回事,把taglib url换成<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>依然照旧,很是困惑啊!!

解决方案 »

  1.   

    include template.jsp出错,先检查template.jsp能单独显示吗
      

  2.   

    2楼的回答我觉得不太可能,因为改成普通的html标签就可以的话,那证明包含页面应该没有什么问题.
    -------------------
    -------------------你检查下你的action="user.do",你的action对应在struts-config.xml中的逻辑是否是对应上的,我怀疑你的配置文件出了问题.仅供参考..:)
      

  3.   

    include是没有错的,如果把第一段代码的<html:form>全部去掉,页面是可以正常显示的,而且,form换成普通html标签的话页面也是正常的……
      

  4.   

    struts-config.xml文件中相关配置如下:    <action
          attribute="userForm"
          input="/jsp/errors.jsp"
          name="userForm"
          parameter="status"
          path="/user"
          scope="request"
          type="com.leon.myznt.struts.action.UserAction">
         <forward name="regsuc" path="/jsp/index.jsp"></forward>
         <forward name="regfail" path="/jsp/register.jsp"></forward>  
        </action> 
      

  5.   

    所有错误信息都到errors.jsp上去啊,注册页面register.jsp也是和errors.jsp在同一目录下的
    都放在/WebRoot/jsp/下
      

  6.   

    你似乎对struts配置还没弄明白啊
      

  7.   

    你在web.xml中配置<taglib>
                            <taglib-uri></taglib-uri>
                            <taglib-location></taglib-location>
                     </taglib>
    它了没有
      

  8.   

    <jsp:include flush="true" page="../inc/template.jsp">
                <jsp:param name="url" value="../" />
            </jsp:include>
    1.看看这个是否可以正常加载
     
    2.看看去掉这个是否可以显示内容3.后者把这段代码改成
    <jsp:include flush="true" page="<%=request.getContentPath %>/inc/template.jsp">
                <jsp:param name="url" value="<%=request.getContentPath %>//" />
            </jsp:include>
      

  9.   

    <jsp:include flush="true" page="../inc/template.jsp">
                <jsp:param name="url" value="../" />
            </jsp:include>
    1.看看这个是否可以正常加载
     
    2.看看去掉这个是否可以显示内容3.后者把这段代码改成
    <jsp:include flush="true" page="<%=request.getContentPath %>/inc/template.jsp">
                <jsp:param name="url" value="<%=request.getContentPath %>/" />
            </jsp:include>