OXF (was Re: cocoon and related projects based on cocoon ...)
Matthew Langham wrote: 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. It surely looks based on Cocoon as far as some architectural concepts are concerned. It does not look based on the Cocoon source code though. Or, at least, they don't say it is ;-). How does OXF compare with Apache Cocoon? OXF's XML processors, XML pipelines and XPL were born recently from the need in the industry for solid and flexible XML processing technologies. On the other hand, Cocoon was initially designed as a Web publishing framework and has been around for a much longer time. As a result, some features provided by Cocoon are still unmatched in OXF, which however provides a more advanced technological foundation and can be used in a wider range of XML-based applications including Web publishing, interactive Web applications, command line applications, Web services, etc. Yeah, nice marketing speak ;-). -- Ugo Cei - http://www.beblogging.com/blog/ - 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
Matthew Langham wrote: 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}. Thanks Matthew! That's some functionality that I didn't know existed. Is there documentation somewhere that describes this behaviour of the sunRise actions? 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. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:
RE: authentication frustration
At 14:57 31/10/2002 +0100, you wrote: 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. The only real problem I'm having at the moment is getting used to the German abbreviations for passing parameters to the BAPIs. It seems this is a typical SAP thing. Would be nice to catch those. ;-) Bert 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] - 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 03.Nov.2002 -- 12:03 PM, Phil Craven wrote: because that is going the wrong way, I don't want one level up, I want one level down. Also I would be just as happy getting the values out of the request attributes (in the xsl), but I cannot seem to figure out how to do so. If anyone has any help on either getting at those values in xsl I would greatly appreciate the help. phil On Saturday 02 November 2002 10:48 am, Christian Haul wrote: On 02.Nov.2002 -- 07:22 AM, Phil Craven wrote: When I try and get the bulk of the params that I am looking for, it seems as if they are lost between level 3 and level 2. I believe that my stylesheet is trying to access the params at level 2. How do I force the propagation of the values from level 3 to level 2? Any help greatly appreciated. Here is the relevant section of the sitemap log: LEVEL 3 PARAM: 'content_item_id[0]' VALUE: 'gold building image' LEVEL 2 PARAM: '../context' VALUE: '/cocoon' LEVEL 1 PARAM: '../../1' VALUE: 'group2' Why don't you use {../context} ? Phil, when you are at level 2, level 3 does not exist yet. Therefore you can only move up. Perhaps you can illustrate with a sitemap snippet what you are trying to achieve, maybe it would be clearer. 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: directory generator - sorting parameter works?
Hi Sanne, This feature is not available. You'll have to add it and provide a patch. You can use sorting in XSLT though using xsl:for-each and then xsl:sort. HTH, Bert At 11:14 31/10/2002 +0100, you wrote: 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] - 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.1 installation problem
Hi, I've just finished building the C2.1 with the following configuration : JDK 1.4.1_01 Tomacat 4.1.12 Win2K When I try to access the starter link http://localhost:8080/cocoon/documents/index.html; I receive this exception : type fatal message Failed to execute pipeline. description org.apache.cocoon.ProcessingException: Failed to execute pipeline.: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.net.MalformedURLException: no protocol: characters.ent sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Failed to execute pipeline.: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.net.MalformedURLException: no protocol: characters.ent at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLP ipeline(AbstractProcessingPipeline.java:518) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline .processXMLPipeline(AbstractCachingProcessingPipeline.java:204) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(Abs tractProcessingPipeline.java:483) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri alizeNode.java:149) 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) Any Help please. Thanks in advance - 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]
Ldap authentication
Hello all Do someone know how to make an authentication with LdapTransformer. The client enter DN and passwd : how can i do the LDAP authentication with these informations ? 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: Pipeline vs Pipeline(S)
On Thursday, October 31, 2002, at 02:59 PM, 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../ / Please see: http://xml.apache.org/cocoon/faq/faq-sitemap.html#faq-9 Diana - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XMLForm and pop-up menu
Hello, I use XMLForm and I want to implement pop-up menu in a form. Is there a solution? Thank you Sylvain - 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: XMLForm and pop-up menu
Sylvain, As far as I know - no. What should be the content of the pop-up menu? Regards, Reinhard -Original Message- From: [EMAIL PROTECTED] [mailto:Sylvain.Thevoz;swisscom.com] Sent: Monday, November 04, 2002 2:19 PM To: [EMAIL PROTECTED] Subject: XMLForm and pop-up menu Hello, I use XMLForm and I want to implement pop-up menu in a form. Is there a solution? Thank you Sylvain - 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: XMLForm and pop-up menu
The content should be simply a list of word. The user should choose a word in the pop-up menu (and only these words) instead of enter a word. Sylvain -Message d'origine- De: Reinhard Poetz [mailto:reinhard_poetz;gmx.net] Date: lundi, 4. novembre 2002 14:49 À: [EMAIL PROTECTED] Objet: RE: XMLForm and pop-up menu Sylvain, As far as I know - no. What should be the content of the pop-up menu? Regards, Reinhard -Original Message- From: [EMAIL PROTECTED] [mailto:Sylvain.Thevoz;swisscom.com] Sent: Monday, November 04, 2002 2:19 PM To: [EMAIL PROTECTED] Subject: XMLForm and pop-up menu Hello, I use XMLForm and I want to implement pop-up menu in a form. Is there a solution? Thank you Sylvain - 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: XMLForm and pop-up menu
Do you mean a selection field: Here an xml snippet from Ivelin's example: xf:selectOne ref=os selectUIType=radio xf:captionOS/xf:caption xf:item id=unix xf:captionUnix/Linux/xf:caption xf:valueUnix/xf:value /xf:item xf:item id=mac xf:captionMac OS/X/xf:caption xf:valueMac OS/X/xf:value /xf:item xf:item id=win xf:captionWindows 95/98/NT/2000/XP/xf:caption xf:valueWindows/xf:value /xf:item xf:item id=other xf:captionOther/xf:caption xf:valueOther/xf:value /xf:item /xf:selectOne Hope this helps. Regards, Reinhard -Original Message- From: [EMAIL PROTECTED] [mailto:Sylvain.Thevoz;swisscom.com] Sent: Monday, November 04, 2002 3:12 PM To: [EMAIL PROTECTED] Subject: RE: XMLForm and pop-up menu The content should be simply a list of word. The user should choose a word in the pop-up menu (and only these words) instead of enter a word. Sylvain -Message d'origine- De: Reinhard Poetz [mailto:reinhard_poetz;gmx.net] Date: lundi, 4. novembre 2002 14:49 À: [EMAIL PROTECTED] Objet: RE: XMLForm and pop-up menu Sylvain, As far as I know - no. What should be the content of the pop-up menu? Regards, Reinhard -Original Message- From: [EMAIL PROTECTED] [mailto:Sylvain.Thevoz;swisscom.com] Sent: Monday, November 04, 2002 2:19 PM To: [EMAIL PROTECTED] Subject: XMLForm and pop-up menu Hello, I use XMLForm and I want to implement pop-up menu in a form. Is there a solution? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XMLForm and pop-up menu
yes, in the same way but instead of using a radio type where your choices are on the screen (and you put the point on your choice), I would like to use a pop-up list where the choices are hidden in a list (maybe the word menu is not very appropriate). This stuff is in all web forms. Sylvain -Message d'origine- De: Reinhard Poetz [mailto:reinhard_poetz;gmx.net] Date: lundi, 4. novembre 2002 15:43 À: [EMAIL PROTECTED] Objet: RE: XMLForm and pop-up menu Do you mean a selection field: Here an xml snippet from Ivelin's example: xf:selectOne ref=os selectUIType=radio xf:captionOS/xf:caption xf:item id=unix xf:captionUnix/Linux/xf:caption xf:valueUnix/xf:value /xf:item xf:item id=mac xf:captionMac OS/X/xf:caption xf:valueMac OS/X/xf:value /xf:item xf:item id=win xf:captionWindows 95/98/NT/2000/XP/xf:caption xf:valueWindows/xf:value /xf:item xf:item id=other xf:captionOther/xf:caption xf:valueOther/xf:value /xf:item /xf:selectOne Hope this helps. Regards, Reinhard -Original Message- From: [EMAIL PROTECTED] [mailto:Sylvain.Thevoz;swisscom.com] Sent: Monday, November 04, 2002 3:12 PM To: [EMAIL PROTECTED] Subject: RE: XMLForm and pop-up menu The content should be simply a list of word. The user should choose a word in the pop-up menu (and only these words) instead of enter a word. Sylvain -Message d'origine- De: Reinhard Poetz [mailto:reinhard_poetz;gmx.net] Date: lundi, 4. novembre 2002 14:49 À: [EMAIL PROTECTED] Objet: RE: XMLForm and pop-up menu Sylvain, As far as I know - no. What should be the content of the pop-up menu? Regards, Reinhard -Original Message- From: [EMAIL PROTECTED] [mailto:Sylvain.Thevoz;swisscom.com] Sent: Monday, November 04, 2002 2:19 PM To: [EMAIL PROTECTED] Subject: XMLForm and pop-up menu Hello, I use XMLForm and I want to implement pop-up menu in a form. Is there a solution? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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)
You can use different different map:pipeline sections to: (1) Allow each map:pipeline to define its own error handling va map:handle-errors. Example: map:pipeline map:match pattern=foo.../map:match map:handle-errors !-- use one transform/serializer -- /map:handle-errors /map:pipeline map:pipeline map:match pattern=bar.../map:match map:handle-errors !-- use another transform/serializer -- /map:handle-errors /map:pipeline (2) Hide a map:pipeline from external target requests (e.g., web browsers cannot request the foo target) by using the internal-only=true attribute/value. Example: map:pipeline internal-only=true map:match pattern=foo.../map:match /map:pipeline map:pipeline map:match pattern=bar map:generate src=cocoon:/foo/ ... /map:match /map:pipeline (3) Use a different map:pipeline type for some targets such as type=profile-caching to use caching and profiling. Example: !-- profiled targets -- map:pipeline type=profile-caching map:match pattern=foo.../map:match !-- more profiled targets -- ... /map:pipeline !-- non-profiled targets -- map:pipeline map:match pattern=bar.../map:match !-- don't profile the profile -- map:match pattern=profile map:generate type=profile/ !-- we could use XSL to stylize here -- !-- but we will just show current raw profile results -- map:serialize type=xml/ /map:match /map:pipeline Requests for foo are shown in the profile. Use the map:generate type=profile/ generator in a pipeline target to (4) Any or all of the above in combination An excellent discussion of pipelines can be found in Matthew and Carsten's Coocon book by New Riders () on page 75. Is this a good candidate for the Wiki? Cheers! -- jack John R. Callahan, Ph.D. CTO Sphere Software Corporation - The Intelligence of XML [EMAIL PROTECTED] p.s. Your syntax on the map:match is incorrect below. On Thursday, October 31, 2002, at 02:59 PM, 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../ / Please see: http://xml.apache.org/cocoon/faq/faq-sitemap.html#faq-9 Diana - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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]
webapps Authentication framework vs sunRise Authentication framework
Hi everybody, Can someone explain what is the difference between the Webapps authentication framework that comes with the auth-login, the auth-logout and the auth-loggedIn actions and the sunRise' actions. Why there are two authentication frameworks? 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]
Cocoon 1.8.2 and Tomcat 4.1.12
Hi All, I'm trying to get Cocoon 1.8.2 up and running under Tomcat 4.1.12. I've made significant progress, but am encountering an error that I don't understand. In order to get this far, I've had to configure Cocoon to use the SunXMLParser rather than Xerces. (The versions of Xerces found in Cocoon 1.8.2 and Tomcat 4.1.12 appear to be incompatible with each other.) I can load cocoon/Cocoon.xml without problems. When I try to open cocoon/samples/index.xml, though, I get the following error: java.net.MalformedURLException: unknown protocol: d I've placed all the cocoon jar files in webapps/cocoon/WEB-INF/lib, and copied the cocoon samples directory to webapps/cocoon/samples. I've also updated the version of Utils.java that is distributed with cocoon 1.8.2 to the version found in the current development snapshot. What am I missing? Thanks, Greg Jewell - 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]
dynamically choosing an action at runtime
Hello, all. Is it possible to choose what an action perform at runtime based on sitemap parameters? I have the pipeline below for processing XMLForms. It is working just nice for one form if I do not use the {1} param but hard code the Action name. I would like to make it work as described so I could dynamically choose what actions to apply to every form based on parameter. Any ideas? thanks -- !-- XMLForms pipeline -- map:pipeline map:match pattern=* map:act type={1}Action !-- XMLForm parameters for the AbstractXMLFormAction -- map:parameter name=xmlform-validator-schema-ns value=http://www.ascc.net/xml/schematron/ map:parameter name=xmlform-validator-schema value=schematron/equipment-type-sch-report.xml/ map:parameter name=xmlform-id value=form-insert/ map:parameter name=xmlform-scope value=session/ map:parameter name=xmlform-model value=net.josema.xmtrader.forms.xmldb.recordings.equipment.{1}Bean/ !-- original XMLForm document -- map:generate src={page}.xml/ !-- populating the document with model instance data -- map:transform type=xmlform label=debug, xml/ !-- personalizing the look and feel of the form controls -- map:transform src=styles/wizard2html.xsl/ !-- Transforming the XMLForm controls to HTML controls -- map:transform src=styles/xmlform2html.xsl/ !-- sending the HTML back to the browser -- map:serialize type=html/ /map:act /map:match /map:pipeline - 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: XMLForm and pop-up menu
I think you have to skip the attribute selectUIType=radio. Then a drop down list should be created. Regards, Reinhard -Original Message- From: [EMAIL PROTECTED] [mailto:Sylvain.Thevoz;swisscom.com] Sent: Monday, November 04, 2002 4:20 PM To: [EMAIL PROTECTED] Subject: RE: XMLForm and pop-up menu yes, in the same way but instead of using a radio type where your choices are on the screen (and you put the point on your choice), I would like to use a pop-up list where the choices are hidden in a list (maybe the word menu is not very appropriate). This stuff is in all web forms. Sylvain -Message d'origine- De: Reinhard Poetz [mailto:reinhard_poetz;gmx.net] Date: lundi, 4. novembre 2002 15:43 À: [EMAIL PROTECTED] Objet: RE: XMLForm and pop-up menu Do you mean a selection field: Here an xml snippet from Ivelin's example: xf:selectOne ref=os selectUIType=radio xf:captionOS/xf:caption xf:item id=unix xf:captionUnix/Linux/xf:caption xf:valueUnix/xf:value /xf:item xf:item id=mac xf:captionMac OS/X/xf:caption xf:valueMac OS/X/xf:value /xf:item xf:item id=win xf:captionWindows 95/98/NT/2000/XP/xf:caption xf:valueWindows/xf:value /xf:item xf:item id=other xf:captionOther/xf:caption xf:valueOther/xf:value /xf:item /xf:selectOne Hope this helps. Regards, Reinhard -Original Message- From: [EMAIL PROTECTED] [mailto:Sylvain.Thevoz;swisscom.com] Sent: Monday, November 04, 2002 3:12 PM To: [EMAIL PROTECTED] Subject: RE: XMLForm and pop-up menu The content should be simply a list of word. The user should choose a word in the pop-up menu (and only these words) instead of enter a word. Sylvain -Message d'origine- De: Reinhard Poetz [mailto:reinhard_poetz;gmx.net] Date: lundi, 4. novembre 2002 14:49 À: [EMAIL PROTECTED] Objet: RE: XMLForm and pop-up menu Sylvain, As far as I know - no. What should be the content of the pop-up menu? Regards, Reinhard -Original Message- From: [EMAIL PROTECTED] [mailto:Sylvain.Thevoz;swisscom.com] Sent: Monday, November 04, 2002 2:19 PM To: [EMAIL PROTECTED] Subject: XMLForm and pop-up menu Hello, I use XMLForm and I want to implement pop-up menu in a form. Is there a solution? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: dynamically choosing an action at runtime
Just use appropriate selector: http://xml.apache.org/cocoon/userdocs/selectors/selectors.html Artur... -Original Message- From: Josema Alonso [mailto:alonso;aafunky.com] Sent: November 4, 2002 11:39 AM To: Cocoon-Users Subject: dynamically choosing an action at runtime Hello, all. Is it possible to choose what an action perform at runtime based on sitemap parameters? I have the pipeline below for processing XMLForms. It is working just nice for one form if I do not use the {1} param but hard code the Action name. I would like to make it work as described so I could dynamically choose what actions to apply to every form based on parameter. Any ideas? thanks -- !-- XMLForms pipeline -- map:pipeline map:match pattern=* map:act type={1}Action !-- XMLForm parameters for the AbstractXMLFormAction -- map:parameter name=xmlform-validator-schema-ns value=http://www.ascc.net/xml/schematron/ map:parameter name=xmlform-validator-schema value=schematron/equipment-type-sch-report.xml/ map:parameter name=xmlform-id value=form-insert/ map:parameter name=xmlform-scope value=session/ map:parameter name=xmlform-model value=net.josema.xmtrader.forms.xmldb.recordings.equipment.{1}Bean/ !-- original XMLForm document -- map:generate src={page}.xml/ !-- populating the document with model instance data -- map:transform type=xmlform label=debug, xml/ !-- personalizing the look and feel of the form controls -- map:transform src=styles/wizard2html.xsl/ !-- Transforming the XMLForm controls to HTML controls -- map:transform src=styles/xmlform2html.xsl/ !-- sending the HTML back to the browser -- map:serialize type=html/ /map:act /map:match /map:pipeline - 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: webapps Authentication framework vs sunRise Authentication framework
sunrise I believe was the prototype, e.g. scratchpad, for the authentication framework. You should probably not use it. MD - 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: redirect
I'm afraid this e-mail got missed over the weekend. Carsten or anyone else familiar with 2.1 authentication would you be able to help? Thanks, -Alex --- Alex Romayev [EMAIL PROTECTED] wrote: 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]
Retrieving user data from portal
How does one retrieve the user data that is stored in the data tags when going through the authentication framework? I've traced into code and it seems that its being saved in the session somewhere, but I can't seem to be able to figure out how to pull it from the session using the session transformer. Basically, a pipeline that will pull something such as /data/title from the session and display it would be great -- I can get my problem fixed with that. thanks, rob - 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: Ldap authentication
If you want to use the authentication framework look at the authenticate resource. You'll get passed in a password/username and really anything else you had in your login page. Then within the authenticate resource you can call LDAP. the resource can be a cocoon pipeline or some external resource. I use XSP in my authenticate resource calling to the database but you could call LDAP. MD - 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 1.8.2 and Tomcat 4.1.12
Hello Greg, is there anyway written a reference to a file on drive D:\? There must be written file://D:/... instead. Regards, Joerg Greg Jewell wrote: Hi All, I'm trying to get Cocoon 1.8.2 up and running under Tomcat 4.1.12. I've made significant progress, but am encountering an error that I don't understand. In order to get this far, I've had to configure Cocoon to use the SunXMLParser rather than Xerces. (The versions of Xerces found in Cocoon 1.8.2 and Tomcat 4.1.12 appear to be incompatible with each other.) I can load cocoon/Cocoon.xml without problems. When I try to open cocoon/samples/index.xml, though, I get the following error: java.net.MalformedURLException: unknown protocol: d I've placed all the cocoon jar files in webapps/cocoon/WEB-INF/lib, and copied the cocoon samples directory to webapps/cocoon/samples. I've also updated the version of Utils.java that is distributed with cocoon 1.8.2 to the version found in the current development snapshot. What am I missing? Thanks, Greg Jewell - 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: Retrieving user data from portal
Look at the SessionTransformer. It retrieves it. Really session, authentication and the portal all work together. MD - 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]
XMLForms and Java (repost)
Hi all! I'm sending this questions again because I'm still looking the answers. Thanks a lot and sorry for the repost. Mauro -- Forwarded message -- Date: Fri, 1 Nov 2002 12:42:40 -0300 (ARST) From: Mauro Daniel Ardolino [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: XMLForms and Java Hi! I've never used XMLForms, but now I'm writting an application that can have or not a web interface. I mean that I need to contemplate at least 2 types of clients: e.g. swing guis and web browsers. So I wrote all the application in Java. When I need to create a html page I only ask the objects to show themselves as xml and then in a servlet apply a TRAX transformation against a xsl file. Now I want to give some flow logic to the application and I think that struts or cocoon are a good way to do it. I red that XMLForms is Struts based. Following the idea of having not web clients, I still need to create some classes to represent the screens or pages and their buttons, fields, and so on. So the instances of this classes have to answer to messages like asXMLForm. The difference between the XMLForm example and my application is that the XMLForm is not a static xml, it must be created on the fly. I don't know if this approach will take me much time or not (what do you think?). On the other hand: to use XMLForm I have to use cocoon (true or false?). If so: how can I tell cocoon to generate a xmlform asking it to a class. Is there a stream generator? If so, please tell me how to use it. Well, sorry for so many questions. I'm trying to decide what would be the best choice. Thanks in advance. -- Mauro -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar - 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 and Java (repost)
I'm sending this questions again because I'm still looking the answers. oops...looking FOR the answers. Thanks a lot and sorry for the repost. Mauro -- Forwarded message -- Date: Fri, 1 Nov 2002 12:42:40 -0300 (ARST) From: Mauro Daniel Ardolino [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: XMLForms and Java Hi! I've never used XMLForms, but now I'm writting an application that can have or not a web interface. I mean that I need to contemplate at least 2 types of clients: e.g. swing guis and web browsers. So I wrote all the application in Java. When I need to create a html page I only ask the objects to show themselves as xml and then in a servlet apply a TRAX transformation against a xsl file. Now I want to give some flow logic to the application and I think that struts or cocoon are a good way to do it. I red that XMLForms is Struts based. Following the idea of having not web clients, I still need to create some classes to represent the screens or pages and their buttons, fields, and so on. So the instances of this classes have to answer to messages like asXMLForm. The difference between the XMLForm example and my application is that the XMLForm is not a static xml, it must be created on the fly. I don't know if this approach will take me much time or not (what do you think?). On the other hand: to use XMLForm I have to use cocoon (true or false?). If so: how can I tell cocoon to generate a xmlform asking it to a class. Is there a stream generator? If so, please tell me how to use it. Well, sorry for so many questions. I'm trying to decide what would be the best choice. Thanks in advance. -- Mauro -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar - 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: redirect
I did a hack because as you say currently the examples only work for a particular url/file/resource. I actually pass the resource given to me and store it within the login page as a hidden field. When the user submits username, password/etc this will come along too. Then if authenticated i redirect to that resource using request:resource. This retrieves the resource parameter from the http request parameters object and off you go. My redirect looks like this, e.g. map:redirect-to url=cocoon:/?action={request:resource} This then will work for any page in the site that you want protected. Note that I don't point to url's rather I have a single URL (the cocoon servlet and my app). cocoon:/ helps to establish that. I use action id's much like struts (I guess but the concept has been around much longer than struts.) pointing into metadata to help distinguish what page to show. But whether you use action id parameters or file url's this work. later, md - 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 choosing an action at runtime
Just use appropriate selector: http://xml.apache.org/cocoon/userdocs/selectors/selectors.html I already tried but haven't found a nice way of using them for this purpose. I can make something like the pipeline below, but i have dozens of similar cases and it doesn't seem like a good approach. Maybe I haven't understood selectors well... -- !-- XMLForms pipeline -- map:pipeline map:match pattern=* map:select type=parameter map:parameter name=parameter-selector-test value={1}/ !-- Case #1 -- map:when test=EquipmentType map:act type=EquipmentTypeAction !-- XMLForm parameters for the AbstractXMLFormAction -- map:parameter name=xmlform-validator-schema-ns value=http://www.ascc.net/xml/schematron/ map:parameter name=xmlform-validator-schema value={1}/schematron/{1}-validator.xml/ map:parameter name=xmlform-id value=form-insert/ map:parameter name=xmlform-scope value=session/ map:parameter name=xmlform-model value=net.josema.xmtrader.forms.xmldb.recordings.equipment.{1}Bean/ !-- original XMLForm document -- map:generate src={../1}/{page}.xml/ !-- populating the document with model instance data -- map:transform type=xmlform label=debug, xml/ !-- personalizing the look and feel of the form controls -- map:transform src=styles/wizard2html.xsl/ !-- Transforming the XMLForm controls to HTML controls -- map:transform src=styles/xmlform2html.xsl/ !-- sending the HTML back to the browser -- map:serialize type=html/ /map:act /map:when !-- Case #2, very very similar to the first one, it should be a better way to choose between both -- map:when test=RecordingType map:act type=RecordingTypeAction !-- XMLForm parameters for the AbstractXMLFormAction -- map:parameter name=xmlform-validator-schema-ns value=http://www.ascc.net/xml/schematron/ map:parameter name=xmlform-validator-schema value={1}/schematron/{1}-validator.xml/ map:parameter name=xmlform-id value=form-insert/ map:parameter name=xmlform-scope value=session/ map:parameter name=xmlform-model value=net.josema.xmtrader.forms.xmldb.recordings.equipment.{1}Bean/ !-- original XMLForm document -- map:generate src={../1}/{page}.xml/ !-- populating the document with model instance data -- map:transform type=xmlform label=debug, xml/ !-- personalizing the look and feel of the form controls -- map:transform src=styles/wizard2html.xsl/ !-- Transforming the XMLForm controls to HTML controls -- map:transform src=styles/xmlform2html.xsl/ !-- sending the HTML back to the browser -- map:serialize type=html/ /map:act /map:when /map:select /map:match /map:pipeline - 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: Retrieving user data from portal
Right.. I've looked at the SessionTransformer. I'm assuming I will need to do some sort of: session:getxml context=??? path=/data/title/ or some such... but I don't know what context the authentication framework stores the user data in. Am I barking up the wrong tree? thanks, rob On Mon, 04 Nov 2002, [EMAIL PROTECTED] wrote: Look at the SessionTransformer. It retrieves it. Really session, authentication and the portal all work together. MD - 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 1.8.2 and Tomcat 4.1.12
Hi Greg, I had a similar problem under Win2k. I had to reinstall Tomcat in a directory without spaces in its path name. I do not know where the problem comes from, but I never had the problem with Tomcat 4.0. Marco Hi All, I'm trying to get Cocoon 1.8.2 up and running under Tomcat 4.1.12. I've made significant progress, but am encountering an error that I don't understand. In order to get this far, I've had to configure Cocoon to use the SunXMLParser rather than Xerces. (The versions of Xerces found in Cocoon 1.8.2 and Tomcat 4.1.12 appear to be incompatible with each other.) I can load cocoon/Cocoon.xml without problems. When I try to open cocoon/samples/index.xml, though, I get the following error: java.net.MalformedURLException: unknown protocol: d I've placed all the cocoon jar files in webapps/cocoon/WEB-INF/lib, and copied the cocoon samples directory to webapps/cocoon/samples. I've also updated the version of Utils.java that is distributed with cocoon 1.8.2 to the version found in the current development snapshot. What am I missing? Thanks, Greg Jewell - 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] -- +++ GMX - Mail, Messaging more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! - 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 choosing an action at runtime
Check out the Calling resources on this page http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html Maybe you can organize the 'meat' of your pipeline as as a resource and just map:call it from your main pipeline. Artur... -Original Message- From: Josema Alonso [mailto:alonso;aafunky.com] Sent: November 4, 2002 12:57 PM To: [EMAIL PROTECTED] Subject: Re: dynamically choosing an action at runtime Just use appropriate selector: http://xml.apache.org/cocoon/userdocs/selectors/selectors.html I already tried but haven't found a nice way of using them for this purpose. I can make something like the pipeline below, but i have dozens of similar cases and it doesn't seem like a good approach. Maybe I haven't understood selectors well... -- !-- XMLForms pipeline -- map:pipeline map:match pattern=* map:select type=parameter map:parameter name=parameter-selector-test value={1}/ !-- Case #1 -- map:when test=EquipmentType map:act type=EquipmentTypeAction !-- XMLForm parameters for the AbstractXMLFormAction -- map:parameter name=xmlform-validator-schema-ns value=http://www.ascc.net/xml/schematron/ map:parameter name=xmlform-validator-schema value={1}/schematron/{1}-validator.xml/ map:parameter name=xmlform-id value=form-insert/ map:parameter name=xmlform-scope value=session/ map:parameter name=xmlform-model value=net.josema.xmtrader.forms.xmldb.recordings.equipment.{1}Bean/ !-- original XMLForm document -- map:generate src={../1}/{page}.xml/ !-- populating the document with model instance data -- map:transform type=xmlform label=debug, xml/ !-- personalizing the look and feel of the form controls -- map:transform src=styles/wizard2html.xsl/ !-- Transforming the XMLForm controls to HTML controls -- map:transform src=styles/xmlform2html.xsl/ !-- sending the HTML back to the browser -- map:serialize type=html/ /map:act /map:when !-- Case #2, very very similar to the first one, it should be a better way to choose between both -- map:when test=RecordingType map:act type=RecordingTypeAction !-- XMLForm parameters for the AbstractXMLFormAction -- map:parameter name=xmlform-validator-schema-ns value=http://www.ascc.net/xml/schematron/ map:parameter name=xmlform-validator-schema value={1}/schematron/{1}-validator.xml/ map:parameter name=xmlform-id value=form-insert/ map:parameter name=xmlform-scope value=session/ map:parameter name=xmlform-model value=net.josema.xmtrader.forms.xmldb.recordings.equipment.{1}Bean/ !-- original XMLForm document -- map:generate src={../1}/{page}.xml/ !-- populating the document with model instance data -- map:transform type=xmlform label=debug, xml/ !-- personalizing the look and feel of the form controls -- map:transform src=styles/wizard2html.xsl/ !-- Transforming the XMLForm controls to HTML controls -- map:transform src=styles/xmlform2html.xsl/ !-- sending the HTML back to the browser -- map:serialize type=html/ /map:act /map:when /map:select /map:match /map:pipeline - 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]
Selecting serializer based on URI
Hi, is it actually possible to select a serializer based on a regexp in the URI, iow something similar to the following sitemap fragment map:pipeline map:match type=wildcard pattern=publish/instruction-controller.html map:generate type=serverpages src=xml/instruction-controller.xml / map:match type=sessionstate pattern=* map:parameter name=attribute-name value=stylesheet/ map:transform src=xsl/{1}.html.xsl / /map:match map:serialize type=html/ /map:match /map:pipeline which I'd like to replace map:pipeline map:match type=wildcard pattern=publish/instruction-controller.* map:generate type=serverpages src=xml/instruction-controller.xml / map:match type=sessionstate pattern=* map:parameter name=attribute-name value=stylesheet/ map:transform src=xsl/{1}.html.xsl / /map:match map:serialize type={1}/ /map:match /map:pipeline Trying this results into the following exception: org.apache.avalon.framework.configuration.ConfigurationException: Type '{1}' is not defined for 'serialize' at file:/ms/user/g/guttmanw/workdir/build/expiry-webapp/sitemap.xmap:488:32 Or am I approaching this in a wrong way anyhow ? Werner - 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]
ForwardRedirector ???
Is there a way to redirect internally (without going back to the browser) from an action? Actions get a Redirector but it is a SitemapRedirector that calls HttpEnvironment.redirect(). Is there any way I can get a ForwardRedirector in my action. Thanks, Artur... - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: webapps Authentication framework vs sunRise Authentication framework
Thank you Mark. Shall this information be in the authentication framework documentation. -Message d'origine- De : [EMAIL PROTECTED] [mailto:Markdelanoy;aol.com] Envoyé : lundi 4 novembre 2002 18:15 À : [EMAIL PROTECTED] Objet : Re: webapps Authentication framework vs sunRise Authentication framework sunrise I believe was the prototype, e.g. scratchpad, for the authentication framework. You should probably not use it. MD - 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: Retrieving user data from portal
I personally don't use it, but remember going through the authentication code and seeing it. I'm not certain how well documented this is but take a look in Developer Section/webapps/session. There's probably some mention there. If not or not sufficient to your liking there's always the code. You should look in the AuthenticationManager for how it places the user info in the Session Manager. That should give you some clues how to get it out. I think the context is authentication or something like that and then you use xpath to get the user and then your stuff. later, md - 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: Retrieving user data from portal
Yup. It is context authentication. I totally missed this when tracing through the code. thanks! rob On Mon, 04 Nov 2002, [EMAIL PROTECTED] wrote: I personally don't use it, but remember going through the authentication code and seeing it. I'm not certain how well documented this is but take a look in Developer Section/webapps/session. There's probably some mention there. If not or not sufficient to your liking there's always the code. You should look in the AuthenticationManager for how it places the user info in the Session Manager. That should give you some clues how to get it out. I think the context is authentication or something like that and then you use xpath to get the user and then your stuff. later, md - 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: webapps Authentication framework vs sunRise Authentication framework
Shall this information be in the authentication framework documentation. I'm not sure what you mean by that. If your referring to my saying you should use the release version versus the scratchpad version... I'd take release version as presumeably scratchpad development would stop. beyond that I'm not sure what you mean. md - 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 choosing an action at runtime
It's also possible to only have the map:generate/ as child of map:select/ and map:act/ and the rest comes after map:select/: map:match pattern=* map:select type=parameter map:parameter name=parameter-selector-test value={1}/ !-- Case #1 -- map:when test=EquipmentType map:act type=EquipmentTypeAction !-- XMLForm parameters for the AbstractXMLFormAction -- map:parameter name=xmlform-validator-schema-ns value=http://www.ascc.net/xml/schematron/ map:parameter name=xmlform-validator-schema value={1}/schematron/{1}-validator.xml/ map:parameter name=xmlform-id value=form-insert/ map:parameter name=xmlform-scope value=session/ map:parameter name=xmlform-model value=net.josema.xmtrader.forms.xmldb.recordings.equipment.{1}Bean/ !-- original XMLForm document -- map:generate src={../1}/{page}.xml/ /map:act /map:when !-- Case #2, very very similar to the first one, it should be a better way to choose between both -- map:when test=RecordingType map:act type=RecordingTypeAction !-- XMLForm parameters for the AbstractXMLFormAction -- map:parameter name=xmlform-validator-schema-ns value=http://www.ascc.net/xml/schematron/ map:parameter name=xmlform-validator-schema value={1}/schematron/{1}-validator.xml/ map:parameter name=xmlform-id value=form-insert/ map:parameter name=xmlform-scope value=session/ map:parameter name=xmlform-model value=net.josema.xmtrader.forms.xmldb.recordings.equipment.{1}Bean/ !-- original XMLForm document -- map:generate src={../1}/{page}.xml/ /map:act /map:when /map:select !-- populating the document with model instance data -- map:transform type=xmlform label=debug, xml/ !-- personalizing the look and feel of the form controls -- map:transform src=styles/wizard2html.xsl/ !-- Transforming the XMLForm controls to HTML controls -- map:transform src=styles/xmlform2html.xsl/ !-- sending the HTML back to the browser -- map:serialize type=html/ /map:match But for my eyes still everything seems to be the same except the action interna. Maybe it's better to use only one action and choosing there internally what to do? Regards, Joerg Artur Bialecki wrote: Check out the Calling resources on this page http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html Maybe you can organize the 'meat' of your pipeline as as a resource and just map:call it from your main pipeline. Artur... -Original Message- From: Josema Alonso [mailto:alonso;aafunky.com] Sent: November 4, 2002 12:57 PM To: [EMAIL PROTECTED] Subject: Re: dynamically choosing an action at runtime Just use appropriate selector: http://xml.apache.org/cocoon/userdocs/selectors/selectors.html I already tried but haven't found a nice way of using them for this purpose. I can make something like the pipeline below, but i have dozens of similar cases and it doesn't seem like a good approach. Maybe I haven't understood selectors well... -- !-- XMLForms pipeline -- map:pipeline map:match pattern=* map:select type=parameter map:parameter name=parameter-selector-test value={1}/ !-- Case #1 -- map:when test=EquipmentType map:act type=EquipmentTypeAction !-- XMLForm parameters for the AbstractXMLFormAction -- map:parameter name=xmlform-validator-schema-ns value=http://www.ascc.net/xml/schematron/ map:parameter name=xmlform-validator-schema value={1}/schematron/{1}-validator.xml/ map:parameter name=xmlform-id value=form-insert/ map:parameter name=xmlform-scope value=session/ map:parameter name=xmlform-model value=net.josema.xmtrader.forms.xmldb.recordings.equipment.{1}Bean/ !-- original XMLForm document -- map:generate src={../1}/{page}.xml/ !-- populating the document with model instance data -- map:transform type=xmlform label=debug, xml/ !-- personalizing the look and feel of the form controls -- map:transform src=styles/wizard2html.xsl/ !-- Transforming the XMLForm controls to HTML controls -- map:transform src=styles/xmlform2html.xsl/ !-- sending the HTML back to the browser -- map:serialize type=html/ /map:act /map:when !-- Case #2, very very similar to the first one, it should be a better way to choose between both -- map:when test=RecordingType map:act type=RecordingTypeAction !-- XMLForm parameters for the AbstractXMLFormAction -- map:parameter name=xmlform-validator-schema-ns value=http://www.ascc.net/xml/schematron/ map:parameter name=xmlform-validator-schema value={1}/schematron/{1}-validator.xml/ map:parameter name=xmlform-id value=form-insert/ map:parameter name=xmlform-scope value=session/ map:parameter name=xmlform-model value=net.josema.xmtrader.forms.xmldb.recordings.equipment.{1}Bean/
Re: OXF (was Re: cocoon and related projects based on cocoon ...)
Ugo Cei wrote: It surely looks based on Cocoon as far as some architectural concepts are concerned. It does not look based on the Cocoon source code though. Or, at least, they don't say it is ;-). True: OXF doesn't use a single line of code from Cocoon (as a matter of fact we haven't even looked at the Cocoon source code). If you care to try OXF, you will notice that we have worked hard to address lots of issues that Cocoon has. In particular our XML pipelines are very different from Cocoon's (we think that they are very cool, BTW ;-), and error handling is much more user-friendly. Whether you like our commercial approach or not, our white paper on XML pipelines should be of interest to Cocoon'ers, and obviously comes with no strings attached. In that document we describe our concept of XML pipelines and present XPL, an XML Pipeline Definition Language. We hope to release more information about XPL in the future: http://www.orbeon.com/oxf/whitepaper -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]
RE: webapps Authentication framework vs sunRise Authentication framework
I mean if the sunRise framework was really the prototype for the authentication framework, this information should be in the authentication framework doc. I was a little bit confused that C2 supports two frameworks for the same purpose and apparently there is no relationship between them. Senhaji -Message d'origine- De : [EMAIL PROTECTED] [mailto:Markdelanoy;aol.com] Envoyé : lundi 4 novembre 2002 20:45 À : [EMAIL PROTECTED] Objet : Re: webapps Authentication framework vs sunRise Authentication framework Shall this information be in the authentication framework documentation. I'm not sure what you mean by that. If your referring to my saying you should use the release version versus the scratchpad version... I'd take release version as presumeably scratchpad development would stop. beyond that I'm not sure what you mean. md - 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: Accessing uri-prefix from within sub-sitemaps?
Hello Justin, is it possible to use the RequestParamAction (http://xml.apache.org/cocoon/apidocs/org/apache/cocoon/acting/RequestParamAction.html), to pass the {requestURI} to the stylesheet and to have there some logic to get the correct substring? Regards, Joerg Justin Fagnani-Bell wrote: Hi, I'm using sub-sitemaps now to host several projects at once in my development environment. I access the projects through a URL that looks like this - http://localhost/projects/proj1;, and in the sub-sitemaps I have a XSLTransformer prepend a sitemap variable called base to the beginning of all absolute urls, so that all my links work. I end up entering the uri-prefix by hand, the matcher looks something like this: map:generate src={1}/ map:transform src=style.xsl/ map:transform src=fix_urls.xsl map:parameter name=base value=/projects/ /map:transform map:serialize/ What I would like to do is have base automatically set by accessing the uri-prefix set in the mount element on the main sitemap, then when I deploy the project, there's absoutely no changes that need to be made to the sub-sitemap. Is there a way to do this? 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: Mixed XSL performance under Windows/UNIX?
What you read is the complaint of MSXML about the namespace declaration xmlns:xml= This declaration should not be in the output, it's implicit. Can you remove it in any way? Regards, Joerg Derek Hohls wrote: Does anyone know of a reason why an XSL stylesheet would exhibit different behaviour under Windows (test machine) and Unix (server). Could it be related to the fact that when I try and generate the XML input to the stylesheet on the server, the brower returns an error: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. The namespace prefix is not allowed to start with the reserved string xml. Line 2, Position 7 page xmlns:xml=http://www.w3.org/XML/1998/namespace; xmlns:xsp=http://apache.org/xsp; xmlns:xspdoc=http://apache.org/cocoon/XSPDoc/v1; xmlns:esql=http://apache.org/cocoon/SQL/v2; I have also tried running a static file through the same stylesheet and it seems to work OK - of course, as I cannot see the generated XML there may be problems with it. Does anyone know how to overcome either (ot both!) of these problems. Thanks Derek - 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 serialized output
It's not possible to access serialized output, you have to write the source earlier to disk. There exists a SourceWritingTransformer, but it's not available at http://xml.apache.org/cocoon/apidocs/org/apache/cocoon/transformation/package-summary.html, so I assume it's only available in Cocoon 2.1.x. Add it as last transformer in the pipe and it will write the source to disk (with the correct serialization??). map:read/ does something completely different. It reads files from disk and sends them directly (without generating SAX events) to the client (http://outerthought.net/wiki/Wiki.jsp?page=Reader). Regards, Joerg Ludovic de Beaurepaire wrote: 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: Selecting serializer based on URI
Werner, You'll need to use a selector to do this, parameter selector works well. Try something like this: map:match pattern=something.* map:generate src=something.xml/ map:select type=parameter map:parameter name=parameter-selector-test value={1}/ map:when test=pdf map:transform src=xml2fo.xsl/ map:serialize type=fo2pdf/ /map:when map:when test=png map:transform src=xml2svg.xsl/ map:serialize type=svg2png/ /map:when map:otherwise map:transform src=xml2html.xsl/ map:serialize type=html/ /map:otherwise /map:select /map:match On Monday, November 4, 2002, at 10:40 AM, Werner Guttmann wrote: Hi, is it actually possible to select a serializer based on a regexp in the URI, iow something similar to the following sitemap fragment map:pipeline map:match type=wildcard pattern=publish/instruction-controller.html map:generate type=serverpages src=xml/instruction-controller.xml / map:match type=sessionstate pattern=* map:parameter name=attribute-name value=stylesheet/ map:transform src=xsl/{1}.html.xsl / /map:match map:serialize type=html/ /map:match /map:pipeline which I'd like to replace map:pipeline map:match type=wildcard pattern=publish/instruction-controller.* map:generate type=serverpages src=xml/instruction-controller.xml / map:match type=sessionstate pattern=* map:parameter name=attribute-name value=stylesheet/ map:transform src=xsl/{1}.html.xsl / /map:match map:serialize type={1}/ /map:match /map:pipeline Trying this results into the following exception: org.apache.avalon.framework.configuration.ConfigurationException: Type '{1}' is not defined for 'serialize' at file:/ms/user/g/guttmanw/workdir/build/expiry-webapp/ sitemap.xmap:488:32 Or am I approaching this in a wrong way anyhow ? Werner - 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 uri-prefix from within sub-sitemaps?
Thanks for the reply Joerg, I looked into your suggestion, but I don't quite see how to do it. For a project in development the URI will be something like: http://dev.myhost.com/projects/proj1/ and for a deployed project the URI will just be http://somehost.com/ but after that the URI could contain any path, so I feel like checking if the URI starts with /projects/*/ would be a hack and could cause problems if by chance the site contained a top level projects folder. I'm already passing either projects/proj1 or (an empty string) to the stylesheet. I would just like to find a way to pass it to the sub-sitemap, from the main sitemap. Anyway, this problem isn't that big of a deal, just a cleanliness issue really. I'm creating the development system so that there's a deploy button which will upload the site to the server, (like GoLive or Dreamweaver). Right now there's three things I need to do to any project folder, add the WEB-INF director, fix the sitemap to take away the base parameter, and add a correct cocoon.xconf file. I'm just looking to simplify the process. If anyone can help me on the cocoon.xconf problems I'm having I'd very much appreciate it. (I think it could be a bug see http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=103592834813138w=2 ) Thanks, Justin ps. oh i made a mistake in my sitemap code below, the parameter line should be: map:parameter name=base value=/projects/proj1/ On Monday, November 4, 2002, at 11:51 AM, Joerg Heinicke wrote: Hello Justin, is it possible to use the RequestParamAction (http://xml.apache.org/cocoon/apidocs/org/apache/cocoon/acting/ RequestParamAction.html), to pass the {requestURI} to the stylesheet and to have there some logic to get the correct substring? Regards, Joerg Justin Fagnani-Bell wrote: Hi, I'm using sub-sitemaps now to host several projects at once in my development environment. I access the projects through a URL that looks like this - http://localhost/projects/proj1;, and in the sub-sitemaps I have a XSLTransformer prepend a sitemap variable called base to the beginning of all absolute urls, so that all my links work. I end up entering the uri-prefix by hand, the matcher looks something like this: map:generate src={1}/ map:transform src=style.xsl/ map:transform src=fix_urls.xsl map:parameter name=base value=/projects/ /map:transform map:serialize/ What I would like to do is have base automatically set by accessing the uri-prefix set in the mount element on the main sitemap, then when I deploy the project, there's absoutely no changes that need to be made to the sub-sitemap. Is there a way to do this? 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: dynamically choosing an action at runtime
Josema, You don't have to include the parts of your pipeline that are the same in the map:when elements. You can just include the map:act element, since it appears that you're not returning any parameters from your action, and then you won't have to duplicate the part that doesn't vary. An even better way would be to have a proxy Action class that dynamically loads a particular helps class depending on a parameter passed to it. Cocoon already includes something like this with ServerPagesAction, and you write the action in XSP. Justin On Monday, November 4, 2002, at 09:57 AM, Josema Alonso wrote: Just use appropriate selector: http://xml.apache.org/cocoon/userdocs/selectors/selectors.html I already tried but haven't found a nice way of using them for this purpose. I can make something like the pipeline below, but i have dozens of similar cases and it doesn't seem like a good approach. Maybe I haven't understood selectors well... -- !-- XMLForms pipeline -- map:pipeline map:match pattern=* map:select type=parameter map:parameter name=parameter-selector-test value={1}/ !-- Case #1 -- map:when test=EquipmentType map:act type=EquipmentTypeAction !-- XMLForm parameters for the AbstractXMLFormAction -- map:parameter name=xmlform-validator-schema-ns value=http://www.ascc.net/xml/schematron/ map:parameter name=xmlform-validator-schema value={1}/schematron/{1}-validator.xml/ map:parameter name=xmlform-id value=form-insert/ map:parameter name=xmlform-scope value=session/ map:parameter name=xmlform-model value=net.josema.xmtrader.forms.xmldb.recordings.equipment.{1}Bean/ !-- original XMLForm document -- map:generate src={../1}/{page}.xml/ !-- populating the document with model instance data -- map:transform type=xmlform label=debug, xml/ !-- personalizing the look and feel of the form controls -- map:transform src=styles/wizard2html.xsl/ !-- Transforming the XMLForm controls to HTML controls -- map:transform src=styles/xmlform2html.xsl/ !-- sending the HTML back to the browser -- map:serialize type=html/ /map:act /map:when !-- Case #2, very very similar to the first one, it should be a better way to choose between both -- map:when test=RecordingType map:act type=RecordingTypeAction !-- XMLForm parameters for the AbstractXMLFormAction -- map:parameter name=xmlform-validator-schema-ns value=http://www.ascc.net/xml/schematron/ map:parameter name=xmlform-validator-schema value={1}/schematron/{1}-validator.xml/ map:parameter name=xmlform-id value=form-insert/ map:parameter name=xmlform-scope value=session/ map:parameter name=xmlform-model value=net.josema.xmtrader.forms.xmldb.recordings.equipment.{1}Bean/ !-- original XMLForm document -- map:generate src={../1}/{page}.xml/ !-- populating the document with model instance data -- map:transform type=xmlform label=debug, xml/ !-- personalizing the look and feel of the form controls -- map:transform src=styles/wizard2html.xsl/ !-- Transforming the XMLForm controls to HTML controls -- map:transform src=styles/xmlform2html.xsl/ !-- sending the HTML back to the browser -- map:serialize type=html/ /map:act /map:when /map:select /map:match /map:pipeline - 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
thanks for your hint, I got it working now... (it was an error in the sitemap, and - relaxed after a long weekend without computers - I found it rather quickly) for the tutorial: I didn't complete it yet (as I couldn't get the 2nd example to work...) but so far it has been useful and gave me a rough idea how a generator works within cocoon - I hope this is enough to get my own generator working. I was not really interested in the SQL-example (as I'm trying to write a generator for XML that I get from a ozoneDB) but I think it might be useful for many others... 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]
deploy problems on sun one app server 7.0
Greetings all: I have recently installed the sun one app server 7.0 and am in the process of deploying our applications. Most of them have gone smoothly except when it comes to cocoon. I created a war file from our current cocoon, and also tried to deploy the current CVS version, and got this error in both cases: SEVERE ( 252): WebModule[/cocoon]: Servlet /cocoon threw load() exception javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav a:949) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j ava:3346) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3592 ) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.start(StandardHost.java:638) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:345) at org.apache.catalina.startup.Embedded.start(Embedded.java:957) at com.iplanet.ias.web.WebContainer.start(WebContainer.java:426) at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:514) at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:170) - Root Cause - java.security.AccessControlException: access denied (java.lang.RuntimePermission createSecurityManager) at java.security.AccessControlContext.checkPermission(AccessControlContext. java:270) at java.security.AccessController.checkPermission(AccessController.java:401 ) at java.lang.SecurityManager.checkPermission(SecurityManager.java:542) at java.lang.SecurityManager.init(SecurityManager.java:298) at org.apache.cocoon.util.log.CocoonLogFormatter$CallStack.init(CocoonLog Formatter.java:99) at org.apache.cocoon.util.log.CocoonLogFormatter.init(CocoonLogFormatter. java:127) at org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:80 3) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:282) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav a:921) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j ava:3346) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3592 ) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.start(StandardHost.java:638) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:345) at org.apache.catalina.startup.Embedded.start(Embedded.java:957) at com.iplanet.ias.web.WebContainer.start(WebContainer.java:426) at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:514) at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:170) Cocoon was built with jdk1.4, the app server is running on WinXP. Also, if it helps, app server 7 is based on Tomcat. If anybody can help me with this, it would be much appreciated, as I have no idea in which direction to go. Thanx in advance, Kyle Koss - 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: Anyone? (was Re: More sub-sitemap questions)
Hi, Sorry for reposting this yet again, and to both lists, but I haven't been able to find a solution to something that I think should work, (at least according to the cocoon wiki, which specifically mentions that one of the uses for mounts having their own cocoon.xxonf files is to define datasources). The scenario is that I can access components defined in sub-cocoon.xconf files, but only if they don't require a ComponentSelector. If they require a ComponentSelector it can't find the component and I get errors. On Thursday, October 31, 2002, at 09:38 AM, Justin Fagnani-Bell wrote: 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, To clarify, it looks like this in cocoon.xconf: datasources jdbc name=NodeDB pool-controller min=1 max=5/ dburljdbc:mysql:///something/dburl usersomeone/user passwordsomepass/password /jdbc /datasources node-store class=com.paralian.kompas.SQLNodeStore pool-max=1 pool-min=1 parameter name=datasource value=NodeDB/ /node-store The SQLNodeStore loads fine, the following code is in its parameterize method 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]
FW: Cocoon 1.8.2 and Tomcat 4.1.12
Joerg, I don't see any direct references to my D: drive, but thanks for explaining what the error means. Is there someplace specific I should be looking other than Tomcat's server.xml or Cocoon's web.xml or cocoon.properties? Thanks again, Greg -Original Message- From: Joerg Heinicke [mailto:joerg.heinicke;gmx.de] Sent: Monday, November 04, 2002 10:39 AM To: [EMAIL PROTECTED] Subject: Re: Cocoon 1.8.2 and Tomcat 4.1.12 Hello Greg, is there anyway written a reference to a file on drive D:\? There must be written file://D:/... instead. Regards, Joerg Greg Jewell wrote: Hi All, I'm trying to get Cocoon 1.8.2 up and running under Tomcat 4.1.12. I've made significant progress, but am encountering an error that I don't understand. In order to get this far, I've had to configure Cocoon to use the SunXMLParser rather than Xerces. (The versions of Xerces found in Cocoon 1.8.2 and Tomcat 4.1.12 appear to be incompatible with each other.) I can load cocoon/Cocoon.xml without problems. When I try to open cocoon/samples/index.xml, though, I get the following error: java.net.MalformedURLException: unknown protocol: d I've placed all the cocoon jar files in webapps/cocoon/WEB-INF/lib, and copied the cocoon samples directory to webapps/cocoon/samples. I've also updated the version of Utils.java that is distributed with cocoon 1.8.2 to the version found in the current development snapshot. What am I missing? Thanks, Greg Jewell - 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]
FW: Cocoon 1.8.2 and Tomcat 4.1.12
Marco, Unfortunately, there are no spaces in my path to Tomcat. Thank you for the suggestion though. You're help is appreciated. Greg -Original Message- From: [EMAIL PROTECTED] [mailto:mercuron;gmx.ch] Sent: Monday, November 04, 2002 11:03 AM To: [EMAIL PROTECTED] Subject: Re: Cocoon 1.8.2 and Tomcat 4.1.12 Hi Greg, I had a similar problem under Win2k. I had to reinstall Tomcat in a directory without spaces in its path name. I do not know where the problem comes from, but I never had the problem with Tomcat 4.0. Marco Hi All, I'm trying to get Cocoon 1.8.2 up and running under Tomcat 4.1.12. I've made significant progress, but am encountering an error that I don't understand. In order to get this far, I've had to configure Cocoon to use the SunXMLParser rather than Xerces. (The versions of Xerces found in Cocoon 1.8.2 and Tomcat 4.1.12 appear to be incompatible with each other.) I can load cocoon/Cocoon.xml without problems. When I try to open cocoon/samples/index.xml, though, I get the following error: java.net.MalformedURLException: unknown protocol: d I've placed all the cocoon jar files in webapps/cocoon/WEB-INF/lib, and copied the cocoon samples directory to webapps/cocoon/samples. I've also updated the version of Utils.java that is distributed with cocoon 1.8.2 to the version found in the current development snapshot. What am I missing? Thanks, Greg Jewell - 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] -- +++ GMX - Mail, Messaging more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! - 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: FW: Cocoon 1.8.2 and Tomcat 4.1.12
Hmm, I don't know. I have no experience with Cocoon 1.x. Have a look in every file involved in the processing. If one page works and another one not, it must be very specific, maybe the index.xml itself. Sorry, that I can't provide you more help. Regards, Joerg Greg Jewell wrote: Joerg, I don't see any direct references to my D: drive, but thanks for explaining what the error means. Is there someplace specific I should be looking other than Tomcat's server.xml or Cocoon's web.xml or cocoon.properties? Thanks again, Greg -Original Message- From: Joerg Heinicke [mailto:joerg.heinicke;gmx.de] Sent: Monday, November 04, 2002 10:39 AM To: [EMAIL PROTECTED] Subject: Re: Cocoon 1.8.2 and Tomcat 4.1.12 Hello Greg, is there anyway written a reference to a file on drive D:\? There must be written file://D:/... instead. Regards, Joerg Greg Jewell wrote: Hi All, I'm trying to get Cocoon 1.8.2 up and running under Tomcat 4.1.12. I've made significant progress, but am encountering an error that I don't understand. In order to get this far, I've had to configure Cocoon to use the SunXMLParser rather than Xerces. (The versions of Xerces found in Cocoon 1.8.2 and Tomcat 4.1.12 appear to be incompatible with each other.) I can load cocoon/Cocoon.xml without problems. When I try to open cocoon/samples/index.xml, though, I get the following error: java.net.MalformedURLException: unknown protocol: d I've placed all the cocoon jar files in webapps/cocoon/WEB-INF/lib, and copied the cocoon samples directory to webapps/cocoon/samples. I've also updated the version of Utils.java that is distributed with cocoon 1.8.2 to the version found in the current development snapshot. What am I missing? Thanks, Greg Jewell - 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 choosing an action at runtime
It's also possible to only have the map:generate/ as child of map:select/ and map:act/ and the rest comes after map:select/: ... I see, thanks. But for my eyes still everything seems to be the same except the action interna. Maybe it's better to use only one action and choosing there internally what to do? Yes! That's what I'm trying to do, but I still couldn't. I can't think of a way of coding that. Maybe I should know something about the Avalon components and try to make something like an ActionDispatcher...but unfortunately I don't know how to do it :-( Thanks anyway :-) - 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 choosing an action at runtime
You don't have to include the parts of your pipeline that are the same in the map:when elements. You can just include the map:act element, since it appears that you're not returning any parameters from your action, and then you won't have to duplicate the part that doesn't vary. I'm returning the {page} parameter from the action. I'll try it the way you describe anyway and I'll see if I can get some results. An even better way would be to have a proxy Action class that dynamically loads a particular helps class depending on a parameter passed to it. Cocoon already includes something like this with ServerPagesAction, and you write the action in XSP. Yes! But I don't know how to code it. I'll take a look at the Action you mention. 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: XMLForm and pop-up menu
For drop down list use: xf:selectOne For radio buttons, use xf:selectOne selectUIType='radio' - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 04, 2002 8:11 AM Subject: RE: XMLForm and pop-up menu The content should be simply a list of word. The user should choose a word in the pop-up menu (and only these words) instead of enter a word. Sylvain -Message d'origine- De: Reinhard Poetz [mailto:reinhard_poetz;gmx.net] Date: lundi, 4. novembre 2002 14:49 À: [EMAIL PROTECTED] Objet: RE: XMLForm and pop-up menu Sylvain, As far as I know - no. What should be the content of the pop-up menu? Regards, Reinhard -Original Message- From: [EMAIL PROTECTED] [mailto:Sylvain.Thevoz;swisscom.com] Sent: Monday, November 04, 2002 2:19 PM To: [EMAIL PROTECTED] Subject: XMLForm and pop-up menu Hello, I use XMLForm and I want to implement pop-up menu in a form. Is there a solution? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accessing the output of a modular db action in xsl
here is the sitemap segment that shows what I am trying to do. map:match pattern=group2.xsp map:act type=mod-db-sel action=sel-ci map:parameter name=table-set value=content_item/ map:generate type=serverpages src=group2.xsp/ map:transform src=xsl/dynamic-page2html.xsl/ map:transform src=xsl/stupid.xsl map:parameter name=use-request-parameters value=true/ use-session-infotrue/use-session-info /map:transform map:serialize/ /map:act map:read src=finished.html/ map:serialize type=html/ /map:match The kicker is that I can see the values in the logs, but I cannot see the values reflected in the xsl. On a related not, if I add row-count in as a parameter, then it will show up in the xsl, but no other values will. Once again any help greatly appreciated. --- - 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]
Pulling XML data out of database
This is probably an easy one: I want to pull a valid XML text out of a database using SQLTransformer if possible. Problem (1) everything is escaped away to gt;, lt;, and #13; Problem (2) the resulting text won't really be valid, since it would include a second ?xml version=1.0?. How do people do this? rob Robert E. Parrott Department of Physics 351 Jefferson Laboratory Harvard University 17 Oxford St. Cambridge, Massachusetts 02138 (617)-495-2867 [EMAIL PROTECTED] [EMAIL PROTECTED] (permanent) - 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: Mixed XSL performance under Windows/UNIX?
Yes, that's what I would like to know too - how to remove all the attribute data "attached' (not sure by which process or component) to the page tag Thanks Derek [EMAIL PROTECTED] 04/11/2002 10:03:32 What you read is the complaint of MSXML about the namespace declaration xmlns:xml="...". This declaration should not be in the output, it's implicit. Can you remove it in any way?Regards,JoergDerek Hohls wrote: Does anyone know of a reason why an XSL stylesheet would exhibit different behaviour under Windows (test machine) and Unix (server). Could it be related to the fact that when I try and generate the XML input to the stylesheet on the server, the brower returns an error: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. The namespace prefix is not allowed to start with the reserved string "xml". Line 2, Position 7 page xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:xsp="http://apache.org/xsp" xmlns:xspdoc="http://apache.org/cocoon/XSPDoc/v1" xmlns:esql="http://apache.org/cocoon/SQL/v2" I have also tried running a "static" file through the same stylesheet and it seems to work OK - of course, as I cannot see the generated XML there may be problems with it. Does anyone know how to overcome either (ot both!) of these problems. Thanks Derek-Please check that your question has not already been answered in theFAQ before posting. http://xml.apache.org/cocoon/faq/index.htmlTo unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
Latest Cocoon 2.1-dev scratchpad appears to depend on j2sdk 1.4.x
While trying to compile the lastest CVS version of cocoon, I ran into an issue with the scratchpad libraries: In part, from the file DelayedFileOutputStream.java: public void setFileOutputStream(File file, boolean append) throws FileNotFoundException { if (fos == null) { fos = new FileOutputStream(file, append); The form of FileOutputStream constructor used is new in 1.4. This will no longer compile in 1.3.x. /mde/ just my two cents . . . . __ 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: Accessing the output of a modular db action in xsl
here is the sitemap segment that shows what I am trying to do. map:match pattern=group2.xsp map:act type=mod-db-sel action=sel-ci map:parameter name=table-set value=content_item/ map:generate type=serverpages src=group2.xsp/ map:transform src=xsl/dynamic-page2html.xsl/ map:transform src=xsl/stupid.xsl map:parameter name=use-request-parameters value=true/ use-session-infotrue/use-session-info /map:transform map:serialize/ /map:act map:read src=finished.html/ map:serialize type=html/ /map:match The kicker is that I can see the values in the logs, but I cannot see the values reflected in the xsl. On a related not, if I add row-count in as a parameter, then it will show up in the xsl, but no other values will. Once again any help greatly appreciated. - 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: Latest Cocoon 2.1-dev scratchpad appears to depend on j2sdk 1.4.x
I just changed the relevant line to: fos = new FileOutputStream(file.getCanonicalPath(), append); Regards, Lajos Mark Eggers wrote: While trying to compile the lastest CVS version of cocoon, I ran into an issue with the scratchpad libraries: In part, from the file DelayedFileOutputStream.java: public void setFileOutputStream(File file, boolean append) throws FileNotFoundException { if (fos == null) { fos = new FileOutputStream(file, append); The form of FileOutputStream constructor used is new in 1.4. This will no longer compile in 1.3.x. /mde/ just my two cents . . . . __ 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] -- galatea.com Cocoon training, consulting support - 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: Latest Cocoon 2.1-dev scratchpad appears to depend on j2sdk 1.4.x
Thanks, I need to sit down and read the Java API (again). --- Lajos Moczar [EMAIL PROTECTED] wrote: I just changed the relevant line to: fos = new FileOutputStream(file.getCanonicalPath(), append); Regards, /mde/ just my two cents . . . . __ 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: Anyone? (was Re: More sub-sitemap questions)
Hi, Sorry for reposting this yet again, and to both lists, but I haven't been able to find a solution to something that I think should work, (at least according to the cocoon wiki, which specifically mentions that one of the uses for mounts having their own cocoon.xxonf files is to define datasources). The scenario is that I can access components defined in sub-cocoon.xconf files, but only if they don't require a ComponentSelector. If they require a ComponentSelector it can't find the component and I get errors. On Thursday, October 31, 2002, at 09:38 AM, Justin Fagnani-Bell wrote: 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, To clarify, it looks like this in cocoon.xconf: datasources jdbc name=NodeDB pool-controller min=1 max=5/ dburljdbc:mysql:///something/dburl usersomeone/user passwordsomepass/password /jdbc /datasources node-store class=com.paralian.kompas.SQLNodeStore pool-max=1 pool-min=1 parameter name=datasource value=NodeDB/ /node-store The SQLNodeStore loads fine, the following code is in its parameterize method 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]