According to all the books, as soon and you do a <jsp:include  /> there are
3 things you can't do:

1) redirect
2) mess with your response headers
3) mess with cookies

So all such code must reside before your first <jsp:include /> in a static
file...

-- 

-Geoff Marshall, Director of Development

.......................................................
t e r r a s c o p e                      (415) 951-4944
54 Mint Street, Suite 110         direct (415) 625-0349
San Francisco, CA  94103             fax (415) 625-0306
.......................................................

> From: "Vaskin Kissoyan" <[EMAIL PROTECTED]>
> Organization: Lokion
> Reply-To: Orion-Interest <[EMAIL PROTECTED]>
> Date: Wed, 28 Feb 2001 16:35:44 -0500
> To: Orion-Interest <[EMAIL PROTECTED]>
> Subject: login security include file
> 
> I'm trying to do a response.sendRedirect() from an include file <jsp:include>
> and wanted to avoid doing a directive.include (preparser),
> 
> I keep getting "Response has already been committed, be sure not to write to
> the OutputStream or to trigger a commit due to any other action before calling
> this method."
> 
> I have been very careful as to put this include at the very top of the file,
> and to specify autoFlush=false and flush=false on the include tag.
> 
> Again, the intention of this include file would be to be place at the top of
> the jsp file to secure it by redirecting to a login page if credentials in a
> session based UserBean do not allow access to the page for some reason.
> 
> -Vaskin
> 


Reply via email to