Discussions

Web tier: servlets, JSP, Web frameworks: Response has already been committed

  1. Response has already been committed (1 messages)

    I am using struts and trying to include two action urls in one jsp(test.jsp) as below:

    test.jsp
    ---------
    <jsp:include page="abc.do"/>
    <jsp:include page="xyz.do"/>

    While trying to invoke test.jsp thru Test.do, I get the foll. error:

    java.lang.IllegalStateException: Response has already been committed

    Is there a way to fix this?.
  2. Response has already been committed[ Go to top ]

    Where in your JSP are you trying to include the page?
    When the response has already been committed, it means the response has started to write data back - by sending either response headers, or sending text to the response.