[ http://issues.apache.org/jira/browse/TAPESTRY-577?page=all ]
Brian K. Wallace resolved TAPESTRY-577:
---------------------------------------
Resolution: Fixed
Removed call to flush() prior to include. Only attributes being set in request
which is then passed directly to include.
> tapestry:page-url tag is flushing the page, tomcat reports 'illegal to flush
> within custom tag'
> -----------------------------------------------------------------------------------------------
>
> Key: TAPESTRY-577
> URL: http://issues.apache.org/jira/browse/TAPESTRY-577
> Project: Tapestry
> Type: Bug
> Components: Framework
> Versions: 3.0.3
> Environment: SuSE linug 9.1, Pentium M 1.6GHz, 768MB
> Reporter: Erik Brakkee
> Assignee: Brian K. Wallace
> Fix For: 3.0.5
>
> I am using the following JSP page to forward to a tapestry page:
> <%@ page language="java" pageEncoding="UTF-8"%>
> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
> <%@ taglib uri="http://jakarta.apache.org/tapestry/tld/tapestry_1_0.tld"
> prefix="tapestry" %>
> <c:set var="url" scope="page"><tapestry:page-url page='Login'/>"/></c:set>
> <jsp:forward page="$url"></jsp:forward>
> Requesting this page results in the following exception:
> javax.servlet.ServletException: I/O exception messaging servlet /app: Illegal
> to flush within a custom tag
>
> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
>
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
>
> org.apache.jsp.login.login_jsp._jspService(org.apache.jsp.login.login_jsp:82)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
> root cause
> javax.servlet.jsp.JspException: I/O exception messaging servlet /app: Illegal
> to flush within a custom tag
> org.apache.tapestry.jsp.URLRetriever.insertURL(URLRetriever.java:86)
>
> org.apache.tapestry.jsp.AbstractURLTag.doStartTag(AbstractURLTag.java:38)
>
> org.apache.jsp.login.login_jsp._jspx_meth_tapestry_page$1url_0(org.apache.jsp.login.login_jsp:134)
>
> org.apache.jsp.login.login_jsp._jspx_meth_c_set_0(org.apache.jsp.login.login_jsp:107)
>
> org.apache.jsp.login.login_jsp._jspService(org.apache.jsp.login.login_jsp:67)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
> note The full stack trace of the root cause is available in the Apache
> Tomcat/5.5.9 logs.
> Removing the jsp:forward tag still gives the same error so the problem is
> with the c:set tag.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]