New name of the input-module name=URI/...
Hi, I am using 2.1 (lastest CVS): What is the new name of input-module name=URI/? I have in the sitemap: map:matcher logger=sitemap.matcher.modular.non-cached name=uri src=org.apache.cocoon.matching.modular.WildcardMatcher input-module name=URI/ /map:matcher map:matcher logger=sitemap.matcher.modular.cached name=cached-uri src=org.apache.cocoon.matching.modular.CachingWildcardMatcher input-module name=URI/ /map:matcher And the input-module URI always throw in the error.log: ERROR (2002-10-31) 05:13.19:876 [sitemap.matcher.modular.cached] (/multipremios/images/menu/fons_off.gif) Thread-8/CachingWildcardMatcher: A problem occurred setting up 'URI': Selector is not null, Component is unknown Thanks in advance, Antonio Gallardo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamically add transformer to sitemap
Hello Robert, what about an action, which retrieves the stylesheet path (or name) and returns it to the sitemap. I can't think of other ways, especially xsl:include/ is evaluated on compile time, not run time like variables. Regards, Joerg Robert Sösemann wrote: Question: --- Is it possible to dynamically add a certain transformer to the sitemap pipeline later dependant on generated xml content? Background: - My cocoon app generates website from content in a Mysql DB. In my sitemaps pipeline there is an xsp generator which gets the DB raw data. Every article in my DB has an attribute src which is a path to a xsl which should later style my article. This is how the result of the xsp look like: ?xml version=1.0 encoding=UTF-8? seite xmlns:xspdoc=http://apache.org/cocoon/XSPDoc/v1; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp=http://apache.org/xsp; rahmen laschen oberrubrik=service unterrubrik=recht /laschen inhalt artikel id=1 stylesheet=toArticle.xsl - here is the file name /artikel /inhalt rechts/ footer/ /rahmen /seite Can I bring cocoon to add a transformer to the sitemap pipeline with excately that generated filename as src? Or can I do it with xsl:include without cocoon? R.S. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XMLForms vs Struts
Hy; First let me tell you: I like the idea of merging cocoon and struts, because i see both technologies to be helpfull also in conjunction... Omar Tazi wrote: If you like the MVC aspect in Struts and like the flexibility provided by XML/XSLT, and don't like the limitations that come with JSPs, check out our Framework. It's called OXF (Open XML Framework). OXF is the result of our combined passion for Cocoon and Struts/J2EE and our involvement in huge enterprise projects. It will dramatically help you in your tasks (listed below). Good luck! But i am also a bit confused. I'm following the discussons in this mailing list for about a week now and this is already the second mentioning of a product/component (whatever) that claims to be an on top of cocoon development. But when i enter the pages mentioned above, it is very hard to find the backpointers to cocoon as the base component... Despite that all this stuff sounds very interesting, but i get more and more unshure how to proceed. Some questions rise in my mind: 1.) Why are all such nice and nifty add ons developed all outside of cocoon ? 2.) When i move to such an add on component, how can i enshure to keep up with the releases of cocoon (taking adavantage of the enhancements done there)? 3.) Why can't i find pointers to these add ons from the cocoon pages ? There is sooo many good software around the world and cocoon for me is one of the finest. Why does not all this effort take place at the heart but is cluttered around in several loosely coupled or even uncoupled add on projects ??? And now my final question (to come back to the technical part): Why is it so complicated to use struts and cocoon in parallel? As far as i understand the concepts of cocoon, i can embed JSP's in it's workflow, and if a jsp itself uses struts, why not??? Although i haven't tried yet, for me these things seem to be coexisting without problems ... Any enlightments on these points are happily welcome... best regards, Hussayn -- Dr. Hussayn Dabbous SAXESS Software Design GmbH Neuenhöfer Allee 125 50935 Köln Telefon: +49-221-56011-0 Fax: +49-221-56011-20 E-Mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
directory generator - sorting parameter works?
Hi, I've been trying to get a sorted file listing from the directory generator. Here's my sitemap snippet: map:match pattern=dynamic/**_dir.xml map:generate type=directory src=dynamic/{1} map:parameter name=sort value=name/ /map:generate map:serialize type=xml/ /map:match But there's no sorting. All sugestions welcome! KR, Sanne - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: serialize svg2wbmp?
Hello Torsten and many thanks for your response. I use to convert a graph, it is yet coloured but I can change without problem. Also only lines and texts. We don't have to use cocoon absolutely, so if you can explain me how do you use your soft it will be a great help for me. Thank and have a good day. François - Original Message - From: Torsten Knodt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 30, 2002 11:52 AM Subject: Re: serialize svg2wbmp? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Francois, Is thers one svg2wbmp (for wap) serializer? Or How can I do to convert my SVG files that I create from XML to WBMP? I have written a batik serializer, which seems to work. I haven't tested it with cocoon so far, but it should work. I haven't published it yet, as I'm working on some transcoder infrastructure for batik, which I need (problem is my time for this). Currently, you have to adapt the sources for your needs. So some questions. What kind of svg do you want to convert? Is it a drawing or an image? How many colors do you need? Is it grayscale or coloured? Do you use colour fadings? ... When I have your answers, I'll send you my current version with some hints what you need to change. With kind regards Torsten Knodt -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE9v7njvxZktkzSmiwRAry5AJsF3ecgOnCiKxRG/d6CPmvrj9yCOgCgh4jM sMpsBZBCZ7Px/Z8JH5cGzjA= =89Ot -END PGP SIGNATURE- - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: authentication frustration
Sir, I understand your frustration. We have been trying to get authentication using that sunRise stuff for over a month now. One goes down the primrose path only to find absolutely nothing - that is called frustration. Actually, I believe that there is something that we have set incorrectly. But, we do not have enough of visibility into the process to determine where we have gone astray. We are still digging, but we are continuing to get more of nothing. And you know how that feels. Ray -Original Message- From: Bert Van Kets [mailto:bert;vankets.com] Sent: Wednesday, October 30, 2002 8:45 AM To: [EMAIL PROTECTED] Subject: Re: authentication frustration Carsten, Any idea when this will be solved? Bert At 14:16 30/10/2002 +0100, you wrote: apparently it does :( Any solution around this? How can I call the data in the session context in a pipeline that's called from another pipeline??? I'm about to throw my PC out the window! Bert At 14:44 30/10/2002 +0200, you wrote: Could this happen due to this bug: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12293 ? Just a guess... -Tuomo On Wed, 30 Oct 2002, Bert Van Kets wrote: I'm trying to create a form that gives the authenticated user access to his data in the database. I'm using the sunRise authentication in a CVS build form 14 May 2002 with tomcat 4.0.1 and jDK 1.3.1_2 on win2K. A pipeline aggregates all the necessary data to present the page. One part of this aggregation is a call to a pipeline that generates the xhtm form containing the user data. When I call the pipeline that generates the xhtml form directly I get the correct content. When I call the full page, I get a nullpointer error on the above pipeline. very strange. Commenting out the form pipeline gives me the page without errors, but with no actual content. When I replace the call to the pipeline with a call to a file I created by saving the output from calling the form creation pipeline directly, I get a correct full page. The pipeline that generates the user data xhtml form uses the xsp-session:getxml tag (the latest version) to get the user ID from the session context. Replacing this tag with the ID itself gives me a correct page. So my guess is that the error is somehow related to that tag. Here's some data: the pipelines: map:match pattern=members/memberdata.xml map:generate type=serverpages src=system/members/getmemberdata.xsp/ map:transform src=test/memberpresentation.xsl/ map:serialize type=xml/ /map:match map:match pattern=members/memberdata.html map:aggregate element=fullpage map:part src=cocoon:/members/top-memberdata/ map:part src=cocoon:/members/menu-memberdata.xml/ map:part src=cocoon:/loginform/ map:part src=cocoon:/members/memberdata.xml/ /map:aggregate map:transform src=stylesheets/members/fullpage.xsl/ map:serialize type=html/ /map:match The part from the xsp page that generates the user data: esql:connection esql:poolbvar/esql:pool esql:execute-query esql:querySELECT * FROM members WHERE ID=esql:parameter type=intxsp:exprInteger.parseInt(xsp-session:getxml context=authentication path=/authentication/ID as=string/)/xsp:expr/esql:parameter/esql:query esql:results esql:row-results esql:get-columns/ /esql:row-results /esql:results /esql:execute-query /esql:connection I'm almost banging my head on the wall with frustration. What is the difference between calling a pipeline directly and calling the pipeline from the sitemap that can cause a nullpointer error??? The logs show nothing useful. I've been going through them for about an hour now. Please help me, I'm on a deadline and really need this functionality; Bert This mail is written in 100% recycled electrons. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Slide with Cocoon 2
On Wednesday, Oct 30, 2002, at 17:06 Europe/London, Stephan Michels wrote: Currently the form param that holds the 'method' to be used in the MultiAction is called 'method', is this not a reserved param name for a request? ie. it would always return the HTTP method? The problem was name of the input module.. I used {request:bla} instead of {request-param:bla}. So the example should work now. Have fun, Stephan Michels. Dear Stephan, Many thanks for fixing this! I can log in now, create a collection and upload files! But I am even more confused now ;) 'Off the Shelf' slide.xconf is set up to use the FileContentStore to store content in $CATALINA_HOME/contentstore (as I understand it), but I never see any files or folders there . then when I restart TomCat, log back into cocoon/samples/slide an I have nothing in the repository. :-} What I am hoping to achieve is to have a file store that can be: a) Accessed for file editing via WebDAV, using normal desktop apps like TurboXML or XMLMind, hopefully with versioning. b) Served from the store by my Cocoon pipelines for normal users to view the site c) Managed via your samples/slide interface Am I on the right track here? I promise to write a 'How-to' on this if I can make this work! But I am a bit of a newbie to webDAV so I might need some help ;) many thanks regards Jeremy - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: authentication frustration
-Original Message- From: Bert Van Kets [mailto:bert;vankets.com] Sent: Wednesday, October 30, 2002 2:45 PM To: [EMAIL PROTECTED] Subject: Re: authentication frustration Carsten, Any idea when this will be solved? I don't want to be ironical, but there are two possibilities to fix it: a) I do it, as soon as I get time (and this will not happen in the next 5 weeks, I guess) b) Someone else diggs into the code and fixes it. So if a) is the solution, I hope by the end of the year :(, but of course before 2.1 is out! Sorry, Carsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon 2.1 Authentication Samples
-Original Message- From: Mathias Ochsendorf [mailto:matze;ochsendorf.net] Sent: Wednesday, October 30, 2002 3:38 PM To: [EMAIL PROTECTED] Subject: RE: Cocoon 2.1 Authentication Samples Hmm, strange... ok, can you please have a look at the logs and find the exception which is the cause for the IllegalStateException. Because the IllegalStateException is only a follow up exception I guess (hope :) ). okay, here it is. Cocoon isn't able to log anything. tomcat (4.04)catches the exception: .. Is there nothing else in any other log? Carsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New name of the input-module name=URI/...
On 31.Oct.2002 -- 02:41 AM, Antonio Gallardo Rivera wrote: Hi, I am using 2.1 (lastest CVS): What is the new name of input-module name=URI/? I have in the sitemap: map:matcher logger=sitemap.matcher.modular.non-cached name=uri src=org.apache.cocoon.matching.modular.WildcardMatcher input-module name=URI/ /map:matcher map:matcher logger=sitemap.matcher.modular.cached name=cached-uri src=org.apache.cocoon.matching.modular.CachingWildcardMatcher input-module name=URI/ /map:matcher And the input-module URI always throw in the error.log: ERROR (2002-10-31) 05:13.19:876 [sitemap.matcher.modular.cached] (/multipremios/images/menu/fons_off.gif) Thread-8/CachingWildcardMatcher: A problem occurred setting up 'URI': Selector is not null, Component is unknown It's still there but not added to cocoon.xconf by default anymore. Just add it to cocoon.xconf again it use it. In the long run, consider switching to request which is a jxpath based module making all of the request object's properties available. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New name of the input-module name=URI/...
Thanks Chris. Can I remove it? Antonio Gallardo. El Jueves, 31 de Octubre de 2002 05:10, Christian Haul escribió: On 31.Oct.2002 -- 02:41 AM, Antonio Gallardo Rivera wrote: Hi, I am using 2.1 (lastest CVS): What is the new name of input-module name=URI/? I have in the sitemap: map:matcher logger=sitemap.matcher.modular.non-cached name=uri src=org.apache.cocoon.matching.modular.WildcardMatcher input-module name=URI/ /map:matcher map:matcher logger=sitemap.matcher.modular.cached name=cached-uri src=org.apache.cocoon.matching.modular.CachingWildcardMatcher input-module name=URI/ /map:matcher And the input-module URI always throw in the error.log: ERROR (2002-10-31) 05:13.19:876 [sitemap.matcher.modular.cached] (/multipremios/images/menu/fons_off.gif) Thread-8/CachingWildcardMatcher: A problem occurred setting up 'URI': Selector is not null, Component is unknown It's still there but not added to cocoon.xconf by default anymore. Just add it to cocoon.xconf again it use it. In the long run, consider switching to request which is a jxpath based module making all of the request object's properties available. Chris. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: authentication frustration
k, Thanks Carsten. I really respect your work and understand you have other priorities at the moment. I too will be very hard at work on a SAP project from November 18th till February 2003. I will be developing iViews for the SAP Enterprise Portal. One of the things I'll be testing is integrating Cocoon in an iView. Should be interesting, specially with the web3 component (i got running BTW). I got a workaround by storing the user data in a session attribute and get the data from there. It's dirty, but it works. I hope I will learn enough on Cocoon's components at my next project to start delving into the code myself. I'm sure your book will come in handy. ;-) Man, I can't wait till Cocoon version 2.1 so I can safely upgrade my applications. Thanks for all the work and suport. Bert At 12:10 31/10/2002 +0100, you wrote: -Original Message- From: Bert Van Kets [mailto:bert;vankets.com] Sent: Wednesday, October 30, 2002 2:45 PM To: [EMAIL PROTECTED] Subject: Re: authentication frustration Carsten, Any idea when this will be solved? I don't want to be ironical, but there are two possibilities to fix it: a) I do it, as soon as I get time (and this will not happen in the next 5 weeks, I guess) b) Someone else diggs into the code and fixes it. So if a) is the solution, I hope by the end of the year :(, but of course before 2.1 is out! Sorry, Carsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon 2.1 Authentication Samples
Can you upgrade to Tomcat 4.1.12? I am using the authentication with the lastest CVS 2.1 and every thing works fine. Try to build two times with: ./build.sh -Dinclude.webapp.libs=true \ -Dinclude.scratchpad.libs=true webapp ./build.sh -Dinclude.webapp.libs=true \ -Dinclude.scratchpad.libs=true -Dinstall.war=/my/route/to//jakarta-tomcat-4.1.12-LE-jdk14/webapps installwar Any way there in the 4.0.1 there are some security bugs. Antonio Gallardo. El Jueves, 31 de Octubre de 2002 05:12, Carsten Ziegeler escribió: -Original Message- From: Mathias Ochsendorf [mailto:matze;ochsendorf.net] Sent: Wednesday, October 30, 2002 3:38 PM To: [EMAIL PROTECTED] Subject: RE: Cocoon 2.1 Authentication Samples Hmm, strange... ok, can you please have a look at the logs and find the exception which is the cause for the IllegalStateException. Because the IllegalStateException is only a follow up exception I guess (hope :) ). okay, here it is. Cocoon isn't able to log anything. tomcat (4.04)catches the exception: .. Is there nothing else in any other log? Carsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: authentication frustration
The problem is caused by the bug described below. A workaround is to add the user data to a session attribute and use that one when the data is needed. The context data is only used by the authentication actions :-( I have a site running with authentication by mySQL database for a member section. On top of this I'm running the portal with xml file authentication. The coplets in the portal give access to the content of the different files of the site. It's actually used as a CMS. The CMS is used by only a handful of people and only one person can access a certain part at the same time. So there is not need for file locking and such and the SourceWritingTransfomer can safely be used. Bert At 06:02 31/10/2002 -0500, you wrote: Sir, I understand your frustration. We have been trying to get authentication using that sunRise stuff for over a month now. One goes down the primrose path only to find absolutely nothing - that is called frustration. Actually, I believe that there is something that we have set incorrectly. But, we do not have enough of visibility into the process to determine where we have gone astray. We are still digging, but we are continuing to get more of nothing. And you know how that feels. Ray -Original Message- From: Bert Van Kets [mailto:bert;vankets.com] Sent: Wednesday, October 30, 2002 8:45 AM To: [EMAIL PROTECTED] Subject: Re: authentication frustration Carsten, Any idea when this will be solved? Bert At 14:16 30/10/2002 +0100, you wrote: apparently it does :( Any solution around this? How can I call the data in the session context in a pipeline that's called from another pipeline??? I'm about to throw my PC out the window! Bert At 14:44 30/10/2002 +0200, you wrote: Could this happen due to this bug: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12293 ? Just a guess... -Tuomo On Wed, 30 Oct 2002, Bert Van Kets wrote: I'm trying to create a form that gives the authenticated user access to his data in the database. I'm using the sunRise authentication in a CVS build form 14 May 2002 with tomcat 4.0.1 and jDK 1.3.1_2 on win2K. A pipeline aggregates all the necessary data to present the page. One part of this aggregation is a call to a pipeline that generates the xhtm form containing the user data. When I call the pipeline that generates the xhtml form directly I get the correct content. When I call the full page, I get a nullpointer error on the above pipeline. very strange. Commenting out the form pipeline gives me the page without errors, but with no actual content. When I replace the call to the pipeline with a call to a file I created by saving the output from calling the form creation pipeline directly, I get a correct full page. The pipeline that generates the user data xhtml form uses the xsp-session:getxml tag (the latest version) to get the user ID from the session context. Replacing this tag with the ID itself gives me a correct page. So my guess is that the error is somehow related to that tag. Here's some data: the pipelines: map:match pattern=members/memberdata.xml map:generate type=serverpages src=system/members/getmemberdata.xsp/ map:transform src=test/memberpresentation.xsl/ map:serialize type=xml/ /map:match map:match pattern=members/memberdata.html map:aggregate element=fullpage map:part src=cocoon:/members/top-memberdata/ map:part src=cocoon:/members/menu-memberdata.xml/ map:part src=cocoon:/loginform/ map:part src=cocoon:/members/memberdata.xml/ /map:aggregate map:transform src=stylesheets/members/fullpage.xsl/ map:serialize type=html/ /map:match The part from the xsp page that generates the user data: esql:connection esql:poolbvar/esql:pool esql:execute-query esql:querySELECT * FROM members WHERE ID=esql:parameter type=intxsp:exprInteger.parseInt(xsp-session:getxml context=authentication path=/authentication/ID as=string/)/xsp:expr/esql:parameter/esql:query esql:results esql:row-results esql:get-columns/ /esql:row-results /esql:results /esql:execute-query /esql:connection I'm almost banging my head on the wall with frustration. What is the difference between calling a pipeline directly and calling the pipeline from the sitemap that can cause a nullpointer error??? The logs show nothing useful. I've been going through them for about an hour now. Please help me, I'm on a deadline and really need this functionality; Bert This mail is written in 100% recycled electrons. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail:
Re: XLS serializer and non-english characters
On Wed, 16 Oct 2002 16:35:04 +0400 Yury Mikhienko [EMAIL PROTECTED] wrote: On 16 Oct 2002 07:16:29 -0400 Andrew C. Oliver [EMAIL PROTECTED] wrote: There is a minor problem I have not had time to correct yet. encoding is an attribute, but if its set the serializer should check that its non-us/uk/aus and in that case set encoding to 16-bit. However currently it just assumes 8-bit. I'm under a mountain of to-dos but thats at the top of my cocoon list. -Andy Sorry about the question, but is it fixed now? -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon 2.1 Authentication Samples
Is there nothing else in any other log? nothing else either in the tomcat log files nor in cocoon. -- Mathias Ochsendorf www: www.ochsendorf.net | www.ochsendorf.de ICQ: 68556900 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon 2.1 Authentication Samples
Can you upgrade to Tomcat 4.1.12? I am using the authentication with the lastest CVS 2.1 and every thing works fine. yes with tomcat 4.1.12 everything works fine. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Logicsheet - condition
Hello all users, I have one easy example, which doesn't work. I look at it for a long time and I don't know if I made some Important mistake in codewriting or why id didn't work L I made a own logicsheet xsp-formfun like this: ?xml version=1.0 encoding=ISO-8859-1? xsl:stylesheet version=1.0 xmlns:xsp=http://apache.org/xsp xmlns:xsp-formfun=http://apache.org/xsp/form-function xmlns:xsl=http://www.w3.org/1999/XSL/Transform xsl:variable name=prefixxsp-formfun/xsl:variable xsl:template match=xsp:page xsl:copy xsl:apply-templates select=@*/ xsl:apply-templates/ /xsl:copy /xsl:template xsl:template match=xsp-formfun:check xsl:variable name=tempname xsl:copy-of select=name/ /xsl:variable xsl:choose xsl:when test=normalize-space($tempname)='true' ONEtrue /xsl:when xsl:otherwise ONEfalse /xsl:otherwise /xsl:choose TEMPNAME:xsl:copy-of select=$tempname/ /xsl:template !-- This template simply copies stuff that doesn't match other -- !-- templates and applies templates to any children. -- xsl:template match=@*|node() priority=-1 xsl:copy xsl:apply-templates select=@*|node()/ /xsl:copy /xsl:template /xsl:stylesheet In .XSP I have these lines: xsp-formfun:check namexsp-request:get-parameter name=visited//name /xsp-formfun:check And I know, that variable visibled has a true value, but by the calling xsp-formfun:check the both variables Name and also $tempname has also true value (I see it in the output window), but the contition is never passed - only the xsl:otherwise part. Do you know why and which type of mistake I did? Thanx a lot. Jaroslav Kazmir - JaroslavKazmir Institute of Information Systems Information Management JOANNEUM RESEARCH Forschungsgesellschaft mbH Steyrergasse 17, A-8010 Graz, AUSTRIA phone: +43-316-876-1140 fax: +43-316-876-1191 web: http://iis.joanneum.at e-mail: mailto:[EMAIL PROTECTED] -
Re: New name of the input-module name=URI/...
On 31.Oct.2002 -- 05:22 AM, Antonio Gallardo Rivera wrote: Thanks Chris. Can I remove it? Antonio, remove what? Antonio Gallardo. El Jueves, 31 de Octubre de 2002 05:10, Christian Haul escribió: On 31.Oct.2002 -- 02:41 AM, Antonio Gallardo Rivera wrote: Hi, I am using 2.1 (lastest CVS): What is the new name of input-module name=URI/? I have in the sitemap: map:matcher logger=sitemap.matcher.modular.non-cached name=uri src=org.apache.cocoon.matching.modular.WildcardMatcher input-module name=URI/ /map:matcher map:matcher logger=sitemap.matcher.modular.cached name=cached-uri src=org.apache.cocoon.matching.modular.CachingWildcardMatcher input-module name=URI/ /map:matcher And the input-module URI always throw in the error.log: ERROR (2002-10-31) 05:13.19:876 [sitemap.matcher.modular.cached] (/multipremios/images/menu/fons_off.gif) Thread-8/CachingWildcardMatcher: A problem occurred setting up 'URI': Selector is not null, Component is unknown It's still there but not added to cocoon.xconf by default anymore. Just add it to cocoon.xconf again it use it. In the long run, consider switching to request which is a jxpath based module making all of the request object's properties available. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I generate different pdf's ?!?!?!?
Hello people !!! I have the follow problem: I'm generating PDF files through coccon but I'm getting problems when I have to use different XSL files for different XML files. For example: I have the xml: fileX-2002-10-31.xml = it uses the fileX.xsl and the xml: fileY-2002-10-31.xml = it uses the fileY.xsl My sistemap is: map:match pattern=*.pdf map:generate src=(1).xml/ map:transform src=fileX.xsl/ map:serialize type=fo2pdf/ In this way, when I request to the browser http://localhost:8080/mount/coccon/fileX.pdf, the coccon generates the PDF normally. How should I configurate another map:match so that I can request http://localhost:8080/mount/cocoon/fileY.pdf and the cocoon can generate the pdf?? I tried to use map:match pattern=fileX*.pdf thinking that the cocoon would understand the full name fileX-2002-10-31, but it didn't work. I'll be waiting for your answer. Thank you -- Robert Siqueira - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I generate different pdf's ?!?!?!?
Hi Robert, you can try something like: map:match pattern=file*-*.pdf map:generate src=file{1}-{2}.xml/ map:transform src=file{1}.xsl/ map:serialize type=fo2pdf/ /map:match regards, Rubem |-+ | | Robert Siqueira | | | [EMAIL PROTECTED]| | | camp.br | | || | | 31.10.2002 12:38 | | | PM | | | Please respond to| | | cocoon-users | | || |-+ --| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: How can I generate different pdf's ?!?!?!? | --| Hello people !!! I have the follow problem: I'm generating PDF files through coccon but I'm getting problems when I have to use different XSL files for different XML files. For example: I have the xml: fileX-2002-10-31.xml = it uses the fileX.xsl and the xml: fileY-2002-10-31.xml = it uses the fileY.xsl My sistemap is: map:match pattern=*.pdf map:generate src=(1).xml/ map:transform src=fileX.xsl/ map:serialize type=fo2pdf/ In this way, when I request to the browser http://localhost:8080/mount/coccon/fileX.pdf, the coccon generates the PDF normally. How should I configurate another map:match so that I can request http://localhost:8080/mount/cocoon/fileY.pdf and the cocoon can generate the pdf?? I tried to use map:match pattern=fileX*.pdf thinking that the cocoon would understand the full name fileX-2002-10-31, but it didn't work. I'll be waiting for your answer. Thank you -- Robert Siqueira - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I generate different pdf's ?!?!?!?
Thanks Ruben... its worked ! But, would you can explain me what do this attribute *-* ? thanks... [EMAIL PROTECTED] wrote: Hi Robert, you can try something like: map:match pattern=file*-*.pdf map:generate src=file{1}-{2}.xml/ map:transform src=file{1}.xsl/ map:serialize type=fo2pdf/ /map:match regards, Rubem -- Robert Siqueira - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cocoon and related projects based on cocoon ...
I asked this within another thread, but since it does not belong there, i post it again under a new title: I am a bit confused. I'm following the discussons in this mailing list for about a week now and i found at least two other products/components (whatever) mentioned in the various emails which claim to be an on top of cocoon development. Despite that all this stuff sounds very interesting, i for myself get more and more unshure how to proceed with my investigations on cocoon. Some questions rise in my mind: 1.) Why are all such nice and nifty add ons developed all outside of cocoon ? 2.) When i move to such an add on component, how can i enshure to keep up with the releases of cocoon (taking advantage of the enhancements done by the cocoon developers)? 3.) Why can't i find pointers to the mentioned add ons from within the the cocoon pages ? There is sooo many good software around the world and cocoon for me is one of the finest. Why does not all this effort take place at the heart but is cluttered around in several loosely coupled or even uncoupled add on projects ??? regards, Hussayn Dr. Hussayn Dabbous SAXESS Software Design GmbH Neuenhöfer Allee 125 50935 Köln Telefon: +49-221-56011-0 Fax: +49-221-56011-20 E-Mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New name of the input-module name=URI/...
El Jueves, 31 de Octubre de 2002 06:29, Christian Haul escribió: On 31.Oct.2002 -- 05:22 AM, Antonio Gallardo Rivera wrote: Thanks Chris. Can I remove it? Antonio, remove what? This: input-module name=URI/ from my sitemap. Can I remove it? Antonio Antonio Gallardo. El Jueves, 31 de Octubre de 2002 05:10, Christian Haul escribió: On 31.Oct.2002 -- 02:41 AM, Antonio Gallardo Rivera wrote: Hi, I am using 2.1 (lastest CVS): What is the new name of input-module name=URI/? I have in the sitemap: map:matcher logger=sitemap.matcher.modular.non-cached name=uri src=org.apache.cocoon.matching.modular.WildcardMatcher input-module name=URI/ /map:matcher map:matcher logger=sitemap.matcher.modular.cached name=cached-uri src=org.apache.cocoon.matching.modular.CachingWildcardMatcher input-module name=URI/ /map:matcher And the input-module URI always throw in the error.log: ERROR (2002-10-31) 05:13.19:876 [sitemap.matcher.modular.cached] (/multipremios/images/menu/fons_off.gif) Thread-8/CachingWildcardMatcher: A problem occurred setting up 'URI': Selector is not null, Component is unknown It's still there but not added to cocoon.xconf by default anymore. Just add it to cocoon.xconf again it use it. In the long run, consider switching to request which is a jxpath based module making all of the request object's properties available. Chris. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon 2.1 Authentication Samples
Try also to upgrade to Java 1.4.1. I am using it since August and it seems to be stable. Antonio Gallardo. El Jueves, 31 de Octubre de 2002 05:55, Mathias Ochsendorf escribió: Can you upgrade to Tomcat 4.1.12? I am using the authentication with the lastest CVS 2.1 and every thing works fine. yes with tomcat 4.1.12 everything works fine. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cocoon and related projects based on cocoon ...
Hi, to be honest I have no idea what you are talking about :-). 1.) Why are all such nice and nifty add ons developed all outside of cocoon ? Exactly which components/add-ons do you mean? 2.) When i move to such an add on component, how can i enshure to keep up with the releases of cocoon (taking advantage of the enhancements done by the cocoon developers)? Again - which add-ons? 3.) Why can't i find pointers to the mentioned add ons from within the the cocoon pages ? There is sooo many good software around the world and cocoon for me is one of the finest. Why does not all this effort take place at the heart but is cluttered around in several loosely coupled or even uncoupled add on projects ??? Cocoon is not cluttered around. At least I don't think it is. The core Cocoon project is here. This is the project that is run by the Apache Cocoon community. Anything else that may be an add-on is run/developed/maintained by the respective owner. Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 Weblog: http://radio.weblogs.com/0103021/ = -Original Message- From: SAXESS - Hussayn Dabbous [mailto:dabbous;saxess.com] Sent: Thursday, October 31, 2002 2:32 PM To: [EMAIL PROTECTED] Subject: cocoon and related projects based on cocoon ... I asked this within another thread, but since it does not belong there, i post it again under a new title: I am a bit confused. I'm following the discussons in this mailing list for about a week now and i found at least two other products/components (whatever) mentioned in the various emails which claim to be an on top of cocoon development. Despite that all this stuff sounds very interesting, i for myself get more and more unshure how to proceed with my investigations on cocoon. Some questions rise in my mind: 1.) Why are all such nice and nifty add ons developed all outside of cocoon ? 2.) When i move to such an add on component, how can i enshure to keep up with the releases of cocoon (taking advantage of the enhancements done by the cocoon developers)? 3.) Why can't i find pointers to the mentioned add ons from within the the cocoon pages ? There is sooo many good software around the world and cocoon for me is one of the finest. Why does not all this effort take place at the heart but is cluttered around in several loosely coupled or even uncoupled add on projects ??? regards, Hussayn Dr. Hussayn Dabbous SAXESS Software Design GmbH Neuenhöfer Allee 125 50935 Köln Telefon: +49-221-56011-0 Fax: +49-221-56011-20 E-Mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Slide with Cocoon 2
On Thu, 31 Oct 2002, Jeremy Quinn wrote: On Wednesday, Oct 30, 2002, at 17:06 Europe/London, Stephan Michels wrote: Currently the form param that holds the 'method' to be used in the MultiAction is called 'method', is this not a reserved param name for a request? ie. it would always return the HTTP method? The problem was name of the input module.. I used {request:bla} instead of {request-param:bla}. So the example should work now. Have fun, Stephan Michels. Dear Stephan, Many thanks for fixing this! I can log in now, create a collection and upload files! But I am even more confused now ;) 'Off the Shelf' slide.xconf is set up to use the FileContentStore to store content in $CATALINA_HOME/contentstore (as I understand it), but I never see any files or folders there . then when I restart TomCat, log back into cocoon/samples/slide an I have nothing in the repository. :-} Thats the problem of the MemoryDescriptorsStore, it holds the information in the memory, and it's gone then you shutdown tomcat. So you uncomment the XMLDescriptorStore and change the scope, which I currently use. And then you change the parameter parameter name=versionfalse/parameter to true, you should have versioned documents. What I am hoping to achieve is to have a file store that can be: a)Accessed for file editing via WebDAV, using normal desktop apps like TurboXML or XMLMind, hopefully with versioning. I don't have any experiences with XMLMind etc, but it works with MS Explorer and Cadaver. b) Served from the store by my Cocoon pipelines for normal users to view the site c) Managed via your samples/slide interface Am I on the right track here? Sure. I promise to write a 'How-to' on this if I can make this work! But I am a bit of a newbie to webDAV so I might need some help ;) That sound good ;-) - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XMLForms vs Struts
I hope this will not make things even more confusing for you, but here is my view: Struts is 3 parts: 1) An URL map, matching URLs to Actions. Everything you can do with struts-config.xml (Struts), you can do with sitemap.xmap (Cocoon). 2) Custom JSP tags for rendering HTML, like i18n, access to JavaBean properties and others. Cocoon's set of transformers is a superset of Strut's visual tags. 3) Form handling. Automated binding between HTML input fields and JavaBeans. Cocoon's XMLForm does that and much more. It not only provides the binding, but it does it in a browser independent way. Struts is only designed to handle automatically HTML input. For fairness sake, I will tell you that over the last 2 years I have used Struts successfully in big enterprise projects. It is a good and sound technology when you are only interested to support the major HTML browsers and you are not concerned with other interfaces to your application like WML, VXML, Web Services, etc. My recommendation is, if you are in a hurry and you don't want to invest time in learning a new technology, go Struts. If you plan to build a lot of web applications in the future, you must learn Cocoon. It will add a very powerful weapon to your software tools arsenal. You don't have to use it all the time, but when things start to look dangerously complex, you will find it to be a life saver. Best, Ivelin - Original Message - From: SAXESS - Hussayn Dabbous [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 31, 2002 3:48 AM Subject: Re: XMLForms vs Struts Hy; First let me tell you: I like the idea of merging cocoon and struts, because i see both technologies to be helpfull also in conjunction... Omar Tazi wrote: If you like the MVC aspect in Struts and like the flexibility provided by XML/XSLT, and don't like the limitations that come with JSPs, check out our Framework. It's called OXF (Open XML Framework). OXF is the result of our combined passion for Cocoon and Struts/J2EE and our involvement in huge enterprise projects. It will dramatically help you in your tasks (listed below). Good luck! But i am also a bit confused. I'm following the discussons in this mailing list for about a week now and this is already the second mentioning of a product/component (whatever) that claims to be an on top of cocoon development. But when i enter the pages mentioned above, it is very hard to find the backpointers to cocoon as the base component... Despite that all this stuff sounds very interesting, but i get more and more unshure how to proceed. Some questions rise in my mind: 1.) Why are all such nice and nifty add ons developed all outside of cocoon ? 2.) When i move to such an add on component, how can i enshure to keep up with the releases of cocoon (taking adavantage of the enhancements done there)? 3.) Why can't i find pointers to these add ons from the cocoon pages ? There is sooo many good software around the world and cocoon for me is one of the finest. Why does not all this effort take place at the heart but is cluttered around in several loosely coupled or even uncoupled add on projects ??? And now my final question (to come back to the technical part): Why is it so complicated to use struts and cocoon in parallel? As far as i understand the concepts of cocoon, i can embed JSP's in it's workflow, and if a jsp itself uses struts, why not??? Although i haven't tried yet, for me these things seem to be coexisting without problems ... Any enlightments on these points are happily welcome... best regards, Hussayn -- Dr. Hussayn Dabbous SAXESS Software Design GmbH Neuenhöfer Allee 125 50935 Köln Telefon: +49-221-56011-0 Fax: +49-221-56011-20 E-Mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Slide with Cocoon 2
Hi all ! Hi Stephan ! I didn't manage to do the correction against the login error : I modified the sitemap.xmap in samples/slide, changing line 159 from map:parameter name=destination value={request:resource}/ to map:parameter name=destination value={request-param:resource}/ I guess that is what you said to do on your precedent mail. But I still have the same exception... Is there any other file to change ? You don't seemed to commit your changes on CVS, or I may be wrong... Did you rely on SlideRealm or with the default Tomcat user managment ? Thank you Olivier - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: authentication frustration
I too will be very hard at work on a SAP project from November 18th till February 2003. I will be developing iViews for the SAP Enterprise Portal. One of the things I'll be testing is integrating Cocoon in an iView. Should be interesting, specially with the web3 component (i got running BTW). Hi Bert, Nice to hear! We will come up with a new version (bugfixes, move to the Apache namespace and into a cocoon block) soon. We would be pleased to hear about your experiences with Web3 and SAP Portals. Regards, Reinhard - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XMLForms vs Struts
Ivelin, As this is an often discussed question: Do you mind adding it to the CocoonWiki? If no I could do it for you ... Regards, Reinhard -Original Message- From: Ivelin Ivanov [mailto:ivelin;apache.org] Sent: Thursday, October 31, 2002 2:52 PM To: [EMAIL PROTECTED] Subject: Re: XMLForms vs Struts I hope this will not make things even more confusing for you, but here is my view: Struts is 3 parts: 1) An URL map, matching URLs to Actions. Everything you can do with struts-config.xml (Struts), you can do with sitemap.xmap (Cocoon). 2) Custom JSP tags for rendering HTML, like i18n, access to JavaBean properties and others. Cocoon's set of transformers is a superset of Strut's visual tags. 3) Form handling. Automated binding between HTML input fields and JavaBeans. Cocoon's XMLForm does that and much more. It not only provides the binding, but it does it in a browser independent way. Struts is only designed to handle automatically HTML input. For fairness sake, I will tell you that over the last 2 years I have used Struts successfully in big enterprise projects. It is a good and sound technology when you are only interested to support the major HTML browsers and you are not concerned with other interfaces to your application like WML, VXML, Web Services, etc. My recommendation is, if you are in a hurry and you don't want to invest time in learning a new technology, go Struts. If you plan to build a lot of web applications in the future, you must learn Cocoon. It will add a very powerful weapon to your software tools arsenal. You don't have to use it all the time, but when things start to look dangerously complex, you will find it to be a life saver. Best, Ivelin - Original Message - From: SAXESS - Hussayn Dabbous [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 31, 2002 3:48 AM Subject: Re: XMLForms vs Struts Hy; First let me tell you: I like the idea of merging cocoon and struts, because i see both technologies to be helpfull also in conjunction... Omar Tazi wrote: If you like the MVC aspect in Struts and like the flexibility provided by XML/XSLT, and don't like the limitations that come with JSPs, check out our Framework. It's called OXF (Open XML Framework). OXF is the result of our combined passion for Cocoon and Struts/J2EE and our involvement in huge enterprise projects. It will dramatically help you in your tasks (listed below). Good luck! But i am also a bit confused. I'm following the discussons in this mailing list for about a week now and this is already the second mentioning of a product/component (whatever) that claims to be an on top of cocoon development. But when i enter the pages mentioned above, it is very hard to find the backpointers to cocoon as the base component... Despite that all this stuff sounds very interesting, but i get more and more unshure how to proceed. Some questions rise in my mind: 1.) Why are all such nice and nifty add ons developed all outside of cocoon ? 2.) When i move to such an add on component, how can i enshure to keep up with the releases of cocoon (taking adavantage of the enhancements done there)? 3.) Why can't i find pointers to these add ons from the cocoon pages ? There is sooo many good software around the world and cocoon for me is one of the finest. Why does not all this effort take place at the heart but is cluttered around in several loosely coupled or even uncoupled add on projects ??? And now my final question (to come back to the technical part): Why is it so complicated to use struts and cocoon in parallel? As far as i understand the concepts of cocoon, i can embed JSP's in it's workflow, and if a jsp itself uses struts, why not??? Although i haven't tried yet, for me these things seem to be coexisting without problems ... Any enlightments on these points are happily welcome... best regards, Hussayn -- Dr. Hussayn Dabbous SAXESS Software Design GmbH Neuenhöfer Allee 125 50935 Köln Telefon: +49-221-56011-0 Fax: +49-221-56011-20 E-Mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
esql:row-count inside esql:row-results
Is this tag already working? I am having troubles with it. inside row-results I cannot use it. I am building some excel files and I need the value of esql:row-count to navigate trought the cols. I dont know how many cols will be, there are dynamically based on the row-count that the given table has. Thanks for your answer. Regards, Antonio Gallardo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dynamic XMLForm taking inout data from previous steps?
Actually what you describe is the correct behavior of repeat. If you look at the W3C XForms spec, it says that repeat will render the nodeset which satisfies the XPath selector. How many boxes do you expect to render? One solution is to change the getter method for the languages property, so that it pads the array with blank entries to match the value of descriptionsNumber if the array's current size() is less than that of descriptionsNumber . Ivelin - Original Message - From: Josema Alonso [EMAIL PROTECTED] To: Cocoon-Users [EMAIL PROTECTED] Sent: Tuesday, October 29, 2002 4:07 PM Subject: Re: dynamic XMLForm taking inout data from previous steps? I tried to figure how the xf:repeat and xf:group tags work, maybe that's the way to go. Still not much info about it anyway. I think I've almost got it: xf:repeat nodeset=languages[position() lt;= /descriptionsNumber] id=descriptionLangs xf:textbox ref=. class=info xf:captionLanguage (code):/xf:caption /xf:textbox /xf:repeat And I have in the model bean: ... private int descriptionsNumber = 1; private List languages = new ArrayList(); ... public InsertBean () { initLanguages(); } public void initLanguages() { languages.add(en); languages.add(es); } ... And the 'descriptionsNumber' is filled on a previous step in the form wizard. But...oh yes, there's a but, I can only generate in the repeat as many input boxes as elements the 'languages' ArrayList have. It seems that it doesn't show more than two of them no matter the number I put to fill the 'descriptionsNumber' field. If I put 1, it shows just one field, if I put 2, it shows two fields, if I put three or more, it only shows two anyway. I guess that's because the ArrayList only have two elements and the rest of the calls return null. Is there a workaround? I think I'll try looking at the source code of the transformer... Best. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: internalisation with schematron (XML-Form)
Thank you Dianna for handling the patch. - Original Message - From: Ivelin Ivanov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 28, 2002 11:25 PM Subject: Re: internalisation with schematron (XML-Form) Many thanks ! I will review and apply the patch. ... now only if someone would be interested to write a HOWTO on using JAAS with Cocoon. Best, Ivelin - Original Message - From: Mohamed El-Refaey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 28, 2002 7:35 PM Subject: Re: internalisation with schematron (XML-Form) Hallo Ivelin, I already wrote a How To Document for this and uploaded it using Bugzilla . I hope it will be clear and easy to follow. and its Bug#14015. Thanx in advance Mohamed El-Refaey Ivelin Ivanov wrote: Mohamed, would you consider submitting your email as a how-to document in bugzilla. The question about i18n with XMLForm is popping constantly. Ivelin - Original Message - From: Mohamed El-Refaey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, October 27, 2002 4:08 PM Subject: Re: internalisation with schematron (XML-Form) Hi Michael , I faced the same problem and here is what I did when I read the mailing list regarding the i18n with Schematron validation error : 1- the XMLForm file is : xf:password ref=/password xf:captioni18n:textPassword/i18n:text/xf:caption xf:violations class=error/ /xf:password 2- the Schematron file : rule context=/password assert test=string-length(.) gt; 7 The Password Should be @ least 8 character. /assert /rule /pattern 3-the sitemap : map:transform type=xmlform label=xml/ map:transform src=xforms/stylesheets/translate.xsl/ map:act type=locale map:transform type=i18n map:parameter name=locale value={locale}/ /map:transform /map:act in which the translate.xsl file is the that what they r talking about in the mailing list : ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:xf=http://xml.apache.org/cocoon/xmlform/2002; xmlns:i18n=http://apache.org/cocoon/i18n/2.0; xsl:template match=document document xsl:apply-templates/ /document /xsl:template xsl:template match=xf:violation xf:violation i18n:text xsl:value-of select=./ /i18n:text /xf:violation /xsl:template xsl:template match=node() priority=-1 xsl:copy xsl:copy-of select=@*/ xsl:apply-templates/ /xsl:copy /xsl:template /xsl:stylesheet and the Catalog file : message key=PasswordPassword/message I wish this will help u Mohamed Michael Bald wrote: Hi! I have a problem to translate the error-massages of the schematrons. I hope someone can give me a hint to solve my problem. I want to translate the Error Message of my pattern in the Schematron file. But I don´t know exactly how. I tried the way I found in the Mail archives of cocoon, but it didn´t work in my case. I hope someone can answer me how to include the internalisation in my schematron file. In the xml file I have following: xf:form xf:password ref=/password xf:caption i18n:textpassword_field/i18n:text /xf:caption xf:violation class=error/ /xf:form The schematron file has following pattern: rule context=/password assert test=string-lenght... Error_message that I want to translate! /assert /rule And the translation file has allready: ... message key=password_fieldPassword/message message key=The password is to long!/message ... sitemap: ... map:generate src= map:transform type=i18n map:parameter name=locale value={./locale}/ /map:transform map:transform type=xmlform label=xml map:transform src= ... I tried allready to switch the transformers...but it didn´t work. Hopefully someone can help me with this problem. Greetings Michael - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered
Authorisation in Cocoon 2.0.3
Hi All, I'm trying to write my own action to handle user authorisation. I'm using sunRise for user authentication and need a way to get at the ID and role values for the current session from within an action (a Java class). I know I need a reference to the sunRise context, but don't know how to get it. Once I have that reference, how do I use it? Can someone point me in the right direction? Oh and if someone knows of a better (and easier) way of doing authorisation in 2.0.3 I'm keen on hearing about it, eventhough I want to try my action method first. Thanks in advance, Damian. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Slide with Cocoon 2
On Thu, 31 Oct 2002, Olivier Billard wrote: Hi all ! Hi Stephan ! I didn't manage to do the correction against the login error : I modified the sitemap.xmap in samples/slide, changing line 159 from map:parameter name=destination value={request:resource}/ to map:parameter name=destination value={request-param:resource}/ Hmm, this one have I missed, thanks. I guess that is what you said to do on your precedent mail. But I still have the same exception... Is there any other file to change ? Which exception? You don't seemed to commit your changes on CVS, or I may be wrong... Yes, the current revision of xml-cocoon2/src/scratchpad/webapp/samples/slide/sitemap.xmap is 1.18. Did you rely on SlideRealm or with the default Tomcat user managment ? No, but I is also possible to use the SlideRealm to authentificate. Many thanks for testing, Stephan. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Authorisation in Cocoon 2.0.3
What is stopping you from using the authentication as provided? Oh and if someone knows of a better (and easier) way of doing authorisation in 2.0.3 I'm keen on hearing about it, eventhough I want to try my action method first. Perhaps you could detail what is missing from the provided solution? Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 Weblog: http://radio.weblogs.com/0103021/ = -Original Message- From: Damian Chojna [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 31, 2002 3:24 PM To: cocoon-users Subject: Authorisation in Cocoon 2.0.3 Hi All, I'm trying to write my own action to handle user authorisation. I'm using sunRise for user authentication and need a way to get at the ID and role values for the current session from within an action (a Java class). I know I need a reference to the sunRise context, but don't know how to get it. Once I have that reference, how do I use it? Can someone point me in the right direction? Oh and if someone knows of a better (and easier) way of doing authorisation in 2.0.3 I'm keen on hearing about it, eventhough I want to try my action method first. Thanks in advance, Damian. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New name of the input-module name=URI/...
On 31.Oct.2002 -- 07:40 AM, Antonio Gallardo Rivera wrote: El Jueves, 31 de Octubre de 2002 06:29, Christian Haul escribió: On 31.Oct.2002 -- 05:22 AM, Antonio Gallardo Rivera wrote: Thanks Chris. Can I remove it? Antonio, remove what? This: input-module name=URI/ from my sitemap. Can I remove it? Oh, I see! If you don't use it you can of course remove the complete matcher declaration for uri and cached-uri from the mod-db demo sitemap. Thanks for spotting it. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
coplet not available
I created a coplet and I can't get it's content in the portal. When I call the coplet URL directly I get the XML data. I have configured teh coplet in the global, role and user profile, but when I call the portal I always get The coplet is currently not available. I changed the content to a file generator and a serializer to make sure the sontent is there, but the result stays the same. What triggers this behavior? I have not had this problem before :( I'm using Cocoon 2.1 build of 14 May 2002, Tomcat 4.0.1; JDK 1.3.1_02 on Win2K Bert This mail is written in 100% recycled electrons. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Slide with Cocoon 2
Many thanks for your response !! Here is my Exception : [ The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies that java.lang.NullPointerException says: More precisely: java.lang.NullPointerException ] And the stack trace : [ java.lang.NullPointerException stacktrace java.lang.NullPointerException at org.apache.cocoon.xml.dom.DOMBuilder.getDocument(DOMBuilder.java:178) at org.apache.cocoon.components.source.SourceUtil.toDOM(SourceUtil.java:172) at org.apache.cocoon.webapps.authentication.components.AuthenticationManager.au thenticate(AuthenticationManager.java:458) at org.apache.cocoon.webapps.authentication.acting.LoginAction.act(LoginAction. java:130) at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTyp eNode.java:133) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:85) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok e(PreparableMatchNode.java:166) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:109) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel ineNode.java:153) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:109) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe linesNode.java:143) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:326) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:308) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod e.java:131) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:85) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok e(PreparableMatchNode.java:166) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:109) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel ineNode.java:153) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:109) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe linesNode.java:143) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:326) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:308) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod e.java:131) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:85) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok e(PreparableMatchNode.java:166) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:109) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel ineNode.java:153) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:109) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe linesNode.java:143) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:326) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:308) at org.apache.cocoon.Cocoon.process(Cocoon.java:595) ... ] Is there a risk that I forgot something in the configuration ? Olivier - Original Message - From: Stephan Michels [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Olivier Billard [EMAIL PROTECTED] Sent: Thursday, October 31, 2002 3:23 PM Subject: Re: Using Slide with Cocoon 2 On Thu, 31 Oct 2002, Olivier Billard wrote: Hi all ! Hi Stephan ! I didn't manage to do the correction against the login error : I modified the sitemap.xmap in samples/slide, changing line 159 from map:parameter name=destination value={request:resource}/ to map:parameter name=destination value={request-param:resource}/ Hmm, this one have I missed, thanks. I guess that is what you said to do on your precedent mail. But I still have the same exception... Is there any other file to change ? Which exception? You don't seemed to commit your changes on CVS, or I may be wrong... Yes, the current revision of xml-cocoon2/src/scratchpad/webapp/samples/slide/sitemap.xmap is 1.18. Did you rely on SlideRealm or with the default Tomcat user managment ? No, but I is also possible to use the SlideRealm to authentificate. Many thanks for testing, Stephan. - Please check that your question has not already been answered in the FAQ before
RE: coplet not available
Bert, check the logs for an exception. The error message coplet not available is generated when an exception occurs. Perhaps the configured URI for the coplet is not correct? I often forget the cocoon:/ at the beginning :-) Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 Weblog: http://radio.weblogs.com/0103021/ = -Original Message- From: Bert Van Kets [mailto:bert;vankets.com] Sent: Thursday, October 31, 2002 3:23 PM To: [EMAIL PROTECTED] Subject: coplet not available I created a coplet and I can't get it's content in the portal. When I call the coplet URL directly I get the XML data. I have configured teh coplet in the global, role and user profile, but when I call the portal I always get The coplet is currently not available. I changed the content to a file generator and a serializer to make sure the sontent is there, but the result stays the same. What triggers this behavior? I have not had this problem before :( I'm using Cocoon 2.1 build of 14 May 2002, Tomcat 4.0.1; JDK 1.3.1_02 on Win2K Bert This mail is written in 100% recycled electrons. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New name of the input-module name=URI/...
El Jueves, 31 de Octubre de 2002 08:24, Christian Haul escribió: On 31.Oct.2002 -- 07:40 AM, Antonio Gallardo Rivera wrote: El Jueves, 31 de Octubre de 2002 06:29, Christian Haul escribió: On 31.Oct.2002 -- 05:22 AM, Antonio Gallardo Rivera wrote: Thanks Chris. Can I remove it? Antonio, remove what? This: input-module name=URI/ from my sitemap. Can I remove it? Oh, I see! If you don't use it you can of course remove the complete matcher declaration for uri and cached-uri from the mod-db demo sitemap. Thanks for spotting it. Chris. Thanks to you Chris! ;-) Antonio Gallardo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon and related projects based on cocoon ...
Matthew Langham wrote: Hi, to be honest I have no idea what you are talking about :-). Sorry, i meant 1.) www.cocoondev.org This is a great site but i expected this under cocoon! 2.) http://www.orbeon.com/oxf/ i found this pointer today in the struts discussion trail. I did not really investigate on this although it sounds quite interesting but again i thought this belongs strongly to cocoon, if it is feasible... 1.) Why are all such nice and nifty add ons developed all outside of cocoon ? Exactly which components/add-ons do you mean? see above ... 2.) When i move to such an add on component, how can i enshure to keep up with the releases of cocoon (taking advantage of the enhancements done by the cocoon developers)? Again - which add-ons? see above ... 3.) Why can't i find pointers to the mentioned add ons from within the the cocoon pages ? There is sooo many good software around the world and cocoon for me is one of the finest. Why does not all this effort take place at the heart but is cluttered around in several loosely coupled or even uncoupled add on projects ??? Cocoon is not cluttered around. At least I don't think it is. The core Cocoon project is here. This is the project that is run by the Apache Cocoon community. Anything else that may be an add-on is run/developed/maintained by the respective owner. Sorry again. I did not mean cocoon is cluttered around! I even did not want to criticise anybody. i only mentioned there seems to be lots of work done around cocoon which from my point of view looks very interesting, but is simply not under the umbrella of cocoon itself. So i.e. if i want to go into such a component, i fear that i must leave the core cocoon... clearly something to be avoided! Instead i ask again, why don't they come under the cocoon umbrella and let all cocoon users participate without pain... It's simply me, who is a bit confused, i didn't want to confuse you ;-) i would only like to understand, why these parallel projects exist... I mean if you look at tomcat, or the apache server, you will find add ons (like SSL), plugins (myriads) and so, but not parallel development...) regards, hussayn Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 Weblog: http://radio.weblogs.com/0103021/ = -Original Message- From: SAXESS - Hussayn Dabbous [mailto:dabbous;saxess.com] Sent: Thursday, October 31, 2002 2:32 PM To: [EMAIL PROTECTED] Subject: cocoon and related projects based on cocoon ... I asked this within another thread, but since it does not belong there, i post it again under a new title: I am a bit confused. I'm following the discussons in this mailing list for about a week now and i found at least two other products/components (whatever) mentioned in the various emails which claim to be an on top of cocoon development. Despite that all this stuff sounds very interesting, i for myself get more and more unshure how to proceed with my investigations on cocoon. Some questions rise in my mind: 1.) Why are all such nice and nifty add ons developed all outside of cocoon ? 2.) When i move to such an add on component, how can i enshure to keep up with the releases of cocoon (taking advantage of the enhancements done by the cocoon developers)? 3.) Why can't i find pointers to the mentioned add ons from within the the cocoon pages ? There is sooo many good software around the world and cocoon for me is one of the finest. Why does not all this effort take place at the heart but is cluttered around in several loosely coupled or even uncoupled add on projects ??? regards, Hussayn Dr. Hussayn Dabbous SAXESS Software Design GmbH Neuenhöfer Allee 125 50935 Köln Telefon: +49-221-56011-0 Fax: +49-221-56011-20 E-Mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dr. Hussayn Dabbous SAXESS Software Design GmbH Neuenhöfer Allee 125 50935 Köln Telefon: +49-221-56011-0 Fax: +49-221-56011-20 E-Mail: [EMAIL PROTECTED]
Re: Authorisation in Cocoon 2.0.3
Matthew Langham wrote: What is stopping you from using the authentication as provided? As far as I've been able to discover, the sunRise solution (in 2.0.3) doesn't supply a mechanism for restricting resources by user role. All that it does is check that the user has successfully logged in. I need a way to control which resources are available to certain users based on their role. My idea was to use an action to do this check, like the auth-protect except that this action would set some parameters indicating which resource the pipeline should use. I'm new to cocoon and the way things are done under it so I'm very open to any and suggestions. Damian Oh and if someone knows of a better (and easier) way of doing authorisation in 2.0.3 I'm keen on hearing about it, eventhough I want to try my action method first. Perhaps you could detail what is missing from the provided solution? Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 Weblog: http://radio.weblogs.com/0103021/ = -Original Message- From: Damian Chojna [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 31, 2002 3:24 PM To: cocoon-users Subject: Authorisation in Cocoon 2.0.3 Hi All, I'm trying to write my own action to handle user authorisation. I'm using sunRise for user authentication and need a way to get at the ID and role values for the current session from within an action (a Java class). I know I need a reference to the sunRise context, but don't know how to get it. Once I have that reference, how do I use it? Can someone point me in the right direction? Oh and if someone knows of a better (and easier) way of doing authorisation in 2.0.3 I'm keen on hearing about it, eventhough I want to try my action method first. Thanks in advance, Damian. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cocoon and related projects based on cocoon ...
1.) www.cocoondev.org This is a great site but i expected this under cocoon! And soon it may well be. Remember the Cocoon project is an _Apache_ project and therefore runs on Apache hardware etc. etc. The cocoondev.org site is completely different. It was started by Steven Noels from Outerthought as somewhere to showcase Cocoon based solutions. One day it will hopefully all be together - but at the moment they are completely different things. 2.) http://www.orbeon.com/oxf/ i found this pointer today in the struts discussion trail. I did not really investigate on this although it sounds quite interesting but again i thought this belongs strongly to cocoon, if it is feasible... Again something completely different. A solution built on Cocoon - but it is NOT Cocoon. In the same way we develop commercial products on top of Cocoon - but they are not part of the Cocoon project. Anything that is donated to the Cocoon project (such as our authentication components) increases the code base and that does (or may) become part of the project. Sorry again. I did not mean cocoon is cluttered around! I even did not want to criticise anybody. i only mentioned there seems to be lots of work done around cocoon which from my point of view looks very interesting, but is simply not under the umbrella of cocoon itself. So i.e. if i want to go into such a component, i fear that i must leave the core cocoon... clearly something to be avoided! Instead i ask again, why don't they come under the cocoon umbrella and let all cocoon users participate without pain... Because the objectives may be very different. Some of the developments are commercial built on top of Cocoon. Some are open source (like CocoBlog) built on top of Cocoon and some are infrastructures (like cocoondev). At the moment (because of the status of the Cocoon project) it is not possible to easily have everything in one place. This is something that is currently being pushed by the Cocoon project for the near future (at least as far as the open source solutions go). HTH Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 Weblog: http://radio.weblogs.com/0103021/ = Sorry again. I did not mean cocoon is cluttered around! I even did not want to criticise anybody. i only mentioned there seems to be lots of work done around cocoon which from my point of view looks very interesting, but is simply not under the umbrella of cocoon itself. So i.e. if i want to go into such a component, i fear that i must leave the core cocoon... clearly something to be avoided! Instead i ask again, why don't they come under the cocoon umbrella and let all cocoon users participate without pain... It's simply me, who is a bit confused, i didn't want to confuse you ;-) i would only like to understand, why these parallel projects exist... I mean if you look at tomcat, or the apache server, you will find add ons (like SSL), plugins (myriads) and so, but not parallel development...) regards, hussayn Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 Weblog: http://radio.weblogs.com/0103021/ = -Original Message- From: SAXESS - Hussayn Dabbous [mailto:dabbous;saxess.com] Sent: Thursday, October 31, 2002 2:32 PM To: [EMAIL PROTECTED] Subject: cocoon and related projects based on cocoon ... I asked this within another thread, but since it does not belong there, i post it again under a new title: I am a bit confused. I'm following the discussons in this mailing list for about a week now and i found at least two other products/components (whatever) mentioned in the various emails which claim to be an on top of cocoon development. Despite that all this stuff sounds very interesting, i for myself get more and more unshure how to proceed with my investigations on cocoon. Some questions rise in my mind: 1.) Why are all such nice and nifty add ons developed all outside of cocoon ? 2.) When i move to such an add on component, how can i enshure to keep up with the releases of cocoon (taking advantage of the enhancements done by the cocoon developers)? 3.) Why can't i find pointers to the
RE: coplet not available
Hi Matthew, just before your mail came in I found by comparing to the orther coplet configurations that I had indeed forgotten the cocoon:raw:// in the coplet URI. This is embarrassing. Maybe it should be emphasized a little bit more in the docs. It seems a lot of people are using the portal, so it should be worth it. Thanks for the help. Bert At 15:34 31/10/2002 +0100, you wrote: Bert, check the logs for an exception. The error message coplet not available is generated when an exception occurs. Perhaps the configured URI for the coplet is not correct? I often forget the cocoon:/ at the beginning :-) Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 Weblog: http://radio.weblogs.com/0103021/ = -Original Message- From: Bert Van Kets [mailto:bert;vankets.com] Sent: Thursday, October 31, 2002 3:23 PM To: [EMAIL PROTECTED] Subject: coplet not available I created a coplet and I can't get it's content in the portal. When I call the coplet URL directly I get the XML data. I have configured teh coplet in the global, role and user profile, but when I call the portal I always get The coplet is currently not available. I changed the content to a file generator and a serializer to make sure the sontent is there, but the result stays the same. What triggers this behavior? I have not had this problem before :( I'm using Cocoon 2.1 build of 14 May 2002, Tomcat 4.0.1; JDK 1.3.1_02 on Win2K Bert This mail is written in 100% recycled electrons. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RequestExampleGenerator
It looks to me like you have the sitemap matcher setup under the bonebreaker demo sub sitemap. It appears that a general matcher for *.xml from bonebreaker is taking precidence over this tutorial's sitemap fragment. So, either move the match for map:match pattern=howYouDoin.xml map:generate type=requestExample/ map:serialize type=xml/ /map:match up higher in the sitemap, above the bonebreaker stuff, or move it back into another sitemap out of the bonebreaker subsitemap. Either should work. By the way, I wrote that tutorial - can you give any feedback? (Besides finishing the caching section, which I've yet to do because I haven't been able to delve into the new caching point stuff yet) Geoff --- Stefan JAKSCH [EMAIL PROTECTED] wrote: Hi, I'm trying to write my own generator class and was successful running the HelloWorldGenerator from the tutorial. However, when I try the next example (RequestExampleGenerator), I get the message that the file xml.xsl cannot be found in my project directory. I don't have such a file anywhere on my disk... Here's the head of the error.log: ERROR (2002-10-30) 15:35.02:904 [core.manager] (/cocoon/bonebreaker/tutorial/howYouDoin.xml) HttpProcessor[8080][0]/sitemap_xmap: Sitemap org.apache.cocoon.ProcessingException: Exception during processing of file:/C:/Programme/Apache Tomcat 4.0/webapps/cocoon/bonebreaker/stylesheets/xml.xsl: java.io.FileNotFoundException: C:\Programme\Apache Tomcat 4.0\webapps\cocoon\bonebreaker\stylesheets\xml.xsl (Das System kann die angegebene Datei nicht finden) at org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:211) at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:268) at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:239) at org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:298) . . . . Does anybody know a solution? regards, Stefan begin:vcard n:Jaksch;Stefan tel;fax:++43-1-58801/25499 tel;work:++43-1-58801/25423 x-mozilla-html:FALSE url:www.iti.tuwien.ac.at org:TU Wien;Institut für Tragwerkslehre und Ingenieurholzbau adr:;;Karlsplatz 13/254;Wien;Wien;1040;Austria version:2.1 email;internet:[EMAIL PROTECTED] title:DI fn:Stefan Jaksch end:vcard - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? HotJobs - Search new jobs daily now http://hotjobs.yahoo.com/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Authorisation in Cocoon 2.0.3
My idea was to use an action to do this check, like the auth-protect except that this action would set some parameters indicating which resource the pipeline should use. Use the auth-protect action. This action returns a map of values to the sitemap processing. Inside the Action use the parameterSelector. And then test against {../role}. Here is an example fragment that does something similar - except it tests the {../id}. map:match pattern=sunspotdemo-portlets map:generate type=portal/ map:select type=parameter map:parameter name=parameter-selector-test value={../ID}/ map:when test=guest map:transform src=styles/portalHTML-tab.xsl map:parameter name=use-request-parameters value=true/ /map:transform /map:when map:when test=gast map:transform src=styles/portalHTML-tab.xsl map:parameter name=use-request-parameters value=true/ /map:transform /map:when map:otherwise map:transform src=styles/portalHTML.xsl map:parameter name=use-request-parameters value=true/ /map:transform /map:otherwise /map:select That's it. No programming needed :-) Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 Weblog: http://radio.weblogs.com/0103021/ = -Original Message- From: Damian Chojna [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 31, 2002 3:44 PM To: [EMAIL PROTECTED] Subject: Re: Authorisation in Cocoon 2.0.3 Matthew Langham wrote: What is stopping you from using the authentication as provided? As far as I've been able to discover, the sunRise solution (in 2.0.3) doesn't supply a mechanism for restricting resources by user role. All that it does is check that the user has successfully logged in. I need a way to control which resources are available to certain users based on their role. My idea was to use an action to do this check, like the auth-protect except that this action would set some parameters indicating which resource the pipeline should use. I'm new to cocoon and the way things are done under it so I'm very open to any and suggestions. Damian Oh and if someone knows of a better (and easier) way of doing authorisation in 2.0.3 I'm keen on hearing about it, eventhough I want to try my action method first. Perhaps you could detail what is missing from the provided solution? Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 Weblog: http://radio.weblogs.com/0103021/ = -Original Message- From: Damian Chojna [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 31, 2002 3:24 PM To: cocoon-users Subject: Authorisation in Cocoon 2.0.3 Hi All, I'm trying to write my own action to handle user authorisation. I'm using sunRise for user authentication and need a way to get at the ID and role values for the current session from within an action (a Java class). I know I need a reference to the sunRise context, but don't know how to get it. Once I have that reference, how do I use it? Can someone point me in the right direction? Oh and if someone knows of a better (and easier) way of doing authorisation in 2.0.3 I'm keen on hearing about it, eventhough I want to try my action method first. Thanks in advance, Damian. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting.
Re: Dynamically add transformer to sitemap
Sound quite good, Joerg. But I have no idea how to pass the filepath string from an Action to to an Transformer in the sitemap. Can I have a transformer with an variable src attribute value? It would be great if you could give a short example or snippet, how to get that. Thanks in advance. Robert - Original Message - From: Joerg Heinicke [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 31, 2002 10:19 AM Subject: Re: Dynamically add transformer to sitemap Hello Robert, what about an action, which retrieves the stylesheet path (or name) and returns it to the sitemap. I can't think of other ways, especially xsl:include/ is evaluated on compile time, not run time like variables. Regards, Joerg Robert Sösemann wrote: Question: --- Is it possible to dynamically add a certain transformer to the sitemap pipeline later dependant on generated xml content? Background: - My cocoon app generates website from content in a Mysql DB. In my sitemaps pipeline there is an xsp generator which gets the DB raw data. Every article in my DB has an attribute src which is a path to a xsl which should later style my article. This is how the result of the xsp look like: ?xml version=1.0 encoding=UTF-8? seite xmlns:xspdoc=http://apache.org/cocoon/XSPDoc/v1; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp=http://apache.org/xsp; rahmen laschen oberrubrik=service unterrubrik=recht /laschen inhalt artikel id=1 stylesheet=toArticle.xsl - here is the file name /artikel /inhalt rechts/ footer/ /rahmen /seite Can I bring cocoon to add a transformer to the sitemap pipeline with excately that generated filename as src? Or can I do it with xsl:include without cocoon? R.S. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Slide with Cocoon 2
On Thu, 31 Oct 2002, Olivier Billard wrote: Many thanks for your response !! Here is my Exception : [ The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies that java.lang.NullPointerException says: More precisely: java.lang.NullPointerException ] And the stack trace : [ java.lang.NullPointerException stacktrace java.lang.NullPointerException at org.apache.cocoon.xml.dom.DOMBuilder.getDocument(DOMBuilder.java:178) at org.apache.cocoon.components.source.SourceUtil.toDOM(SourceUtil.java:172) at org.apache.cocoon.webapps.authentication.components.AuthenticationManager.au thenticate(AuthenticationManager.java:458) at org.apache.cocoon.webapps.authentication.acting.LoginAction.act(LoginAction. java:130) at Hmm, try to remove the attribute 'internal-only=true' and retrieve the page /cocoon/samples/slide/authenticate?password=rootname=root It seems that you have a problem to get a the document for authentication. Stephan. - Original Message - From: Stephan Michels [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Olivier Billard [EMAIL PROTECTED] Sent: Thursday, October 31, 2002 3:23 PM Subject: Re: Using Slide with Cocoon 2 On Thu, 31 Oct 2002, Olivier Billard wrote: Hi all ! Hi Stephan ! I didn't manage to do the correction against the login error : I modified the sitemap.xmap in samples/slide, changing line 159 from map:parameter name=destination value={request:resource}/ to map:parameter name=destination value={request-param:resource}/ Hmm, this one have I missed, thanks. I guess that is what you said to do on your precedent mail. But I still have the same exception... Is there any other file to change ? Which exception? You don't seemed to commit your changes on CVS, or I may be wrong... Yes, the current revision of xml-cocoon2/src/scratchpad/webapp/samples/slide/sitemap.xmap is 1.18. Did you rely on SlideRealm or with the default Tomcat user managment ? No, but I is also possible to use the SlideRealm to authentificate. Many thanks for testing, Stephan. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Dynamically add transformer to sitemap
Hi Robert, say you're action returns a Map that contains the key 'stylesheet' You could then have map:act type=retrieve-stylesheet map:transform type=xsl src={stylesheet}/ /map:act somewhere in your pipeline. Looking at your sample, I reckon you need the stylesheet when someone followed the link to an article. If it is so, you can then store the information in the request and use an existing action like RequestParamAction. HTH Judith -Ursprüngliche Nachricht- Von: Robert Sösemann [SMTP:[EMAIL PROTECTED]] Gesendet am: Donnerstag, 31. Oktober 2002 16:12 An: [EMAIL PROTECTED] Betreff: Re: Dynamically add transformer to sitemap Sound quite good, Joerg. But I have no idea how to pass the filepath string from an Action to to an Transformer in the sitemap. Can I have a transformer with an variable src attribute value? It would be great if you could give a short example or snippet, how to get that. Thanks in advance. Robert - Original Message - From: Joerg Heinicke [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 31, 2002 10:19 AM Subject: Re: Dynamically add transformer to sitemap Hello Robert, what about an action, which retrieves the stylesheet path (or name) and returns it to the sitemap. I can't think of other ways, especially xsl:include/ is evaluated on compile time, not run time like variables. Regards, Joerg Robert Sösemann wrote: Question: --- Is it possible to dynamically add a certain transformer to the sitemap pipeline later dependant on generated xml content? Background: - My cocoon app generates website from content in a Mysql DB. In my sitemaps pipeline there is an xsp generator which gets the DB raw data. Every article in my DB has an attribute src which is a path to a xsl which should later style my article. This is how the result of the xsp look like: ?xml version=1.0 encoding=UTF-8? seite xmlns:xspdoc=http://apache.org/cocoon/XSPDoc/v1; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp=http://apache.org/xsp; rahmen laschen oberrubrik=service unterrubrik=recht /laschen inhalt artikel id=1 stylesheet=toArticle.xsl - here is the file name /artikel /inhalt rechts/ footer/ /rahmen /seite Can I bring cocoon to add a transformer to the sitemap pipeline with excately that generated filename as src? Or can I do it with xsl:include without cocoon? R.S. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Accessing the output of a modular db action in xsl
I am struggling with the dbselect action. When I check the sitemap, I am able to see that the select is working and dumping the values to the sitemap. My problem is how to access the values from within an xsl. Are there any examples of this around, I seem to be able to find examples of the usage of the other mod-db actions, but not this one (or the query action either). Thanks, Phil - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Slide with Cocoon 2
Thanks again ! But I access to a blank page, without Exception raised... - Original Message - From: Stephan Michels [EMAIL PROTECTED] To: cocoon-users [EMAIL PROTECTED] Sent: Thursday, October 31, 2002 4:14 PM Subject: Re: Using Slide with Cocoon 2 On Thu, 31 Oct 2002, Olivier Billard wrote: Many thanks for your response !! Here is my Exception : [ The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies that java.lang.NullPointerException says: More precisely: java.lang.NullPointerException ] And the stack trace : [ java.lang.NullPointerException stacktrace java.lang.NullPointerException at org.apache.cocoon.xml.dom.DOMBuilder.getDocument(DOMBuilder.java:178) at org.apache.cocoon.components.source.SourceUtil.toDOM(SourceUtil.java:172) at org.apache.cocoon.webapps.authentication.components.AuthenticationManager.au thenticate(AuthenticationManager.java:458) at org.apache.cocoon.webapps.authentication.acting.LoginAction.act(LoginAction. java:130) at Hmm, try to remove the attribute 'internal-only=true' and retrieve the page /cocoon/samples/slide/authenticate?password=rootname=root It seems that you have a problem to get a the document for authentication. Stephan. - Original Message - From: Stephan Michels [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Olivier Billard [EMAIL PROTECTED] Sent: Thursday, October 31, 2002 3:23 PM Subject: Re: Using Slide with Cocoon 2 On Thu, 31 Oct 2002, Olivier Billard wrote: Hi all ! Hi Stephan ! I didn't manage to do the correction against the login error : I modified the sitemap.xmap in samples/slide, changing line 159 from map:parameter name=destination value={request:resource}/ to map:parameter name=destination value={request-param:resource}/ Hmm, this one have I missed, thanks. I guess that is what you said to do on your precedent mail. But I still have the same exception... Is there any other file to change ? Which exception? You don't seemed to commit your changes on CVS, or I may be wrong... Yes, the current revision of xml-cocoon2/src/scratchpad/webapp/samples/slide/sitemap.xmap is 1.18. Did you rely on SlideRealm or with the default Tomcat user managment ? No, but I is also possible to use the SlideRealm to authentificate. Many thanks for testing, Stephan. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Developing Cacheable Components
Hello, I have a transformer which I would like to make Cacheable. I've noticed there have been some changes in 2.1 dev in how to make components Cacheable. Is there any documentation which explains how to do that? Thanks, -Alex - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: New name of the input-module name=URI/...
From: Antonio Gallardo Rivera Thanks Chris. Can I remove it? Yes! Simply use: {request:requestURI} instead or any other property from the Cocoon Request object. Take a look at the input modules sample for almost the complete list of possible values. It's in Cocoon 2.1-dev at: http://localhost:8080/cocoon/samples/modules/ (for Tomcat) Regards, Konstantin Antonio Gallardo. El Jueves, 31 de Octubre de 2002 05:10, Christian Haul escribiÕ: On 31.Oct.2002 -- 02:41 AM, Antonio Gallardo Rivera wrote: Hi, I am using 2.1 (lastest CVS): What is the new name of input-module name=URI/? I have in the sitemap: map:matcher logger=sitemap.matcher.modular.non-cached name=uri src=org.apache.cocoon.matching.modular.WildcardMatcher input-module name=URI/ /map:matcher map:matcher logger=sitemap.matcher.modular.cached name=cached-uri src=org.apache.cocoon.matching.modular.CachingWildcardMatcher input-module name=URI/ /map:matcher And the input-module URI always throw in the error.log: ERROR (2002-10-31) 05:13.19:876 [sitemap.matcher.modular.cached] (/multipremios/images/menu/fons_off.gif) Thread-8/CachingWildcardMatcher: A problem occurred setting up 'URI': Selector is not null, Component is unknown It's still there but not added to cocoon.xconf by default anymore. Just add it to cocoon.xconf again it use it. In the long run, consider switching to request which is a jxpath based module making all of the request object's properties available. Chris. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Slide with Cocoon 2
On Thu, 31 Oct 2002, Olivier Billard wrote: Thanks again ! But I access to a blank page, without Exception raised... Nothing, also when you take a look into the source. Any exceptions in the logs? Hmm. - Original Message - From: Stephan Michels [EMAIL PROTECTED] To: cocoon-users [EMAIL PROTECTED] Sent: Thursday, October 31, 2002 4:14 PM Subject: Re: Using Slide with Cocoon 2 On Thu, 31 Oct 2002, Olivier Billard wrote: Many thanks for your response !! Here is my Exception : [ The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies that java.lang.NullPointerException says: More precisely: java.lang.NullPointerException ] And the stack trace : [ java.lang.NullPointerException stacktrace java.lang.NullPointerException at org.apache.cocoon.xml.dom.DOMBuilder.getDocument(DOMBuilder.java:178) at org.apache.cocoon.components.source.SourceUtil.toDOM(SourceUtil.java:172) at org.apache.cocoon.webapps.authentication.components.AuthenticationManager.au thenticate(AuthenticationManager.java:458) at org.apache.cocoon.webapps.authentication.acting.LoginAction.act(LoginAction. java:130) at Hmm, try to remove the attribute 'internal-only=true' and retrieve the page /cocoon/samples/slide/authenticate?password=rootname=root It seems that you have a problem to get a the document for authentication. Stephan. - Original Message - From: Stephan Michels [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Olivier Billard [EMAIL PROTECTED] Sent: Thursday, October 31, 2002 3:23 PM Subject: Re: Using Slide with Cocoon 2 On Thu, 31 Oct 2002, Olivier Billard wrote: Hi all ! Hi Stephan ! I didn't manage to do the correction against the login error : I modified the sitemap.xmap in samples/slide, changing line 159 from map:parameter name=destination value={request:resource}/ to map:parameter name=destination value={request-param:resource}/ Hmm, this one have I missed, thanks. I guess that is what you said to do on your precedent mail. But I still have the same exception... Is there any other file to change ? Which exception? You don't seemed to commit your changes on CVS, or I may be wrong... Yes, the current revision of xml-cocoon2/src/scratchpad/webapp/samples/slide/sitemap.xmap is 1.18. Did you rely on SlideRealm or with the default Tomcat user managment ? No, but I is also possible to use the SlideRealm to authentificate. Many thanks for testing, Stephan. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I generate different pdf's ?!?!?!?
Hi Robert, But, would you can explain me what do this attribute *-* ? map:match pattern=file*-*.pdf The first asterisk '*' matches everything between 'file' and the first '-' (that's, 'X', or 'Y' in your example). The second '*' matches the rest until '.pdf' (the date in your example). regards, Ruben |-+ | | Robert Siqueira | | | [EMAIL PROTECTED]| | | camp.br | | || | | 31.10.2002 01:02 | | | PM | | | Please respond to| | | cocoon-users | | || |-+ --| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: Re: How can I generate different pdf's ?!?!?!? | --| Thanks Ruben... its worked ! But, would you can explain me what do this attribute *-* ? thanks... [EMAIL PROTECTED] wrote: Hi Robert, you can try something like: map:match pattern=file*-*.pdf map:generate src=file{1}-{2}.xml/ map:transform src=file{1}.xsl/ map:serialize type=fo2pdf/ /map:match regards, Rubem -- Robert Siqueira - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon other projects - Take 2
Seeing as we are on the topic Is there any guide/mechanism {fill in noun of your choice here} for a clear and simple way to link to (i.e. get data in and out of) one/any of the existing XML databases ... this area seems to me to be a natural complementto the superb XML handling capability of Cocoon. If anyone has worked with: Exist http://exist.sourceforge.net/ Xindice http://xml.apache.org/xindice within a Cocoon application, could they please share some ideas or practice? Thanks Derek PS Yes, I appreciate that neither of these projects falls under the Cocoon "umbrella" - but a project can "relate to" or "complement" Cocoon and so be of interest/use to the community...
Accessing serialized output
Hi All, Excuse me for my poor english. I have to access the output after the transformation/serialization and before it is send in the HttpResponse, because I have to save it in a file and send just a code to the client. I tried with redirection in my XSL stylesheet, but just the XML datas are saved, it is NOK. I tried coding my own reader, but I have a compilation error in the sitemap written like this : ... map:readers default=resource map:reader name=srvimp src=infolis.srvimp.SrvImpReader/ /map:readers ... map:pipelines map:pipeline map:match pattern=test.xsp map:generate type=xsp src=content/xml/GENERAL.xsp/ map:transform src=style/xsl/GENERAL_u.xsl/ map:serialize type=fo2pdf/ map:read type=srvimp mime-type=text/html/ /map:match /map:pipeline /map:pipelines ... Does somewone know the solution to work with the output of the event pipeline ? Thanks, Ludovic - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Slide with Cocoon 2
Oooh yep, sorry ! Here it is : [ ERROR (2002-10-31) 17:26.28:512 [sitemap.generator.principallist] (/cocoon/samples/slide/authenticate) Thread-8/PrincipalListGenerator: Could not lookup for component. org.apache.avalon.framework.component.ComponentException: Could not find component at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(Excal iburComponentManager.java:255) at org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentMa nager.java:236) ] It seems like a ComponentException is raised... I'm not very familiar with Avalon framework : Cocoon is a ComponentManager and a generator is a Component, is it right ? The role given to the manager with principalproviders = (ComponentSelector)this.manager.lookup(PrincipalProvider.ROLE+Selector); in PrincipalListGenerator.generate() maybe doesn't exist ? Olivier - Original Message - From: Stephan Michels [EMAIL PROTECTED] To: cocoon-users [EMAIL PROTECTED] Sent: Thursday, October 31, 2002 5:17 PM Subject: Re: Using Slide with Cocoon 2 On Thu, 31 Oct 2002, Olivier Billard wrote: Thanks again ! But I access to a blank page, without Exception raised... Nothing, also when you take a look into the source. Any exceptions in the logs? Hmm. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accessing the output of a modular db action in xsl
On 31.Oct.2002 -- 07:57 AM, [EMAIL PROTECTED] wrote: I am struggling with the dbselect action. When I check the sitemap, I am able to see that the select is working and dumping the values to the sitemap. My problem is how to access the values from within an xsl. Are there any This depends on the output module chosen. The default one creates request attributes. The prefix can be chosen individually, the default prefix is documented in the javadocs for this output module. examples of this around, I seem to be able to find examples of the usage of the other mod-db actions, but not this one (or the query action either). In this respect, all four behave the same. 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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Authentication: redirect
Hello, I can't seem to figure out how to redirect back to a protected resource after the authentication. The sample only has one resource called protected. For example, I would like to protect anything that is under cocoon/admin/*. Let's say someone requests cocoon/admin/add-user resource. I've noticed that when the framework redirects to the login resource it adds the following to the url: resource=%2Fcocoon%2Fadmin%2Fadd-user. Is there a way to retrieve this in the sitemap, i.e., something like: map:redirect-to uri={request-param:resource}? Thanks, -Alex - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Slide with Cocoon 2
On Thu, 31 Oct 2002, Olivier Billard wrote: Oooh yep, sorry ! Here it is : [ ERROR (2002-10-31) 17:26.28:512 [sitemap.generator.principallist] (/cocoon/samples/slide/authenticate) Thread-8/PrincipalListGenerator: Could not lookup for component. org.apache.avalon.framework.component.ComponentException: Could not find component at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(Excal iburComponentManager.java:255) at org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentMa nager.java:236) ] It seems like a ComponentException is raised... I'm not very familiar with Avalon framework : Cocoon is a ComponentManager and a generator is a Component, is it right ? The role given to the manager with principalproviders = (ComponentSelector)this.manager.lookup(PrincipalProvider.ROLE+Selector); in PrincipalListGenerator.generate() maybe doesn't exist ? Ahhh, now I see. I think you havn't copied the Java Transaction Lib into lib/local??! Search your build messages for the warning. ;-) Stephan - Original Message - From: Stephan Michels [EMAIL PROTECTED] To: cocoon-users [EMAIL PROTECTED] Sent: Thursday, October 31, 2002 5:17 PM Subject: Re: Using Slide with Cocoon 2 On Thu, 31 Oct 2002, Olivier Billard wrote: Thanks again ! But I access to a blank page, without Exception raised... Nothing, also when you take a look into the source. Any exceptions in the logs? Hmm. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Slide with Cocoon 2
Ye !! It works perfectly, it was that. I put the jta.jar in the scratchpad/lib dir, and not in the lib/local... I didn't notice the warning and the war was build. Thank you very much for your patience, Stephan. I think I'll have a nice week end Regards, Olivier - Original Message - From: Stephan Michels [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Olivier Billard [EMAIL PROTECTED] Sent: Thursday, October 31, 2002 5:55 PM Subject: Re: Using Slide with Cocoon 2 On Thu, 31 Oct 2002, Olivier Billard wrote: Oooh yep, sorry ! Here it is : [ ERROR (2002-10-31) 17:26.28:512 [sitemap.generator.principallist] (/cocoon/samples/slide/authenticate) Thread-8/PrincipalListGenerator: Could not lookup for component. org.apache.avalon.framework.component.ComponentException: Could not find component at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(Excal iburComponentManager.java:255) at org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentMa nager.java:236) ] It seems like a ComponentException is raised... I'm not very familiar with Avalon framework : Cocoon is a ComponentManager and a generator is a Component, is it right ? The role given to the manager with principalproviders = (ComponentSelector)this.manager.lookup(PrincipalProvider.ROLE+Selector); in PrincipalListGenerator.generate() maybe doesn't exist ? Ahhh, now I see. I think you havn't copied the Java Transaction Lib into lib/local??! Search your build messages for the warning. ;-) Stephan - Original Message - From: Stephan Michels [EMAIL PROTECTED] To: cocoon-users [EMAIL PROTECTED] Sent: Thursday, October 31, 2002 5:17 PM Subject: Re: Using Slide with Cocoon 2 On Thu, 31 Oct 2002, Olivier Billard wrote: Thanks again ! But I access to a blank page, without Exception raised... Nothing, also when you take a look into the source. Any exceptions in the logs? Hmm. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XMLForms vs Struts
Ivelin wrote: 3) Form handling. Automated binding between HTML input fields and JavaBeans. Cocoon's XMLForm does that and much more. It not only provides the binding, but it does it in a browser independent way. Struts is only designed to handle automatically HTML input. This is a very smart summary of diferences between XMLForms Struts. Thanks to all for your advice. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Anyone? (was Re: More sub-sitemap questions)
So I still don't know the answer to this question, but while experimenting trying to find the answer I discovered that I can't access any components defined in a sub-cocoon.xconf that require a ComponentSelector, specifically a datasource. I have one component that's defined in my sub-cocoon.xconf and takes a parameter that's the name of a datasource, I get an Excalibur error when that component tries to load the datasource. here's the code: this.dataSourceName = params.getParameter(datasource,NodeDB); debug(SQLNodeStore.parameterize(): dataSourceName=+dataSourceName); ComponentSelector selector = (ComponentSelector) manager.lookup(DataSourceComponent.ROLE + Selector); this.datasource = (DataSourceComponent) selector.select(dataSourceName); and here's the error from the log file: DEBUG (2002-10-31) 09:24.36:845 [cocoon ](/projects/spectra/) Thread-5/SQLNodeStore: SQLNodeStore.parameterize(): dataSourceName=NodeDB DEBUG (2002-10-31) 09:24.36:845 [cocoon ](/projects/spectra/) Thread-5/ExcaliburComponentSelector: UnnamedSelector: ComponentSelector could not find the component for hint: NodeDB This all works fine if the components are defined in the main cocoon.xconf file. I know the sub-cocoon.xconf file is being read because I can load my SQLNodeStore component. I think what's happening is that there's a seperation between the two cocoon.xconf files, and when I load the ComponentSelector I'm getting a ComponentSelector for the main file, which doesn't have a datasource called NodeDB. Is this possible? If so, is this a bug, or do I need to do something different? Any help is much appreciated. Thanks, Justin On Tuesday, October 29, 2002, at 01:51 PM, Justin Fagnani-Bell wrote: Good afternoon (in Cali), As I mentioned in my last email (anyone figure an answer yet? I haven't), I'm trying to keep all my Cocoon projects running live on my development server via auto mounting sub-sitemaps. The ability for each mount to have it's own cocoon.xconf file seems to be the last piece that makes this possible. I setup datasources and some custom components in cocoon.xconf. My question is how are name conflicts dealt with if you have components with the same name in the main cocoon.xconf file and the sub cocoon.xconf file? More specifically, if I have this in my code: public void compose(ComponentManager manager) throws ComponentException { super.compose(manager); if (nodeStore == null) { this.nodeStore = (NodeStore)manager.lookup(NodeStore.ROLE); } } and I have a NodeStore component defined in both cocoon.xconf files, is there any guarantee which component I will get? (the reason it matters is because my NodeStores are setup up to access different databases) Thanks, Justin - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Slide with Cocoon 2
On Thursday 31 October 2002 12:03, Jeremy Quinn wrote: But I am even more confused now ;) 'Off the Shelf' slide.xconf is set up to use the FileContentStore to store content in $CATALINA_HOME/contentstore (as I understand it), but I never see any files or folders there . Does it really store files in $CATALINA_HOME/contentstore? I think, it stores the files in ./contentstore, where . is the current directory, from which you started tomcat. Since you usually start tomcat from $CATALINA_HOME, the store directory is $CATALINA_HOME/contentstore accidentally, but you must be carefull to start tomcat always from the same directory. Better change the rootpath in slide.xconf to a fixed location. Martin - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
C2 and OC4J
Title: C2 and OC4J Hi, I'm trying to install C2 under OC4J and I can´t find how to install it. Does anybody knows where can I find the installation instructions ? Thanks. Alejandro
Re: dynamic XMLForm taking inout data from previous steps?
... How many boxes do you expect to render? One solution is to change the getter method for the languages property, so that it pads the array with blank entries to match the value of descriptionsNumber if the array's current size() is less than that of descriptionsNumber . It seems you were reading my mind ;-) I just coded that a few hours ago and it works. Thanks a lot. ps: I'm starting a new thread about my concerns using XMLForm with Xindice...I'm almost there, but would need a but of help :-) - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon 2.0.3 ESQL PreparedStatment: maybe not working?
Hi, I have cocoon 2.0.3 installed and I want to use esql. In the documentation is written that esql _also supports_ prepared statment. So I have written a small db-access-page to insert something into my db. But if i try to insert something with an ' in it, it doesnt work. I get an error-message that the sql-statment isnt correct. I would say, that esql:query isnt transformed into an perparedstamtent... May Question: How can I activate in cocoon that esql is using preparedstatment? cu, Christian - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon 2.0.3 ESQL PreparedStatment: maybe not working?
Christian SCHRÖTER wrote: Hi, I have cocoon 2.0.3 installed and I want to use esql. In the documentation is written that esql _also supports_ prepared statment. So I have written a small db-access-page to insert something into my db. But if i try to insert something with an ' in it, it doesnt work. I get an error-message that the sql-statment isnt correct. I would say, that esql:query isnt transformed into an perparedstamtent... esql creates a prepared statement iff the query contains at least one esql:parameter/ tag. Only those are set using a setYYY method. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: C2 and OC4J
Title: Mensaje Please, I have a war running with Tomcat and I have to make it work with OC4J, the problem is the parser. How can I tell Cocoon to use the Oracle parser, or how can I tell OC4J to user the Cocoon's parser ? Thanks -Mensaje original-De: Alejandro Raiczyk [mailto:[EMAIL PROTECTED]] Enviado el: Jueves, 31 de Octubre de 2002 03:24 p.m.Para: '[EMAIL PROTECTED]'Asunto: C2 and OC4J Hi, I'm trying to install C2 under OC4J and I can´t find how to install it. Does anybody knows where can I find the installation instructions ? Thanks. Alejandro
Pipeline vs Pipeline(S)
What the difference between map:pipeline map:match=foo../ map:match=bar../ / and map:pipeline map:match=foo../ / map:pipeline map:match=bar../ / Thanks in advance: Steve Punte [EMAIL PROTECTED] __ Do you Yahoo!? HotJobs - Search new jobs daily now http://hotjobs.yahoo.com/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pipeline vs Pipeline(S)
From what I understand there isn't a whole lot of difference, but having separate pipelines allows you to use different pipeline implementations to allow for things like caching, logging, etc. Justin On Thursday, October 31, 2002, at 11:59 AM, Steven Punte wrote: What the difference between map:pipeline map:match=foo../ map:match=bar../ / and map:pipeline map:match=foo../ / map:pipeline map:match=bar../ / Thanks in advance: Steve Punte [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svg2jpeg serialiser error
Hi, I'm playing with Cocoon since one week. I try to run the Gallery sample shipped with the Building XML Applications book with no success. The System: Tomcat-4.0.3, Win2k, Cocoon 2.0.3, JDK1.4.0 When I try to transform the svg.xml document to jpeg image using the svg2jpeg serialiser the following error is thrown: java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGDocument at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:509) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12 3) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp ClassLoader.java:1631) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa der.java:926) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1360) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1243) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322) at org.apache.batik.dom.svg.SVGDOMImplementation.createDocument(Unknown Source) at org.apache.cocoon.xml.dom.SVGBuilder.startDocument(SVGBuilder.java:11 8) at org.apache.xalan.transformer.ResultTreeHandler.flushDocEvent(ResultTr eeHandler.java:824) at org.apache.xalan.transformer.ResultTreeHandler.flushPending(ResultTre eHandler.java:932) at org.apache.xalan.transformer.ResultTreeHandler.startElement(ResultTre eHandler.java:241) at org.apache.xalan.transformer.ClonerToResultTree.cloneToResultTree(Clo nerToResultTree.java:229) at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:152) at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes( ElemApplyTemplates.java:422) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTempla tes.java:226) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tr ansformerImpl.java:2243) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Tran sformerImpl.java:2069) at org.apache.xalan.transformer.TransformerImpl.transformNode(Transforme rImpl.java:1171) at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java :3196) at java.lang.Thread.run(Thread.java:536) any help? Thanks! - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accessing the output of a modular db action in xsl
Is there an example of how to do this available? On 31.Oct.2002 -- 07:57 AM, [EMAIL PROTECTED] wrote: I am struggling with the dbselect action. When I check the sitemap, I am able to see that the select is working and dumping the values to the sitemap. My problem is how to access the values from within an xsl. Are there any This depends on the output module chosen. The default one creates request attributes. The prefix can be chosen individually, the default prefix is documented in the javadocs for this output module. examples of this around, I seem to be able to find examples of the usage of the other mod-db actions, but not this one (or the query action either). In this respect, all four behave the same. 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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XMLForms vs Struts
SAXESS - Hussayn Dabbous wrote: But i am also a bit confused. I'm following the discussons in this mailing list for about a week now and this is already the second mentioning of a product/component (whatever) that claims to be an on top of cocoon development. But when i enter the pages mentioned above, it is very hard to find the backpointers to cocoon as the base component... Hussayn, in this particular case the explanation is that OXF compares with Cocoon on a conceptual level, but doesn't actually use any code from Cocoon. It is a completely separate project based on a different architecture of XML pipelines. To tell you the truth, OXF was partly born from frustrations that its authors had with Cocoon. I hope this clears up the confusion. And now my final question (to come back to the technical part): Why is it so complicated to use struts and cocoon in parallel? As far as i understand the concepts of cocoon, i can embed JSP's in it's workflow, and if a jsp itself uses struts, why not??? Although i haven't tried yet, for me these things seem to be coexisting without problems ... I don't see why this would not be possible (at least in theory) to do it this way. Usually, from a Struts action you forward your request to a JSP, but it is actually possible to forward it to any servlet (this is often how people hook up XSLT with Struts). Such a servlet could be the Cocoon servlet. You would probably need to have the Struts JAR and all the Cocoon JARs in the same web application, and to create a servlet mapping that maps some URLs to the Struts controller. From Cocoon, you would serialize to XML the JavaBeans put in the request and session from Struts and from there perform further processing. I don't know if anybody has attempted this so far though. Hope this helps, -Erik - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]