Re: can't start cocoon under root
Hummm. I'm not running Apache as root (its running as nobody). It responds on port 80. I'm starting it with apachectl. Its generally a better idea to run Apache in front of tomcat for performance reasons. Tomcat is actually pretty slow on the scale of things, where Apache is actually pretty fast (especially 2.xx). If you let it handle the requests and forward them where appropriate you'll be a lot better off. Especially for images. -Andy Bruno Dumon wrote: On Thu, 2002-07-04 at 21:09, Thomas Garger wrote: but if i don't start tomcat as root, i can not run it under the port 80 - because only the root user has access rights to to ports below 1024. am i wrong?? no, that's right. or can i configure my linux system, that a normal-user (no root) van start tomcat under the port 90? Not that I know. Usually Apache is put in front of tomcat (using mod_jk to connect the two). Apache, being a native application, can start as root (so it can bind to port 80), and change the user id of the processes that handle the requests to another user. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PLSQL function returning CLOB
From oracle: PLS-00382 expression is of wrong type Cause: An expression has the wrong datatype for the context in which it was found. Action: Change the datatype of the expression. You might want to use datatype conversion functions. Hope this will help to understand what is wrong! Denis - Original Message - From: Christian Haul To: [EMAIL PROTECTED] Sent: Friday, July 05, 2002 2:37 PM Subject: Re: PLSQL function returning CLOB On 05.Jul.2002 -- 03:07 PM, [EMAIL PROTECTED] wrote: Sorry about the finnish statement: begin ? := test.tst3; end; : java.sql.SQLException: ORA-06550: rivi 1, sarake 35: PLS-00382: lauseke on väärän tyyppinen ORA-06550: rivi 1, sarake 15: PL/SQL: Statement ignored It would really help to understand the error message. There should be a locale setting for your connection. Another helpful thing would be a sample java code that would achieve the same as you're trying to do. Maybe Oracle provides some snippets? Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PLSQL function returning CLOB
Hi, I think it helped, I think it now understands this CLOB, but the problem is now that I can't get the value of it: the out commented part now bite me like this: ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; page titleA Simple XSP Page/title content esql:connection esql:poolsapjeda/esql:pool esql:execute-query esql:call begin esql:parameter direction=out type =CLOB xsp:expr1/xsp:expr/esql:parameter := test.tst3; end; /esql:call esql:call-results esql:get-ascii column=1 from-call=yes / /esql:call-results /esql:execute-query /esql:connection /content /page /xsp:page I get errorstack: Cocoon 2 - Internal server error type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling tst3_xsp: ERROR 1 (C:\Program Files\Apache Tomcat 4.0\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/jbl/docs\tst3_xsp.java): ... this.characters(\n ); // start error (lines 427-427) method getAscii(java.sql.CallableStatement, int) not found in class org.apache.cocoon.components.language.markup.xsp.EsqlHelper XSPObjectHelper.xspExpr(contentHandler, EsqlHelper.getAscii(_esql_query.getCallableStatement(), 1)); // end error this.characters(\n ); ... Line 427, column 59: method getAscii(java.sql.CallableStatement, int) not found in class org.apache.cocoon.components.language.markup.xsp.EsqlHelper Line 0, column 0: 1 error sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling tst3_xsp: ERROR 1 (C:\Program Files\Apache Tomcat 4.0\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/jbl/docs\tst3_xsp.java): ... this.characters(\n); // start error (lines 427-427) method getAscii(java.sql.CallableStatement, int) not found in class org.apache.cocoon.components.language.markup.xsp.EsqlHelper XSPObjectHelper.xspExpr(contentHandler, EsqlHelper.getAscii(_esql_query.getCallableStatement(), 1)); // end error this.characters(\n ); ... Line 427, column 59: method getAscii(java.sql.CallableStatement, int) not found in class org.apache.cocoon.components.language.markup.xsp.EsqlHelper Line 0, column 0: 1 error at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loadProgram(ProgramGeneratorImpl.java:409) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:287) at org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:203) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:370) at org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline.setupPipeline(CachingProcessingPipeline.java:287) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:493) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:142) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:160) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:157) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:152) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:327) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:309) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:131) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:160) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:157) at
Re: RE: RE: Problem with jsp in i18n
Hi Konstantin, I used the sitemap using the transformer.But when I run it , iam getting the page with the title as untranslatedtext.It is not able to dispay the messages from messages_en.xml and messages_de.xml.Please help me,,, Kavitha. On Fri, 05 Jul 2002 Piroumian Konstantin wrote : From: kavitha ramesh [mailto:[EMAIL PROTECTED]] Hi Konstantin, Thanks for your mail.It is only another extension and Iam not using any JSP Generator.I use Cocoon 2.0.I have setup my sitemap as follows: map:match pattern=jsp/* map:generate type=jsp src=/language/jsp/{1}.jsp/ map:transform type=i18n / map:transform src=simple.xsl/ map:serialize type=html/ /map:match Hope the above solves your problem. Konstantin My directory structure is like this: Language--Name of the Directory *jsp *simple.jsp *translations * messages_en.xml * messages_de.xml *sitemap.xmap *simple.xml *simple.xsl Kavitha On Fri, 05 Jul 2002 Piroumian Konstantin wrote : From: kavitha ramesh [mailto:[EMAIL PROTECTED]] Hi, Iam working with i18n in Cocoon.And I have a file called simple.xml which displays a title in English and German.When I converted the simple.xml to a simple.jsp only the front page is displayed.But Iam not able to display it in English and German.Here are the files, simple.jsp, messages_en.xml and messages_de.xml: Why are you using *.jsp: is it only another extension or you are using the JspGenerator with it? Did you setup your sitemap correctly? Look for 'i18n' in Cocoon logs to see if the i18n transformer was called. What is the version of your Cocoon? Konstantin simple.jsp ___ ?xml version=1.0 encoding=UTF-8? root xmlns:i18n=http://apache.org/cocoon/i18n/2.0; title i18n:texttitlemessage/i18n:text /title menu item link hrefsimple.jsp?locale=en_US/href titleEnglish /title /link /item item link hrefsimple.jsp?locale=de_DE/href titleGerman /title /link /item item link hrefsimple.jsp?locale=hi_IN/href titleHindi /title /link /item /menu /root messages_en.xml ___ ?xml version=1.0 encoding=UTF-8? !-- English message catalogue file for cocoon2 sample webapp -- catalogue xml:lang=en message key=titletextGoood Day!/message /catalogue messages_de.xml ___ ?xml version=1.0 encoding=UTF-8? !-- German message catalogue file for cocoon2 sample webapp -- catalogue xml:lang=de message key=titletextGuten Tag!/message /catalogue If someone knows please help me! Kavitha. _ Click below to experience Aishwarya Rai's beauty secrets. New International Lux Skincare - It's not just soap, It's skincare. http://www.luxskincare.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Click below to experience Aishwarya Rai's beauty secrets. New International Lux Skincare - It's not just soap, It's skincare. http://www.luxskincare.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Feature of esql:get-xml?
On Friday, July 5, 2002, at 07:04 AM, Christian Haul wrote: ok, I started to write a little docu on the usage of hsqldb and esql: http://194.191.122.220:8080/wyona-cms/docs/xdocs/hsqldb.html Maybe people from Cocoon can use certain parts of it if they want Thanks! Just let us know when you think it's more or less finished, and we'll add it to the Cocoon documentation. Submit a patch via Bugzilla. Check the How-Tos if you don't know how. Post to the list if you have any problems submitting. Thanks. Diana - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XML Forms again
From: [EMAIL PROTECTED] Hello, ... Still I am wondering, if I can use the bean used for the model, outside of my FormAction or if it is only possible to use it in this action. The map:parameter name=xmlform-scope value=session/ indicates the scope of your instance data (e.g. your bean), so if you set it to 'session' then your bean should be available everywhere where the session is available, until you remove it. Konstantin Thanks again for any help! miHam - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE: RE: Problem with jsp in i18n
Hi Konstantin, I used the sitemap using the transformer.But when I run it , iam getting the page with the title as untranslatedtext.It is not able to dispay the messages from messages_en.xml and messages_de.xml.Please help me,,, Kavitha. On Fri, 05 Jul 2002 Piroumian Konstantin wrote : From: kavitha ramesh [mailto:[EMAIL PROTECTED]] Hi Konstantin, Thanks for your mail.It is only another extension and Iam not using any JSP Generator.I use Cocoon 2.0.I have setup my sitemap as follows: map:match pattern=jsp/* map:generate type=jsp src=/language/jsp/{1}.jsp/ map:transform type=i18n / map:transform src=simple.xsl/ map:serialize type=html/ /map:match Hope the above solves your problem. Konstantin My directory structure is like this: Language--Name of the Directory *jsp *simple.jsp *translations * messages_en.xml * messages_de.xml *sitemap.xmap *simple.xml *simple.xsl Kavitha On Fri, 05 Jul 2002 Piroumian Konstantin wrote : From: kavitha ramesh [mailto:[EMAIL PROTECTED]] Hi, Iam working with i18n in Cocoon.And I have a file called simple.xml which displays a title in English and German.When I converted the simple.xml to a simple.jsp only the front page is displayed.But Iam not able to display it in English and German.Here are the files, simple.jsp, messages_en.xml and messages_de.xml: Why are you using *.jsp: is it only another extension or you are using the JspGenerator with it? Did you setup your sitemap correctly? Look for 'i18n' in Cocoon logs to see if the i18n transformer was called. What is the version of your Cocoon? Konstantin simple.jsp ___ ?xml version=1.0 encoding=UTF-8? root xmlns:i18n=http://apache.org/cocoon/i18n/2.0; title i18n:texttitlemessage/i18n:text /title menu item link hrefsimple.jsp?locale=en_US/href titleEnglish /title /link /item item link hrefsimple.jsp?locale=de_DE/href titleGerman /title /link /item item link hrefsimple.jsp?locale=hi_IN/href titleHindi /title /link /item /menu /root messages_en.xml ___ ?xml version=1.0 encoding=UTF-8? !-- English message catalogue file for cocoon2 sample webapp -- catalogue xml:lang=en message key=titletextGoood Day!/message /catalogue messages_de.xml ___ ?xml version=1.0 encoding=UTF-8? !-- German message catalogue file for cocoon2 sample webapp -- catalogue xml:lang=de message key=titletextGuten Tag!/message /catalogue If someone knows please help me! Kavitha. _ Click below to experience Aishwarya Rai's beauty secrets. New International Lux Skincare - It's not just soap, It's skincare. http://www.luxskincare.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Click below to experience Aishwarya Rai's beauty secrets. New International Lux Skincare - It's not just soap, It's skincare. http://www.luxskincare.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE: RE: Problem with jsp in i18n
Hi Konstantin, I used the sitemap using the transformer.But when I run it , iam getting the page with the title as untranslatedtext.It is not able to dispay the messages from messages_en.xml and messages_de.xml.Please help me,,, Kavitha. On Fri, 05 Jul 2002 Piroumian Konstantin wrote : From: kavitha ramesh [mailto:[EMAIL PROTECTED]] Hi Konstantin, Thanks for your mail.It is only another extension and Iam not using any JSP Generator.I use Cocoon 2.0.I have setup my sitemap as follows: map:match pattern=jsp/* map:generate type=jsp src=/language/jsp/{1}.jsp/ map:transform type=i18n / map:transform src=simple.xsl/ map:serialize type=html/ /map:match Hope the above solves your problem. Konstantin My directory structure is like this: Language--Name of the Directory *jsp *simple.jsp *translations * messages_en.xml * messages_de.xml *sitemap.xmap *simple.xml *simple.xsl Kavitha On Fri, 05 Jul 2002 Piroumian Konstantin wrote : From: kavitha ramesh [mailto:[EMAIL PROTECTED]] Hi, Iam working with i18n in Cocoon.And I have a file called simple.xml which displays a title in English and German.When I converted the simple.xml to a simple.jsp only the front page is displayed.But Iam not able to display it in English and German.Here are the files, simple.jsp, messages_en.xml and messages_de.xml: Why are you using *.jsp: is it only another extension or you are using the JspGenerator with it? Did you setup your sitemap correctly? Look for 'i18n' in Cocoon logs to see if the i18n transformer was called. What is the version of your Cocoon? Konstantin simple.jsp ___ ?xml version=1.0 encoding=UTF-8? root xmlns:i18n=http://apache.org/cocoon/i18n/2.0; title i18n:texttitlemessage/i18n:text /title menu item link hrefsimple.jsp?locale=en_US/href titleEnglish /title /link /item item link hrefsimple.jsp?locale=de_DE/href titleGerman /title /link /item item link hrefsimple.jsp?locale=hi_IN/href titleHindi /title /link /item /menu /root messages_en.xml ___ ?xml version=1.0 encoding=UTF-8? !-- English message catalogue file for cocoon2 sample webapp -- catalogue xml:lang=en message key=titletextGoood Day!/message /catalogue messages_de.xml ___ ?xml version=1.0 encoding=UTF-8? !-- German message catalogue file for cocoon2 sample webapp -- catalogue xml:lang=de message key=titletextGuten Tag!/message /catalogue If someone knows please help me! Kavitha. _ Click below to experience Aishwarya Rai's beauty secrets. New International Lux Skincare - It's not just soap, It's skincare. http://www.luxskincare.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Click below to experience Aishwarya Rai's beauty secrets. New International Lux Skincare - It's not just soap, It's skincare. http://www.luxskincare.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PLSQL function returning CLOB
OK, Of course I should translate it in my first message, I'm relly sorry about my sillyness. Here is it as translated: statement: begin ? := test.tst3; end; : java.sql.SQLException: ORA-06550: line 1, column 35: PLS-00382: expression is of wrong type ORA-06550: line 1, column 15: PL/SQL: Statement ignored Here is an oracle snippet found in manual: 'Oracle8i JDBC Developer's Guide and Reference Release 8.1.5 A64685-01' I'm not sure if it works Example: Getting BLOB and CLOB Locators from a Result Set Assume the database has a table called lob_table with a column for a BLOB locator, blob_col, and a column for a CLOB locator, clob_col. This example assumes that you have already created the Statement object, stmt. First, select the LOB locators into a standard result set, then get the LOB data into appropriate Java classes: // Select LOB locator into standard result set. ResultSet rs = stmt.executeQuery (SELECT blob_col, clob_col FROM lob_table); while (rs.next()) { // Get LOB locators into Java wrapper classes. oracle.jdbc2.Blob blob = (oracle.jdbc2.Blob)rs.getObject(1); oracle.jdbc2.Clob clob = (oracle.jdbc2.Clob)rs.getObject(2); [...process...] } The output is cast to oracle.jdbc2.Blob and Clob. As an alternative, you can cast the output to oracle.sql.BLOB and CLOB to take advantage of extended functionality offered by the oracle.sql.* classes. For example, you can rewrite the above code to get the LOB locators as: // Get LOB locators into Java wrapper classes. oracle.sql.BLOB blob = (BLOB)rs.getObject(1); oracle.sql.CLOB clob = (CLOB)rs.getObject(2); [...process...] Example: Getting a CLOB Locator from a Callable Statement The callable statement methods for retrieving LOBs are identical to the result set methods. In the case of a callable statement, register the output parameter as OracleTypes.BLOB or OracleTypes.CLOB. For example, if you have an OracleCallableStatement ocs that calls a function func that has a CLOB output parameter, then set up the callable statement as follows: OracleCallableStatement ocs = (OracleCallableStatement)conn.prepareCall({? = call func()}) ocs.registerOutParameter(1, OracleTypes.CLOB); ocs.executeQuery() oracle.sql.CLOB clob = ocs.getCLOB(1); //Jarmo Christian Haul [EMAIL PROTECTED] on 07/05/2002 03:37:45 PM Please respond to [EMAIL PROTECTED]; Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Jarmo Blomster/CCC) Subject: Re: PLSQL function returning CLOB On 05.Jul.2002 -- 03:07 PM, [EMAIL PROTECTED] wrote: Sorry about the finnish statement: begin ? := test.tst3; end; : java.sql.SQLException: ORA-06550: rivi 1, sarake 35: PLS-00382: lauseke on väärän tyyppinen ORA-06550: rivi 1, sarake 15: PL/SQL: Statement ignored It would really help to understand the error message. There should be a locale setting for your connection. Another helpful thing would be a sample java code that would achieve the same as you're trying to do. Maybe Oracle provides some snippets? Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ### This message has been scanned by Sonera Anti-Virus Service. No viruses has been found. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PLSQL function returning CLOB
Hi, I use oracle 8.1.7.3 in W2k, JDBC 2 oracle classes using oci8 driver, Tomcat 4.0.4, and Cocoon 2.1-dev. It works fine with varchar2, and string How should I handle a CLOB in included example. There is also commented the esql:get-ascii tag, that gives annother error message, but lets handle one problem at a time :-) TIA Jarmo --- package test is function tst3 return clob is cl clob; buf varchar2(100); begin dbms_lob.createtemporary(cl,true); buf := 'CLOB FROM PLSQL RETURN'; dbms_lob.write(cl,length(buf),1,buf); return cl; end; end; I tested with this xsp: ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; page titleA Simple XSP Page/title content esql:connection esql:poolsapjeda/esql:pool esql:execute-query esql:call begin esql:parameter direction=out type =AsciiStream xsp:expr1/xsp:expr/esql:parameter := test.tst3; end; /esql:call esql:call-results !--esql:get-ascii column=1 from-call=yes /-- /esql:call-results /esql:execute-query /esql:connection /content /page /xsp:page And got following error stack: Sorry about the finnish Cocoon 2 - Internal server error type fatal message Exception in ServerPagesGenerator.generate() description org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Error executing statement: begin ? := test.tst3; end; : java.sql.SQLException: ORA-06550: rivi 1, sarake 35: PLS-00382: lauseke on väärän tyyppinen ORA-06550: rivi 1, sarake 15: PL/SQL: Statement ignored sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Error executing statement: begin ? := test.tst3; end; : java.sql.SQLException: ORA-06550: rivi 1, sarake 35: PLS-00382: lauseke on väärän tyyppinen ORA-06550: rivi 1, sarake 15: PL/SQL: Statement ignored at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenerator.java:275) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:520) at org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline.processXMLPipeline(CachingProcessingPipeline.java:194) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:495) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:142) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:160) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:157) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:152) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:327) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:309) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:131) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:160) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:157) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:152) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:327) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:309) at org.apache.cocoon.Cocoon.process(Cocoon.java:585) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
Réf. : Re: formvalidation
right thanks for the answer... ---Message original--- De : [EMAIL PROTECTED] Date : vendredi 05 juillet 2002 13:06:49 A : [EMAIL PROTECTED]; Othman Haddad Sujet : Re: formvalidation On 05.Jul.2002 -- 01:01 PM, Othman Haddad wrote: hi, does everybody knows which page is displayed when accessing to the form: /cocoon/formvalidation/test ? in the samples/doc/formvalidation of cocoon binary distribution? i just find: descriptor.xml ok.xsp error.xspIt's the error.xspChris.-- C h r i s t i a n H a u l[EMAIL PROTECTED]fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08-Please check that your question has not already been answered in theFAQ before posting. http://xml.apache.org/cocoon/faq/index.htmlTo unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]. IncrediMail - La messagerie électronique a enfin évolué - Cliquer ici
Re: sunrise: protected page always redirects to login form
Hi, I had to use '/test/auth/loggedin' as the redirect url to allow for the ProxyPassReverse directive in Apache (this is not a problem, it's the same if I use port 8080 directly). The errors still occurs. The only visible difference is that the JSESSIONID is now appended to the url (should this happen when a cookie with the same ID has been set?) Regards, Simeon Carsten Ziegeler wrote: Ok, I think I know your problem now: the redirect you do after a successful login is an internal one (which is usually not wrong, but it seems that in this case some things are broken). Please try changing the redirect to an external one, like map:redirect-to uri=loggedin/ Does this then work? Carsten -Original Message- From: Simeon Walker [mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 12:57 PM To: [EMAIL PROTECTED] Subject: Re: sunrise: protected page always redirects to login form Hi, I have attached most of the sitemap.log fro, i.e. from where the transformer starts processing the page right up until the request ends. None of the other logs show any errors or exceptions. Regards, Simeon Carsten Ziegeler wrote: Simeon Walker wrote: map:match pattern=auth/loggedin map:act type=sunRise-auth map:parameter name=handler value=sbs-handler/ map:generate src=site/auth/loggedin.xsp type=serverpages/ map:transform type=sunShine/ map:transform src=stylesheets/w3c-default.xsl/ map:serialize/ /map:act /map:match To anyone who has got this far, thanks for reading :-) Any suggestions as to what I am doing wrong? Everything looks ok to me. The exception you get is really that the context sunRise does not exist? Because this means that the above pipeline is executed, so sunRise detects that you are logged in using the sbs-handler. Could you please send the exception message? Carsten Carsten Ziegeler Chief Architect Open Source Group, SN AG -- Cocoon Consulting, Training and Projects -- mailto:[EMAIL PROTECTED] http://www.s-und-n.de http://ziegeler.bei.t-online.de - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Simeon Walker, email: [EMAIL PROTECTED] School of Biological Sciences, phone: +44 (0)1248 383702 University of Wales, Bangor,fax: +44 (0)1248 382569 Gwynedd, LL57 2UW, UK. www: http://biology.bangor.ac.uk/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Simeon Walker, email: [EMAIL PROTECTED] School of Biological Sciences, phone: +44 (0)1248 383702 University of Wales, Bangor,fax: +44 (0)1248 382569 Gwynedd, LL57 2UW, UK. www: http://biology.bangor.ac.uk/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PLSQL function returning CLOB
On 05.Jul.2002 -- 04:16 PM, [EMAIL PROTECTED] wrote: getAscii(java.sql.CallableStatement, int) not found in class org.apache.cocoon.components.language.markup.xsp.EsqlHelper For the record: fixed in CVS (2.0.3 and HEAD) Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple Instances / Second does not serve data...
Hi Log file - messages? One common problem is that the hypersonic sql db cannot startup on the second machine because the port is blocked from the first hsqldb instance. Search for hsql in the 2nd cocoon.xconf and change the port or deaktivate the whole db if this is the problem. greetings mike - Original Message - From: Alexander Schatten [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 05, 2002 11:24 AM Subject: Multiple Instances / Second does not serve data... I am not sure, whether this is a Cocoon core topic, I would say, it is moreless a Tomcat problem? so maybe anyone has an idea either: for our test server I wanted to run two parallel Cocoon instances on one Linux server on different ports: (1) I made two directories each containing the same tomcat/cocoon version (2) I started the first one on port 9000 (changed Connector port=9000 and server port to 8005). This one runs, and serves correctly (3) the second one is set to port 8080 (default) and the server port to 8010 (4) I start the second one. both seem to run, and I also can shutdown both correctly, but only port 9000 (the first one) serves data (Tomcat, as well as cocoon), to the second one on port 8080 the browser is connecting (no error message), but no data is served... any ideas? thank you in advance! Alex - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XML Forms again
- Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 05, 2002 8:34 AM Subject: XML Forms again Hello, another issue concerning XML-forms: In the action for the form processing, the method filterRequestParameters(..) should be used for validation that exceeds Schematron validation. Could someone please provide an example, or give an explanation how to use this method. I don´t understand if I am supposed to do the validation within this method (but why then: return false if the request parameter should not be filtered), or if something happens according to the value returned? What follows is then how to get error messages back? You will use this method to tell XMLForm to *ignore* certain request parameters when going through the automatic population and validation. In most cases you don't need to override this method. What kind of validation do you need to do which a Schematron schema can't provide. You can do additional custom validation in your perform() method. Still I am wondering, if I can use the bean used for the model, outside of my FormAction or if it is only possible to use it in this action. A form and its model are stored in the servlet session or request. You can get it with Form.lookup( YourFormId ) The XMLFormTransformer accesses the same Form as the action. Ivelin Thanks again for any help! miHam - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with jsp in i18n
Hi, Iam working with i18n in Cocoon.And I have a file called simple.xml which displays a title in English and German.When I converted the simple.xml to a simple.jsp only the front page is displayed.But Iam not able to display it in English and German.Here are the files, simple.jsp, messages_en.xml and messages_de.xml: simple.jsp ___ ?xml version=1.0 encoding=UTF-8? root xmlns:i18n=http://apache.org/cocoon/i18n/2.0; title i18n:texttitlemessage/i18n:text /title menu item link hrefsimple.jsp?locale=en_US/hreftitleEnglish /title /link /item item link hrefsimple.jsp?locale=de_DE/href titleGerman /title /link /item item link hrefsimple.jsp?locale=hi_IN/href titleHindi /title /link /item /menu /root messages_en.xml ___ ?xml version=1.0 encoding=UTF-8? !-- English message catalogue file for cocoon2 sample webapp -- catalogue xml:lang=en message key=titletextGoood Day!/message /catalogue messages_de.xml ___ ?xml version=1.0 encoding=UTF-8? !-- German message catalogue file for cocoon2 sample webapp -- catalogue xml:lang=de message key=titletextGuten Tag!/message /catalogue If someone knows please help me! Kavitha. _ Click below to experience Aishwarya Rai's beauty secrets. New International Lux Skincare - It's not just soap, It's skincare. http://www.luxskincare.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
sunrise: protected page always redirects to login form
Hello, I am having trouble setting up the sunrise authentication framework. I am using cocoon-2.0.3-dev built with the scratchpad libs. I have contructed a login form and an authentication ressource. When I use the sunRise-auth action to protect a resource the redirect to the login page always takes place, even after I have successfully (or so I thought) logged in. The login part is working but I don't think the sunRise context is being created so the next time the protected resource is accessed I am back at the login form. A cookie is being set with a jsessioned which, I assummed, indicated that the session is being created. If I put the following line in the 'loggedin' page then an error about the unknown context will be produced: sunshine:getxml context=sunRise path=/authentication/ID/ I appreciate that a few similar questions have been asked before and I have looked at previous messages but I just cannot spot what I am doing wrong. This is how the action is defined: map:action logger=sitemap.action.sunrise name=sunRise-auth src=org.apache.cocoon.sunshine.sunrise.acting.AuthAction handlers handler name=sbs-handler xmlns:map=http://apache.org/cocoon/sitemap/1.0; xmlns:sunshine=http://sunshine.sundn.de/sunshine/1.0; redirect-to uri=cocoon:///test/auth/loginpage/ authentication uri=cocoon:raw://authenticate/ /handler /handlers /map:action This is what I am trying to protect: map:match pattern=admin/website/data map:act type=sunRise-auth map:parameter name=handler value=sbs-handler/ map:call resource=page map:parameter name=target value=admin/website/data/ map:parameter name=style value=default/ /map:call /map:act /map:match (a resource is called so that a sub-sitemap can be used to retrieve the actual page - there are no sunrise components referred to in the sub-sitemap) The login form and failed login page: map:match pattern=auth/login map:act type=sunRise-login map:parameter name=handler value=sbs-handler/ map:parameter name=parameter_userid value=request:userid/ map:parameter name=parameter_password value=request:passwd/ map:redirect-to uri=cocoon://auth/loggedin/ /map:act map:generate src=site/auth/loginfailed.xsp type=serverpages/ map:transform src=stylesheets/w3c-default.xsl/ map:serialize/ /map:match This is my authentication resource: map:match pattern=authenticate map:generate type=serverpages src=auth/authenticate.xsp/ map:serialize type=xml/ /map:match When login 'works' this page is displayed: map:match pattern=auth/loggedin map:act type=sunRise-auth map:parameter name=handler value=sbs-handler/ map:generate src=site/auth/loggedin.xsp type=serverpages/ map:transform type=sunShine/ map:transform src=stylesheets/w3c-default.xsl/ map:serialize/ /map:act /map:match To anyone who has got this far, thanks for reading :-) Any suggestions as to what I am doing wrong? Regards, Simeon -- Simeon Walker, email: [EMAIL PROTECTED] School of Biological Sciences, phone: +44 (0)1248 383702 University of Wales, Bangor,fax: +44 (0)1248 382569 Gwynedd, LL57 2UW, UK. www: http://biology.bangor.ac.uk/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ref. : Re: Ref. : Re: cocoon jaxme transformer! (Othman Haddad)
Thanks. Now, having said that, I am behind a firewall, iow getting the latest code from CVS is not an option, and our download puts some further restriction on me ... well, seems like I'll have to have a look at the source then .. ;-). As an aside, it seems to have escaped me that Castor XML is capable of generating SAX events. Well, so far about alledgedly knowing a package ... Werner Piroumian Konstantin wrote: Exactly the opposite: it takes your JavaBeans and generate SAX events from them. The best way to learn how one thing is implemented is to look at the source code. CastorTransformer's source is not complicated, so if look at it you'll find this in comments: /* ... forward the Castor SAX events to Cocoon 2 Events */ Konstantin -Original Message- From: Othman Haddad [mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 4:14 PM To: [EMAIL PROTECTED] Subject: Ref. : Re: Ref. : Re: cocoon jaxme transformer! (Othman Haddad) castorTransformer doesn't create any xml file, it just takes sax events and generates beans... ---Message original--- De : [EMAIL PROTECTED] Date : vendredi 05 juillet 2002 13:38:36 A : [EMAIL PROTECTED] Cc : jaxme mailing list; ldbledge Sujet : Re: Réf. : Re: cocoon jaxme transformer! (Othman Haddad) Hi, I'd be very interested to start using this new transformer in our projects, as we are using Castor XML already in various places. Knowing how Castor XML works in terms of (un)marshalling, can somebody please confirm that the CastorTransformer would convert the XML created by Castor to SAX events using an XML parser ? It's not that I am particularly concerned about speed as most of our documents would be sufficiently small, but I'd love to understand how this has been implemented. Thanks Werner Othman Haddad wrote: hi,the documentation of CastorTransformer you can find it in the sources of Cocoon2.02 in the repository:cocoon-2.0.2\srcINCREDI_LINK_PLACEHOLDER_1310le because i find that they can be more useful than the castor ones.. so my question is: is there any cocoon-jaxme user there, and is it possible to write and use a kind of jaxmeTransformer in cocoon2? I have worked with Cocoon in the past and really like it. A marriage of Cocoon and JaxMe seems very promising, as both are dedicated to SAX, for performance reasons. Unfortunately you do not add any hints what the CastorTransformer precisely is and a quick search through Altavista didn't give me a clue. May be you should explain a little bit more? Regards, Jochen . IncrediMail - La messagerie électronique a enfin évolué - Cliquer ici - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Design Assistance
I am in the process of trying to create a Cocoon baby-block that can be used to generate output from a DocBook source file. I was hoping that the group could help me puzzle through the right way to accomplish my goal. The process that I am envisioning looks something like this... 1. The user visits a web page where they specify the DocBook source file they would like to upload and the various processing options they would like to use. These options are presented as pulldowns, text fields, checkboxes, etc. 2. The uploaded file into a temporary directory somewhere 3. The DocBook stylesheets are applied to the file, using the specified processing options 4. (For now) a PDF document is returned to the user My primary implementation goal is to use the minimum amount of code as possible. Right now the W3, and in my opinion the Cocoon developers, are pushing for a more declarative web development experience (check out the XForms spec for an example) so I would like my implementation to adhere to this vision. Accomplishing part 1 is fairly straightforward, as it is a simple XHTML page, no bells or whistles. I could base it on a transform, but for now that seems like overkill. Part 2 looks to be be handled by the SourceUploadAction that is currently sitting in the scratchpad. The alternative that is most often discussed in this list is to use an XSP page to do the work, which I would prefer not to do for the reasons discussed earlier. Any other techniques would be greatly appreciated. Part 3 looks to be the most complicated. I don't want the user to have to always select all of the processing options. I also don't want to have to keep track of the default values used by the DocBook stylesheets, which would be a maintenance nightmare. My plan is to provide a use default option for the pulldowns and to assume that empty text fields mean use default. Another problem is that the DocBook stylesheets assume that there will be a driver stylesheet that looks like: xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version='1.0' xsl:import href=file:///Users/jafoster/Development/docbook-xsl-1.50.0/fo/docbook. xsl/ xsl:param name=use.extensions/ xsl:param name=autotoc.label.separator/ /xsl:stylesheet I would really like to do things properly and use the driver stylesheet approach. This means that I need to first use the submitted form to create the driver stylesheet and then use that new stylesheet to process the uploaded file. At a guess what I will have to do is use two different pipelines. The first will use some kind of FileWritingTransformer or WriteableSource or something similar to generate the driver stylesheet. That pipeline will then call the second pipeline which will actually do the transformation and generate the PDF. Hopefully someone can provide some advice on this part of the implementation. One issue that I have no idea how to address is the namespacing issues associated with having one XSLT generate another XSLT. Assuming that I can get this to work, part 4 is automatic, assuming that I use Saxon. As of today Xalan can't handle DocBook, so I am using the specify your own factory approach and forcing the use of Saxon. I have every intention of documenting the full design process and implementation of this project, assuming that I can ever make it work. I know that the DocBook community would love to have an automated way for new users to play with the DocBook stylesheets in a controlled manner. Thanks for any help you can give. Once this is all documented, you (hopefully) won't have to answer these kind of questions again! Jason Foster - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Ref. : Re: Ref. : Re: cocoon jaxme transformer! (Othman Haddad)
From: Werner Guttmann [mailto:[EMAIL PROTECTED]] Thanks. Now, having said that, I am behind a firewall, iow getting the latest code from CVS is not an option, and our download puts some further restriction on me ... well, seems like I'll have to have a look at the source then .. ;-). This link can help you a little bit: http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/scratchpad/src/org/apache/ cocoon/transformation/CastorTransformer.java?rev=1.2content-type=text/vnd.v iewcvs-markup Of course, if HTTP access is not restricted by your firewall. Konstantin As an aside, it seems to have escaped me that Castor XML is capable of generating SAX events. Well, so far about alledgedly knowing a package ... Werner Piroumian Konstantin wrote: Exactly the opposite: it takes your JavaBeans and generate SAX events from them. The best way to learn how one thing is implemented is to look at the source code. CastorTransformer's source is not complicated, so if look at it you'll find this in comments: /* ... forward the Castor SAX events to Cocoon 2 Events */ Konstantin -Original Message- From: Othman Haddad [mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 4:14 PM To: [EMAIL PROTECTED] Subject: Ref. : Re: Ref. : Re: cocoon jaxme transformer! (Othman Haddad) castorTransformer doesn't create any xml file, it just takes sax events and generates beans... ---Message original--- De : [EMAIL PROTECTED] Date : vendredi 05 juillet 2002 13:38:36 A : [EMAIL PROTECTED] Cc : jaxme mailing list; ldbledge Sujet : Re: Réf. : Re: cocoon jaxme transformer! (Othman Haddad) Hi, I'd be very interested to start using this new transformer in our projects, as we are using Castor XML already in various places. Knowing how Castor XML works in terms of (un)marshalling, can somebody please confirm that the CastorTransformer would convert the XML created by Castor to SAX events using an XML parser ? It's not that I am particularly concerned about speed as most of our documents would be sufficiently small, but I'd love to understand how this has been implemented. Thanks Werner Othman Haddad wrote: hi,the documentation of CastorTransformer you can find it in the sources of Cocoon2.02 in the repository:cocoon-2.0.2\srcINCREDI_LINK_PLACEHOLDER_1310le because i find that they can be more useful than the castor ones.. so my question is: is there any cocoon-jaxme user there, and is it possible to write and use a kind of jaxmeTransformer in cocoon2? I have worked with Cocoon in the past and really like it. A marriage of Cocoon and JaxMe seems very promising, as both are dedicated to SAX, for performance reasons. Unfortunately you do not add any hints what the CastorTransformer precisely is and a quick search through Altavista didn't give me a clue. May be you should explain a little bit more? Regards, Jochen . IncrediMail - La messagerie électronique a enfin évolué - Cliquer ici - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Getting CVS latest and greatest from behind a firewall (was Re: cocoonjaxme transformer!)
Werner Guttmann wrote: Thanks. Now, having said that, I am behind a firewall, iow getting the latest code from CVS is not an option, and our download puts some further restriction on me ... well, seems like I'll have to have a look at the source then .. ;-). Try http://sourceforge.net/projects/cvsgrab/ to grab the CVS content through viewcvs, and tell us if it works. -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Design Assistance
From: Jason Foster [mailto:[EMAIL PROTECTED]] I am in the process of trying to create a Cocoon baby-block that can be used to generate output from a DocBook source file. I was hoping that the group could help me puzzle through the right way to accomplish my goal. The process that I am envisioning looks something like this... 1. The user visits a web page where they specify the DocBook source file they would like to upload and the various processing options they would like to use. These options are presented as pulldowns, text fields, checkboxes, etc. 2. The uploaded file into a temporary directory somewhere 3. The DocBook stylesheets are applied to the file, using the specified processing options 4. (For now) a PDF document is returned to the user My primary implementation goal is to use the minimum amount of code as possible. Right now the W3, and in my opinion the Cocoon developers, are pushing for a more declarative web development experience I would not say for all the Cocoon developers. (check out the XForms spec for an example) so I would like my implementation to adhere to this vision. Accomplishing part 1 is fairly straightforward, as it is a simple XHTML page, no bells or whistles. I could base it on a transform, but for now that seems like overkill. Yes. Part 2 looks to be be handled by the SourceUploadAction that is currently sitting in the scratchpad. The alternative that is most often discussed in this list is to use an XSP page to do the work, which I would prefer not to do for the reasons discussed earlier. Any other techniques would be greatly appreciated. IMO, SourceUploadAction is the right choice. Part 3 looks to be the most complicated. I don't want the user to have to always select all of the processing options. I also don't want to have to keep track of the default values used by the DocBook stylesheets, which would be a maintenance nightmare. My plan is to provide a use default option for the pulldowns and to assume that empty text fields mean use default. What's wrong with having defaults in stylesheets and assign new values from request params? xsl:param name=use.extensionsnoxsl:param And then in the sitemap turn on use-request-parametersfalse/use-request-parameters option for the XSL transformer. Another problem is that the DocBook stylesheets assume that there will be a driver stylesheet that looks like: xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version='1.0' xsl:import href=file:///Users/jafoster/Development/docbook-xsl-1.50.0/fo /docbook. xsl/ xsl:param name=use.extensions/ xsl:param name=autotoc.label.separator/ /xsl:stylesheet I would really like to do things properly and use the driver stylesheet approach. This means that I need to first use the submitted form to create the driver stylesheet and then use that new stylesheet to process the uploaded file. At a guess what I will have to do is use two different pipelines. The first will use some kind of FileWritingTransformer or WriteableSource or something similar to generate the driver stylesheet. That pipeline will then call the second pipeline which will actually do the transformation and generate the PDF. Hopefully someone can provide some advice on this part of the implementation. One issue that I have no idea how to address is the namespacing issues associated with having one XSLT generate another XSLT. You can do it this way: - First pipeline generates the content transformations into PDF and calls the second pipeline to obtain the needed stylesheet - Second pipeline generates a stylesheet depending on request params and using a stylesheet template Look at the Slashedit sitemap (xml-cocoon\2.1-dev\src\scratchpad\webapp\samples\editor\editor.xmap), particularly, the lines 101-123. You'll see several map:transform src=cocoon:/something.xsl /. Assuming that I can get this to work, part 4 is automatic, assuming that I use Saxon. As of today Xalan can't handle DocBook, so I am using the specify your own factory approach and forcing the use of Saxon. I have every intention of documenting the full design process and implementation of this project, assuming that I can ever make it work. I know that the DocBook community would love to have an automated way for new users to play with the DocBook stylesheets in a controlled manner. And I'm sure that Cocoon community would like to have a use-case like this, and more over if it will be documented in details. Hope my comments help a little. Konstantin. Thanks for any help you can give. Once this is all documented, you (hopefully) won't have to answer these kind of questions again! Jason Foster - Please check
Proxy Support instead of mod_jk
hi! i use now the Proxy Support to redirect requests from apache to tomcat. couldn't get mod_jk to run. is this not so good as mod_jk greetings, tom -Original Message- From: Bruno Dumon [mailto:[EMAIL PROTECTED]] Sent: Freitag, 05. Juli 2002 11:23 To: [EMAIL PROTECTED] Subject: RE: can't start cocoon under root On Thu, 2002-07-04 at 21:09, Thomas Garger wrote: but if i don't start tomcat as root, i can not run it under the port 80 - because only the root user has access rights to to ports below 1024. am i wrong?? no, that's right. or can i configure my linux system, that a normal-user (no root) van start tomcat under the port 90? Not that I know. Usually Apache is put in front of tomcat (using mod_jk to connect the two). Apache, being a native application, can start as root (so it can bind to port 80), and change the user id of the processes that handle the requests to another user. -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Design Assistance
On Fri, 5 Jul 2002, Piroumian Konstantin wrote: From: Jason Foster [mailto:[EMAIL PROTECTED]] The process that I am envisioning looks something like this... snip/ Another problem is that the DocBook stylesheets assume that there will be a driver stylesheet that looks like: snip/ You can do it this way: - First pipeline generates the content transformations into PDF and calls the second pipeline to obtain the needed stylesheet - Second pipeline generates a stylesheet depending on request params and using a stylesheet template Why not pass the request params to the driver stylesheet and thence up the tree. ./docbook.xsl can be, and call other, static resource with these dynamic values. The xsl:include production is a textual inclusion at the point of reference, absent the include's xsl:stylesheet element. An assignment to an xsl:variable is available to all subsequent templates in a pass through a transform. If prior to the inclusion they will be available to the included stylesheet's templates throughout. Your defaults can live in ./session-defaults.xsl which you might like to generate in order to access session state, but for now can be static assignments of default values. The beef of your driver looks like this: xsl:import href=./session-defaults.xsl xsl:variable name=my_docbook_flag select=$how_cocoon_calls_param1_from_request/ xsl:include href=./docbook.xsl/ All the templates of ./docbook.xsl (and the templates of its inclusions) now have access to the default flags plus the latest value for $my_docbook_flag, relying on import precedence. That's probably the main reason to have a driver. Mike Haarman [EMAIL PROTECTED] Maintainer, DDI Codebook DTD -- http://www.icpsr.umich.edu/DDI/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Proxy Support instead of mod_jk
On Fri, 2002-07-05 at 18:21, Thomas Garger wrote: hi! i use now the Proxy Support to redirect requests from apache to tomcat. couldn't get mod_jk to run. is this not so good as mod_jk Functionally, I don't think there are any disadvantages. mod_jk is probably somewhat faster (when using ajp13), and has some additional features such as load balancing. -- Bruno - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Design Assistance
I see that the driver is using xsl:import for ./docbook.xsl. To clarify: On Fri, 5 Jul 2002, Jason Foster wrote: snip/ a driver stylesheet that looks like: xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version='1.0' xsl:import href=file:///Users/jafoster/Development/docbook-xsl-1.50.0/fo/docbook. xsl/ xsl:param name=use.extensions/ xsl:param name=autotoc.label.separator/ /xsl:stylesheet I would really like to do things properly and use the driver stylesheet approach. This means that I need to first use the submitted form to create the driver stylesheet and then use that new stylesheet to process the uploaded file. You shouldn't need to generate any of the stylesheets required until you want to start caching user preferences. DocBook params which you don't specify in ./session-defaults.xsl and which are not assigned via xsl:variable will be untouched. To import rather than include the main stylesheet, the driver will look like this (without Cocoon's requirements): xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version='1.0' xsl:import href=file:///./docbook.xsl/ xsl:param name=use.extensions/ xsl:param name=autotoc.label.separator/ xsl:import href=file:///./session-defaults.xsl/ xsl:variable name=my_docbook_flag select=$how_cocoon_gets_param1_from_request/ /xsl:stylesheet Latter imports have higher precedence. If ./docbook.xsl expects xsl:param rather than xsl:variable they can be loaded up with: xsl:param name=my_docbook_flag select=$my_dockbook_flag/ after the ./docbook.xsl import statement. Mike Haarman [EMAIL PROTECTED] Maintainer, DDI Codebook DTD -- http://www.icpsr.umich.edu/DDI/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon status page
[ C-2.0.2, JDK1.3.1, Tomkat 4.0.4.b2 ] I deploy the cocoon servlet as part of a j2ee application which uses other servlets as well. So, I don't have the / mapped to cocoon (just *.xsp and *.xml). How can I access Cocoons status page normally accessed with /cocoon/status Thanks, Artur... - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ERROR 10257 Please specify at least one starting URI -- cocoon 2.0.2
Hi ! I have a problem: I have installed Cocoon 2.0.2 on Apache Tomcat 4.0.4 and Apache Webserver 2.0.36. the cocoon installation is complete...cocoon.war, sendmail,I have installed everything what the instruction says. but when I type run to run cocoon, it shows me the error: ERROR 10257 Please specify at least one starting URI any ideas ??? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
strange sitemap problem
Hi! As a cocoon newbie I have the following relative strange problem - at least from my point of view. I would highly appreciate any hint or help to put me in the right direction. First I created a simple XML document and a XSLT stylesheet and placed these documents in one of the cocoon sample subdirectories (protected). I edited the subsitemap under $COCOON_HOME/protected and added the following entry as a reference to my documents: map:match pattern=start map:generate src=docs/index.xml/ map:transform src=stylesheets/spage.xsl/ map:serialize/ /map:match I tested this with in my browser with http://localhost/cocoon/protected/start and all worked fine. Then I duplicated the protected subdirectory under the new name logbook with cp -pr protected logbook. I also duplicated the entry in the root sitemap that redirects the URI and maps the subsitemap. I exchanged the word protected with logbook in these lines. The result was !-- logbook webapp example pipeline -- map:pipeline map:match pattern=logbook/** map:mount uri-prefix=logbook src=logbook/ check-reload=yes/ /map:match /map:pipeline I would now expect that 'http://localhost/cocoon/logbook/start' will work as well. But what I got instead is a org.apache.avalon.framework.configuration.ConfigurationException: Error in sitemap configuration : (!?!): Original exception : java.lang.ClassNotFoundException: at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at org.apache.cocoon.util.ClassUtils.loadClass(ClassUtils.java:46) at org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.java:220) at org.apache.cocoon.www.logbook.sitemap_xmap$Configurer.configGenerators(sitemap_xmap.java:197) at org.apache.cocoon.www.logbook.sitemap_xmap.configure(sitemap_xmap.java:142) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:172) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:84) at org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:135) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.addCompiledComponent(ProgramGeneratorImpl.java:356) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:334) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:282) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:196) at org.apache.cocoon.sitemap.Handler.run(Handler.java:228) at java.lang.Thread.run(Thread.java:496) I haven't the slightest idea why this happens. The sitemaps under protected and logbook are identical. The two entries for protected and logbook in the root sitemap differ only in the name of the respective directories. If someone knows what I'm doing wrong, please mail me a correction. Many thanks in advance Jens-Christoph Brendel P.S: I use cocoon 2.0.1 under Mac OS X 10.1.5 (build 5S66) together with Tomcat 3.2.2 and Apache 1.3. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can't start cocoon under root
type $xhost+ on a terminal of the user witch started the X server. Kim PS: why you want to start tomcat under roor user ... this is normally a bad idea. Quoting Thomas Garger [EMAIL PROTECTED]: hi! i use tomcat 4.0.1, cocoon 2.0.2 and SUSE linux 8.0 if i start tomcat under a normal user (not root) everthing works fine. but if i start tomcat under root user - and i want to access cocoon -there is an error message in my catalin.out like this: Xlib: connection to 212.186.159.80:0.0 refused by server Xlib: No protocol specified -the cocoon page puts out the following org.apache.cocoon.ProcessingException: Error compiling sitemap: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. . . . -my startup.sh looks as following : export DISPLAY=212.186.159.80:0 BASEDIR=`dirname $0` $BASEDIR/catalina.sh start $@ if i don't put in the line export DISPLAY=212.186.159.80:0, than under a normal user it's also not working why this works with a non root user and not with root? greetings, tom - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can't start cocoon under root
-there is an error message in my catalin.out like this: Xlib: connection to 212.186.159.80:0.0 refused by server Xlib: No protocol specified -the cocoon page puts out the following org.apache.cocoon.ProcessingException: Error compiling sitemap: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. I think batik uses the display (which explains why you can't use cocoon on a headless station). The user root is not allowed to access your display through the network. XFree 86 allows display of programs to be exported on distant hosts. It might be misconfigured in your case Try the command : xhost + (dangerous on a network) or xhost +127.0.0.1 or either xhost +your IP address 212.186.159.80 point to http://marc.theaimsgroup.com/?l=xml-cocoon-usersw=2r=1s=headless+linuxq=b for more explanations. Doc taken form http://xml.apache.org/cocoon/installing/index.html : UNIX with X server Cocoon is bundled with the Batik (SVG rasterization toolkit) to deliver SVG imaging capabilities. Batik uses Java java.awt library, which (at least in Sun JDK before 1.4) requires graphics display. This means that X server must be running and Cocoon should have permission to connect to it. Easiest way to avoid X server connection problem (and to have mentioned permission) is to install and run Cocoon and entire servlet engine of your choice under regular user account. For security, and many other reasons, X server can be replaced by Xfvb or PJA (alternative awt implementation). [Note] Sun JDK 1.4 does not require graphics display anymore, but Java has to be started with the argument -Djava.awt.headless=true Regards Benoît Clouet - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Design Assistance
snip/ My attempt works perfectly in 2.02, so it looks like the HEAD is having a bad day. Jason Foster - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can't start cocoon under root
True. The processes handling the requests however run as nobody. I suppose one could still find a way to compromise the master process, but I find it way more likely that they'd compromise the children. Furthermore, Its still a horrid idea to run tomcat as root, as you're running *everything* under tomcat as root as well. -Andy On Fri, 2002-07-05 at 14:17, Bruno Dumon wrote: On Fri, 2002-07-05 at 15:48, Andrew C. Oliver wrote: Hummm. I'm not running Apache as root (its running as nobody). It responds on port 80. I'm starting it with apachectl. If it responds to port 80, the main httpd process is running with root privileges. The user that is used for the childprocesses handling the requests is normally specified using the 'User' directive in the httpd.conf -- Bruno - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://www.superlinksoftware.com - software solutions for business http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in Java http://krysalis.sourceforge.net/centipede - the best build/project structure a guy/gal could have! - Make Ant simple on complex Projects! The avalanche has already started. It is too late for the pebbles to vote. -Ambassador Kosh - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Announcement] Embedding One Web Site in Another with Cocoon (new Component)
I haven't had time to implement the Amazon xsl. I could use some help with it. Any takers? Ivelin - Original Message - From: Christopher Watson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 05, 2002 4:20 AM Subject: RE: [Announcement] Embedding One Web Site in Another with Cocoon (new Component) Ivelin Impressive ! In your readme.txt you mention some xsl files ... amazonform2html.xsl AmazonForm2html.xsl Thanks for including AmazonForm.xml in the text of the readme. Could you include or email the .xsl files named above Thanks Christopher -Original Message- From: Ivelin Ivanov [mailto:[EMAIL PROTECTED]] Sent: 04 July 2002 22:35 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [Announcement] Embedding One Web Site in Another with Cocoon (new Component) +=+ | | | New Cocoon Generator| | | |allows integration of content and behavior | | | between remote web sites. | | | +=+ For quite some time web sites are exchanging news feeds and other one way content via RSS. Some portals are even outsourcing and co-branding web applications. As appealing and feasible as this may seem, most of today's implementations are quite rugged. Let's follow a typical scenario: User logs in to a familiar portal and happily browses around. At some point the user clicks on a link which leads to a strange page. It has the portal logo, might even show the user login id but looks very different and unfamiliar... After some time and frustration the user gets used to switching back and forth between the two faces of the portal... while looking for another provider which offers both services in a coherent graphical interface. This story is not uncommon and is an inherent problem with the traditional HTML based publishing. Outsourcing interactive components to a third party site, while preserving the look feel of the original portal is still possible when done right. Cocoon has a solution. The new Web Service Proxy component is built to help with this very problem. Once plugged in the sitemap, it transparently pipes browser requests to a remote web app and returns the response back to the sitemap. WebServiceProxyGenerator is available in Cocoon 2.1-dev HEAD. To try the demo, build the latest CVS HEAD code and point to: http://localhost:8080/cocoon/samples/webserviceproxy/ More for the component (from the demo page): --- WebServiceProxyGenerator combined with the XMLForm framework and XSLT, allows vendors to share interactive content with little effort. The Web Service Proxy takes advantage of the fact that a Cocoon web application produces XML content which is later translated into multiple presentation formats, like HTML or WML. The demo embeds the Cocoon Feedback Wizard application, which produces an XML view containing both static data and interactive forms. Having a client independent content format, allows this view to be pulled to the embedding web site (this demo) and styled with XSLT in the Look Feel of the site. Ok, styling presentation is easy to understand, but how is a form submitted to the original site? Since the form markup in the XML content of an embedded page uses relative URL address for the target, once the end user submits, the form data is sent to the containing site, which captures the form data and the relative URL. The Web Service Proxy then takes this information and re-submits it to the original site. It then reads the XML response and makes it available to the sitemap for styling again. Hm, but the Feedback Wizard example maintains a session while going through multiple pages. So, how is the containing site propagating the end user session to the to the embedded site? The answer is simple. The Web Service Proxy simply hooks to the end user session, and automatically starts its own session with the remote site. If the remote site does not require authentication, then everything is transparent to the developer of the containing web site. Otherwise the WebServiceProxyGenerator has to be extended to override the procedure for imitating session with the remote site. What transport protocols are supported? HTTP 1.0, HTTP 1.1, HTTPS. Have more questions? Look at the code, it is really simple. If you need advise, search through the Cocoon mailing lists archives. If you can't find the answer, email your question to the Cocoon mailing lists. Finally,