> From: Peter Schwenke [mailto:[EMAIL PROTECTED]] > > > 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)
Peter, IIRC, these two - <%@ include file=" " %> and <jsp:include page=" " /> - have different semantics. One is compile-time, another is run-time. > eg > > <%@ include file="include/StandardDefs.jsp" %> > > My included JSPs are in an "include" subdirectory of the "main" JSPs. Good that this works. Vadim > 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 --------------------------------------------------------------------- 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]>