Mohammed Misbahuddin wrote:
>
> Hi all,
> I am using Include action tag and Forward action tag in a same page, but as
> include tag clears the output buffer(As of version 1.1 of the JSP
> specification) and forward tag needs that so i get exception as-
> Illegal state exception writer already obtained.
> Is there any way to use both the tag together. Can any one help me.
> Thanx in advance!

You can not use the forward action after you have executed the include
action (in JSP 1.1, this will hopefully be fixed in JSP 1.2). To include
a fragment in a page with a forward action, you must instead use the
include *directive*, e.g.

  <%@ include file="myfile.inc" %>

I describe this in more detail (as well as other common problems) in an
article published on the O'Reilly web site:

  <http://java.oreilly.com/news/jsptips_1100.html>

Hans
--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to