RE: Excel needs filename?
correction: I got it working by adding the following line in my generator: response.setHeader(Content-Disposition, inline; filename=output.xls); ..but having to hard-code a parameter name in my generator as well as my sitemap leads to a potential consistency problem. Any better ideas? TIA Chris -=-=- -Original Message- From: Shaw, Chris Sent: 11 April 2002 14:23 To: '[EMAIL PROTECTED]' Subject: Excel needs filename? Hi, I'm using the HSSFSerializer to generate an M$-Excel file The mime-type is set to: application/vnd.ms-excel When I use Netscape it works perfectly But when I use IE it doesn't recognise the mime-type - it instead tries to look at the filenameand the filename is basically junk. I searched the archives and found that I could use perhaps overcomes this by adding the following: response.setHeader(Content-Disposition, inline; filename=output); or: response.setHeader(Content-Disposition, attachment; filename=output.xls); (though the 2nd option doesn't work for me). However, I'm using my own generator to generate XML.always XML.and then I have an if statement in my sitemap to choose a different transfomerserializer (HTML, PDF, Excel etc) based upon an input parameter. My fallback solution is to also test for this parameter inside my generator and, if Excel was chosen, add this line as above. But this is a m-ugly solutionand not as easily maintainable What I can't understand is that my fo2pdf serializer doesn't have the same problem...this works 100% whether in IE or Netscape. I saw references in the mailing list archives about a link http://xml.apache.org/cocoon/faqs.html#faq-iepdfbug but the actual reference in question does not appear on this page (anymore) Does anyone have any more info and/or a better solution to the problem? TIA Chris Chris Shaw European Central Bank DG Information Systems * +49 (0) 69 1344 7764 * [EMAIL PROTECTED] Any e-mail message from the European Central Bank (ECB) is sent in good faith but shall neither be binding nor construed as constituting a commitment by the ECB except where provided for in a written agreement. This e-mail is intended only for the use of the recipient(s) named above. Any unauthorised disclosure, use or dissemination, either in whole or in part, is prohibited. If you have received this e-mail in error, please notify the sender immediately via e-mail and delete this e-mail from your system. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any e-mail message from the European Central Bank (ECB) is sent in good faith but shall neither be binding nor construed as constituting a commitment by the ECB except where provided for in a written agreement. This e-mail is intended only for the use of the recipient(s) named above. Any unauthorised disclosure, use or dissemination, either in whole or in part, is prohibited. If you have received this e-mail in error, please notify the sender immediately via e-mail and delete this e-mail from your system. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cookie question
From: Alexander Smirnoff [mailto:[EMAIL PROTECTED]] Thanks for tip Konstantin. Not right away but when looking into the code I found up that if you define your action with store-in-cookietrue/store-in-cookie it will do the job. To my surprise I did not be able to find up this in any documentation. It's not surprising as there is a lot of things that need documenting. But you could find all the necessary info from javadocs. Konstantin Alex. - Original Message - From: Piroumian Konstantin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 11, 2002 3:13 AM Subject: RE: Cookie question -Original Message- From: Alexander Smirnoff [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 10:41 PM To: [EMAIL PROTECTED] Subject: Cookie question Hi, My browser does not recieve cookie... Here is XSP piece: xsp-cookie:create-cookies xsp-cookie:cookie name=locale xsp-cookie:valuerlocale/xsp-cookie:value /xsp-cookie:cookie /xsp-cookie:create-cookies Did I forgot something? Btw, it seems that you are trying to set locale using a cookie. Have a look at LocaleAction. It will do the job for you. Thanks, Alex. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to get HTML (not XHTML) from the HTMLSerializer (C2.0.1)
From: Yuri Gadow [EMAIL PROTECTED] Try with br name=br/ If you mean an XSLT using that syntax (otherwise, I guess I'm missing something), I'm afraid that doesn't help. It's a hack to get Netscape 4 to use that tag. If I write: html body ciaobr/ ciao/body /html in Netscape 4.7 I get: ciaociao but if I write this: html body ciaobr name=br/ ciao/body /html I get: ciao ciao I can also write br whattheheck=myhackytag/ and it's the same, the trick is putting in an attribute. In this way Netscape 4 can show valid XHTML, which is IMHO better anyways than br. Just write a stylesheet that converts adds an attribute to br/s and copies all other stuff, and you're done. -- 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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSLT named teplates and xsl:param (is it a BUG?)
Why did You use '{' and '}' tokens? Isn't enough only xsl:if test=$dayofweek=1 or $dayofweek=7 ??? - Original Message - From: Ivan Luzyanin [EMAIL PROTECTED] To: Cocoon-users [EMAIL PROTECTED] Sent: Thursday, April 11, 2002 8:34 PM Subject: XSLT named teplates and xsl:param (is it a BUG?) Hi! I'm using Cocoon 2.0.2 and Tomcat 3.3.1. Can anybody explain to me why i can't use 'xsl:param' in 'xsl:if' clause? Example: xsl:template name=TimeCell xsl:param name=cssClassNormalTimeCell/xsl:param xsl:param name=cssClassWeekEndHolidayCell/xsl:param xsl:param name=dayofweek !-- Monday -- 2 /xsl:param td class={$cssClassNormal} xsl:if test={$dayofweek}=1 or {$dayofweek}=7 xsl:attribute name=class{$cssClassWeekEnd}/xsl:attribute /xsl:if xsl:value-of select=./ /td /xsl:template it throws: org.apache.cocoon.ProcessingException: Exception in creating Transform Handler: javax.xml.transform.TransformerException: Extra illegal tokens: '{', '$', 'dayofweek}', '=', '1', 'or', '{', '$', 'dayofweek}', '=', '7' at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS LTProcessorImpl.java:271) at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS LTProcessorImpl.java:204) at org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java: 295) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(Ab stractEventPipeline.java:215) at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEven tPipeline.java:279) at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(Cachi ngEventPipeline.java:142) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:320) at org.apache.cocoon.www.sitemap_xmap.matchN101FC(/usr/local/bin/java/jakarta-t omcat-3.3.1/work/DEFAULT/cocoon-dev/cocoon-files/org/apache/cocoon/www/sitem ap_xmap.java:1569) at org.apache.cocoon.www.sitemap_xmap.process(/usr/local/bin/java/jakarta-tomca t-3.3.1/work/DEFAULT/cocoon-dev/cocoon-files/org/apache/cocoon/www/sitemap_x map.java:1338) at org.apache.cocoon.www.sitemap_xmap.process(/usr/local/bin/java/jakarta-tomca t-3.3.1/work/DEFAULT/cocoon-dev/cocoon-files/org/apache/cocoon/www/sitemap_x map.java:1274) at org.apache.cocoon.sitemap.Handler.process(Handler.java:222) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154) at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574) at org.apache.tomcat.core.Handler.invoke(Handler.java:322) at org.apache.tomcat.core.Handler.service(Handler.java:235) at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10I nterceptor.java:176) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:516) at java.lang.Thread.run(Thread.java:484) ; SystemID: file:/usr/local/bin/java/jakarta-tomcat-3.3.1/webapps/cocoon-dev/transforms/ report2html.xsl; Line#: 162; Column#: 50 javax.xml.transform.TransformerException: Extra illegal tokens: '{', '$', 'dayofweek}', '=', '1', 'or', '{', '$', 'dayofweek}', '=', '7' at org.apache.xpath.compiler.XPathParser.error(XPathParser.java:602) at org.apache.xpath.compiler.XPathParser.initXPath(XPathParser.java:165) at org.apache.xpath.XPath.(XPath.java:217) at org.apache.xalan.processor.StylesheetHandler.createXPath(StylesheetHandler.j ava:197) at org.apache.xalan.processor.XSLTAttributeDef.processEXPR(XSLTAttributeDef.jav a:575) at org.apache.xalan.processor.XSLTAttributeDef.processValue(XSLTAttributeDef.ja va:920) at org.apache.xalan.processor.XSLTAttributeDef.setAttrValue(XSLTAttributeDef.ja va:1078) at org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes( XSLTElementProcessor.java:375) at org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes( XSLTElementProcessor.java:311) at org.apache.xalan.processor.ProcessorTemplateElem.startElement(ProcessorTempl ateElem.java:122) at org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler. java:658) at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j ava:445) at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBin der.java:832) at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.ja va:568) at
esql and db-actions error handling
Hi cocooners! I want to handle errors coming from esql selects and actions operate on DB. ESQL - I try to do: esql:connection esql:poolmypool/esql:pool esql:execute-query esql:query select EMPNO from EMP /esql:query esql:results esql:row-results employee id valueesql:get-long column=EMPNO//value /id /employee /esql:row-results /esql:results esql:no-results employee-lack/ /esql:no-results esql:error-results employee-erroresql:get-message//employee-error /esql:error-results /esql:execute-query /esql:connection and? When i make fail in select e.g. type SELCET not SELECT i get Cocoon error and cocoon error page! I have same when I define not exist DSN in DB connection at cocoon.xconf. Maybe anybody knows any howto document or the way what to handle this exceptions. I don't handle errors in sitemap.xmap (if it has any importance). And second question: how to handle db error when I would to use Database*Action? Is any method to handle this error in sitemap.xmaps pipeline ? Regards Jerzy Kut - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Esql row-results
esql supports this from scratch: esql:execute-query ... esql:use-limit-clausemysql/esql:use-limit-clause esql:skip-rows0/esql:skip-rows esql:max-rows0/esql:max-rows if your database has no support for such (seem to be all others than mysql and postgres) you can even use the jdbc way: esql:use-limit-clausejdbc/esql:use-limit-clause esql:skip-rows0/esql:skip-rows esql:max-rows0/esql:max-rows Cheer -- Torsten fantastic thanks - Original Message - From: Chris Warr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 12, 2002 3:16 AM Subject: RE: Esql row-results Then you want to use LIMIT, I think: SELECT blah from thetable LIMIT 1 Chris. -Original Message- From: Sharat Koya [mailto:[EMAIL PROTECTED]] Sent: Friday, 12 April 2002 12:00 To: [EMAIL PROTECTED] Subject: Re: Esql row-results unfortunatly not. I am using mysql - Original Message - From: Chris Warr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 12, 2002 3:02 AM Subject: RE: Esql row-results does 'select top 1 ' do what you want. It just returns one row of the query results. Not sure if all dbs support it though. Very handy though. Chris. -Original Message- From: Sharat Koya [mailto:[EMAIL PROTECTED]] Sent: Friday, 12 April 2002 11:54 To: [EMAIL PROTECTED] Subject: Esql row-results Hi, I have searched through the archives over the past hour and haven't found anything for this problem. What I want to do is execute a esql query that returns the results from a table but only selects the first row. eg.. normal esql namespace excluded... queryselect * from action where due lt; current_timestamp/query results row-results actionget-string column=action//action /row-results /results what i want to be able to do is return only one action and ideally the first one it comes across. Once it does i can then set about processing the action and then delete from the database. any ideas? thanks for any time put in Sharat Koya - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: esql and db-actions error handling
On 12.Apr.2002 -- 09:18 AM, Jerzy Kut wrote: Hi cocooners! I want to handle errors coming from esql selects and actions operate on DB. ESQL - I try to do: esql:connection esql:poolmypool/esql:pool esql:execute-query esql:query select EMPNO from EMP /esql:query esql:results esql:row-results employee id valueesql:get-long column=EMPNO//value /id /employee /esql:row-results /esql:results esql:no-results employee-lack/ /esql:no-results esql:error-results employee-erroresql:get-message//employee-error /esql:error-results /esql:execute-query /esql:connection and? When i make fail in select e.g. type SELCET not SELECT i get Cocoon error and cocoon error page! I have same when I define not exist DSN in DB connection at cocoon.xconf. Maybe anybody knows any howto document or the way what to handle this exceptions. I don't handle errors in sitemap.xmap (if it has any importance). And second question: how to handle db error when I would to use Database*Action? Is any method to handle this error in sitemap.xmaps pipeline ? IMHO error-results refers to errors returned by the database system. Any setup error would not be catched and lead to a cocoon error. As for the SQL syntax error -- errors during execution are not handled in error-results (why?) but only exceptions that occur while retrieving the results. Database*Actions will also cause cocoon errors when connectivity is broken. Other errors can be handled by nesting sitemap elements inside your action for the success branch and those for failure after it. The elements nested will only be considered for your pipeline if the action signalles success. HTH. 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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: esql and db-actions error handling
Hi Christian! I have defined resource: !-- - deleting of existing employee -- map:resource name=employee-delete map:act type=db-delete map:parameter name=descriptor value=mekka/resources/employee-db.xml/ map:redirect-to uri=employees/ /map:act map:generate type=serverpages src=docs/employee_retry.xml/ map:transform src=stylesheets/employee_dbdelete_retry-html.xsl/ map:serialize/ /map:resource Table with employees has foreign key to other table so when I try to delete (DatabaseDeleteAction) any entry using by this resource I have got cocoon error: Cocoon 2 - Internal server error type fatal message Could not delete record :position = 0 description org.apache.cocoon.ProcessingException: Could not delete record :position = 0: java.sql.SQLException: ORA-02292: violation of referential integrity constraints (SCOTT.FK_DEPTNO) - slave record exists sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet If I understand Your explanation it is correct construct that should provide handling db errors. So how to handle this? During working of website it is possible to occur damages with DBServer. How to handle this errors? Often it will be connection errors. Or errors resulting from transaction fails or constraints violations. Maybe good way to resolve it will be write own Database*Actions provides to handle this errors? What do You think? (But of course I welcome simplest method resolving this trouble..) Regards Jerzy Kut - Original Message - From: Christian Haul [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 12, 2002 9:50 AM Subject: Re: esql and db-actions error handling On 12.Apr.2002 -- 09:18 AM, Jerzy Kut wrote: Hi cocooners! I want to handle errors coming from esql selects and actions operate on DB. ESQL - I try to do: esql:connection esql:poolmypool/esql:pool esql:execute-query esql:query select EMPNO from EMP /esql:query esql:results esql:row-results employee id valueesql:get-long column=EMPNO//value /id /employee /esql:row-results /esql:results esql:no-results employee-lack/ /esql:no-results esql:error-results employee-erroresql:get-message//employee-error /esql:error-results /esql:execute-query /esql:connection and? When i make fail in select e.g. type SELCET not SELECT i get Cocoon error and cocoon error page! I have same when I define not exist DSN in DB connection at cocoon.xconf. Maybe anybody knows any howto document or the way what to handle this exceptions. I don't handle errors in sitemap.xmap (if it has any importance). And second question: how to handle db error when I would to use Database*Action? Is any method to handle this error in sitemap.xmaps pipeline ? IMHO error-results refers to errors returned by the database system. Any setup error would not be catched and lead to a cocoon error. As for the SQL syntax error -- errors during execution are not handled in error-results (why?) but only exceptions that occur while retrieving the results. Database*Actions will also cause cocoon errors when connectivity is broken. Other errors can be handled by nesting sitemap elements inside your action for the success branch and those for failure after it. The elements nested will only be considered for your pipeline if the action signalles success. HTH. 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/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: esql and db-actions error handling
On 12.Apr.2002 -- 10:12 AM, Jerzy Kut wrote: If I understand Your explanation it is correct construct that should provide handling db errors. So how to handle this? You're right. Sometimes I forget all the differences between the original database actions and those in scratchpad With the ones in scratchpad you could specify if they should throw an exception or continue. The original actions don't offer this. Would be easy to do it, though. Might have a go at it next week. During working of website it is possible to occur damages with DBServer. How to handle this errors? Often it will be connection errors. Or errors resulting from transaction fails or constraints violations. I think connection errors would need to be resolved at sitemap level with a new error handler but I may be completely wrong. The rest should be possible with the above. Maybe good way to resolve it will be write own Database*Actions provides to handle this errors? What do You think? (But of course I welcome simplest method resolving this trouble..) I would strongly suggest to use the database actions from scratchpad. Or modify the original ones and send a patch :-) 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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Got error 127 from table handler
Hello! maybe this is offtopic here... i get the following errors in my cocoon application when it is used from several hosts at the same time from different clients workstations. does anybody know how to avoid this problem? --- 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: INSERT INTO tbl8srjwz2vl2 ( ikst, skst, menge, produkt, idx, izeit, szeit ) SELECT s.ikst, s.skst, ap.menge, ap.produkt, ap.idx, s.irzt+s.iezt, sz.szeit FROM stbk_kopf=sk, stbk=s, aufpos=ap LEFT OUTER JOIN sollzeiten_kst=sz ON ( sz.produkt = ap.produkt AND sz.kst = s.skst ) WHERE ap.pk_aufpos = sk.fk_aufpos AND s.stbk = sk.stbk AND s.stbkindex = sk.stbkindex AND ap.auf = I048A33 AND s.etft = n ORDER BY s.ikst : java.sql.SQLException: General error: Got error 127 from table handler sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /knapp/reports/zeitenkanr.xsp path-info reports/zeitenkanr.xsp --- thx, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz msg10891/pgp0.pgp Description: PGP signature
Unable to locate resource: messages (C2)
Hi colleagues, I need the i18n transformer and tried a simple sample: first.xml: route xmlns:i18n=http://apache.org/cocoon/i18n/2.0; start i18n:translate i18n:textStartpunkt/i18n:text /i18n:translate /start zielEndpunkt:/ziel abschnitte /abschnitte /route dictionary.xml: ?xml version=1.0 encoding=UTF-8 ? translations entry keyStartpunkt/key translation lang=enStarting point/translation translation lang=deStartpunkt/translation /entry /translations sitemap.xmap: map:match pattern=test map:generate src=prototyp/first.xml/ map:transform type=i18n src=prototyp/dictionary.xml/ map:serialize type=xml/ /map:match When running the example I got the message: The org.apache.cocoon.www.sitemap_xmap notifies that org.apache.cocoon.ProcessingException says: Unable to locate resource: messages Does anybody know what this means and what could be wrong. I took the syntax from the userdoc. How does i18n know which language I want to have? Please help me. Regards - Volker - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Intialization of Custom Component upon Cocoon 2.0.2 startup
Hello, Would any of you have experience with getting Cocoon to initialize a custom component upon startup? In my component, I have implemented the Initializable and Startable interfaces from the Avalon Framework packages, but I am having no luck at runtime? Thank you, Rasik Pandey
RE: Unable to locate resource: messages (C2)
From: Volker Schneider [mailto:[EMAIL PROTECTED]] Hi colleagues, I need the i18n transformer and tried a simple sample: first.xml: route xmlns:i18n=http://apache.org/cocoon/i18n/2.0; start i18n:translate i18n:textStartpunkt/i18n:text /i18n:translate /start It's enough to use i18n:textStartpunkt/i18n:text. i18n:translate is used when you need param substitution. zielEndpunkt:/ziel abschnitte /abschnitte /route dictionary.xml: ?xml version=1.0 encoding=UTF-8 ? translations entry keyStartpunkt/key translation lang=enStarting point/translation translation lang=deStartpunkt/translation /entry /translations Dictionary syntax had changed a lot of time ago, but for unknown reason userdocs got lost their updates about the new format. See i18n samples to get the idea. Next week I'll update docs and hopefully will provide a DTD or XSD for i18n markup. sitemap.xmap: map:match pattern=test map:generate src=prototyp/first.xml/ map:transform type=i18n src=prototyp/dictionary.xml/ map:serialize type=xml/ /map:match When running the example I got the message: The org.apache.cocoon.www.sitemap_xmap notifies that org.apache.cocoon.ProcessingException says: Unable to locate resource: messages Does anybody know what this means and what could be wrong. I took the syntax from the userdoc. How does i18n know which language I want to have? Language is choosen using LocaleAction's getLocaleAttribute() method. See LocaleAction javadocs to see how it's performed. As soon as I've had a little free time I'll add also a sitemap parameter support for i18n transformer. In that case you would be able to select the locale in any way you like, e.g. from the URL like this '/host/en_US/page.xml'. Please help me. The best help you'll get from the samples, see i18n/ directory in cocoon webapp. Regards, Konstantin Piroumian Regards - Volker - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unable to locate resource: messages (C2)
Hi Konstantin, thank you for your reply. I already looked in this examples before, but they don't really help, because they are not using a locale definition and they do nothing else than I did. In the documentation I read something about message catalog. Has this something to with the locale problem? Can you tell me something about the new dictionary syntax or where I can find it, so that I can continue? Mail archives don't help as well. Regards - Volker - -Original Message- From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] Sent: Freitag, 12. April 2002 11:23 To: '[EMAIL PROTECTED]' Subject: RE: Unable to locate resource: messages (C2) From: Volker Schneider [mailto:[EMAIL PROTECTED]] Hi colleagues, I need the i18n transformer and tried a simple sample: first.xml: route xmlns:i18n=http://apache.org/cocoon/i18n/2.0; start i18n:translate i18n:textStartpunkt/i18n:text /i18n:translate /start It's enough to use i18n:textStartpunkt/i18n:text. i18n:translate is used when you need param substitution. zielEndpunkt:/ziel abschnitte /abschnitte /route dictionary.xml: ?xml version=1.0 encoding=UTF-8 ? translations entry keyStartpunkt/key translation lang=enStarting point/translation translation lang=deStartpunkt/translation /entry /translations Dictionary syntax had changed a lot of time ago, but for unknown reason userdocs got lost their updates about the new format. See i18n samples to get the idea. Next week I'll update docs and hopefully will provide a DTD or XSD for i18n markup. sitemap.xmap: map:match pattern=test map:generate src=prototyp/first.xml/ map:transform type=i18n src=prototyp/dictionary.xml/ map:serialize type=xml/ /map:match When running the example I got the message: The org.apache.cocoon.www.sitemap_xmap notifies that org.apache.cocoon.ProcessingException says: Unable to locate resource: messages Does anybody know what this means and what could be wrong. I took the syntax from the userdoc. How does i18n know which language I want to have? Language is choosen using LocaleAction's getLocaleAttribute() method. See LocaleAction javadocs to see how it's performed. As soon as I've had a little free time I'll add also a sitemap parameter support for i18n transformer. In that case you would be able to select the locale in any way you like, e.g. from the URL like this '/host/en_US/page.xml'. Please help me. The best help you'll get from the samples, see i18n/ directory in cocoon webapp. Regards, Konstantin Piroumian Regards - Volker - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unable to locate resource: messages (C2)
From: Volker Schneider [mailto:[EMAIL PROTECTED]] Hi Konstantin, thank you for your reply. I already looked in this examples before, but they don't really help, because they are not using a locale definition and they do nothing else than I did. In the documentation I read something about message catalog. Has this something to with the locale problem? I couldn't find any locale problem in your problem. I saw only an old-style dictionary usage that has changed. Message catalog's are what you need. If you look into the i18n/translations directory then you'll find messages*.xml file there containing translations for several languages. Can you tell me something about the new dictionary syntax or where I can find it, so that I can continue? Mail archives don't help as well. Currently, the only place is the i18n samples directory. Here is the definition of i18n transformer: map:transformers default=xslt map:transformer name=i18n logger=sitemap.transformer.i18n src=org.apache.cocoon.transformation.I18nTransformer !-- This is the base-name for your dictionary files -- catalogue-namemessages/catalogue-name !-- This is the directory where your dictionary files are placed -- catalogue-locationtranslations/catalogue-location /map:transformer /map:transformers If you need more control over locale selection then take a look at LocaleAction and use it in your pipelines before i18n transformer like this: map:match pattern=*.xml map:act type=locale-action / map:generate src={1}.xml/ map:transform type=i18n/ map:transform src=simple.xsl/ map:serialize/ /map:match Hope this helps. Konstantin Regards - Volker - -Original Message- From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] Sent: Freitag, 12. April 2002 11:23 To: '[EMAIL PROTECTED]' Subject: RE: Unable to locate resource: messages (C2) From: Volker Schneider [mailto:[EMAIL PROTECTED]] Hi colleagues, I need the i18n transformer and tried a simple sample: first.xml: route xmlns:i18n=http://apache.org/cocoon/i18n/2.0; start i18n:translate i18n:textStartpunkt/i18n:text /i18n:translate /start It's enough to use i18n:textStartpunkt/i18n:text. i18n:translate is used when you need param substitution. zielEndpunkt:/ziel abschnitte /abschnitte /route dictionary.xml: ?xml version=1.0 encoding=UTF-8 ? translations entry keyStartpunkt/key translation lang=enStarting point/translation translation lang=deStartpunkt/translation /entry /translations Dictionary syntax had changed a lot of time ago, but for unknown reason userdocs got lost their updates about the new format. See i18n samples to get the idea. Next week I'll update docs and hopefully will provide a DTD or XSD for i18n markup. sitemap.xmap: map:match pattern=test map:generate src=prototyp/first.xml/ map:transform type=i18n src=prototyp/dictionary.xml/ map:serialize type=xml/ /map:match When running the example I got the message: The org.apache.cocoon.www.sitemap_xmap notifies that org.apache.cocoon.ProcessingException says: Unable to locate resource: messages Does anybody know what this means and what could be wrong. I took the syntax from the userdoc. How does i18n know which language I want to have? Language is choosen using LocaleAction's getLocaleAttribute() method. See LocaleAction javadocs to see how it's performed. As soon as I've had a little free time I'll add also a sitemap parameter support for i18n transformer. In that case you would be able to select the locale in any way you like, e.g. from the URL like this '/host/en_US/page.xml'. Please help me. The best help you'll get from the samples, see i18n/ directory in cocoon webapp. Regards, Konstantin Piroumian Regards - Volker - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,
Re: documentation for managers, was HP-SOAP Server announcement
On 11 Apr 2002 at 10:46, Peter Robins wrote: In principle, Cocoon is of interest, but the key question is: is it worth the effort and the extra overhead of using Java? A very relevant point. I suppose this is an issue facing all of the Jakarta projects, the fact that besides selling open-source solutions (a challenge itself in many organizations), you're also requiring the introduction of a whole new platform. This is problematic for some of my colleagues on this project; they would have to go through lengthy approval processes in their respective organizations before they could consider using Java/Cocoon in production. This is something that Jakarta overall could probably spend a little more time educating users about. What I'm looking for (and don't find in the documentation) is answers to basic management questions like 'what advantages does Cocoon provide, i.e. what business objectives does it help meet and how?' 'how easy is it to implement?' 'what resources (time, skills level of staff) does it require to (a) get up and running (b) maintain?' plus standard operational questions like performance and security. Agreed, though certainly no one can be faulted for this. I was a documentation manager at one time in my, er, varied career, and I know that it's not possible to write comprehensive docs until the product is mature and stable. I do get the feeling that Cocoon is pretty near ready for primetime by now, however. Time to make the business case, as you say. - Brent Eades, Almonte, Ontario http://www.almonte.com http://www.bankofcanada.ca - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unable to locate resource: messages (C2)
Hi Konstatin, the catalogue-name and catalogue-location tag was the missing thing. Now it works for me as well. It would be great, if somebody could take the time and update/complete the user documentation. Thank you very much for your help, regards - Volker - -Original Message- From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] Sent: Freitag, 12. April 2002 11:58 To: '[EMAIL PROTECTED]' Subject: RE: Unable to locate resource: messages (C2) From: Volker Schneider [mailto:[EMAIL PROTECTED]] Hi Konstantin, thank you for your reply. I already looked in this examples before, but they don't really help, because they are not using a locale definition and they do nothing else than I did. In the documentation I read something about message catalog. Has this something to with the locale problem? I couldn't find any locale problem in your problem. I saw only an old-style dictionary usage that has changed. Message catalog's are what you need. If you look into the i18n/translations directory then you'll find messages*.xml file there containing translations for several languages. Can you tell me something about the new dictionary syntax or where I can find it, so that I can continue? Mail archives don't help as well. Currently, the only place is the i18n samples directory. Here is the definition of i18n transformer: map:transformers default=xslt map:transformer name=i18n logger=sitemap.transformer.i18n src=org.apache.cocoon.transformation.I18nTransformer !-- This is the base-name for your dictionary files -- catalogue-namemessages/catalogue-name !-- This is the directory where your dictionary files are placed -- catalogue-locationtranslations/catalogue-location /map:transformer /map:transformers If you need more control over locale selection then take a look at LocaleAction and use it in your pipelines before i18n transformer like this: map:match pattern=*.xml map:act type=locale-action / map:generate src={1}.xml/ map:transform type=i18n/ map:transform src=simple.xsl/ map:serialize/ /map:match Hope this helps. Konstantin Regards - Volker - -Original Message- From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] Sent: Freitag, 12. April 2002 11:23 To: '[EMAIL PROTECTED]' Subject: RE: Unable to locate resource: messages (C2) From: Volker Schneider [mailto:[EMAIL PROTECTED]] Hi colleagues, I need the i18n transformer and tried a simple sample: first.xml: route xmlns:i18n=http://apache.org/cocoon/i18n/2.0; start i18n:translate i18n:textStartpunkt/i18n:text /i18n:translate /start It's enough to use i18n:textStartpunkt/i18n:text. i18n:translate is used when you need param substitution. zielEndpunkt:/ziel abschnitte /abschnitte /route dictionary.xml: ?xml version=1.0 encoding=UTF-8 ? translations entry keyStartpunkt/key translation lang=enStarting point/translation translation lang=deStartpunkt/translation /entry /translations Dictionary syntax had changed a lot of time ago, but for unknown reason userdocs got lost their updates about the new format. See i18n samples to get the idea. Next week I'll update docs and hopefully will provide a DTD or XSD for i18n markup. sitemap.xmap: map:match pattern=test map:generate src=prototyp/first.xml/ map:transform type=i18n src=prototyp/dictionary.xml/ map:serialize type=xml/ /map:match When running the example I got the message: The org.apache.cocoon.www.sitemap_xmap notifies that org.apache.cocoon.ProcessingException says: Unable to locate resource: messages Does anybody know what this means and what could be wrong. I took the syntax from the userdoc. How does i18n know which language I want to have? Language is choosen using LocaleAction's getLocaleAttribute() method. See LocaleAction javadocs to see how it's performed. As soon as I've had a little free time I'll add also a sitemap parameter support for i18n transformer. In that case you would be able to select the locale in any way you like, e.g. from the URL like this '/host/en_US/page.xml'. Please help me. The best help you'll get from the samples, see i18n/ directory in cocoon webapp. Regards, Konstantin Piroumian Regards - Volker - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ
Re: How to get HTML (not XHTML) from the HTMLSerializer (C2.0.1)
excuse me if I'm missing the point but, if the objective is to get br instead of br/, wouldn't it be far easier to use the html output method in the xslt script directly, and not use the HTML serializer? On Friday 12 Apr 2002 7:59, Nicola Ken Barozzi wrote: From: Yuri Gadow [EMAIL PROTECTED] Try with br name=br/ If you mean an XSLT using that syntax (otherwise, I guess I'm missing something), I'm afraid that doesn't help. It's a hack to get Netscape 4 to use that tag. If I write: html body ciaobr/ ciao/body /html in Netscape 4.7 I get: ciaociao but if I write this: html body ciaobr name=br/ ciao/body /html I get: ciao ciao I can also write br whattheheck=myhackytag/ and it's the same, the trick is putting in an attribute. In this way Netscape 4 can show valid XHTML, which is IMHO better anyways than br. Just write a stylesheet that converts adds an attribute to br/s and copies all other stuff, and you're done. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: MS Access on Cocoon2???
Title: RE: MS Access on Cocoon2??? Look for the MDE (Microsoft Data Engine) it is available for Visual Studio users and is basically a five user version of SQL Server and will run circles around Access. Or just use HyperSQL if the app is small enough. -Original Message- From: Rajput, Ashish S [mailto:[EMAIL PROTECTED]] Sent: 11 April, 2002 21:38 To: '[EMAIL PROTECTED]' Subject: MS Access on Cocoon2??? Hello, Is it possible to hook Cocoon upto a test MS Access DB? I'd like to install MySQL, but downloading that runs me into red tape with my IS Dept. I'm running Windows 2000; JDK1.3.1; Tomcat4.0.1; Cocoon2.0 Thanks, Ashish Rajput - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Investment Corporation (Stanbic) is proprietary to the company. It is confidential, legally privileged and protected by law. Stanbic does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Stanbic. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Stanbic can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. ___
RE: How to switch language for i18n at runtime?
From: Volker Schneider [mailto:[EMAIL PROTECTED]] Dear colleagues, I want to switch language to en at runtime. I read the source of the LocationAction and tried so set the language-attribute in some different ways, but this didn't work. Does anybody know, how I can switch the language being used for i18n at runtime? Use a request param like this: page.xml?locale=en (change param name to your 'locale-attribute' value) and it should work. Is that what you need? Regards, Konstantin Thank you, - Volker - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: documentation for managers, was HP-SOAP Server announcement
Brent Eades wrote: approval processes in their respective organizations before they could consider using Java/Cocoon in production. This is something that Jakarta overall could probably spend a little more time educating users about. Well, we have been selling Cocoon based solutions to our customers for over a year now - and when we started out the hardest discussions we had where on the use of an open source solution. Many major German organisations already have Java and application servers set up, so that part was easy. As a vendor of the solution (be it a project or a product) you have to be able to provide the support the organisation will need. At the end of the day if some bug in Cocoon causes the production environment to grind to a halt - then it will by YOUR problem - even if you had nothing to do with say the caching system in Cocoon. You also need to be able to provide additional documentation and educate the organisation in using and running the solution. These are some of the reasons we set up a dedicated open source group here at SN. Open source doesn't just land on your desk - you need to be able to integrate the open source into your own development environment, project lifecycle, quality assurance testing etc. And - in my opinion - you need to be able to participate. What I'm looking for (and don't find in the documentation) is answers to basic management questions like 'what advantages does Cocoon provide, i.e. what business objectives does it help meet and how?' 'how easy is it to implement?' 'what resources (time, skills level of staff) does it require to (a) get up and running (b) maintain?' plus standard operational questions like performance and security. The documentation available so far has been written (mainly) by developers to help other developers understand what is available in Cocoon. This is part of the bootstrap process that is necessary (to build the community). The next wave of documentation took place in the last couple of months where we have seen articles on Cocoon appear on Web sites and in magazines etc. This is raising public awareness for Cocoon. The next step is the availability of documentation in the form of books. These books will not just stick to documenting Cocoon APIs but will also answer some of the issues raised above. But you know, questions like: what business objectives does it help meet and how are really difficult to answer in a way that would suit all scenarios. This isn't Word where you install from a CD and you know from the start what it can - and cannot do (ok, so maybe you find that out later). We are using Cocoon in a great variety of different projects, to do completely different things (portal, web site, xml workflow system, application service providing, controlling self service devices, aggregating financial information, web printing). Imagine trying to combine all the different requirements etc. into one easy to read document. That being said, I also think we need some form of Applied Cocoon - whether that be additional documentation such as best practices, tutorials. But it could also be tools, education, get-togethers, workshops,... I do get the feeling that Cocoon is pretty near ready for primetime by now, however. Time to make the business case, as you say. Agreed. But I feel this will be something that is done on a per case basis. Tell me your problem and I will tell you how Cocoon (+ any additions) can solve it (assuming it can). Oversimplified - probably - but it's Friday :-). Matthew -- Open Source Group sunShine - Lighting up e:Business = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de Weblogging at: http://www.need-a-cake.com Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352 = - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to switch language for i18n at runtime?
Hi Konstantin, thank you for your reply. Sorry, for being a nag in this point. Do you mean this: map:match pattern=test map:act type=locale map:parameter name=locale-attribute value=x/ map:generate src=prototyp/first.xml/ map:transform type=i18n/ map:serialize type=xml/ /map:act /map:match with .../Cocoon/test?x=en This doen't work. Maybe I misunderstood you. Regards, - Volker - -Original Message- From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] Sent: Freitag, 12. April 2002 13:36 To: '[EMAIL PROTECTED]' Subject: RE: How to switch language for i18n at runtime? From: Volker Schneider [mailto:[EMAIL PROTECTED]] Dear colleagues, I want to switch language to en at runtime. I read the source of the LocationAction and tried so set the language-attribute in some different ways, but this didn't work. Does anybody know, how I can switch the language being used for i18n at runtime? Use a request param like this: page.xml?locale=en (change param name to your 'locale-attribute' value) and it should work. Is that what you need? Regards, Konstantin Thank you, - Volker - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[C2] JDBC Connection
Hi All, My environment is: Windows 98SE JDK1.4 Tomcat 4.0.3 LE (jdk 1.4) Cocoon 2.0.2 How I understand from the documentation that to use the JDBC connection to a database I need to grow down to JDK 1.3 or to compile the JDBC drivers from the sources? Am I right? Thanks, Aleksey Globets - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to switch language for i18n at runtime?
From: Volker Schneider [mailto:[EMAIL PROTECTED]] Hi Konstantin, thank you for your reply. Sorry, for being a nag in this point. Do you mean this: map:match pattern=test map:act type=locale map:parameter name=locale-attribute value=x/ map:generate src=prototyp/first.xml/ map:transform type=i18n/ map:serialize type=xml/ /map:act /map:match No, this won't work as LocaleAction supports only configuration params and you cannot override it in a pipeline. See the root sitemap from Cocoon and move your param there: ... map:action name=locale logger=sitemap.action.locale src=org.apache.cocoon.acting.LocaleAction map:parameter name=locale-attribute value=x/ /map:action ... with .../Cocoon/test?x=en This doen't work. Maybe I misunderstood you. This time it should work. Konstantin Regards, - Volker - -Original Message- From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] Sent: Freitag, 12. April 2002 13:36 To: '[EMAIL PROTECTED]' Subject: RE: How to switch language for i18n at runtime? From: Volker Schneider [mailto:[EMAIL PROTECTED]] Dear colleagues, I want to switch language to en at runtime. I read the source of the LocationAction and tried so set the language-attribute in some different ways, but this didn't work. Does anybody know, how I can switch the language being used for i18n at runtime? Use a request param like this: page.xml?locale=en (change param name to your 'locale-attribute' value) and it should work. Is that what you need? Regards, Konstantin Thank you, - Volker - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to access jdbc datasource in cocoon.xconf from Cocoon actions
Hi! The question is: How i can use jdbc datasource defined in cocoon.xconf in my Cocoon action class ? Example: //--- cocoon.xconf jdbc name=my_pool pool-controller min=5 max=10/ dburljdbc:mysql:///test/dburl usertest/user password/ /jdbc //- TestAction.java public class TestAction extends AbstractAction { public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters params) { // Here i would like to get some info from datasource // 'my_pool'... But i don't know HOW :( ! } } //-- And one more thing. Where can i get Cocoon javadoc??? Does one exist??? (RH Linux 7.2, Cocoon 2.0.2, Tomcat 3.3.1, JDK 1.3.1_02b-FCS Blackdown) - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to access jdbc datasource in cocoon.xconf from Cocoon actions
Title: RE: How to access jdbc datasource in cocoon.xconf from Cocoon actions And one more thing. Where can i get Cocoon javadoc??? Does one exist??? http://xml.apache.org/cocoon/apidocs/index.html -T
Re: How to switch language with i18n at runtime?
Hi Konstantin, I'm sorry but if I tried your solution, I got the german translation in every case. I did this: map:actions ... map:action logger=sitemap.action.locale name=locale src=org.apache.cocoon.acting.LocaleAction map:parameter name=language-attribute value=x/ map:parameter name=locale-attribute value=y/ /map:action ... /map:actions and: map:match pattern=test map:act type=locale map:generate src=prototyp/first.xml/ map:transform type=i18n/ map:serialize type=xml/ /map:act /map:match or this: map:match pattern=test map:act type=locale /map:act map:generate src=prototyp/first.xml/ map:transform type=i18n/ map:serialize type=xml/ /map:match My request .../Cocoon/test?x=eny=en always returns the german translation. What is wrong? Regards, - Volker - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to access jdbc datasource in cocoon.xconf from Cocoonactions
I know HOW! :) //- ComponentSelector selector = (ComponentSelector) manager.lookup(Roles.DB_CONNECTION); DataSourceComponent datasource = (DataSourceComponent) selector.select(my_pool); //- Thanx to Thomas von Schwerdtner! On Fri, 2002-04-12 at 16:02, ME wrote: Hi! The question is: How i can use jdbc datasource defined in cocoon.xconf in my Cocoon action class ? Example: //--- cocoon.xconf jdbc name=my_pool pool-controller min=5 max=10/ dburljdbc:mysql:///test/dburl usertest/user password/ /jdbc //- TestAction.java public class TestAction extends AbstractAction { public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters params) { // Here i would like to get some info from datasource // 'my_pool'... But i don't know HOW :( ! } } //-- And one more thing. Where can i get Cocoon javadoc??? Does one exist??? (RH Linux 7.2, Cocoon 2.0.2, Tomcat 3.3.1, JDK 1.3.1_02b-FCS Blackdown) - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to switch language with i18n at runtime?
From: Volker Schneider [mailto:[EMAIL PROTECTED]] Hi Konstantin, I'm sorry but if I tried your solution, I got the german translation in every case. I did this: map:actions ... map:action logger=sitemap.action.locale name=locale src=org.apache.cocoon.acting.LocaleAction map:parameter name=language-attribute value=x/ map:parameter name=locale-attribute value=y/ /map:action Why do you use language and locale together? Locale is enough, it has language[_country[_variant]] format. So, if you need only the language then you use 'locale' and specify two-letter language code: 'en', 'de', etc. ... /map:actions and: map:match pattern=test map:act type=locale map:generate src=prototyp/first.xml/ map:transform type=i18n/ map:serialize type=xml/ /map:act /map:match or this: map:match pattern=test map:act type=locale /map:act map:generate src=prototyp/first.xml/ map:transform type=i18n/ map:serialize type=xml/ /map:match My request .../Cocoon/test?x=eny=en always returns the german translation. What is wrong? Hm... Have to look at it, but it seems to me that you've found a bug. Are you sure that you need to specify your own locale-attribute? With the default value it should work. I'll take a look at it next week. Konstantin Regards, - Volker - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cocoon web application
Bogdan, may you take a look at the FAQ, first ? Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Bogdan Cirstea [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 3:22 PM To: [EMAIL PROTECTED] Subject: cocoon web application hi! i want to develop an web application based on cocoon technology. can anyone tell me which is the basic structure of such an application? i want to locate the application under other dir than tomcat/webapps/cocoon/my_application and i want to access with something like localhost:8080/my_application. what files do i have to modify and how ? i different sollutions but it didn't work. i used tomcat 4.0.1, cocoon 2.0.2, jdk1.3.1 under win2000. tks - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to switch language with i18n at runtime? - temporary solution
Hi Konstantin, I tried a request parameter called locale (as you said before): .../Cocoon/test?locale=en and .../Cocoon/test?locale=de works fine, but the map:parameter name=locale-attribute ...-section can be left out (it has no effect). It is not possible for me to use an other name for the request parameter (maybe it's a bug?), but that'll do at the moment. Thank you, best regards, - Volker - -Original Message- From: Volker Schneider [mailto:[EMAIL PROTECTED]] Sent: Freitag, 12. April 2002 15:16 To: [EMAIL PROTECTED] Subject: Re: How to switch language with i18n at runtime? Hi Konstantin, I'm sorry but if I tried your solution, I got the german translation in every case. I did this: map:actions ... map:action logger=sitemap.action.locale name=locale src=org.apache.cocoon.acting.LocaleAction map:parameter name=language-attribute value=x/ map:parameter name=locale-attribute value=y/ /map:action ... /map:actions and: map:match pattern=test map:act type=locale map:generate src=prototyp/first.xml/ map:transform type=i18n/ map:serialize type=xml/ /map:act /map:match or this: map:match pattern=test map:act type=locale /map:act map:generate src=prototyp/first.xml/ map:transform type=i18n/ map:serialize type=xml/ /map:match My request .../Cocoon/test?x=eny=en always returns the german translation. What is wrong? Regards, - Volker - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon web application
i did that, believe me something i missed, but i don't know what. in faq is an example but for apache+cocoon. maybe a step by step tutorial, don't know anyway, i'll keep trying - Original Message - From: Luca Morandini [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 12, 2002 4:35 PM Subject: RE: cocoon web application Bogdan, may you take a look at the FAQ, first ? Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Bogdan Cirstea [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 3:22 PM To: [EMAIL PROTECTED] Subject: cocoon web application hi! i want to develop an web application based on cocoon technology. can anyone tell me which is the basic structure of such an application? i want to locate the application under other dir than tomcat/webapps/cocoon/my_application and i want to access with something like localhost:8080/my_application. what files do i have to modify and how ? i different sollutions but it didn't work. i used tomcat 4.0.1, cocoon 2.0.2, jdk1.3.1 under win2000. tks - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to switch language with i18n at runtime? - temporary solution
From: Volker Schneider [mailto:[EMAIL PROTECTED]] Hi Konstantin, I tried a request parameter called locale (as you said before): .../Cocoon/test?locale=en and .../Cocoon/test?locale=de works fine, but the map:parameter name=locale-attribute ...-section can be left out (it has no effect). It is not possible for me to use an other name for the request parameter (maybe it's a bug?), but that'll do at the moment. Yes, if you don't specify your attribute then the default 'locale' attribute name will be used. I'm not sure where is the bug. I think that it's i18n transformer's problem. This will be solved when I add 'locale' parameter support to it. Konstantin Thank you, best regards, - Volker - -Original Message- From: Volker Schneider [mailto:[EMAIL PROTECTED]] Sent: Freitag, 12. April 2002 15:16 To: [EMAIL PROTECTED] Subject: Re: How to switch language with i18n at runtime? Hi Konstantin, I'm sorry but if I tried your solution, I got the german translation in every case. I did this: map:actions ... map:action logger=sitemap.action.locale name=locale src=org.apache.cocoon.acting.LocaleAction map:parameter name=language-attribute value=x/ map:parameter name=locale-attribute value=y/ /map:action ... /map:actions and: map:match pattern=test map:act type=locale map:generate src=prototyp/first.xml/ map:transform type=i18n/ map:serialize type=xml/ /map:act /map:match or this: map:match pattern=test map:act type=locale /map:act map:generate src=prototyp/first.xml/ map:transform type=i18n/ map:serialize type=xml/ /map:match My request .../Cocoon/test?x=eny=en always returns the german translation. What is wrong? Regards, - Volker - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon web application
The easiest way is to copy the cocoon.war file to yourapp.war, start tomcat and test it by going to localhost:8080/yourapp Then you can delete every directory in the yourapp directory, except for the WEB-INF directory. Edit the sitemap and delete every action, resource, view and pipeline you don't need. Leave at least 1 pipeline containing a generator and a serialiser. Add a docs directory and a stylesheet directory and start adding your files and pipelines. Keep the cocoon.war file since you will need to access the cocoon documentation often! Good luck, Bert At 16:22 12/04/2002 +0300, you wrote: hi! i want to develop an web application based on cocoon technology. can anyone tell me which is the basic structure of such an application? i want to locate the application under other dir than tomcat/webapps/cocoon/my_application and i want to access with something like localhost:8080/my_application. what files do i have to modify and how ? i different sollutions but it didn't work. i used tomcat 4.0.1, cocoon 2.0.2, jdk1.3.1 under win2000. tks - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Pooling under Jrun 3.1 (was RE: Installing cocoon2 with Jrun 3.1)
From: Chris Warr [mailto:[EMAIL PROTECTED]] I removed the pooling and it works fine? Anyone else had pooling problems under Jrun 3.1? Can't help you with this one, but IIRC sample database (HSQLDB) works fine with JRun. Vadim Chris. -Original Message- From: Chris Warr [mailto:[EMAIL PROTECTED]] Sent: Friday, 12 April 2002 12:09 To: [EMAIL PROTECTED] Subject: RE: Installing cocoon2 with Jrun 3.1 OK, got another one for you. Cocoon is up and running now under Jrun 3.1, now I'm trying to run my app which works under Tomcat ok. I get the error below which from the looks of it has to do with connection pooling, the datasource definition is below from cocoon.xconf, and I'm using mssql server jdbc driver beta 2. jdbc name=eipp9010 dburljdbc:microsoft:sqlserver://prime:1433;DatabaseName=eippdev/dburl pool-controller min=5 max=20/ userjavaman/user passwordpassword/password /jdbc A chocolate frog to anyone with a clue on this one. Chris. 500 Internal Server Error /cocoon/inv9010.pdf: try to access method org.apache.avalon.excalibur.datasource.AbstractJdbcConnection.setPool(Lo rg/a pache/avalon/excalibur/pool/Pool;)V from class org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcConnectionPoo l java.lang.IllegalAccessError: try to access method org.apache.avalon.excalibur.datasource.AbstractJdbcConnection.setPool(Lo rg/a pache/avalon/excalibur/pool/Pool;)V from class org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcConnectionPoo l at org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcConnectionPoo l.ne wPoolable(ResourceLimitingJdbcConnectionPool.java:84) at org.apache.avalon.excalibur.pool.ResourceLimitingPool.get(ResourceLimiti ngPo ol.java:314) at org.apache.avalon.excalibur.pool.ValidatedResourceLimitingPool.get(Valid ated ResourceLimitingPool.java:91) at org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource.ge tCon nection(ResourceLimitingJdbcDataSource.java:131) at org.apache.cocoon.www.eipp.PDFGeneration.invoice_xml.generate(D:\JRun\se rver s\default\tmp\cocoon\cocoon-files\org/apache/cocoon/www/eipp/PDFGenerati on\i nvoice_xml.java:330) at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGe nera tor.java:260) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(Cachi ngEv entPipeline.java:251) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach ingS treamPipeline.java:390) at org.apache.cocoon.www.sitemap_xmap.matchN1062B(D:\JRun\servers\default\t mp\c ocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:7343) at org.apache.cocoon.www.sitemap_xmap.process(D:\JRun\servers\default\tmp\c ocoo n\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3419) at org.apache.cocoon.www.sitemap_xmap.process(D:\JRun\servers\default\tmp\c ocoo n\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3049) at org.apache.cocoon.sitemap.Handler.process(Handler.java:222) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154 ) at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416) at allaire.jrun.session.JRunSessionService.service(../session/JRunSessionSe rvic e.java:1082) at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270) at allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunReques tDis patcher.java:89) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542) at allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364) at allaire.jrun.jrpp.ProxyEndpoint.run(../jrpp/ProxyEndpoint.java:388) at allaire.jrun.ThreadPool.run(../ThreadPool.java:272) at allaire.jrun.WorkerThread.run(../WorkerThread.java:75) ... - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to switch language with i18n at runtime?
Hi Konstantin, (1) I used both because I was not quite sure which of these parameters would help. I only need one parameter. (2) At the moment I don't know whether the locale parameter can be reserved for other purposes of our application. But I think I could reserve it for this purpose. (3) It would be nice if you would have a look at this. Thank you, regards - Volker - -Original Message- From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] Sent: Freitag, 12. April 2002 15:28 To: '[EMAIL PROTECTED]' Subject: RE: How to switch language with i18n at runtime? From: Volker Schneider [mailto:[EMAIL PROTECTED]] Hi Konstantin, I'm sorry but if I tried your solution, I got the german translation in every case. I did this: map:actions ... map:action logger=sitemap.action.locale name=locale src=org.apache.cocoon.acting.LocaleAction map:parameter name=language-attribute value=x/ map:parameter name=locale-attribute value=y/ /map:action Why do you use language and locale together? Locale is enough, it has language[_country[_variant]] format. So, if you need only the language then you use 'locale' and specify two-letter language code: 'en', 'de', etc. ... /map:actions and: map:match pattern=test map:act type=locale map:generate src=prototyp/first.xml/ map:transform type=i18n/ map:serialize type=xml/ /map:act /map:match or this: map:match pattern=test map:act type=locale /map:act map:generate src=prototyp/first.xml/ map:transform type=i18n/ map:serialize type=xml/ /map:match My request .../Cocoon/test?x=eny=en always returns the german translation. What is wrong? Hm... Have to look at it, but it seems to me that you've found a bug. Are you sure that you need to specify your own locale-attribute? With the default value it should work. I'll take a look at it next week. Konstantin Regards, - Volker - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Excel needs filename?
From: Shaw, Chris [mailto:[EMAIL PROTECTED]] correction: I got it working by adding the following line in my generator: response.setHeader(Content-Disposition, inline; filename=output.xls); ..but having to hard-code a parameter name in my generator as well as my sitemap leads to a potential consistency problem. Any better ideas? You can write an action, with two parameters: disposition and filename. Then you can reuse it for other types of files. Vadim TIA Chris -=-=- -Original Message- From: Shaw, Chris Sent: 11 April 2002 14:23 To: '[EMAIL PROTECTED]' Subject: Excel needs filename? Hi, I'm using the HSSFSerializer to generate an M$-Excel file The mime-type is set to: application/vnd.ms-excel When I use Netscape it works perfectly But when I use IE it doesn't recognise the mime-type - it instead tries to look at the filenameand the filename is basically junk. I searched the archives and found that I could use perhaps overcomes this by adding the following: response.setHeader(Content-Disposition, inline; filename=output); or: response.setHeader(Content-Disposition, attachment; filename=output.xls); (though the 2nd option doesn't work for me). However, I'm using my own generator to generate XML.always XML.and then I have an if statement in my sitemap to choose a different transfomerserializer (HTML, PDF, Excel etc) based upon an input parameter. My fallback solution is to also test for this parameter inside my generator and, if Excel was chosen, add this line as above. But this is a m-ugly solutionand not as easily maintainable What I can't understand is that my fo2pdf serializer doesn't have the same problem...this works 100% whether in IE or Netscape. I saw references in the mailing list archives about a link http://xml.apache.org/cocoon/faqs.html#faq-iepdfbug but the actual reference in question does not appear on this page (anymore) Does anyone have any more info and/or a better solution to the problem? TIA Chris Chris Shaw European Central Bank DG Information Systems * +49 (0) 69 1344 7764 * [EMAIL PROTECTED] Any e-mail message from the European Central Bank (ECB) is sent in good faith but shall neither be binding nor construed as constituting a commitment by the ECB except where provided for in a written agreement. This e-mail is intended only for the use of the recipient(s) named above. Any unauthorised disclosure, use or dissemination, either in whole or in part, is prohibited. If you have received this e-mail in error, please notify the sender immediately via e-mail and delete this e-mail from your system. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any e-mail message from the European Central Bank (ECB) is sent in good faith but shall neither be binding nor construed as constituting a commitment by the ECB except where provided for in a written agreement. This e-mail is intended only for the use of the recipient(s) named above. Any unauthorised disclosure, use or dissemination, either in whole or in part, is prohibited. If you have received this e-mail in error, please notify the sender immediately via e-mail and delete this e-mail from your system. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Got error 127 from table handler
From: Christian Joelly [mailto:[EMAIL PROTECTED]] Hello! maybe this is offtopic here... I do agree with you, this sounds like offtopic. Read you DB documentation on what the heck is this SQLException about (FWIW, I like Oracle documentation: search for your ORA- error and it gives you at least some info), or contact your DB vendor. Vadim i get the following errors in my cocoon application when it is used from several hosts at the same time from different clients workstations. does anybody know how to avoid this problem? --- 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: INSERT INTO tbl8srjwz2vl2 ( ikst, skst, menge, produkt, idx, izeit, szeit ) SELECT s.ikst, s.skst, ap.menge, ap.produkt, ap.idx, s.irzt+s.iezt, sz.szeit FROM stbk_kopf=sk, stbk=s, aufpos=ap LEFT OUTER JOIN sollzeiten_kst=sz ON ( sz.produkt = ap.produkt AND sz.kst = s.skst ) WHERE ap.pk_aufpos = sk.fk_aufpos AND s.stbk = sk.stbk AND s.stbkindex = sk.stbkindex AND ap.auf = I048A33 AND s.etft = n ORDER BY s.ikst : java.sql.SQLException: General error: Got error 127 from table handler sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /knapp/reports/zeitenkanr.xsp path-info reports/zeitenkanr.xsp --- thx, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon web application
On Fri, 12 Apr 2002, Bogdan Cirstea wrote: hi! i want to develop an web application based on cocoon technology. can anyone tell me which is the basic structure of such an application? Although out-of-date, chello has some useful information and provides a handy starting point. Take a look at chello.sourceforge.net for more info. Also check out the various cocoon examples provided in the distribution, and look through the docs and FAQ. Andrew. -- Andrew SavoryEmail: [EMAIL PROTECTED] Managing Director Tel: +44 (0)870 741 6658 Luminas Internet Applications Fax: +44 (0)870 28 47489 This is not an official statement or order.Web:www.luminas.co.uk - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [C2] JDBC Connection
From: Aleksey Globets [mailto:[EMAIL PROTECTED]] Hi All, My environment is: Windows 98SE JDK1.4 Tomcat 4.0.3 LE (jdk 1.4) Cocoon 2.0.2 How I understand from the documentation that to use the JDBC connection to a database I need to grow down to JDK 1.3 or to compile the JDBC drivers from the sources? Am I right? Not JDBC drivers, but Avalon and Excalibur. JDK1.3.1 is much easier to use with SQL. Vadim Thanks, Aleksey Globets - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cocoon web application
Bogdan, ok, I'll believe you. 1) to put an app under a directory other than cocoon, just specify the location of the sub-sitemap using the file: prefix, like in: map:pipeline map:match pattern=istat/** map:mount uri-prefix=istat src=file:///d:/web/istat/ check-reload=yes reload-method=synchron/ /map:match /map:pipeline 2) to get rid of the cocoon in your URL you may: 2.1) make the cocoon.war the ROOT servlet of Tomcat by renaming it... which I never did, hence can help you only up to a point. 2.2) Follow the advice of Bert about renaming cocoon.war 2.2) use the addressing-to-another-URL feature of IIS. This means the user will type: http://host:8080/your_app/index.html and the system will ask Tomcat for the http://host:8080/cocoon/your_app/index.html page. Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Bogdan Cirstea [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 3:37 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: cocoon web application i did that, believe me something i missed, but i don't know what. in faq is an example but for apache+cocoon. maybe a step by step tutorial, don't know anyway, i'll keep trying - Original Message - From: Luca Morandini [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 12, 2002 4:35 PM Subject: RE: cocoon web application Bogdan, may you take a look at the FAQ, first ? Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Bogdan Cirstea [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 3:22 PM To: [EMAIL PROTECTED] Subject: cocoon web application hi! i want to develop an web application based on cocoon technology. can anyone tell me which is the basic structure of such an application? i want to locate the application under other dir than tomcat/webapps/cocoon/my_application and i want to access with something like localhost:8080/my_application. what files do i have to modify and how ? i different sollutions but it didn't work. i used tomcat 4.0.1, cocoon 2.0.2, jdk1.3.1 under win2000. tks - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session attribute change within aggregation
Hello, Vadim thank you for your advice. It helped me. I was busy some time and had postponed this problem. Unfortunatelly it still remains. I've found out that WildcardSessionAttributeMatcher (I'm using Cocoon 2.0.1) doesn't see session attributes changed or created before in the same request by some xsp (I'm using aggregation of xsp and cocoon://somepattern which includes branch based on sessionstate matcher). It seems that objectModel are not up to date at the processing of WildcardSessionAttributeMatcher.getMatchString method. Is it a known problem? I've tested it so: first, I call an aggregation which first part is an xsp setting and printing session attribute isChanged and second part is call to a pipeline via cocoon protocol wich returns some data if sessionstate matcher recognize that isChanged is yes, otherwise calls xsp which prints a value of the session attribute isChanged: map:match pattern=read_filtered_results map:match type=sessionstate pattern=yes map:parameter name=attribute-name value=isChanged/ map:generate src=cocoon://read_query_results/ map:serialize type=xml/ /map:match map:generate src=cocoon://check_idlist_1.xsp/ map:serialize type=xml/ /map:match Despite the first xsp in aggregation _always_ sets the session attribute isChanged to yes or no (and first time it is yes), in the sitemap.log for the first call I always see: HttpProcessor[8080][4]/WildcardSessionAttributeMatcher: Session attribute 'isChanged' not set. Though the second xsp (check_id_list_1.xsp), which is called in this case, always prints correct value. So the problem is an organizing of a branch in sitemap according to a change of some session attribute calculated in xsp. Here isChanged attribute is just a flag. Thank you for any response. Roman Vadim Gritsenko wrote: Roman, Aggregation is being executed linearly, which means that first part is executed before second. If first part contains an XSP and that XSP is not cached, it could change session attribute which will be visible in the second part's XSP (if it is not cached) XSPs are not cacheable by default. PS Use System.outs or log/ to see how it (doesn't) works. Vadim From: KOZLOV Roman [mailto:[EMAIL PROTECTED]] Hi, Is it possible in Cocoon 2.01 to set session attribute within aggregation so that the change would be in a first part (xsp) and next part could use the new value of the changed attribute. It seems that the new value is not available for the rest parts of aggregation within the same request. If it is true, then how is it possible to make a branch comparing a request parameter's value with some session attribute's value? In particular, I'd like to store some parameter as a session attribute and if it is not changed then read query results stored as DOM in a session before, otherwise update query results. My xsp part of aggregation is the following: ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:session=http://apache.org/xsp/session/2.0; xmlns:util=http://apache.org/xsp/util/2.0; create-session=true page xsp:logic String idList = (String)xsp-request:get-parameter name=idList default=/; String idListOld = (String)session:get-attribute name=idList default=/; String isChanged = (idList.equals(idListOld))?no:yes; /xsp:logic session:set-attribute name=idListxsp:logicxsp:expridList/xsp:expr/xsp:logic/sessio n:set- attribute session:set-attribute name=isChangedxsp:logicxsp:exprisChanged/xsp:expr/xsp:logic/ sessio n:set-attribute idListxsp:logicutil:exprxsp:expridList/xsp:expr/util:expr/x sp:log ic/idList isChangedxsp:logicutil:exprxsp:exprisChanged/xsp:expr/util:ex pr/x sp:logic/isChanged /page /xsp:page The second part of aggregation calls the following via cocoon:// protocol: map:match pattern=read_filtered_results map:match type=sessionstate pattern=yes map:parameter name=attribute-name value=isChanged/ !-- Update filtered result -- map:generate src=cocoon://read_query_results/ map:serialize type=xml/ /map:match !-- if idList is not changed try to read stored filtered result -- map:match type=sessionstate pattern=** map:parameter name=attribute-name value=filtered_results/ !-- Read filtered result if it was already stored -- map:generate src=data/null.xml/ map:transform type=readDOMsession map:parameter name=dom-name value=filtered_results/ map:parameter name=trigger-element value=null/ map:parameter name=position value=in/ /map:transform map:serialize type=xml/ /map:match !-- Create filtered result if it was not stored before -- map:generate
Re: ESQL Oracle StoredProcedues
On 12.Apr.2002 -- 02:00 AM, Michael Raffenberg wrote: Hi, I am using C2.0.1 with JDK1.3.1 and TOmcat 4.0.3 I have problems with calling oracle stored procedures from ESQL. I have this simple Code: esql:execute-query esql:call {call sp_proc(esql:parameter direction=inout type=Stringbullshit/esql:parameter)} /esql:call esql:call-results esql:results esql:result esql:get-string column=1 from-call=true//esql:result /esql:results /esql:call-results /esql:execute-query ,followed by this error: Language Exception More precisely: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling Merci_Dics_xsp: Line 463, column -1: inconvertible types Line 0, column 0: Could you please show us the code around line 463? (Merci_Dics_xsp.java) 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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
making tree like structure using XML,XSP,XSL
Hi All, I have one function that connect to database and retrivedata in form ofHashtable. My Hashtablemay be like this. MsgID ParentID 1 0 2 0 3 0 4 0 5 1 6 1 7 6 8 7 9 2 102 115 125 Tree structure would be like this based on MsgID and ParentID MsgID will be the Id of a tag and parentid is the idofthe parentwith which it is linked. 1(parent0) | | ---5(child of 1) | |___11(child of 5) | |12(child of 5 and sibling of 11) 6(child of 1 and sibling of 5) | |7(child of 6) | |___8(child of 7) 2(parent 2) | |9(child of 2) | |10(child of 2) 3(parent 3) 4(parent 4) Like this I have to show dynamic tree like structure in HTML form.I am using cocoon2.0 This can be either handled by XSP or XSL or both. Please suggest me how to solve the recursive loop problem using XSL.. How can I apply logic to have dynamic tree structure building function based on the values of Hashtable keys and values. Pls suggest ideas. Thanks, Niket
Re: Excel needs filename?
This is is a known issue with various versions Internet Explorer. For some reason it ignores the mime type and goes right for the file extension. There are ways around this but none of them are pretty. Bascially you need to try and architect your solution to cause the filename to be something.xls. Generally query strings and the likes are fine. What I've often done on non-cocoon systems where I've had this problem was added a kludge to my action handler that would repost to an XLS which was mapped in my mime mappings (tomcat WEB-INF/web.xml) and post the criteria. This was the only solution that worked all the time. So far with cocoon, I've been mostly doing static files for testing or just hard coded criteria and have just used the sitemap mappings to do this. If anyone has any suggestions for improvements to the serializer that would make this easier let me know. (and let the patches fly) -Andy Vadim Gritsenko wrote: From: Shaw, Chris [mailto:[EMAIL PROTECTED]] correction: I got it working by adding the following line in my generator: response.setHeader(Content-Disposition, inline; filename=output.xls); ..but having to hard-code a parameter name in my generator as well as my sitemap leads to a potential consistency problem. Any better ideas? You can write an action, with two parameters: disposition and filename. Then you can reuse it for other types of files. Vadim TIA Chris -=-=- -Original Message- From: Shaw, Chris Sent: 11 April 2002 14:23 To: '[EMAIL PROTECTED]' Subject: Excel needs filename? Hi, I'm using the HSSFSerializer to generate an M$-Excel file The mime-type is set to: application/vnd.ms-excel When I use Netscape it works perfectly But when I use IE it doesn't recognise the mime-type - it instead tries to look at the filenameand the filename is basically junk. I searched the archives and found that I could use perhaps overcomes this by adding the following: response.setHeader(Content-Disposition, inline; filename=output); or: response.setHeader(Content-Disposition, attachment; filename=output.xls); (though the 2nd option doesn't work for me). However, I'm using my own generator to generate XML.always XML.and then I have an if statement in my sitemap to choose a different transfomerserializer (HTML, PDF, Excel etc) based upon an input parameter. My fallback solution is to also test for this parameter inside my generator and, if Excel was chosen, add this line as above. But this is a m-ugly solutionand not as easily maintainable What I can't understand is that my fo2pdf serializer doesn't have the same problem...this works 100% whether in IE or Netscape. I saw references in the mailing list archives about a link http://xml.apache.org/cocoon/faqs.html#faq-iepdfbug but the actual reference in question does not appear on this page (anymore) Does anyone have any more info and/or a better solution to the problem? TIA Chris Chris Shaw European Central Bank DG Information Systems * +49 (0) 69 1344 7764 * [EMAIL PROTECTED] Any e-mail message from the European Central Bank (ECB) is sent in good faith but shall neither be binding nor construed as constituting a commitment by the ECB except where provided for in a written agreement. This e-mail is intended only for the use of the recipient(s) named above. Any unauthorised disclosure, use or dissemination, either in whole or in part, is prohibited. If you have received this e-mail in error, please notify the sender immediately via e-mail and delete this e-mail from your system. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any e-mail message from the European Central Bank (ECB) is sent in good faith but shall neither be binding nor construed as constituting a commitment by the ECB except where provided for in a written agreement. This e-mail is intended only for the use of the recipient(s) named above. Any unauthorised disclosure, use or dissemination, either in whole or in part, is prohibited. If you have received this e-mail in error, please notify the sender immediately via e-mail and delete this e-mail from your system. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe,
RE: Session attribute change within aggregation
From: KOZLOV Roman [mailto:[EMAIL PROTECTED]] Hello, Vadim thank you for your advice. It helped me. I was busy some time and had postponed this problem. Unfortunatelly it still remains. I've found out that WildcardSessionAttributeMatcher (I'm using Cocoon 2.0.1) doesn't see session attributes changed or created before in the same request by some xsp XSP *cannot* create session attributes *before* action invocation in the *same* request because: --- XSP is executed *after* *all* actions, matchers, selectors. --- Request is being processed by sitemap in *two* steps: 1) Construct pipeline 2) Execute pipeline All matchers/selectors/actions are executed in step one; all generators/serializers/transformers are executed in step two. Hope this helps Vadim (I'm using aggregation of xsp and cocoon://somepattern which includes branch based on sessionstate matcher). It seems that objectModel are not up to date at the processing of WildcardSessionAttributeMatcher.getMatchString method. Is it a known problem? I've tested it so: first, I call an aggregation which first part is an xsp setting and printing session attribute isChanged and second part is call to a pipeline via cocoon protocol wich returns some data if sessionstate matcher recognize that isChanged is yes, otherwise calls xsp which prints a value of the session attribute isChanged: map:match pattern=read_filtered_results map:match type=sessionstate pattern=yes map:parameter name=attribute-name value=isChanged/ map:generate src=cocoon://read_query_results/ map:serialize type=xml/ /map:match map:generate src=cocoon://check_idlist_1.xsp/ map:serialize type=xml/ /map:match Despite the first xsp in aggregation _always_ sets the session attribute isChanged to yes or no (and first time it is yes), in the sitemap.log for the first call I always see: HttpProcessor[8080][4]/WildcardSessionAttributeMatcher: Session attribute 'isChanged' not set. Though the second xsp (check_id_list_1.xsp), which is called in this case, always prints correct value. So the problem is an organizing of a branch in sitemap according to a change of some session attribute calculated in xsp. Here isChanged attribute is just a flag. Thank you for any response. Roman ... - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session attribute change within aggregation
Thank you very much for the lesson. I'll try another way. Roman Vadim Gritsenko wrote: From: KOZLOV Roman [mailto:[EMAIL PROTECTED]] Hello, Vadim thank you for your advice. It helped me. I was busy some time and had postponed this problem. Unfortunatelly it still remains. I've found out that WildcardSessionAttributeMatcher (I'm using Cocoon 2.0.1) doesn't see session attributes changed or created before in the same request by some xsp XSP *cannot* create session attributes *before* action invocation in the *same* request because: --- XSP is executed *after* *all* actions, matchers, selectors. --- Request is being processed by sitemap in *two* steps: 1) Construct pipeline 2) Execute pipeline All matchers/selectors/actions are executed in step one; all generators/serializers/transformers are executed in step two. Hope this helps Vadim (I'm using aggregation of xsp and cocoon://somepattern which includes branch based on sessionstate matcher). It seems that objectModel are not up to date at the processing of WildcardSessionAttributeMatcher.getMatchString method. Is it a known problem? I've tested it so: first, I call an aggregation which first part is an xsp setting and printing session attribute isChanged and second part is call to a pipeline via cocoon protocol wich returns some data if sessionstate matcher recognize that isChanged is yes, otherwise calls xsp which prints a value of the session attribute isChanged: map:match pattern=read_filtered_results map:match type=sessionstate pattern=yes map:parameter name=attribute-name value=isChanged/ map:generate src=cocoon://read_query_results/ map:serialize type=xml/ /map:match map:generate src=cocoon://check_idlist_1.xsp/ map:serialize type=xml/ /map:match Despite the first xsp in aggregation _always_ sets the session attribute isChanged to yes or no (and first time it is yes), in the sitemap.log for the first call I always see: HttpProcessor[8080][4]/WildcardSessionAttributeMatcher: Session attribute 'isChanged' not set. Though the second xsp (check_id_list_1.xsp), which is called in this case, always prints correct value. So the problem is an organizing of a branch in sitemap according to a change of some session attribute calculated in xsp. Here isChanged attribute is just a flag. Thank you for any response. Roman ... - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
accessing session context from stylesheet
Hi all, I want to insert the session id to my URLs from within the stlyesheet and don't know how to access the context. I have seen a hint about the SessionValidationAction, but I just can't get it run. Has someone a nice tip or maybe some sample code how to achieve this? Thanks, Heike p.s. Sorry for repeating this question, but I didn't find a sufficient answer for this problem in the archives. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JdbcConnection.prepareStatement problem
I've been playing around with some basic SQL queries and generally finding it easy enough to do... managed to get connections to MySQL and Postgres, both locally and on remote machines. I've now tried connecting to MS SQL Server... ahem... and of course, I'm now having more problems. What I've done is taken the sql-page examples, and made a new datasource in the cocoon.xconf file that looks like this: jdbc logger=core.datasources.test name=test pool-controller max=10 min=5/ dburljdbc:weblogic:mssqlserver4:dbname@host_address:1433/dburl user/user password/password /jdbc The dbname, host_address etc, are real in my file... just obscured for discussion... and they definitely work since they were pasted verbatim from a simple JDBC test harness written in Java, and compiled and run on the same machine. The Driver is definitely available to Cocoon, because I added it to classpath in catalina.sh, and I was getting ClassNotFoundException before... My web.xml file has this in it: init-param param-nameload-class/param-name param-value org.hsqldb.jdbcDriver org.postgresql.Driver weblogic.jdbc.mssqlserver4.Driver /param-value /init-param and sitemap.xml has this in it: map:match pattern=mssql/* map:generate src=vxml/{1}.xml/ map:transform type=sql map:parameter name=use-connection value=test/ /map:transform map:transform src=vxml/xml-html.xsl/ map:serialize type=html/ /map:match and the url I access to get there is this: http://localhost:8080/cocoon/mssql/sql-page where sql-page.xml is: ?xml version=1.0? page xmlns:sql=http://apache.org/cocoon/SQL/2.0; titlePostgres test/title content paraQuerying stuff from my laptop with Postgres/para paraCurrently going through HyperSQL/para execute-query xmlns=http://apache.org/cocoon/SQL/2.0; query SELECT ServiceID FROM tblService /query /execute-query /content /page Once again, this query definitely works from my simple JDBC test harness, but not in cocoon... I found exactly 2 mentions of this problem before in the Cocoon archives (but for Postgres)... neither with an answer. I'm finding this pretty baffling... What could possibly be making this query fail? The Tomcat and Cocoon logs don't tell me anything that I can't already see from the Exception report. I can't seem to find where Cocoon puts the custom logger log files... any hints here? Anyone else had this problem? If so, I'd like to hear how you got around it. I'm betting it's something WAY simple that I'm missing, but just can't seem to make any difference... Exception report below: - org.apache.catalina.core.ApplicationF ilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.Applicat ionFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.Standard WrapperValve.invoke(StandardWrapperValve.java:243) ... etcetera... root cause java.lang.AbstractMethodError at org. apache.avalon.excalibur.datasource.Jd bcConnection.prepareStatement(JdbcConnection.java:172) at org.apache.cocoon.transformation. SQLTransformer$Query.execute(SQLTransformer.java:1014) at org.apache.cocoon.transformation. SQLTransformer.executeQuery(SQLTransformer.java:271) at org.apache.cocoon.transformation. SQLTransformer.endExecuteQueryElement(SQLTransformer.java:417) at org.apache.cocoon.transformation. SQLTransformer.endElement(SQLTransformer.java:702) at org.apache.cocoon.components.sax. XMLTeePipe.endElement(XMLTeePipe.java:124) at org.apache.xerces.parsers.Abstrac tSAXParser.endElement(AbstractSAXParser.java:568) at org.apache.xerces.impl.XMLNamespa ceBinder.handleEndElement(XMLNamespaceBinder.java:853) at org.apache.xerces.impl.XMLNamespa ceBinder.endElement(XMLNamespaceBinder.java:643) at org.apache.xerces.impl.dtd.XMLDTD Validator.handleEndElement(XMLDTDValidator.java:3006) at org.apache.xerces.impl.dtd.XMLDTD Validator.endElement(XMLDTDValidator.java:930) at org.apache.xerces.impl.XMLDocumen tFragmentScannerImpl.handleEndElement (XMLDocumentFragmentScannerImpl.java:1145) at org.apache.xerces.impl.XMLDocumen tFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:988) at org.apache.xerces.impl.XMLDocumen tFragmentScannerImpl$FragmentContentD ispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1446) at org.apache.xerces.impl.XMLDocumen tFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333) at org.apache.xerces.parsers.Standar dParserConfiguration.parse(StandardParserConfiguration.java:525) at org.apache.xerces.parsers.Standar dParserConfiguration.parse(StandardParserConfiguration.java:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147) at
RE: How to get HTML (not XHTML) from the HTMLSerializer (C2.0.1)
I thought br / was the classic tric for all elder browsers? Yes, per the XHTML spec itself: http://www.w3.org/TR/2001/WD-xhtml1-20011004/#guidelines in every case I do live under the impression that the html serializer will create br for you instead of br/ did you check your sitemap? It does not. Unless C2 as used in the demo WAR is setup to use a transformer other than Xalan. It's been a while since I went through the process of removing the samples/demos and getting C2 integrated into our EAR, so I may well have changed something in regards to the transformer factory and since forgotten. The only implementations available in the classpath are Xalan 2.3.1 and Xerces (a nightly drop from 2002.03.21) The problem is that Xalan considers serializations such br/ and input type=button/ to be correct for the output method html. That's their perogative I suppose, there's no standard for the methods equating to exact HTML versions. However, since C2's only (rather, primary) goal is to send content to browsers, I would expect it to provide a way to get that content there in a fashion that doesn't require all users to have IE5+ or a Mozilla derivative. Which is why I tend to lean towards the idea that I must be overlooking something. If I'm not, I hear that SAXON does this serialization in a backward-friendly way, and I've also noticed that Xalan has some non-TRAX API's for doing serialization that seem to have HTML 3.2 tags hard-coded inline. If there is no solution with the stock distro, I can wrap up one of the above in a custom serializer. I just thought I should make sure I wasn't (as usual) missing the obvious. Thanks for your help, -- Yuri Gadow 0x6D21BAAE - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Delete
Title: Re: Delete On 04/12/02 0:08, Daniel Fernandez [EMAIL PROTECTED] wrote: Si ves donde dice to unsubscribe, esa es la direccion a la que mandar mensajes. Alli es donde dejas la lista - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Carlos E. Araya ---+ WebCT Administrator/Trainer P | California Virtual Campus - | C/O De Anza College G | 21250 Stevens Creek Blvd ---+ Cupertino, CA 95014 email [EMAIL PROTECTED] web http://www.cvc1.org/ (work) http://www.silverwolf-net.net (personal) phone 408 257 0420 (work) PGP Fingerprint: E629 5DFD 7EAE 4995 E9D7 3D2F 5A9F 0CE7 DFE7 1756 Beta Test Version: Still too buggy to be released. Release Version: Alternate pronunciation of Beta Test Version.
Re: accessing session context from stylesheet
On Fri, 12 Apr 2002, Franosch, Heike wrote: I want to insert the session id to my URLs from within the stlyesheet and don't know how to access the context. I have seen a hint about the SessionValidationAction, but I just can't get it run. Has someone a nice tip or maybe some sample code how to achieve this? Quite possibly the wrong way of doing things, but I use an XSP to grab the relevant session details then aggregate them so they are available to use in the stylesheet. I'd be interested in hearing if there's a better way of doing it... Andrew. -- All views are my own who else would want them? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to get HTML (not XHTML) from the HTMLSerializer (C2.0.1)
On Friday 12 Apr 2002 17:24, Yuri Gadow wrote: in every case I do live under the impression that the html serializer will create br for you instead of br/ did you check your sitemap? It does not. I just tested this, Yuri (I'm using 2.0.2 with xerces/xalan as provided). Put br/ in xsl file. With html serializer, it outputs br; with xhtml serializer, it outputs br / (that's with a space). This is surely exactly what you want, isn't it? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: documentation for managers, was HP-SOAP Server announcement
On Friday 12 Apr 2002 12:43, Matthew Langham wrote: But you know, questions like: what business objectives does it help meet and how are really difficult to answer in a way that would suit all scenarios. I would certainly agree with that. Even trying to define what Cocoon is is not so simple. But then that's true of many useful things (such as computers, internet, electricity ...) Nevertheless, it has to be clear what the benefits of Cocoon are, i.e. why you would want to install it, and this has to be explained - together with the drawbacks - in a manner that non-specialists, especially decision-makers, can understand. That being said, I also think we need some form of Applied Cocoon - whether that be additional documentation such as best practices, tutorials. I consider 'applied' to be the key word there. Start from the objective (I want to publish my data in 5 languages on the web) and show how Cocoon can meet it and what it takes. To some extent, the existing samples do that, but the information is scattered around and it takes a lot of time to follow it all through - time which most of us simply don't have. I feel this will be something that is done on a per case basis. Tell me your problem and I will tell you how Cocoon (+ any additions) can solve it (assuming it can). meaning that Cocoon can only be implemented by specialist consultants working in an ad hoc manner? That doesn't sound like a very large install base to me. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: LanguageException error on startup (Coc2.0.2,Tomcat3.2.2)
I'm still seeing this error message about the sitemap although I see sitemap files in the work folder (buried in org.apache). Is there a way to put debug crumbs in the sitemap to write to the logs during generation to help me find out exactly what is causing the LanguageException: Could not load class for program 'org/apache/cocoon/www/sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap error? (shown below in most of it's entirety) I have XML/XSL files ready to deploy on the Linux server, but can't get Cocoon running... Linux 7.2 IBM Java 1.3 Tomcat 3.2.2 Cocoon 2.0.2 JBoss 2.4.3 Mark -Original Message- From: Mark S. Kent [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 10:27 AM To: [EMAIL PROTECTED] Subject: LanguageException error on startup (Coc2.0.2,Tomcat3.2.2) We are trying to start Cocoon 2.0.2 using Tomcat 3.2.2 and getting the following error upon the first attempted load of the default samples page: -- begin snip -- Cocoon 2 - Internal server error type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org/apache/cocoon/www/sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org/apache/cocoon/www/sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR esource(ProgramGeneratorImpl.java:335) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr ogramGeneratorImpl.java:291) at org.apache.cocoon.sitemap.Handler.run(Handler.java:270) at java.lang.Thread.run(Thread.java:498) org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org/apache/cocoon/www/sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap at org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProg ram(JavaLanguage.java:186) -- end snip -- The files in the webapps/cocoon folder are the originals from the build (no changes made). Can anyone help? I've checked the FAQ and install notes and followed the instructions and have provided a listing of tomcat/lib here: -rw-r--r--1 tomcat dev330474 May 28 2001 ant.jar -rw-r--r--1 tomcat dev217923 May 28 2001 jasper.jar -rw-r--r--1 root root 1808883 Apr 4 22:34 parser.jar -rw-r--r--1 tomcat dev 40810 May 28 2001 servlet.jar drwxr-xr-x3 tomcat dev 4096 Apr 9 09:58 test -rw-r--r--1 tomcat dev430434 May 28 2001 webserver.jar -rw-r--r--1 root root 108484 Apr 9 09:20 xml-apis.jar Is there any plans to create a true forum for these discussions as opposed to a mailing list? I'd prefer forums for ease of use (not to mention how much it cuts down on emails...) Mark - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: LanguageException error on startup (Coc2.0.2,Tomcat3.2.2)
From: Mark S. Kent [mailto:[EMAIL PROTECTED]] I'm still seeing this error message about the sitemap although I see sitemap files in the work folder (buried in org.apache). Is there a way to put debug crumbs in the sitemap to write to the logs during generation to help me find out exactly what is causing the LanguageException: Could not load class for program 'org/apache/cocoon/www/sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap error? (shown below in most of it's entirety) Look into the Cocoon log files, under tomcat/work/.../cocoon/ Chances are that cause exception is logged there. If this does not help... Do you have sitemap_xmap.class or only sitemap_xmap.java? Might be that sitemap_xmap.java was not generated correctly - take a look at it (or try to compile manually). Vadim I have XML/XSL files ready to deploy on the Linux server, but can't get Cocoon running... Linux 7.2 IBM Java 1.3 Tomcat 3.2.2 Cocoon 2.0.2 JBoss 2.4.3 Mark -Original Message- From: Mark S. Kent [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 10:27 AM To: [EMAIL PROTECTED] Subject: LanguageException error on startup (Coc2.0.2,Tomcat3.2.2) We are trying to start Cocoon 2.0.2 using Tomcat 3.2.2 and getting the following error upon the first attempted load of the default samples page: -- begin snip -- Cocoon 2 - Internal server error type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org/apache/cocoon/www/sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org/apache/cocoon/www/sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.cre ateR esource(ProgramGeneratorImpl.java:335) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa d(Pr ogramGeneratorImpl.java:291) at org.apache.cocoon.sitemap.Handler.run(Handler.java:270) at java.lang.Thread.run(Thread.java:498) org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org/apache/cocoon/www/sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap at org.apache.cocoon.components.language.programming.java.JavaLanguage.load Prog ram(JavaLanguage.java:186) -- end snip -- The files in the webapps/cocoon folder are the originals from the build (no changes made). Can anyone help? I've checked the FAQ and install notes and followed the instructions and have provided a listing of tomcat/lib here: -rw-r--r--1 tomcat dev330474 May 28 2001 ant.jar -rw-r--r--1 tomcat dev217923 May 28 2001 jasper.jar -rw-r--r--1 root root 1808883 Apr 4 22:34 parser.jar -rw-r--r--1 tomcat dev 40810 May 28 2001 servlet.jar drwxr-xr-x3 tomcat dev 4096 Apr 9 09:58 test -rw-r--r--1 tomcat dev430434 May 28 2001 webserver.jar -rw-r--r--1 root root 108484 Apr 9 09:20 xml-apis.jar Is there any plans to create a true forum for these discussions as opposed to a mailing list? I'd prefer forums for ease of use (not to mention how much it cuts down on emails...) Mark - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: LanguageException error on startup (Coc2.0.2,Tomcat3.2.2)
I've got a sitemap_xmap.java and .class: 79221 Apr 12 14:29 sitemap_xmap.class 15470 Apr 12 14:29 sitemap_xmap$Configurer.class 339625 Apr 12 14:29 sitemap_xmap.java Contents of ERROR.LOG: - begin --- ERROR (2002-04-12) 14:29.25:556[sitemap](/cocoon/documentation/) Thread-13/Handler: Error compiling sitemap org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for pro gram 'org/apache/cocoon/www/sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR esource(ProgramGeneratorImpl.java:335) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr ogramGeneratorImpl.java:291) at org.apache.cocoon.sitemap.Handler.run(Handler.java:270) at java.lang.Thread.run(Thread.java:498) org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org/apache/cocoon/www/sitemap_xmap' due to a java.lan g.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap at org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProg ram(JavaLanguage.java:186) at org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag e.load(CompiledProgrammingLanguage.java:201) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat eResource(ProgramGeneratorImpl.java:383) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR esource(ProgramGeneratorImpl.java:328) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr ogramGeneratorImpl.java:291) at org.apache.cocoon.sitemap.Handler.run(Handler.java:270) at java.lang.Thread.run(Thread.java:498) org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org/apache/cocoon/www/sitemap_xmap' due to a java.lan g.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap at org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProg ram(JavaLanguage.java:186) at org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag e.load(CompiledProgrammingLanguage.java:201) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat eResource(ProgramGeneratorImpl.java:383) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR esource(ProgramGeneratorImpl.java:328) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr ogramGeneratorImpl.java:291) at org.apache.cocoon.sitemap.Handler.run(Handler.java:270) at java.lang.Thread.run(Thread.java:498) ERROR (2002-04-12) 14:29.25:631[access](/cocoon/documentation/) Thread-13/CocoonServlet: Problem with servlet org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for pro gram 'org/apache/cocoon/www/sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR esource(ProgramGeneratorImpl.java:335) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr ogramGeneratorImpl.java:291) at org.apache.cocoon.sitemap.Handler.run(Handler.java:270) at java.lang.Thread.run(Thread.java:498) org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org/apache/cocoon/www/sitemap_xmap' due to a java.lan g.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap at org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProg ram(JavaLanguage.java:186) at org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag e.load(CompiledProgrammingLanguage.java:201) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat eResource(ProgramGeneratorImpl.java:383) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR esource(ProgramGeneratorImpl.java:328) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr ogramGeneratorImpl.java:291) at org.apache.cocoon.sitemap.Handler.run(Handler.java:270) at java.lang.Thread.run(Thread.java:498) org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org/apache/cocoon/www/sitemap_xmap' due to a java.lan g.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap at org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProg ram(JavaLanguage.java:186) at org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag e.load(CompiledProgrammingLanguage.java:201) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
Re: accessing session context from stylesheet
From: Andrew Savory [EMAIL PROTECTED] On Fri, 12 Apr 2002, Franosch, Heike wrote: I want to insert the session id to my URLs from within the stlyesheet and don't know how to access the context. I have seen a hint about the SessionValidationAction, but I just can't get it run. Has someone a nice tip or maybe some sample code how to achieve this? Quite possibly the wrong way of doing things, but I use an XSP to grab the relevant session details then aggregate them so they are available to use in the stylesheet. I'd be interested in hearing if there's a better way of doing it... This is the easiest approach, and not wrong per se. But when this kind of problem arises, I usually ask myself: 1. Why do I need it in the stylesheet? 2. Is my stylesheet for -style- or am I programming with it? 3. Can't I resolve this problem once and for all during Generation? 4. Isn't this better solved with a Transformer, since it requires coding? There is not one and only answer, as in Cocoon you can do the same thing in different ways. But a simple hint is to try to do all in Generation, add the absolute necessary with Transformers and use stylesheets only to change format-style, not to code. It will make your system more manageable and reusable, since it removes the dependencies between Components. If you need a specific thing to happen in Generation for the Transformation to work, you are making code reuse much harder. -- 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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon 2.1-dev + JRun 4.0RC
Hi there, I hope I don't bother you with this short info about above subject. I tried to install the latest developer snapshot on a Windows XP system with Sun JDK1.4 in combiniation with the release candidate of JRun 4.0. It worked without any problems so far. The one and only problem was til now that I created the endorsed directory in my JAVA_HOME/jre/lib path and copied some libraries as mentioned in the cocoon installation manual. This will keep JRun 4.0 away from doing its job, it's not working anymore, a conflict in one of the used libraries, will try to figure out which one. Maybe you find this information useful. Keep on cocooning. --Michael - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Livesites
I would appreciate it if this site got listed in the Cocoon2 livesites list. URL: http://www.OWAL.co.uk/ Software: Cocoon2 The site is fairly simple but is designed to be easy to update. It includes a pdf brochure containing most of the website in one easily printable document. It is static rather than dynamically generated for speed reasons. The site is combined with non Cocoon/java technology as it uses the popular slashcode software for its latest news. Alex McLintock Openweb Analysts Ltd, London: Software For Complex Websites http://www.OWAL.co.uk/ Free Consultancy for London Companies thinking of Open Source Software. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with XSP when upgrading 1.8.2 - 2.0.2
I have looked in the mailing lists, to no avail, please forgive me if these questions have been answered already I have upgraded Cocoon 1.8.2 to Cocoon 2.0.2. Here's my setup: Cocoon 2.0.2 Weblogic 6.0sp2 Solaris 2.6 (Sparc) I have successfully installed C2, all the samples work, etc. but I am having a problem getting my logicsheets to work. I am having 2 separate problems: Problem 1: Transition from DOM to SAX In my logicsheets I have a number of places where I dynamically insert an XML document, then use the DOM API to access values of specific nodes. I have come to realize that since C2 uses SAX, I can no longer do this. Here's an example: String name = "Joe"; NodeList ca = document.getElementsByTagName( "employee" ); if (ca != null ) { Element element = null; StringmyAttr = ""; int length = ca.getLength(); for (int j = 0; j lt;length; j++) { element = (Element) ca.item(j); myAttr = element.getAttribute( "name" ); if ( !myAttr.equals(name ) ) continue; myValue = element.getAttribute( "value" ); break; } } So if I have the following XML fragment: employee name="John" value="23"/ employee name="Jack" value="34"/ employee name="Joe" value="45"/ employee name="Joanne" value="56"/ employee name="Jimmy" value="67"/ I want the value "45". How would I do this with SAX? Problem 2: request and response using C2 specific implementation, rather than javax.servlet.http.HttpRequest and javax.servlet.http.HttpResponse I use some EJB's which have methods that take the built-in XSP variables 'request' and 'response' as params. It does not work now. Is there a way to cast org.apache.cocoon.environment.Request as javax.servlet.http.HttpRequest (and likewise for Response), or is there a better way to do it? I would like to avoid having to modify the EJBs, which at this point would be a Hurculean task. Sorry if these don't seem to be Cocoon 2 questions, but I was thinking maybe some of you have similar problems. Thanks in advance... William Bagby.
Re: documentation for managers, was HP-SOAP Server announcement
On Fri, 12 Apr 2002, Peter Robins wrote: meaning that Cocoon can only be implemented by specialist consultants working in an ad hoc manner? That doesn't sound like a very large install base to me. It's the same with any new technology - it takes a while for a body of work to build up, and for documentation and examples to mature. Cocoon 2 is relatively young still, and until the books come out and the rough edges are knocked off by increasing use and refactoring, it will have a steep learning curve for new adopters. Linux used to be a beast to install, configure and use, and look where that is now ;-) Andrew. -- Andrew SavoryEmail: [EMAIL PROTECTED] Managing Director Tel: +44 (0)870 741 6658 Luminas Internet Applications Fax: +44 (0)870 28 47489 This is not an official statement or order.Web:www.luminas.co.uk - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: LanguageException error on startup (Coc2.0.2,Tomcat3.2.2)
From: Mark S. Kent [mailto:[EMAIL PROTECTED]] I've got a sitemap_xmap.java and .class: 79221 Apr 12 14:29 sitemap_xmap.class 15470 Apr 12 14:29 sitemap_xmap$Configurer.class 339625 Apr 12 14:29 sitemap_xmap.java Contents of ERROR.LOG: Please look into other log files as well. Might be of help. Vadim - begin --- ERROR (2002-04-12) 14:29.25:556[sitemap](/cocoon/documentation/) Thread-13/Handler: Error compiling sitemap org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for pro gram 'org/apache/cocoon/www/sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.cre ateR esource(ProgramGeneratorImpl.java:335) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa d(Pr ogramGeneratorImpl.java:291) at org.apache.cocoon.sitemap.Handler.run(Handler.java:270) ... - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to get HTML (not XHTML) from the HTMLSerializer (C2.0.1)
On Fri, 2002-04-12 at 12:13, Peter Robins wrote: On Friday 12 Apr 2002 17:24, Yuri Gadow wrote: in every case I do live under the impression that the html serializer will create br for you instead of br/ did you check your sitemap? It does not. I just tested this, Yuri (I'm using 2.0.2 with xerces/xalan as provided). Put br/ in xsl file. With html serializer, it outputs br; with xhtml serializer, it outputs br / (that's with a space). This is surely exactly what you want, isn't it? Precisely. That's great news, that it's possible. So I just have to figure out what's different about my set-up. Thanks. -- Yuri Gadow 0x6D21BAAE - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
My First Cocoon Question!!
Dear Cocooners, Hi, I want to use cocoon to query MS Access database and want to get the query results in xml as output. I have setup the database driver in web.xml init-param and have made all satisfactory changes. The only decision problem i am facing is that should i write xsl file that states the SQL query but there is no xml file to tranform. or should i approach any other method. Any idea or help will be greatly appreciated. Thanks alot to all Irfan _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]