Check to see your included servlet isn't setting any headers. Check to see
if the included servlet uses a reponse.getWriter()
RS





"Jason Webber" <[EMAIL PROTECTED]> on 02/25/2002 04:10:38 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   <[EMAIL PROTECTED]>
cc:

Subject:  java.lang.IllegalStateException: Response has already been
      committed

I am trying to insert the output of a servlet into cells in a html table.
I
am getting the above error.  Here is a sample of the code:

../servlet/RevGeocodeBlockServlet writes to the outputstream a string which
represents the location given by the lat and lon specified.


<html><head><title>Location</title></head><body>
<table>
<tr><td>Danny</td><td>
<jsp:include page="../servlet/RevGeocodeBlockServlet" flush="true">

<jsp:param name="longitude" value="<%= lon %>"/>

<jsp:param name="latitude" value="<%= lat %>"/>

</jsp:include>

</td></tr>

<tr><td>Jason</td><td>
<jsp:include page="../servlet/RevGeocodeBlockServlet" flush="true">

<jsp:param name="longitude" value="<%= lon %>"/>

<jsp:param name="latitude" value="<%= lat %>"/>

</jsp:include>

</td></tr>
</table>
</body></html>

I don't believe that jsp:include should be doing anything to the headers.
Is there anything I can do to get around the problem.


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>









--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to