2008-12-30 43 views
3

在执行下面的代码我得到一个javax.servlet.servletException ....避免javax.servlet.ServletException

“<%@标签库的URI =” http://java.sun.com/jsf /芯 “前缀= ”F“ %>

”<%@标签库URI =“ http://java.sun.com/jsf/html” 前缀= “H” %>

“<% @ taglib uri =“http://jakarta.apache.org/tiles”prefix =“tiles”%>

tiles:importAttribute scope =“request”/>

H:panelGrid的列= “2”>

<f:facet name="header"> 
    <f:subview id="header"> 
     <tiles:insert attribute="header" flush="false" /> 
    </f:subview> 
</f:facet> 

<f:subview id="menu"> 
    <tiles:insert attribute="menu" flush="false" /> 
</f:subview> 

<f:subview id="content"> 
    <tiles:insert attribute="content" flush="false" /> 
</f:subview> 

+0

需要堆栈跟踪。请格式化完整的代码。看起来您有一些未打开/未封闭的标签,可能会在粘贴时发生。请修改您的帖子以纠正问题。 – 2008-12-30 05:10:46

回答

1

你的问题不会出现良好的XML。有标签结局,但没有开始。你确定在提交问题时文本没有被破坏?