Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有很多带有 scriptlet 的 JSP,所以我需要使用 BodyTagSupport。
问题是标签内部有<jsp:forward ..>一个 .htm 页面,我得到了这个:
<jsp:forward ..>
java.lang.IllegalStateException: getOutputStream() 已为此响应调用。
如果我使用 jsp 一切都很好。
你知道为什么会这样吗?
(我使用 Apache Tomcat 作为服务器)
该标记将请求重定向到另一个 jsp 或 servlet,而您的 jsp 不能写任何其他内容。在标记之后,您的 jsp 必须返回。
这是一个 Tomcat 错误。它应该从 Tomcat 7.0.30 开始修复。
嗨,我有一个命令链接,所以当单击它时,当字段集 处于相同状态时,我将渲染action="#{projectAdminisrationMB.showGroups(userObj)}"一个字段集,但当我将它放在单独的 ui:define 中时,它将不会被渲染。<p:fieldset legend="Manage User Groups" id="manage
action="#{projectAdminisrationMB.showGroups(userObj)}"
<p:fieldset legend="Manage User Groups" id="manage