Problem passing request parameter form form field.
Hallo! Using Cocoon 2.03 I try to pass request paramaters directly to stylessheets configuring the Trax-Transformer like map:transformer name=xslt src=org.apache.cocoon.transformation.TraxTransformer use-request-parameterstrue/use-request-parameters In most of the cases this works well. However when I use an input field with a submit button like form action=searchSail{$sessionId} method=post input name=SearchString / input type=image height=16 width=90 src={$imagepath}/submit.gif border=0/input /form the request parameter SearchString seems to be only passed to the following stylesheet, when the user clicks the submit-button. When he submits the form by hitting Return while the input-field has still the focus the request parameter is NOT passed to following stylesheet (however I can evaluate in an action). Any ideas? Many thanks, Hans Dr. Hans M. Rupp danet Internet Solutions GmbH Waldburgstr. 17-19 70563 Stuttgart Germany Fon +49 711 133 53 50 Fax +49 711 133 53 53 -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: what's WRONG?
Maxime, Did you get it working in the end? I just ran into trouble with the LDAP transformer too and saw that you are having *exactly* the same problems... But I have the feeling I'm doing something wrong with addressing the active directory. What did you find? thanks, Arje -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Posted At: 12 June 2003 15:25 Posted To: Cocoon User List Conversation: what's WRONG? Subject: what's WRONG? What is wrong? I don't know why it doesn't work!!! Everything seems right?! SITEMAP.XMAP = map:generate src=ldap.xml/ map:transform type=ldap map:parameter name=serverurl value=ldap://{request-param:serverurl}.NET/ map:parameter name=rootdn value={request-param:serverurl}\{request-param:name}/ map:parameter name=password value={request-param:password}/ map:parameter name=filter value=(amp;(objectclass=User)(cn={request-param:name}))/ /map:transform LDAP.XML = ?xml version=1.0 encoding=ISO-8859-1? authentication xmlns:ldap=http://apache.org/cocoon/LDAP/1.0; ldap:execute-query ldap:initializercom.sun.jndi.ldap.LdapCtxFactory/ldap:initializer ldap:version3/ldap:version ldap:port389/ldap:port ldap:scopeSUBTREE_SCOPE/ldap:scope ldap:searchbaseDC=corproot,DC=net/ldap:searchbase ldap:deref-linkTRUE/ldap:deref-link ldap:count-limit0/ldap:count-limit ldap:time-limit0/ldap:time-limit ldap:show-attributeTRUE/ldap:show-attribute ldap:doc-elementusers/ldap:doc-element ldap:row-elementuser/ldap:row-element ldap:error-elementELEMENT/ldap:error-element ldap:attributeemployeeID/ldap:attribute ldap:attributetitle/ldap:attribute ldap:attributecompany/ldap:attribute ldap:attributegivenname/ldap:attribute ldap:attributemail/ldap:attribute ldap:attributemobile/ldap:attribute /ldap:execute-query /authentication ERROR CAUSED == [LDAPTransformer] Failed ldap-connection to directory service. VERSIONS === Cocoon v.2.1 Dev / Apache Tomcat 4.1.24 / W2K Adv Server - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Link Livesite: (www.mammakarzinom.de)
Title: Nachricht Hello everybody, we have now finished one of our projects and can tell, that we have a new customer sucessfully online with Cocoon. The complete Rendering in done though Cocoon 2.1m2, Cocoon is the Rendering-Frontend for our J2EE-based Content Management System. For getting this working we've created only one custom Generator and one custom Action to submit informations to Cocoon. All of the content is saved in a mySQL Database, the content is completely XML. (Just for Info: The CMS-Admin is a Java Swing Application and uses Apache-Axis (SOAP) for Communication) All the dynamic parts in the website are done though XMLForms, and related custom Actions. One of these Forms saves also Data, this is done though EJB Entity Beans like the rest of the Content Management System. The Site is running: Apache 2.0.46 as request parser, using mod_proxy and mod_rewrite for tunneling (mod_jk2 was too instable) JBoss 3.2.1 with Jetty Servlet Engine Java 1.4.1 Blackdown Regards, --Sascha KulawikPlease avoid sending me Word or PowerPoint attachments.See http://www.fsf.org/philosophy/no-word-attachments.html
nasa
Title: Nachricht Is it true that the NASA Web site runs under Cocoon ?
Re: nasa
At 11:01 19/06/2003 +0200, you wrote: Is it true that the NASA Web site runs under Cocoon ? Nope, there's a NASA intranet site that runs on cocoon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
pipeline dependencies
Hi, Is it possible to define pipeline dependencies in the sitemap? Imagine I have two pipelines A and B. Pipeline B has a SourceWritingTransformer and all it does is writing a generated document on the filesystem. Pipeline A has its own generator and transformer but it depends on the document written by B. So A denpends on B. In other words when A is called B has to be called first but the output of A sould be serialized to the browser (and not the output of B). Thanks, Ali -- -- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Query issue
This is really strange. I am trying to run this stored procedure and I am not getting anything. It looks like it is skipping over the entire section. I have verified that data should be coming back and that it is spelled correctly and have even tried other procedures that worked and they work. Does anybody have any clue on to why this stored proc would not work? esql:connection esql:execute-query esql:query execute rptLocationDeviations 'xsp:exprroom/xsp:expr','xsp:exprbeginTime/xsp:expr','xsp:expr endTime/xsp:expr' /esql:query esql:results task-date esql:row-results date esql:get-string column=TaskDate/ task esql:get-string column=ActionName/ deviation esql:get-int column=hasDeviation/ name esql:get-string column=UserName/ /name /deviation /task /date /esql:row-results /task-date /esql:results /esql:execute-query /esql:connection Tim Bachta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
color in excel spreadsheet not working with HSSFSerialiser
Hi, I am using this style info in gnumeric format : I know that the colors don't work with shade=0 , so I made shade=1. Is there some problem with the color format ? Did anyone see this before ? gmr:StyleRegion startCol=1 startRow=7 endCol=10 endRow=7 gmr:Style HAlign=8 VAlign=2 WrapText=0 Orient=1 Shade=1 Indent=0 Fore=0:0:0 Back=00:FF:FF PatternColor=:: Format=General gmr:Font Unit=8 Bold=1 Italic=0 Underline=0 StrikeThrough=0/gmr:Font gmr:StyleBorder gmr:Top Style=1/ gmr:Bottom Style=1/ gmr:Left Style=1/ gmr:Right Style=1/ gmr:Diagonal Style=0/ gmr:Rev-Diagonal Style=0/ /gmr:StyleBorder /gmr:Style /gmr:StyleRegion Thanks Joydeep - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ArrayIndexOutOfBoundsException when using copy-of to write into a new node
hi! I'm creating a website using the following software: Tomcat:4.1.24 Cocoon: version 2.0.5-dev Xalan: 2.5.1 Xerces: 2.4.0 What I'd like to do is the following: Create a new tag in the result tree and copy a part of another xml-file in there. Just like this: xsl:template match=content_element abcdef xsl:copy-of select=document(concat('../xmldocs/', tring($document)))/*/ /abcdef /xsl:template This gives the following error which seems strange to me. ERROR MESSAGE- The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies that org.apache.cocoon.ProcessingException says: Exception during processing of file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/educeth/commondocs/structure.xml More precisely: org.apache.cocoon.ProcessingException: Exception during processing of file:/C:/Progra~1/jakarta-omcat-4.1.24/webapps/cocoon/docs/educeth/commondocs/structure.xml: java.lang.RuntimeException: Errors in XSLT transformation: Fatal: File file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/educeth/stylesheets/assembly.xsl; Line 59; Column 81; java.lang.ArrayIndexOutOfBoundsException: -1 -END OF ERROR MESSAGE- I get the same error if I use xsl:template match=content_element xsl:element name=abcdef xsl:copy-of select=document(concat('../xmldocs/', string($document)))/*/ xsl:element/ /xsl:template Every other tag than xsl:copy of.../ works as it should. Below, I have attached the complete exception trace. I would be very glad if someone could help me! Thanks in advance! Stefan Original exception : java.lang.RuntimeException: Errors in XSLT transformation: Fatal: File file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/educeth/stylesheets/assembly.xsl; Line 59; Column 81; java.lang.ArrayIndexOutOfBoundsException: -1 at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3364) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:427) at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91) at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:589) at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:302) at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:321) at org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:197) at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:258) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:412) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:148) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:151) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:145) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:340) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:301) at org.apache.cocoon.Cocoon.process(Cocoon.java:581) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1048) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at
Re: color in excel spreadsheet not working with HSSFSerialiser
Joy, Have you tried looking at the HSSFSerializer code? See how they handle the shade and color attributes you are trying to set. If they are passed to the POI code, perhaps it is a POI problem. I sometimes find the source code a little faster than the user-list. David Joydeep Bose wrote: Hi, I am using this style info in gnumeric format : I know that the colors don't work with shade=0 , so I made shade=1. Is there some problem with the color format ? Did anyone see this before ? gmr:StyleRegion startCol=1 startRow=7 endCol=10 endRow=7 gmr:Style HAlign=8 VAlign=2 WrapText=0 Orient=1 Shade=1 Indent=0 Fore=0:0:0 Back=00:FF:FF PatternColor=:: Format=General gmr:Font Unit=8 Bold=1 Italic=0 Underline=0 StrikeThrough=0/gmr:Font gmr:StyleBorder gmr:Top Style=1/ gmr:Bottom Style=1/ gmr:Left Style=1/ gmr:Right Style=1/ gmr:Diagonal Style=0/ gmr:Rev-Diagonal Style=0/ /gmr:StyleBorder /gmr:Style /gmr:StyleRegion Thanks Joydeep - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
src URL handling problem with WebServiceProxyGenerator
Hi, I can't get the WebServiceProxyGenerator neither the sample nor any test I can imagine. It always fails with the same error : org.apache.cocoon.ProcessingException: Error invoking remote service: java.lang.IllegalArgumentException: host parameter is null: java.lang.IllegalArgumentException: host parameter is null It looks like the parsing of the URL specified in map:generate type=proxy src=http://test.somewhere.net/myWebService/ fails to extract the host:port info. I have the feeling I just miss something as nothing works not even the sample. Can anyone help ? Thanks Philippe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pipeline dependencies
Is it possible to define pipeline dependencies in the sitemap? Imagine I have two pipelines A and B. Pipeline B has a SourceWritingTransformer and all it does is writing a generated document on the filesystem. Pipeline A has its own generator and transformer but it depends on the document written by B. So A denpends on B. In other words when A is called B has to be called first but the output of A sould be serialized to the browser (and not the output of B). You could try just including pipeline B in with pipeline A using cocoon:, e.g. map:match pattern=B map:generate... map:transform type=SWT map:serialize type=xml/ /map:match map:match pattern=A map:aggregate element=foo map:part src=cocoon:/B/ map:part src=a-src.xml/ /map:aggregate map:transform... map:serialize... /map:match If you can get pipeline B to cache, then it will only write if the source of that pipeline has changed. Then, if necessary, you can ignore the aggregated output from pipeline B, but it is just there to enforce the dependency. All depends upon the caching of the SourceWritingTransformer. I may well be off track here... Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
No results from a stored procedure
Is there a reason why cocoon would not execute a certain stored procedure? I have one that I have verified returns a result set but when I run it in cocoon I am not getting anything back. It looks like it is skipping over the section completely. Tim Bachta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon in BEA Weblogic
Does anyone have experience with running Cocoon in Weblogic? We are seeing terrible performance just accessing the hello.html in the cocoon sample (1-5 transactions per second). On the same box using Jetty we can get close to 50. This is with Weblogic Server 8.1. Ralph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exception when using copy-of
this message had been rejected because of its previous subject, so I send it again. Sorry if you should receive twice as well! hi! I'm creating a website using the following software: Tomcat:4.1.24 Cocoon: version 2.0.5-dev Xalan: 2.5.1 Xerces: 2.4.0 jdk 1.4.1_02 os's: windows xpp / suse linux 8.0 What I'd like to do is the following: Create a new tag in the result tree and copy a part of another xml-file in there. Just like this: xsl:template match=content_element abcdef xsl:copy-of select=document(concat('../xmldocs/', tring($document)))/*/ /abcdef /xsl:template This gives the following error which seems strange to me. ERROR MESSAGE- The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies that org.apache.cocoon.ProcessingException says: Exception during processing of file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/educeth/commondocs/structure.xml More precisely: org.apache.cocoon.ProcessingException: Exception during processing of file:/C:/Progra~1/jakarta-omcat-4.1.24/webapps/cocoon/docs/educeth/commondocs/structure.xml: java.lang.RuntimeException: Errors in XSLT transformation: Fatal: File file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/educeth/stylesheets/assembly.xsl; Line 59; Column 81; java.lang.ArrayIndexOutOfBoundsException: -1 -END OF ERROR MESSAGE- I get the same error if I use xsl:template match=content_element xsl:element name=abcdef xsl:copy-of select=document(concat('../xmldocs/', string($document)))/*/ xsl:element/ /xsl:template Every other tag than xsl:copy of.../ works as it should. Below, I have attached the complete exception trace. I would be very glad if someone could help me! Thanks in advance! Stefan Original exception : java.lang.RuntimeException: Errors in XSLT transformation: Fatal: File file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/educeth/stylesheets/assembly.xsl; Line 59; Column 81; java.lang.ArrayIndexOutOfBoundsException: -1 at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3364) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:427) at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91) at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:589) at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:302) at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:321) at org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:197) at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:258) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:412) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:148) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:151) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:145) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:340) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:301) at org.apache.cocoon.Cocoon.process(Cocoon.java:581) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1048) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
RE: No results from a stored procedure
Here is the code from the page: ?xml version=1.0 encoding=UTF-8? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-session=http://apache.org/xsp/session/2.0; create-session=true page xsp:logic String beginTime =5-20-2003; String endTime = 6-20-2003; String room = Rm 130 B; String qry = rptLocationDeviationsgetTasks 'Rm 130 B','5-20-2003','6-20-2003'; /xsp:logic titleRoom Report for xsp:exprroom/xsp:expr xsp:exprbeginTime/xsp:expr to xsp:exprendTime/xsp:expr/title content esql:connection esql:poolvyzo/esql:pool esql:execute-query esql:query execute rptLocationDeviationsgetTasks 'xsp:exprroom/xsp:expr','xsp:exprbeginTime/xsp:expr','xsp:expr endTime/xsp:expr' /esql:query esql:results tasks esql:row-results task name esql:get-string column=2/ /name /task /esql:row-results /tasks /esql:results /esql:execute-query esql:execute-query esql:query execute rptLocationDeviations 'xsp:exprroom/xsp:expr','xsp:exprbeginTime/xsp:expr','xsp:expr endTime/xsp:expr' /esql:query esql:results task-date esql:row-results task task-name esql:get-string column=2/ /task-name /task /esql:row-results /task-date /esql:results /esql:execute-query /esql:connection /content /page /xsp:page and this is the output that I am getting: ?xml version=1.0 encoding=UTF-8 ? - page xmlns:xsp-session=http://apache.org/xsp/session/2.0; xmlns:xsp=http://apache.org/xsp; xmlns:xspdoc=http://apache.org/cocoon/XSPDoc/v1; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; titleRoom Report for Rm 130 B 5-20-2003 to 6-20-2003/title - content - tasks - task nameChange Bottles/name /task - task nameCheck Room/name /task - task nameSpecial Feed/name /task - task nameSpecial Water/name /task - task nameCages/Feed/H20/Mop/name /task /tasks /content /page Tim Bachta -Original Message- From: Tim Bachta Sent: Thursday, June 19, 2003 11:57 AM To: [EMAIL PROTECTED] Subject: No results from a stored procedure Is there a reason why cocoon would not execute a certain stored procedure? I have one that I have verified returns a result set but when I run it in cocoon I am not getting anything back. It looks like it is skipping over the section completely. Tim Bachta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
weird svg problem
Hi, I have a really strange problem when using svg inside the object tag. When I don't use cocoon to serve the following page everything is fine and I get an alert, but when cocoon serves the page the _javascript_ fails at getSVGDocument (or getSvgDocument). Here is my simple html page : html headscript function initSvg(id) { var svg = document.getElementById(id); var svgDoc = svg.getSVGDocument(); alert(svgDoc); } /script/head body object type="image/svg+xml" id="svg1" data="" width="100%" height="100%"/object /body /html Here is a snippet from my sitemap : map:match pattern="*.htm" map:read src="" mime-type="text/html"/ /map:match map:match pattern="*.svgz" map:read src="" mime-type="image/svg+xml"/ /map:match This problem does not occurr when I use the embed tag - but I prefer to use object so that I can display a jpeg if the SVGplugin is not installed. I have tried using cocoon 2.04 and 2.1m2 with the same results. Any ideas ? Thanks in advance, Rob Gregory
RE: color in excel spreadsheet not working with HSSFSerialiser
Joy, try shade=2. It should work. -Original Message- From: David Kavanagh [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 11:24 AM To: [EMAIL PROTECTED] Subject: Re: color in excel spreadsheet not working with HSSFSerialiser Joy, Have you tried looking at the HSSFSerializer code? See how they handle the shade and color attributes you are trying to set. If they are passed to the POI code, perhaps it is a POI problem. I sometimes find the source code a little faster than the user-list. David Joydeep Bose wrote: Hi, I am using this style info in gnumeric format : I know that the colors don't work with shade=0 , so I made shade=1. Is there some problem with the color format ? Did anyone see this before ? gmr:StyleRegion startCol=1 startRow=7 endCol=10 endRow=7 gmr:Style HAlign=8 VAlign=2 WrapText=0 Orient=1 Shade=1 Indent=0 Fore=0:0:0 Back=00:FF:FF PatternColor=:: Format=General gmr:Font Unit=8 Bold=1 Italic=0 Underline=0 StrikeThrough=0/gmr:Font gmr:StyleBorder gmr:Top Style=1/ gmr:Bottom Style=1/ gmr:Left Style=1/ gmr:Right Style=1/ gmr:Diagonal Style=0/ gmr:Rev-Diagonal Style=0/ /gmr:StyleBorder /gmr:Style /gmr:StyleRegion Thanks Joydeep - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: color in excel spreadsheet not working with HSSFSerialiser
Joy, I have a question for you since you are using gnumeric. Does your PrintInformation section? I am trying to change Header, Footer and Orientation of the Excel. Somehow it's not taking it at all. See below: -Original Message- From: Yan, Charlene Sent: Thursday, June 19, 2003 3:43 PM To: [EMAIL PROTECTED] Subject: RE: color in excel spreadsheet not working with HSSFSerialiser Joy, try shade=2. It should work. -Original Message- From: David Kavanagh [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 11:24 AM To: [EMAIL PROTECTED] Subject: Re: color in excel spreadsheet not working with HSSFSerialiser Joy, Have you tried looking at the HSSFSerializer code? See how they handle the shade and color attributes you are trying to set. If they are passed to the POI code, perhaps it is a POI problem. I sometimes find the source code a little faster than the user-list. David Joydeep Bose wrote: Hi, I am using this style info in gnumeric format : I know that the colors don't work with shade=0 , so I made shade=1. Is there some problem with the color format ? Did anyone see this before ? gmr:StyleRegion startCol=1 startRow=7 endCol=10 endRow=7 gmr:Style HAlign=8 VAlign=2 WrapText=0 Orient=1 Shade=1 Indent=0 Fore=0:0:0 Back=00:FF:FF PatternColor=:: Format=General gmr:Font Unit=8 Bold=1 Italic=0 Underline=0 StrikeThrough=0/gmr:Font gmr:StyleBorder gmr:Top Style=1/ gmr:Bottom Style=1/ gmr:Left Style=1/ gmr:Right Style=1/ gmr:Diagonal Style=0/ gmr:Rev-Diagonal Style=0/ /gmr:StyleBorder /gmr:Style /gmr:StyleRegion Thanks Joydeep - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: color in excel spreadsheet not working with HSSFSerialiser
Joy, I have a question for you since you are using gnumeric. Does your PrintInformation section? I am trying to change Header, Footer and Orientation of the Excel. Somehow it's not taking it at all. See below: gmr:Geometry Width=734 Height=422/ gmr:Sheets gmr:Sheet DisplayFormulas=false HideZero=false HideGrid=false HideColHeader=false HideRowHeader=false DisplayOutlines=true OutlineSymbolsBelow=true OutlineSymbolsRight=true gmr:Namexsl:value-of select=name//gmr:Name gmr:MaxCol-1/gmr:MaxCol gmr:MaxRow-1/gmr:MaxRow gmr:Zoom1.00/gmr:Zoom gmr:Names/ gmr:PrintInformation gmr:Margins gmr:top Points=28.3 PrefUnit=cm/ gmr:bottom Points=28.3 PrefUnit=cm/ gmr:left Points=0 PrefUnit=cm/ gmr:right Points=0 PrefUnit=cm/ gmr:header Points=0 PrefUnit=cm/ gmr:footer Points=0 PrefUnit=cm/ /gmr:Margins gmr:vcenter value=0/ gmr:hcenter value=0/ gmr:grid value=0/ gmr:even_if_only_styles value=0/ gmr:monochrome value=0/ gmr:draft value=0/ gmr:titles value=0/ gmr:repeat_top value=/ gmr:repeat_left value=/ gmr:orderr_then_d/gmr:order gmr:orientationlandscape/gmr:orientation gmr:Header Left= Middle=Page amp;[PAGE] Right=/ gmr:Footer Left= Middle=Page amp;[PAGE] Right=/ gmr:paperA4/gmr:paper /gmr:PrintInformation Thanks!! Charlene -Original Message- From: Yan, Charlene Sent: Thursday, June 19, 2003 3:43 PM To: '[EMAIL PROTECTED]' Subject: RE: color in excel spreadsheet not working with HSSFSerialiser Joy, try shade=2. It should work. -Original Message- From: David Kavanagh [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 11:24 AM To: [EMAIL PROTECTED] Subject: Re: color in excel spreadsheet not working with HSSFSerialiser Joy, Have you tried looking at the HSSFSerializer code? See how they handle the shade and color attributes you are trying to set. If they are passed to the POI code, perhaps it is a POI problem. I sometimes find the source code a little faster than the user-list. David Joydeep Bose wrote: Hi, I am using this style info in gnumeric format : I know that the colors don't work with shade=0 , so I made shade=1. Is there some problem with the color format ? Did anyone see this before ? gmr:StyleRegion startCol=1 startRow=7 endCol=10 endRow=7 gmr:Style HAlign=8 VAlign=2 WrapText=0 Orient=1 Shade=1 Indent=0 Fore=0:0:0 Back=00:FF:FF PatternColor=:: Format=General gmr:Font Unit=8 Bold=1 Italic=0 Underline=0 StrikeThrough=0/gmr:Font gmr:StyleBorder gmr:Top Style=1/ gmr:Bottom Style=1/ gmr:Left Style=1/ gmr:Right Style=1/ gmr:Diagonal Style=0/ gmr:Rev-Diagonal Style=0/ /gmr:StyleBorder /gmr:Style /gmr:StyleRegion Thanks Joydeep - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: No results from a stored procedure
Hi, try it with esql:call Here is a fast example: esql:execute-query esql:call{call pip2a9.HiQuery ('', '', '', '583911','xsp:exprclass_id/xsp:expr','true','xsp:exprsl/xsp:expr', '','xsp:exprpl/xsp:expr','xsp:exprps/xsp:expr',esql:parameter direction=out type=String/)} /esql:call esql:call-results response esql:execute-query esql:query esql:get-string ancestor=1 from-call=true column=1/ /esql:query esql:skip-rowsxsl:value-of select=$skiprows//esql:skip-rows esql:max-rowsxsl:value-of select=$maxrows//esql:max-rows esql:results statuss.success//status part.info esql:row-results element esql:get-columns/ /element /esql:row-results /part.info /esql:results esql:no-results statuss.nomatch//status /esql:no-results /esql:execute-query /response /esql:call-results esql:error-results messageesql:get-message//message stacktraceesql:get-stacktrace//stacktrace /esql:error-results /esql:execute-query Hope that can help. --Michael Here is the code from the page: ?xml version=1.0 encoding=UTF-8? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-session=http://apache.org/xsp/session/2.0; create-session=true page xsp:logic String beginTime =5-20-2003; String endTime = 6-20-2003; String room = Rm 130 B; String qry = rptLocationDeviationsgetTasks 'Rm 130 B','5-20-2003','6-20-2003'; /xsp:logic titleRoom Report for xsp:exprroom/xsp:expr xsp:exprbeginTime/xsp:expr to xsp:exprendTime/xsp:expr/title content esql:connection esql:poolvyzo/esql:pool esql:execute-query esql:query execute rptLocationDeviationsgetTasks 'xsp:exprroom/xsp:expr','xsp:exprbeginTime/xsp:expr',' xsp:expr endTime/xsp:expr' /esql:query esql:results tasks esql:row-results task name esql:get-string column=2/ /name /task /esql:row-results /tasks /esql:results /esql:execute-query esql:execute-query esql:query execute rptLocationDeviations 'xsp:exprroom/xsp:expr','xsp:exprbeginTime/xsp:expr',' xsp:expr endTime/xsp:expr' /esql:query esql:results task-date esql:row-results task task-name esql:get-string column=2/ /task-name /task /esql:row-results /task-date /esql:results /esql:execute-query /esql:connection /content /page /xsp:page and this is the output that I am getting: ?xml version=1.0 encoding=UTF-8 ? - page xmlns:xsp-session=http://apache.org/xsp/session/2.0; xmlns:xsp=http://apache.org/xsp; xmlns:xspdoc=http://apache.org/cocoon/XSPDoc/v1; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; titleRoom Report for Rm 130 B 5-20-2003 to 6-20-2003/title - content - tasks - task nameChange Bottles/name /task - task nameCheck Room/name /task - task nameSpecial Feed/name /task - task nameSpecial Water/name /task - task nameCages/Feed/H20/Mop/name
session-validator problem
Hello, I've downloaded cocoon a month ago and it's good but hard. I've a problem when trying to adapt the "protected" tutorial to my application. here is a part of my sitemap.xmap map:match pattern="login.html" map:aggregate element="page" map:part src=""/ map:part src=""/ map:part src=""/ /map:aggregate map:transform src=""/ map:serialize/ /map:match map:match pattern="*.html" map:act type="session-validator" map:parameter name="descriptor" value="context://K/descriptors/params.xml"/ map:parameter name="validate" value="user_id"/ map:aggregate element="page" map:part src=""/ map:part src=""/ map:part src=""/ /map:aggregate map:transform src=""/ map:serialize/ /map:act map:redirect-to uri="login.html"/ /map:match there is no problem with the login page but when i log in the map:act type="session-validator"failed even if there is a user_id=0 in the session (i know it because i put the user_id in the title of the html page) my params.xml looks like : ?xml version="1.0" encoding="UTF-8"?parameters-descriptor parameter name="user_id" type="long" nullable="no"/parameters-descriptor i don't understand because it seems to be really like the tutorial many thanks.
Serious Problem with sql:transformer
I user SQL transformer also to insert (and update) datasets in the database, as this is rather handy. It works basically fine, but today it took me hours to figure out one problem. (Cocoon 2.04) I use execute-query xmlns=http://apache.org/cocoon/SQL/2.0; query statements with an INSERT INTO ... SQL this works, but today I figured out, that the SQL transformer fails when a ? question mark is part of the text!!! obviously because it is interpreted as prepared statement parameter. this is very bad, as I based some forms on this strategy. Is there a solution for this problem known? Would be really great to get some comments! Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Link Livesite: (www.mammakarzinom.de)
Cool, another website running on the most current Cocoon version. Added to CVS. Joerg Sascha Kulawik wrote: Hello everybody, we have now finished one of our projects and can tell, that we have a new customer sucessfully online with Cocoon. The complete Rendering in done though Cocoon 2.1m2, Cocoon is the Rendering-Frontend for our J2EE-based Content Management System. For getting this working we've created only one custom Generator and one custom Action to submit informations to Cocoon. All of the content is saved in a mySQL Database, the content is completely XML. (Just for Info: The CMS-Admin is a Java Swing Application and uses Apache-Axis (SOAP) for Communication) All the dynamic parts in the website are done though XMLForms, and related custom Actions. One of these Forms saves also Data, this is done though EJB Entity Beans like the rest of the Content Management System. The Site is running: Apache 2.0.46 as request parser, using mod_proxy and mod_rewrite for tunneling (mod_jk2 was too instable) JBoss 3.2.1 with Jetty Servlet Engine Java 1.4.1 Blackdown Regards, -- Sascha Kulawik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]