tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Pfeiffer" <>
Subject RE: jsp:include not compiling modified jsp
Date Wed, 30 Aug 2000 18:29:46 GMT
Apparantly the "Response has already been committed" message appears if any
error occurs with the include.  In my case, I made the faulty assumption
that the jsp:include directive would use my <BASE HREF> setting.  It does
not and therefore could not find my jsp/OasisHeader.jsp page.  Once I
corrected the reference to my jsp header as relative to the parent jsp page
(I dropped the "jsp/" as they reside in the same dir), the problem went

Lot's O' fun,

Bill Pfeiffer

-----Original Message-----
From: Bill Pfeiffer []
Sent: Wednesday, August 30, 2000 1:51 PM
Subject: RE: jsp:include not compiling modified jsp

I was, indeed, using the <% include >% format (JRun studio put it in for me
and I wasn't paying attention!).  I switched to <jsp:include
page="jsp/OasisHeader.jsp" flush="true"/> format and the recompilation
happens automatically, however, I am now getting the following error:

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

The included jsp is a simple table with some anchors and an image.

Any ideas?

Bill Pfeiffer

-----Original Message-----
From: Kitching Simon []
Sent: Wednesday, August 30, 2000 10:51 AM
To: ''
Subject: RE: jsp:include not compiling modified jsp

> -----Original Message-----
> From:	William Brogden []
> Sent:	Wednesday, August 30, 2000 4:41 PM
> To:
> Subject:	Re: jsp:include not compiling modified jsp
> Bill Pfeiffer wrote:
> >
> > I have a jsp that includes another jsp.  When I modify the included jsp
> and
> > run the "parent" jsp, the modified jsp does NOT get recompiled.
> >
> > Why is this?  Is it a bug or working as designed?  I can modify the
> parent
> > jsp and the included will also then be recompiled.  This is going to be
> a
> > real problem if I include the jsp into several parent page (say if the
> > included page was a header, which, in my case, it is).
> >
> > TIA,
> >
> > Bill Pfeiffer
> I would say that it is working according to spec. I think it checks
> the
> date on your primary page source versus the data on the .java code -
> since your primary page didn't change, it looks ok.
[Kitching Simon]
I disagree.

If the <jsp:include> statement is being used, then I think that the called
page should *definitely*
be recompiled if its source code changes. I really would be surprised if
this isn't already done
by tomcat - I'll try it out myself when I've got a moment.

On the otherhand, the <%@ ...%> include format is a totally different thing.
To handle
automatic recompilation for this sort of thing requires knowledge of the
original *source code*,
so probably won't ever be handled right - just too difficult and, when
sourcecode not available,
not possible at all.

> --
> WBB -  Chief Scientist, LANWrights, Inc.
> Java Programmer Certification information and mock exam
> at

View raw message