Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 11540 invoked from network); 24 Feb 2000 19:27:21 -0000 Received: from menhed.netsiel.it (156.54.254.2) by locus.apache.org with SMTP; 24 Feb 2000 19:27:21 -0000 Received: from exch_srv.netsiel.it (156.54.2.73 [156.54.2.73]) by menhed.netsiel.it with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.10) id 1RAQNQB7; Thu, 24 Feb 2000 20:11:19 +0100 Received: by EXCH_SRV with Internet Mail Service (5.5.2448.0) id ; Thu, 24 Feb 2000 20:11:15 +0100 Message-ID: <1357AA2133AAD21198CE00A0C9E95DD481FCC2@EXCH_SRV> From: Interesse Michelangelo To: "'cocoon-dev@xml.apache.org'" Subject: R:R:R:include??? (Was: Re: [Cocoon 2.0] Status...) Date: Thu, 24 Feb 2000 20:11:12 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable =20 > ---------- > Da: Stefano Mazzocchi[SMTP:stefano@apache.org] > Risposta a: cocoon-dev@xml.apache.org > Inviato: gioved=EC 24 febbraio 2000 11.43 > A: cocoon-dev@xml.apache.org > Oggetto: Re: R:R:include??? (Was: Re: [Cocoon 2.0] Status...) >=20 > Interesse Michelangelo wrote: > >=20 > > > ---------- > > > Da: Stefano Mazzocchi[SMTP:stefano@apache.org] > > > Risposta a: cocoon-dev@xml.apache.org > > > Inviato: mercoled=EC 23 febbraio 2000 12.19 > > > A: cocoon-dev@xml.apache.org > > > Oggetto: Re: R:include??? (Was: Re: [Cocoon 2.0] Status...) > > > > > > Interesse Michelangelo wrote: > > > > > > > > > > > > > > > > > ---------- > > > > > Da: Pierpaolo Fumagalli[SMTP:pier@apache.org] > > > > > Risposta a: cocoon-dev@xml.apache.org > > > > > Inviato: mercoled=EC 23 febbraio 2000 10.18 > > > > > A: cocoon-dev@xml.apache.org > > > > > Oggetto: jsp:include??? (Was: Re: [Cocoon 2.0] = Status...) > > > > > > > > > > Interesse Michelangelo wrote: > > > > > > > > > > > > Please, in 1.7 release allow me to jsp:include an XML page = ;)))) > > > > > > > > > > Do you need to include a JSP or you need to include an XML > document in > > > > > your page??? Because you can import documents into others = with > XSL... > > > > > > > > > I mean to include the result of a XML-->HTML XSLTranslation = into a > JSP > > > > page, i.e.: using JSP as a wrapper for XSLT .... better, having = the > > > power to > > > > make a JSP page including several XML pages, so to build a > mosaic/puzzle > > > out > > > > of several XSLT "parallel" transformations. > > > > > > > > One case could be: placing in one final HTML page the outcomes = of > > > several > > > > post-formatted queries, i.e.: formatted tables if you like, > encapsulated > > > > into some top-level JSP-logic . > > > > > > > > I tried to make a similar mosaic, but I got an error message = from > > > Cocoon, as > > > > already reported, while jsp:including an XML page. > > > > > > Give us more info. > > > > > ok. > > Just consider the following scenario: > >=20 > > > > > > Risorse > >=20 > > <%@ include file=3D"T_HEAD.jsp" %> > >=20 > > <%@ page import =3D "java.util.*, com.mybase.*, ..." %> > >=20 > > <% > > .... some top-level logic is here, beans definition and = access > ... > > %> > >=20 > > > > > > > > > > > >=20 > > <% > > if () > > { > > %> > >=20 > > > > > > > > > > > >=20 > > <% > > } > > %> > >=20 > > <%@ include file=3D"T_TRAIL.htm" %> > >=20 > > The above code just shows a way in which JSP(Tomcat) and = XML(Cocoon) > could > > synergically coexist. But, now it doesn't work :( > >=20 > > Does the example clarify the concept ? >=20 > It does. Fine (read this in english, please :). > I don't get why you would like to use JSP for that, but that's = another > story. Just because I've already coded a number of JSP pages and collected a valuable(<<<) experience from this technology, and It is not my primary concern to spend time to transpose them all, till I'll have a good = chance to do that ;) > The problems is that "here is what fails" doesn't help us to fix the > problem. Do you have an error message or some sort? What does the > generated source code says? is it using RequestDispatching? >=20 Here is the dump, while calling database.xml directly from the = browser's Address field produces the expected result - thanks for any care of it! White space is required between the public identifier and the system identifier. at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at org.xml.sax.SAXException.(SAXException.java:38) at org.xml.sax.SAXParseException.(SAXParseException.java:46) at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1249) at org.apache.xerces.framework.XMLDTDScanner.reportFatalXMLError(XMLDTDScan= ner. java:656) at org.apache.xerces.framework.XMLDTDScanner.scanExternalID(XMLDTDScanner.j= ava: 1148) at org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.= java :1077) at org.apache.xerces.validators.dtd.DTDValidator.scanDoctypeDecl(DTDValidat= or.j ava:440) at org.apache.xerces.framework.XMLParser.scanDoctypeDecl(XMLParser.java:201= 1) at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatc= h(XM LDocumentScanner.java:768) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(Compiled Code) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1138) at org.apache.cocoon.parser.XercesParser.parse(XercesParser.java:82) at org.apache.cocoon.producer.AbstractProducer.getDocument(AbstractProducer= .jav a:96) at org.apache.cocoon.Engine.handle(Compiled Code) at org.apache.cocoon.Cocoon.service(Cocoon.java:145) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at org.apache.tomcat.core.ServletWrapper.handleInvocation(Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:= 224) at org.apache.tomcat.core.RequestDispatcherImpl.include(RequestDispatcherIm= pl.j ava:249) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:3= 48) at _0002fjsp_0002fdatabase_0002ejsp_0002fjsp_0002fdatabase_jsp_0._jspServic= e(_0 002fjsp_0002fdatabase_0002ejsp_0002fjsp_0002fd at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServle= t.ja va:161) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:255)= at org.apache.jasper.runtime.JspServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at org.apache.tomcat.core.ServletWrapper.handleInvocation(Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:= 224) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:347) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H= ttpC onnectionHandler.java:144) at org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java:305) at java.lang.Thread.run(Thread.java:466) > Anyway, keep in mind that Cocoon is developed under JServ because the > majority of the people uses that. Most of the Servlet 2.2 = compatibility > issues are yet unsolved... and help is, of course, welcome. Stefano: I appreciate your call, and I would like to get involved soon, = really!!!! But at the moment I'm so engaged with my "primary" (read money!) work, = that a very few time remains available .... and I'm spending (almost) all of = it to acquire further knowledge about Cocoon, Tomcat, and the likes and = .... skimming through the mailing, too :). That's because I believe(!!!) in = them - please, do not make me disappointed about ;)) Any way I promise you not to loose any chance to contribute to these = open source ... but do not ask me when, please ! Waiting for that moment, just now I'm envolved in spreading my knowledge(<<<<) about them to other folks and .... advertising them ! =20 > --=20 > Stefano Mazzocchi One must still have chaos in oneself to be > able to give birth to a dancing star. > Friedrich Nietzsche > -------------------------------------------------------------------- > Come to the first official Apache Software Foundation Conference! =20 > ------------------------- http://ApacheCon.Com --------------------- >=20 > Michelangelo Interesse > ---------------------------- > Process Support Systems > Netsiel S.p.A. > * ++39-080-5092.220 > ---------------------------- >=20 >=20