I've had no problem with including other pages. I've been using the old style includes - mainly because we never updated the JSPs to the XML syntax because of an old servlet runner. (I've spent the last few weeks reworking to Cocoon and that is on the list)
eg <%@ include file="include/StandardDefs.jsp" %> My included JSPs are in an "include" subdirectory of the "main" JSPs. Is your include path correct (/jsp/test2) ? If you are including from the current directory, you should just be able to do <jsp:include page="test2.jsp" flush="true" /> ...Peter Chitharanjan Das writes: > Hello, > The JSP Generator problem. > > Has anybody tried <jsp:include> and made it work. > The standalone JSP's work (without includes). > > > With inclusion of jsp:include, I get the IllegalStateException with > Both the flush variable set to true or false. > > Calling jsp > Test.jsp > > <%@ page language='java' session='false' %> > <page> > <title>Hello</title> > <content> > <para>This is my first Cocoon2 page!</para> > <para>With help from JSP</para> > <jsp:include page="/jsp/test2" flush="true" /> > </content> > </page> > > > Included jsp > test2.jsp > > <%@ page language='java' session='false' %> > <para>This is my first Cocoon2 page!</para> > <para>With help from JSP</para> > > > > I am using cocoon ver2.0, Tom Cat 4.0. I am guessing that the servlet > version is servlet 2.3 and JSP version 1.2. > > Could any of You please help me out, I am in a fix out Here ? > > Thanks in advance, > Chiths > > > > > accordia, inc > 34347 Maybird Circle > Fremont, CA 94555 > 650 279 1137 > [EMAIL PROTECTED] > > The information contained in this communication is intended solely for > the use of the individual or entity to whom it is addressed and others > authorized to receive it. It may contain confidential or legally > privileged information. If you are not the intended recipient you are > hereby notified that any disclosure, copying, distribution or taking any > action in reliance on the contents of this information is strictly > prohibited and may be unlawful. If you have received this communication > in error, please notify us immediately by responding to this email and > then delete it from your system. Accordia Inc. is neither liable for the > proper and incomplete transmission of the information contained in this > communication nor for any delay in its receipt > > <html xmlns:o="urn:schemas-microsoft-com:office:office" >xmlns:w="urn:schemas-microsoft-com:office:word" >xmlns="http://www.w3.org/TR/REC-html40"> > > <head> > <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> > > > <meta name=ProgId content=Word.Document> > <meta name=Generator content="Microsoft Word 10"> > <meta name=Originator content="Microsoft Word 10"> > <link rel=File-List href="cid:[EMAIL PROTECTED]"> > <!--[if gte mso 9]><xml> > <o:OfficeDocumentSettings> > <o:DoNotRelyOnCSS/> > </o:OfficeDocumentSettings> > </xml><![endif]--><!--[if gte mso 9]><xml> > <w:WordDocument> > <w:SpellingState>Clean</w:SpellingState> > <w:GrammarState>Clean</w:GrammarState> > <w:DocumentKind>DocumentEmail</w:DocumentKind> > <w:EnvelopeVis/> > <w:Compatibility> > <w:BreakWrappedTables/> > <w:SnapToGridInCell/> > <w:WrapTextWithPunct/> > <w:UseAsianBreakRules/> > </w:Compatibility> > <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> > </w:WordDocument> > </xml><![endif]--> > <style> > <!-- > /* Style Definitions */ > p.MsoNormal, li.MsoNormal, div.MsoNormal > {mso-style-parent:""; > margin:0in; > margin-bottom:.0001pt; > mso-pagination:widow-orphan; > font-size:12.0pt; > font-family:"Times New Roman"; > mso-fareast-font-family:"Times New Roman";} > a:link, span.MsoHyperlink > {color:blue; > text-decoration:underline; > text-underline:single;} > a:visited, span.MsoHyperlinkFollowed > {color:purple; > text-decoration:underline; > text-underline:single;} > span.EmailStyle17 > {mso-style-type:personal-compose; > mso-style-noshow:yes; > mso-ansi-font-size:10.0pt; > mso-bidi-font-size:10.0pt; > font-family:Arial; > mso-ascii-font-family:Arial; > mso-hansi-font-family:Arial; > mso-bidi-font-family:Arial; > color:windowtext;} > span.SpellE > {mso-style-name:""; > mso-spl-e:yes;} > span.GramE > {mso-style-name:""; > mso-gram-e:yes;} > @page Section1 > {size:8.5in 11.0in; > margin:1.0in 1.25in 1.0in 1.25in; > mso-header-margin:.5in; > mso-footer-margin:.5in; > mso-paper-source:0;} > div.Section1 > {page:Section1;} > --> > </style> > <!--[if gte mso 10]> > <style> > /* Style Definitions */ > table.MsoNormalTable > {mso-style-name:"Table Normal"; > mso-tstyle-rowband-size:0; > mso-tstyle-colband-size:0; > mso-style-noshow:yes; > mso-style-parent:""; > mso-padding-alt:0in 5.4pt 0in 5.4pt; > mso-para-margin:0in; > mso-para-margin-bottom:.0001pt; > mso-pagination:widow-orphan; > font-size:10.0pt; > font-family:"Times New Roman";} > </style> > <![endif]--> > </head> > > <body lang=EN-US link=blue vlink=purple style='tab-interval:.5in'> > > <div class=Section1> > > <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; > font-family:Arial'>Hello,<o:p></o:p></span></font></p> > > <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; > font-family:Arial'><span >style='mso-tab-count:1'> > </span><span > class=GramE>The JSP Generator problem.</span><o:p></o:p></span></font></p> > > <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; > font-family:Arial'><o:p> </o:p></span></font></p> > > <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; > font-family:Arial'>Has anybody tried <<span class=SpellE>jsp<span > class=GramE>:include</span></span>> and made it work.<o:p></o:p></span></font></p> > > <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; > font-family:Arial'>The standalone <span class=SpellE>JSP’s</span> work > (without includes).<o:p></o:p></span></font></p> > > <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; > font-family:Arial'><o:p> </o:p></span></font></p> > > <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; > font-family:Arial'><o:p> </o:p></span></font></p> > > <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; > font-family:Arial'>With inclusion of <span class=SpellE>jsp<span >class=GramE>:include</span></span>, > I get the <span class=SpellE><b style='mso-bidi-font-weight:normal'><span > >style='font-weight:bold;mso-bidi-font-weight:normal'>IllegalStateException</span></b></span><b > style='mso-bidi-font-weight:normal'><span >style='font-weight:bold;mso-bidi-font-weight: > normal'> </span></b><span style='mso-spacerun:yes'> </span>with ><o:p></o:p></span></font></p> > > <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; > font-family:Arial'><span >style='mso-tab-count:1'> > </span>Both > the flush variable set to true or false.<o:p></o:p></span></font></p> > > <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; > font-family:Arial'><o:p> </o:p></span></font></p> > > <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; > font-family:Arial'>Calling <span class=SpellE>jsp</span><o:p></o:p></span></font></p> > > <p class=MsoNormal><span class=SpellE><font size=2 face=Arial><span > style='font-size:10.0pt;font-family:Arial'>Test.jsp</span></font></span><font > size=2 face=Arial><span >style='font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p> > > <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; > font-family:Arial'><o:p> </o:p></span></font></p> > > <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=2 > face=Arial><span style='font-size:10.0pt;font-family:Arial;font-weight:bold; > mso-bidi-font-weight:normal'><%@ page language='java' session='false' >%><o:p></o:p></span></font></b></p> > > <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=2 > face=Arial><span style='font-size:10.0pt;font-family:Arial;font-weight:bold; > mso-bidi-font-weight:normal'><<span >class=GramE>page</span>><o:p></o:p></span></font></b></p> > > <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=2 > face=Arial><span style='font-size:10.0pt;font-family:Arial;font-weight:bold; > mso-bidi-font-weight:normal'><span style='mso-spacerun:yes'> </span><<span > class=GramE>title></span>Hello</title><o:p></o:p></span></font></b></p> > > <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=2 > face=Arial><span style='font-size:10.0pt;font-family:Arial;font-weight:bold; > mso-bidi-font-weight:normal'><span style='mso-spacerun:yes'> </span><<span > class=GramE>content</span>><o:p></o:p></span></font></b></p> > > <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=2 > face=Arial><span style='font-size:10.0pt;font-family:Arial;font-weight:bold; > mso-bidi-font-weight:normal'><span style='mso-spacerun:yes'> > </span><<span class=SpellE><span class=GramE>para</span></span><span > class=GramE>></span>This is my first Cocoon2 page!</<span >class=SpellE>para</span>><o:p></o:p></span></font></b></p> > > <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=2 > face=Arial><span style='font-size:10.0pt;font-family:Arial;font-weight:bold; > mso-bidi-font-weight:normal'><span >style='mso-tab-count:1'> > </span><<span > class=SpellE><span class=GramE>para</span></span><span class=GramE>></span>With > help from JSP</<span class=SpellE>para</span>><o:p></o:p></span></font></b></p> > > <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=2 > face=Arial><span style='font-size:10.0pt;font-family:Arial;font-weight:bold; > mso-bidi-font-weight:normal'><span >style='mso-tab-count:1'> > </span><<span > class=SpellE>jsp<span class=GramE>:include</span></span> page="/jsp/test2" > flush="true" /><o:p></o:p></span></font></b></p> > > <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=2 > face=Arial><span style='font-size:10.0pt;font-family:Arial;font-weight:bold; > mso-bidi-font-weight:normal'><span style='mso-spacerun:yes'> > </span></content><o:p></o:p></span></font></b></p> > > <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=2 > face=Arial><span style='font-size:10.0pt;font-family:Arial;font-weight:bold; > mso-bidi-font-weight:normal'></page><o:p></o:p></span></font></b></p> > > <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; > font-family:Arial'><o:p> </o:p></span></font></p> > > <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; > font-family:Arial'><o:p> </o:p></span></font></p> > > <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=2 > face=Arial><span style='font-size:10.0pt;font-family:Arial;font-weight:bold; > mso-bidi-font-weight:normal'>Included <span >class=SpellE>jsp</span><o:p></o:p></span></font></b></p> > > <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=2 > face=Arial><span style='font-size:10.0pt;font-family:Arial;font-weight:bold; > mso-bidi-font-weight:normal'>test2.jsp<o:p></o:p></span></font></b></p> > > <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=2 > face=Arial><span style='font-size:10.0pt;font-family:Arial;font-weight:bold; > mso-bidi-font-weight:normal'><o:p> </o:p></span></font></b></p> > > <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=2 > face=Arial><span style='font-size:10.0pt;font-family:Arial;font-weight:bold; > mso-bidi-font-weight:normal'><%@ page language='java' session='false' >%><o:p></o:p></span></font></b></p> > > <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=2 > face=Arial><span style='font-size:10.0pt;font-family:Arial;font-weight:bold; > mso-bidi-font-weight:normal'><span style='mso-spacerun:yes'> > </span><<span class=SpellE><span class=GramE>para</span></span><span > class=GramE>></span>This is my first Cocoon2 page!</<span >class=SpellE>para</span>><o:p></o:p></span></font></b></p> > > <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=2 > face=Arial><span style='font-size:10.0pt;font-family:Arial;font-weight:bold; > mso-bidi-font-weight:normal'><span >style='mso-tab-count:1'> > </span><<span > class=SpellE><span class=GramE>para</span></span><span class=GramE>></span>With > help from JSP</<span class=SpellE>para</span>><o:p></o:p></span></font></b></p> > > <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=2 > face=Arial><span style='font-size:10.0pt;font-family:Arial;font-weight:bold; > mso-bidi-font-weight:normal'><span >style='mso-tab-count:1'> > </span><o:p></o:p></span></font></b></p> > > <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=2 > face=Arial><span style='font-size:10.0pt;font-family:Arial;font-weight:bold; > mso-bidi-font-weight:normal'><o:p> </o:p></span></font></b></p> > > <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=2 > face=Arial><span style='font-size:10.0pt;font-family:Arial;font-weight:bold; > mso-bidi-font-weight:normal'><o:p> </o:p></span></font></b></p> > > <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; > font-family:Arial'>I am using cocoon ver2.0, Tom Cat 4.0. I am guessing that the > <span class=SpellE>servlet</span> version is <span class=SpellE>servlet</span> > 2.3 and JSP version 1.2.<o:p></o:p></span></font></p> > > <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; > font-family:Arial'><o:p> </o:p></span></font></p> > > <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=2 > face=Arial><span style='font-size:10.0pt;font-family:Arial;font-weight:bold; > mso-bidi-font-weight:normal'>Could any of You please help me out, I am in a fix > out <span class=GramE>Here ?</span><o:p></o:p></span></font></b></p> > > <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=2 > face=Arial><span style='font-size:10.0pt;font-family:Arial;font-weight:bold; > mso-bidi-font-weight:normal'><o:p> </o:p></span></font></b></p> > > <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=2 > face=Arial><span style='font-size:10.0pt;font-family:Arial;font-weight:bold; > mso-bidi-font-weight:normal'>Thanks in advance,<o:p></o:p></span></font></b></p> > > <p class=MsoNormal><span class=SpellE><b style='mso-bidi-font-weight:normal'><font > size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;font-weight: > bold;mso-bidi-font-weight:normal'>Chiths</span></font></b></span><b > style='mso-bidi-font-weight:normal'><font size=2 face=Arial><span > style='font-size:10.0pt;font-family:Arial;font-weight:bold;mso-bidi-font-weight: > normal'><o:p></o:p></span></font></b></p> > > <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; > font-family:Arial'><o:p> </o:p></span></font></p> > > <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; > font-family:Arial'><o:p> </o:p></span></font></p> > > <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; > font-family:Arial'><o:p> </o:p></span></font></p> > > <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; > font-family:Arial'><o:p> </o:p></span></font></p> > > <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=5 > color=blue face=Arial><span style='font-size:16.0pt;font-family:Arial; > color:blue;font-weight:bold;mso-bidi-font-weight:normal;mso-no-proof:yes'>accordia, > inc <o:p></o:p></span></font></b></p> > > <p class=MsoNormal><st1:Street><st1:address style="BACKGROUND-POSITION: left bottom; >BACKGROUND-IMAGE: url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: >repeat-x"><st1:Street><st1:address style="BACKGROUND-POSITION: left bottom; >BACKGROUND-IMAGE: url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x"><b > style='mso-bidi-font-weight:normal'><font size=2 color=navy face=Arial><span > style='font-size:10.0pt;font-family:Arial;color:navy;font-weight:bold; > mso-bidi-font-weight:normal;mso-no-proof:yes'>34347 Maybird >Circle</span></font></b></st1:address></st1:Street></st1:address></st1:Street><b > style='mso-bidi-font-weight:normal'><font color=navy face=Arial><span > style='font-family:Arial;color:navy;font-weight:bold;mso-bidi-font-weight:normal; > mso-no-proof:yes'><o:p></o:p></span></font></b></p> > > <p class=MsoNormal><st1:place><st1:City><st1:place><st1:City><b > style='mso-bidi-font-weight:normal'><font size=2 color=navy face=Arial><span > style='font-size:10.0pt;font-family:Arial;color:navy;font-weight:bold; > >mso-bidi-font-weight:normal;mso-no-proof:yes'>Fremont</span></font></b></st1:City></st1:place></st1:City><b > style='mso-bidi-font-weight:normal'><font color=navy face=Arial><span > style='font-family:Arial;color:navy;font-weight:bold;mso-bidi-font-weight:normal; > mso-no-proof:yes'>, <st1:State><st1:State>CA</st1:State></st1:State> ><st1:PostalCode><st1:PostalCode>94555<o:p></o:p></span></font></b></p> > > </st1:PostalCode></st1:PostalCode></st1:place> > > <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=2 > color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial; > color:navy;font-weight:bold;mso-bidi-font-weight:normal;mso-no-proof:yes'>650 > 279 1137</span></font></b><span style='mso-no-proof:yes'><o:p></o:p></span></p> > > <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=2 > color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial; > color:navy;font-weight:bold;mso-bidi-font-weight:normal;mso-no-proof:yes'><a > href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a></span></font></b><span > style='mso-no-proof:yes'><o:p></o:p></span></p> > > <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=3 > face="Times New Roman"><span style='font-size:12.0pt;font-weight:bold; > mso-bidi-font-weight:normal;mso-no-proof:yes'> <o:p></o:p></span></font></b></p> > > <p class=MsoNormal><em><i><font size=3 color=red face="Times New Roman"><span > style='font-size:12.0pt;color:red;mso-no-proof:yes'>The information contained > in this communication is intended solely for the use of the individual or > entity to whom it is addressed and others authorized to receive it. It may > contain confidential or legally privileged information. If you are not the > intended recipient you are hereby notified that any disclosure, copying, > distribution or taking any action in reliance on the contents of this > information is strictly prohibited and may be unlawful. If you have received > this communication in error, please notify us immediately by responding to this > email and then delete it from your system. <st1:PersonName >style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: >url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x">Accordia</st1:PersonName> > Inc. is neither liable for the proper and incomplete transmission of the > information contained in this communication nor for any delay in its >receipt</span></font></i></em><span > style='mso-no-proof:yes'><o:p></o:p></span></p> > > <p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: > 12.0pt'><o:p> </o:p></span></font></p> > > </div> > > </body> > > </html> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>