AW: cocoon url redirection using action?
Title: cocoon url redirection using action? Hi Alban, should work because if cocoon:/ protocol is used it is only a internal redirect and not a new request. "A redirection URI can make use of the cocoon: protocol to return content from another Cocoon pipeline. In this case, the redirection happens internally. The content from the redirected URI is returned to the client as if it came from the original URI. " (http://cocoon.apache.org/2.1/userdocs/concepts/redirection.html) Greetings, Markus -Ursprüngliche Nachricht-Von: Tsui, Alban [mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 23. Oktober 2003 17:30An: [EMAIL PROTECTED]Betreff: cocoon url redirection using action? Hi I want to do some redirection using Assuming the redirect url is generated by my action as above, would it automatically redirect all the queryparameters (POSTed) along to the redirect url? Or do I need to do something special in the action codes to pass along the posted query parameters? What I have in mind is that I have a url like: cocoon/gateway and a form is posted to this url and then from my action, it would examine some parameters and then redirect the posted form to another url for further processing by keeping all the request parameters orginally posted to cocoon/gateway. Any help would be appreciated. Thanks. Alban P.S. I am using cocoon 2.0.3 on tomcat. Join us at Cognos' biggest event of the year Enterprise 2003, The Cognos Business Forum. Taking place in over 25 cities around the world, it's an opportunity for Business and IT leaders to learn about strategies for driving performance. Visit http://www.cognos.com/enterprise03 for more details. This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
Re: Example for session output module anyone?
So one could write a "proxy" action to allow direct usage of output modules from sitemap? I wrote a small Wiki-document on modules, that would have helped me a lot a month back (http://wiki.cocoondev.org/Wiki.jsp?page=Modules). Is the information on this page correct? If so, I could try to work it a bit better and perhaps write a newbie howto about modular database actions. On Thu, 23 Oct 2003, Christian Haul wrote: > > As far as I know, output modules work only from > > modular database actions (set in the descriptor > > This is incorrect. Output modules are in no way tied to the database > actions. However, there are few other places that use them. > But there is no way to directly use them from your sitemap. > Only through an action or any other avalon component. -- Mika Fonsén * http://iki.fi/mf __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cut root element in CInclude inclusion ?
Ok thanks Joerg ! I'll try this. On 23/10/2003 22:20, Joerg Heinicke wrote: On 22.10.2003 15:39, Olivier Billard wrote: Hi all ! The doc and javadoc aren't very clear : is there a way to cut the root element of an xml fragment included via the CInclude transformer ? I read there is an attribute for surrounding the content by an element, but not for cutting the root element. No, there is not. Sitemap aggregation cuts elements optionally. XInclude can prevent any element from being included by using XPointer. Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Static content XML Shema
Hi all, is there a standard XML Schema to be used for statc content pubblications? I know I can invent my own, but if there's a well known way, I prefer to take that way. Many Thanks, Gianluca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
session tracking without cookies
Hey, seems like with encodeUrl I can do HTML-pages with session tracking and without cookie support, yes? But how about sitemap and redirects? How to insert session information to redirects? http://host/di/rec/tory{session:id}"; /> or how? I am trying to make cookie free application. Cocoon 2.0.4 Thanks, Joose -- Joose Vettenranta <[EMAIL PROTECTED]> GSM: 044 561 0270 * Always remember that you are unique. Just like everyone else.* - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session tracking without cookies
http://host/di/rec/tory"; session="true"/> http://cocoon.apache.org/2.1/userdocs/concepts/redirection.html http://wiki.cocoondev.org/Wiki.jsp?page=Redirects Joerg Joose Vettenranta wrote: Hey, seems like with encodeUrl I can do HTML-pages with session tracking and without cookie support, yes? But how about sitemap and redirects? How to insert session information to redirects? http://host/di/rec/tory{session:id}"; /> or how? I am trying to make cookie free application. Cocoon 2.0.4 Thanks, Joose -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Rhino editor
Is there a Rhino JavaScript editor (helpful in coding flowscrips) available at the net? Syntax checking, coloring etc.? Regards -- Używam M2 - innowacyjnego klienta poczty wbudowanego w Operę: http://www.opera.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session tracking without cookies
pe, 2003-10-24 kello 12:03, Joerg Heinicke kirjoitti: > http://host/di/rec/tory"; session="true"/> I tried And it forwarded it to /joose/ and not to /joose/;JSESSIONID=gf08hf40ff4fw so it did not work. > http://cocoon.apache.org/2.1/userdocs/concepts/redirection.html this page says session should have value yes, but I tried that too and it did not work. I am using cocoon 2.0.4 so that might be the problem too? - Joose -- Joose Vettenranta <[EMAIL PROTECTED]> GSM: 044 561 0270 * Always remember that you are unique. Just like everyone else.* - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Static content XML Shema
document-v11 from forrest http://xml.apache.org/forrest/document-v11.dtdx.html may can help you --stavros On Fri, 24 Oct 2003, Gianluca Sartori wrote: > Hi all, > > is there a standard XML Schema to be used for statc content > pubblications? I know I can invent my own, but if there's a well known > way, I prefer to take that way. > > Many Thanks, > Gianluca > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Pooled connection from flowscript
(I'm afraid the question has already been answered, but I couldn't find it.) How to get a connection from a pool using flowscripts? Regards -- Używam M2 - innowacyjnego klienta poczty wbudowanego w Operę: http://www.opera.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cocoon hosting
Hello! Could anybody tell me how to organize a hosting with apache-tomcat-COCOON!(!!!). I have a problem with the existing one - my cocoon application hung up when i try to use it frequently. As i see Java ete all memory, sometimes when i send request frequently processloading aspire to 100%. My application(site ) only do ordinary XSLT-operation Tomcat-4.1.27 Apache 1.3.27 mod_jk2 cocoon-2.0.4 Server: p4-Xeon RAM-512 Java options: -Xms160m -Xmx160m -Xss128k -Xincgc -- Best regards, Sergey mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon hosting
the way we do our virtual hosting: http://wiki.cocoondev.org/Wiki.jsp?page=VirtualHost --stavros On Fri, 24 Oct 2003, Sergey N. Fefilatyev wrote: > Hello! > Could anybody tell me how to organize a hosting with > apache-tomcat-COCOON!(!!!). I have a problem with the existing one - my > cocoon application hung up when i try to use it frequently. As i see > Java ete all memory, sometimes when i send request frequently > processloading aspire to 100%. My application(site ) only do ordinary > XSLT-operation > > Tomcat-4.1.27 > Apache 1.3.27 > mod_jk2 > cocoon-2.0.4 > > Server: > p4-Xeon > RAM-512 > > Java options: -Xms160m -Xmx160m -Xss128k -Xincgc > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
nuke like engine based on cocoon
hi people this is just an idea or/and a proposition to begin a "CocoonNuke" maybe project something just like nukes (postnuke phpnuke) but using cocoon are people working already to this direction? --stavros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: cocoon hosting
Hello gounis, Friday, October 24, 2003, 1:42:03 PM, you wrote: gog> the way we do our virtual hosting: gog> http://wiki.cocoondev.org/Wiki.jsp?page=VirtualHost but why cocoon falls down?? What options in cocoon.xconf should i use? gog> --stavros gog> On Fri, 24 Oct 2003, Sergey N. Fefilatyev wrote: >> Hello! >> Could anybody tell me how to organize a hosting with >> apache-tomcat-COCOON!(!!!). I have a problem with the existing one - my >> cocoon application hung up when i try to use it frequently. As i see >> Java ete all memory, sometimes when i send request frequently >> processloading aspire to 100%. My application(site ) only do ordinary >> XSLT-operation >> >> Tomcat-4.1.27 >> Apache 1.3.27 >> mod_jk2 >> cocoon-2.0.4 >> >> Server: >> p4-Xeon >> RAM-512 >> >> Java options: -Xms160m -Xmx160m -Xss128k -Xincgc >> >> >> >> gog> - gog> To unsubscribe, e-mail: [EMAIL PROTECTED] gog> For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Sergeymailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Default value for input modules?
Hi, I don't want to extend Java Code. Isn't there any possibility to do this on the sitemap? How would the example in this Email for xsp look like on the sitemap? Best regards, Mat > Von: Tony Collen <[EMAIL PROTECTED]> > Antworten an: [EMAIL PROTECTED] > Datum: Thu, 23 Oct 2003 10:25:19 -0500 > An: [EMAIL PROTECTED] > Betreff: Re: Default value for input modules? > > [EMAIL PROTECTED] wrote: > >> Hi, >> I want to use the "request-param" input module on the sitemap to define a >> parameter's value. My question is: is it possible to "initialize" this >> parameter with an default value? I saw something in the documentation under >> "modules" for xsp but not for the sitemap: >> ... >> > default="John Doe"/> >> ... > > > Mathias, > > You might want to check out the DefaultsModule, as well as the > ChainMetaModule. They will allow you to setup a default values to "Fall > back" to in case the main module (in this case request-param) can't get > a value. > > > Regards, > > Tony > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: cocoon hosting
when u say ... fall down? from :8080 or with apache at front? -- stavros On Fri, 24 Oct 2003, Sergey N. Fefilatyev wrote: > Hello gounis, > > Friday, October 24, 2003, 1:42:03 PM, you wrote: > > > > gog> the way we do our virtual hosting: > gog> http://wiki.cocoondev.org/Wiki.jsp?page=VirtualHost > > but why cocoon falls down?? What options in cocoon.xconf should i use? > > > > > gog> --stavros > > > gog> On Fri, 24 Oct 2003, Sergey N. Fefilatyev wrote: > > >> Hello! > >> Could anybody tell me how to organize a hosting with > >> apache-tomcat-COCOON!(!!!). I have a problem with the existing one - my > >> cocoon application hung up when i try to use it frequently. As i see > >> Java ete all memory, sometimes when i send request frequently > >> processloading aspire to 100%. My application(site ) only do ordinary > >> XSLT-operation > >> > >> Tomcat-4.1.27 > >> Apache 1.3.27 > >> mod_jk2 > >> cocoon-2.0.4 > >> > >> Server: > >> p4-Xeon > >> RAM-512 > >> > >> Java options: -Xms160m -Xmx160m -Xss128k -Xincgc > >> > >> > >> > >> > > > gog> - > gog> To unsubscribe, e-mail: [EMAIL PROTECTED] > gog> For additional commands, e-mail: [EMAIL PROTECTED] > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jpath and position() problem
A piece of code tst/v[position() > 3] works properly but is always 0. Why? Regards -- Używam M2 - innowacyjnego klienta poczty wbudowanego w Operę: http://www.opera.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Rhino editor
Mariusz Sieraczkiewicz wrote: Is there a Rhino JavaScript editor (helpful in coding flowscrips) available at the net? Syntax checking, coloring etc.? There is a javascript editor (Rhino is just the implementation) for eclipse which is pretty good. Don't remember the name but it's at sourceforge and was mentioned on this list or on dev in the last 2 months. A few of us were interested in writing an extension for it to provide support for flow-specific properties and methods but AFAIK that has gone nowhere yet. That'd be a phenominal contribution to the usefulness of flow IMO. Geoff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Woody wd:action
I'm trying to design a form which contains multiple submit buttons in combination with flowscript. In HTML this is usually solved by defining multiple input elements (type="submit") with same name, but with different value. All Woody examples contain definition of submit button in the form template, but there is neither value nor name of input element. So I don't know how to set it up to make multiple submit buttons possible. I think the only way is to define wd:action element in form model. Since there is no documentation on wd:action I had to guess how to use it. Sample of my test case is here: Logon Applying of Woody transformer (template->instance) generates following output: Logon Then after applying woody-default.xsl following html output: The problem is that when I submit the form, flowscript doesn't return from showForm() call (it even doesn't validate form). The form is redisplayed without any change. I would like also to know how to identify submit value in flowscript. I know that there is submitId attribute of form, but it seems to be always null. -- Vladimir 'Yilard' Marko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Rhino editor
- Original Message - From: "Geoff Howard" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 24, 2003 1:32 PM Subject: Re: Rhino editor > Mariusz Sieraczkiewicz wrote: > > Is there a Rhino JavaScript editor (helpful in coding flowscrips) > > available at the net? > > Syntax checking, coloring etc.? > > There is a javascript editor (Rhino is just the implementation) for > eclipse which is pretty good. Don't remember the name but it's at > sourceforge and was mentioned on this list or on dev in the last 2 > months. A few of us were interested in writing an extension for it to > provide support for flow-specific properties and methods but AFAIK that > has gone nowhere yet. That'd be a phenominal contribution to the > usefulness of flow IMO. Yes, yes, yes! Code completion would be most wanted by me ;-)) Regards Stephan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : [auth-fw] NPE in Application Manager
Great, it's working. :-) But I have detected something weird, or may be something that I don't understand. If you declare an application without the loadondemand, this application is loaded at login time, but this loading fails in [EMAIL PROTECTED] because the application name is not set. If I put the name in the sitemap like that the loading succeeds. ... ... I think that this design is weird. In [EMAIL PROTECTED], we have a loop on each application in the handler but only one will be loaded. Is it the right design or is it a bug? Laurent Trillaud > -Message d'origine- > De : Carsten Ziegeler [mailto:[EMAIL PROTECTED] > Envoyé : jeudi 23 octobre 2003 16:54 > À : [EMAIL PROTECTED] > Objet : RE: [auth-fw] NPE in Application Manager > > I think I have fixed now the bug, so the NPE should not occur > any more. > > Please cross check. > > Thanks > Carsten > > Carsten Ziegeler wrote: > > > > Hi, > > > > I guess you have found a bug :( > > Your assumptions are right, except that the save uri is called > > on logout. Currently you have to do it manually using the > > session transformer. > > But I think having a save on logout is a nice addition. > > > > So, I hope to have time in the next week to look at it, > > but if you want you can of course send a patch. > > > > Carsten > > > > > -Original Message- > > > From: Laurent Trillaud [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, October 22, 2003 9:46 AM > > > To: [EMAIL PROTECTED] > > > Subject: [auth-fw] NPE in Application Manager > > > > > > > > > Hi cocooners > > > I'm trying to add a new application in the portal engine's > > > authentication handler. The goal is to activate a pipeline at login > and > > > logout and put data in a separate session context. Here is the sniplet > > > of the sitemap > > > ... > > > > > > > > > > > > > > > > > uri="cocoon:raw:/sunrise-authuser"/> > > > > > > > > name="portal"> > > > > > > > > > ... > > > > > > > > > > > > > > >> uri="cocoon:raw:/load-MyData"/> > > >> uri="cocoon:raw:/save-MyData"/> > > > > > > > > > > > > > > > > > > ... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ... > > > If I understand the documentation of the authentication framework > > > http://localhost:/docs/developing/webapps/authentication.html > > > the uri load-MyData is trigger at login and I hope save-MyData trigger > > > at logout. When I do a login I got this NPE. > > > > > > - > > > java.lang.NullPointerException > > > at > > > > org.apache.cocoon.webapps.authentication.context.AuthenticationContext.c > > > reateParameters(AuthenticationContext.java:771) > > > at > > > > org.apache.cocoon.webapps.authentication.context.AuthenticationContext.l > > > oadApplicationXML(AuthenticationContext.java:884) > > > at > > > > org.apache.cocoon.webapps.authentication.components.PipelineAuthenticato > > > r.authenticate(PipelineAuthenticator.java:265) > > > at > > > > org.apache.cocoon.webapps.authentication.components.DefaultAuthenticatio > > > nManager.login(DefaultAuthenticationManager.java:238) > > > at > > > > org.apache.cocoon.webapps.authentication.acting.LoginAction.act(LoginAct > > > ion.java:118) > > > at > > > > org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(Ac > > > tTypeNode.java:152) > > > at > > > > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. > > > invokeNodes(AbstractParentProcessingNode.java:84) > > > at > > > > org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.i > > > nvoke(PreparableMatchNode.java:164) > > > at > > > > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. > > > invokeNodes(AbstractParentProcessingNode.java:108) > > > at > > > > org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P > > > ipelineNode.java:163) > > > at > > > > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. > > > invokeNodes(AbstractParentProcessingNode.java:108) > > > at > > > > org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke( > > > PipelinesNode.java:161) > > > at > > > > org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro > > > cessor.java:351) > > > at >
Re: nuke like engine based on cocoon
Hi, > this is just an idea or/and a proposition > to begin a "CocoonNuke" maybe project > something just like nukes (postnuke phpnuke) but using cocoon Well, the portal-fw/engine should ba a good base to start. It offers you unser management and customization as a basis. You just have to extend it with the missing features :-) -- * best regards * Jens Maukisch * www: http://www.maukisch.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: nuke like engine based on cocoon
On Fri, 24 Oct 2003, Jens Maukisch wrote: > Hi, > > > this is just an idea or/and a proposition > > to begin a "CocoonNuke" maybe project > > something just like nukes (postnuke phpnuke) but using cocoon > > Well, the portal-fw/engine should ba a good base to start. > It offers you unser management and customization as a basis. > You just have to extend it with the missing features :-) alone ??? any other volunteer ? > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: nuke like engine based on cocoon
i'm interested in that. cham -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Freitag, 24. Oktober 2003 14:50 To: [EMAIL PROTECTED]; Jens Maukisch Subject: Re: nuke like engine based on cocoon On Fri, 24 Oct 2003, Jens Maukisch wrote: > Hi, > > > this is just an idea or/and a proposition > > to begin a "CocoonNuke" maybe project > > something just like nukes (postnuke phpnuke) but using cocoon > > Well, the portal-fw/engine should ba a good base to start. > It offers you unser management and customization as a basis. > You just have to extend it with the missing features :-) alone ??? any other volunteer ? > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : [auth-fw] NPE in Application Manager
Laurent Trillaud wrote: > Great, it's working. :-) > But I have detected something weird, or may be something that I don't > understand. > If you declare an application without the loadondemand, this application > is loaded at login time, but this loading fails in > [EMAIL PROTECTED] because the application name is not > set. > If I put the name in the sitemap like that the loading succeeds. > ... > > > > > value="{request-param:password}"/> > > > ... > I think that this design is weird. In > [EMAIL PROTECTED], we have a loop on each > application in the handler but only one will be loaded. > Is it the right design or is it a bug? It's another bug :) I just committed a fix, so it should now work for you (hopefully). You shouldn't need to specify the application in the login action. Thanks for spotting this! Carsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: nuke like engine based on cocoon
ok whe are two (till now) 1.Meyer 2.Stavros how many we have to be to begin something? and how ? i'm interested too On Fri, 24 Oct 2003, Meyer, Christian wrote: > i'm interested in that. > > cham > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Freitag, 24. Oktober 2003 14:50 > To: [EMAIL PROTECTED]; Jens Maukisch > Subject: Re: nuke like engine based on cocoon > > > On Fri, 24 Oct 2003, Jens Maukisch wrote: > > > Hi, > > > > > this is just an idea or/and a proposition > > > to begin a "CocoonNuke" maybe project > > > something just like nukes (postnuke phpnuke) but using cocoon > > > > Well, the portal-fw/engine should ba a good base to start. > > It offers you unser management and customization as a basis. > > You just have to extend it with the missing features :-) > > alone ??? > > any other volunteer ? > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
thanks everyone
Thank you to all who jumped right in to help me yesterday. Is this what I'm supposed to be seeing? Last login: Fri Oct 24 07:43:35 on ttyp2 Welcome to Darwin! [jb:~] johnblumer% cd /Users/johnblumer/cocoon-2.1.2/ [jb:~/cocoon-2.1.2] johnblumer% cocoon servlet cocoon: Command not found. [jb:~/cocoon-2.1.2] johnblumer% ./cocoon.sh servlet ./cocoon.sh: using ./build/webapp as the webapp directory Loading Processing repository: ./tools/jetty/lib Adding jar: ./tools/jetty/lib/jetty-4.2.9.jar Adding jar: ./tools/jetty/lib/servlet-2.3.jar Processing repository: ./lib/endorsed Adding jar: ./lib/endorsed/xalan-2.5.1.jar Adding jar: ./lib/endorsed/xercesImpl-2.5.0.jar Adding jar: ./lib/endorsed/xml-apis.jar Executing - Main Class: org.mortbay.jetty.Server 07:48:55.957 EVENT Starting Jetty/4.2.9 07:48:58.559 EVENT Started WebApplicationContext[/,./build/webapp] server.properties not found, using command line or default properties Opening database: /Users/johnblumer/cocoon-2.1.2/build/webapp/WEB-INF/db/cocoondb HSQLDB server 1.7.1 is running Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly Fri Oct 24 07:49:05 CDT 2003 Listening for connections ... - Quartz scheduler 'Cocoon - Quartz scheduler version: 1.2.3 - Scheduler Cocoon_$_Fri_Oct_24_07:49:13_CDT_2003 started. 07:49:14.290 EVENT Started SocketListener on 0.0.0.0: 07:49:14.293 EVENT Started [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: thanks everyone
Yep this is what you get when you run it on Panther... If you switch to Tomcat, you will have a problem finding the endorsed lib to put the xalan, xerces and xml-api jars in, so you are better off using the Paranoid mode in the cocoon.xconf file... But it runs nice with jetty too. Regards Dp On Oct 24, 2003, at 15:24, John Blumer wrote: Thank you to all who jumped right in to help me yesterday. Is this what I'm supposed to be seeing? Last login: Fri Oct 24 07:43:35 on ttyp2 Welcome to Darwin! [jb:~] johnblumer% cd /Users/johnblumer/cocoon-2.1.2/ [jb:~/cocoon-2.1.2] johnblumer% cocoon servlet cocoon: Command not found. [jb:~/cocoon-2.1.2] johnblumer% ./cocoon.sh servlet ./cocoon.sh: using ./build/webapp as the webapp directory Loading Processing repository: ./tools/jetty/lib Adding jar: ./tools/jetty/lib/jetty-4.2.9.jar Adding jar: ./tools/jetty/lib/servlet-2.3.jar Processing repository: ./lib/endorsed Adding jar: ./lib/endorsed/xalan-2.5.1.jar Adding jar: ./lib/endorsed/xercesImpl-2.5.0.jar Adding jar: ./lib/endorsed/xml-apis.jar Executing - Main Class: org.mortbay.jetty.Server 07:48:55.957 EVENT Starting Jetty/4.2.9 07:48:58.559 EVENT Started WebApplicationContext[/,./build/webapp] server.properties not found, using command line or default properties Opening database: /Users/johnblumer/cocoon-2.1.2/build/webapp/WEB-INF/db/cocoondb HSQLDB server 1.7.1 is running Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly Fri Oct 24 07:49:05 CDT 2003 Listening for connections ... - Quartz scheduler 'Cocoon - Quartz scheduler version: 1.2.3 - Scheduler Cocoon_$_Fri_Oct_24_07:49:13_CDT_2003 started. 07:49:14.290 EVENT Started SocketListener on 0.0.0.0: 07:49:14.293 EVENT Started [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- (c) copyright Deepak Mehta 2003 Reading this message constitutes copyright infringement. You are under arrest - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cocoon sites
Hello fellow developers! Could you tell me , how many sites(the maximum) is possible to server with cocoon?( i mean with one instance) -- Best regards, Sergey mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
flows on weblogic 7
Hi all, I have a problem with flows in cocoon-2.1.1: "resource://org/apache/cocoon/components/flow/javascript/fom/fom_system.js", line 4: uncaught JavaScript exception: at calculator (file:/C:/CocoonSDK/bea7/dev/applications/ishauth-2/samples/flow/calc/calc.js, Line 5) at getNumber (file:/C:/CocoonSDK/bea7/dev/applications/ishauth-2/samples/flow/calc/calc.js, Line 24) at (resource://org/apache/cocoon/components/flow/javascript/fom/fom_system.js, Line 4): java.lang.ClassCastException That's from the flow samples of cocoon. This samples work fine for me in tomcat but not in weblogic. Before (I though) I fixed to "weblogic rhino" issue described e.g. in http://www.mail-archive.com/[EMAIL PROTECTED]/msg06176.html by unpacking weblogic.jar and replacing the org.mozilla.* stuff the rhino.jar supplied by cocoon (just removing it didn't worked for me). My first impression was that everything was fine because the '"Continuation" is not defined' message disappered and my flow was working. Today I wanted to use woody with flow and I always got the error message I copied on top of this message. I tried the cocoon flow examples and I'm getting the same message. Now my question: Is this also related to the rhino/WL problem or is there something else that I should look for? Is there any other option than (copied from Velle Andrè message: http://www.mail-archive.com/[EMAIL PROTECTED]/msg06205.html) 1)Remove the rhino classes from weblogic.jar 2)Use ParanoidCocoonServlet, and do all the necessary weeding in the libs to get rid of all the classcastexceptions. 3) Use something other than weblogic I tried 1), 3) is not an option for me (would prefer tomcat) and 2) seems to be to much work... Thanks for any answer! Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon sites
they are 13 live sites in our production server till now p4 2.4 1G RAM redhat cocoon2.0.4 on tomcat and the machine is allmost sleeping all the time --stavros On Fri, 24 Oct 2003, Sergey N. Fefilatyev wrote: > Hello fellow developers! > Could you tell me , how many sites(the maximum) is possible to server > with cocoon?( i mean with one instance) > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Understanding Woody
Hi guys, Could you help me making order in my understanding of woody? I started playing with it. What I'd like to do is get some data from the user and put in into a DB. I already have: 1. an XHTML page representing the form 2. a woody form definition 3. an XSP + ESQL which does database insertion of the request data I need to: 1. Create an XSLT template from my XHTML Form Template 2. Put all this stuff into the sitemap in a proficient way How can I do this? In the cocoon wiki I found the registration form example but it uses the Woody Template Transformer I don't need (I have all the pages designed by someone else). All I need to know is which transformer to use to create an XSP out of my Form Definition. I read about a Woody Form Instance whose namespace is "wi". I understand I can create the XHTML trasforming the Form Instace with an XSLT. Is it true or a I missing the point? Thanks in advance, Gianluca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Uploading fiiles: flow function
Hi Geoff I have been trying to develope a system to upload a file to cocoon (I'm using cocoon 2.1) ... but I have not achieved it !!! I need some help, because I don't understant wiki explanation. I know flow is not very easy to implement ... but can it be done with an action? Could somebody explain me more about uploading files in Cocoon 2.1 Thanks a lot ... - Original Message - From: "Geoff Howard" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 15, 2003 1:52 AM Subject: Re: Uploading fiiles: flow function > Josep Riudavets Aguilo wrote: > > > Hi all ... > > > > I'm delevoping some code in Cocoon 2.1 in order to upload files. > > > > I have added these lines into my XSL page: > > > > > > > > > > > > > > Next, I have added this code into the sitemap.xmap: > > > > > > > > > > > > Now ... I have to write next function: > > > >var role = Packages.org.mystuff.UploadManager.ROLE; > > > >function upload() { > > var uploader = cocoon.componentManager.getComponent(role); > > var part = cocoon.request.get("blah"); > > var success = uploader.handle(part.getInputStream()); > > if (success) { > > sendPage("success.html"); > > } else { > > sendPage("failure.html"); > > } > >} > > > > But I don't know where to write this function !!! Is is a javascript > > function??? > > > > (all info is from > > http://wiki.cocoondev.org/Wiki.jsp?page=FileUploadsWithFlow) > > It's flowscript which, yes, is implemented in Cocoon using the > javascript core from the Rhino project. You'll need to read up at least > a little on the wiki about flow before making much sense of this. That > was an example snippet, not a cut-and-paste ready solution. > > For instance, it presupposes that you have a component written and > deployed in Cocoon called org.mystuff.UploadManager and you also have a > pipeline which matches "success.html" and "failure.html". oh, and it > presupposes that org.mystuff.UploadManager has a public method > handle(InputStream is). > > I think this is going to be so common that it would probably deserve to > be in the core at least in a simple form. I'll see if I can make some > time for it. This is really pretty easy and would be a good simple > patch for someone who is interested. I'd be happy to help out. > > Geoff > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Uploading fiiles: flow function
Josep Riudavets wrote: Hi Geoff I have been trying to develope a system to upload a file to cocoon (I'm using cocoon 2.1) ... but I have not achieved it !!! Tell me more about what you have tried so far and exactly what you want to accomplish. I need some help, because I don't understant wiki explanation. I know flow is not very easy to implement ... but can it be done with an action? Flow is not that hard. The point I was making was the wiki mentions an upload handler that doesn't exist (because everyone wants to do something different with their upload). You don't have to do it with a component lookup to an upload handler. Let me know what you want to do and I can give you a quick example which will work and advice on how to improve it. Do you just want to save it to a directory on disk? This can be done with an action but not with an existing action. I'd really recommend going with flow. Could somebody explain me more about uploading files in Cocoon 2.1 The big thing to remember is you are not uploading them. Cocoon has already handled all the work for you and gives you a way to get the contents of the file as an InputStream (or potentially as a java.io.File) reference. Both of those will be gone automatically at the end of the request though unless you do something with them, as you are trying to do now. Geoff - Original Message - From: "Geoff Howard" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 15, 2003 1:52 AM Subject: Re: Uploading fiiles: flow function Josep Riudavets Aguilo wrote: Hi all ... I'm delevoping some code in Cocoon 2.1 in order to upload files. I have added these lines into my XSL page: Next, I have added this code into the sitemap.xmap: Now ... I have to write next function: var role = Packages.org.mystuff.UploadManager.ROLE; function upload() { var uploader = cocoon.componentManager.getComponent(role); var part = cocoon.request.get("blah"); var success = uploader.handle(part.getInputStream()); if (success) { sendPage("success.html"); } else { sendPage("failure.html"); } } But I don't know where to write this function !!! Is is a javascript function??? (all info is from http://wiki.cocoondev.org/Wiki.jsp?page=FileUploadsWithFlow) It's flowscript which, yes, is implemented in Cocoon using the javascript core from the Rhino project. You'll need to read up at least a little on the wiki about flow before making much sense of this. That was an example snippet, not a cut-and-paste ready solution. For instance, it presupposes that you have a component written and deployed in Cocoon called org.mystuff.UploadManager and you also have a pipeline which matches "success.html" and "failure.html". oh, and it presupposes that org.mystuff.UploadManager has a public method handle(InputStream is). I think this is going to be so common that it would probably deserve to be in the core at least in a simple form. I'll see if I can make some time for it. This is really pretty easy and would be a good simple patch for someone who is interested. I'd be happy to help out. Geoff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Default value for input modules?
[EMAIL PROTECTED] wrote: > Hi, > I don't want to extend Java Code. Isn't there any possibility to do this on > the sitemap? How would the example in this Email for xsp look like on the > sitemap? > Best regards, > Mat Mathias, check out your WEB-INF/cocoon.xconf file, where the ChainMetaModule is located, that should give you an idea of how you can get a module to "fall back" to other modules, or defaults. Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to Combine Streaming Transforms with external TransformerHandler filters?
Hi, I am a new user of Cocoon and noticed a STX implementation in the blocks samples page of the Cocoon 2.1.2. This got me to thinking about using hybrid STX in combination with XSLT and SAX transformations within Cocoon. For me these hybrid transformations are one of the most interesting featuresfor using STX because I will be working with large files for ETL. STX style sheets can call external filters implemented as javax.xml.transform.sax.TransformerHandler objects via uri references. To inform the transformer of these one must add a net.sf.joost.TransformerHandlerResolver object to the the STX transformer (called JOOST in Java). The TransformerHandlerResolver maps STX stylesheet uris to appropriate TransformHandler objects. Since JOOST is TrAX enabled it is simply a matter of adding an attribute to the TRAX TansformerFactory. In Java using TrAX it is easy to do this with // register the resolver factory.setAttribute( "http://joost.sf.net/attributes/transformer-handler-resolver";, filter ); I have seen the conf for JOOST in the Cocoon it looks like this. net.sf.joost.trax.TransformerFactoryImpl Question? But how do I set up a TrAX transformer in cocoon and specify an object like TransformHandlerResolver as an attribute? For details on STX/XSLT/SAX hybrid transforms see: http://www.informatik.hu-berlin.de/~obecker/Docs/EML2003/ cheers, John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cocoon sites (server performance)
That's good information but I'm afraid it can be misleading. Below is my experience with Cocoon server performance. The Cocoon framework provides the basis of a Fortune 500's intranet where I consult. They have almost 6000 employees and in addition to the obligatory "brochureware" content there are several applications where employees conduct business. The thousands of information pages are actually pulled through aggregation pipelines where the "content pane" is wrapped with typically 5-6 other fragments. (Then the links have to be rewritten and various other transmogrification steps per the business.) There are a few database calls scattered throughout and online forms but primarily this is a site that is aggregating static XMLs (which are managed via a separate content management product). Unfortunately, the original pipelines are too long. There can be upwards of 15 XSL transformations taking place to produce one page. Also, there are many large BLOBs (PDFs, XLS, DOC, etc.) that Cocoon seems to have difficulty serving up. Cocoon would prempt its own response and return a 0 byte file. So the business has worked to pull all non-essential requests out of the Coccon space. All BLOB links (including images, CSS, and js) are now handled by Apache HTTPd because it makes sense. So what are the metrics? USAGE PER DAY -- 4,000 visits 60,000 pages 95,000 hits THE SERVER -- Dell 2550 Dual P4 2.0GHz 1.0 GB RAM Tomcat 4.1.27 Apache 2.0.47 Not earth-shaking but enough to make the server (and Corp Management!) notice. Plus, our usage is "scheduled", with most workers coming in around the same time, checking the online lunch menu around noon and going home en masse. Everything runs well within limits but I'm sure that things could be tuned better. Sorry for the verbose message but I wanted to give my real-life example. I think that Cocoon is a wonderful framework that benefits from an active developer community (READ: this list!). As with all Apache projects, the documentation is abundant enough but sometimes I do struggle to find information. Hence my questions below. --What are the best practices regarding pipeline length? It appears that threads are being spawned to facilitate these transformations. --Where can I go for some guidance on practical XSLT would be beneficial for not only myself but the entire Cocoon community? --Finally, what is the definitive answer regarding aggregation invalidating the caching mechanism? (I read that sometime ago on this list.) Peace, Luke. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Fri 10/24/2003 10:20 AM To: [EMAIL PROTECTED]; Sergey N. Fefilatyev Cc: Subject:Re: cocoon sites they are 13 live sites in our production server till now p4 2.4 1G RAM redhat cocoon2.0.4 on tomcat and the machine is allmost sleeping all the time --stavros On Fri, 24 Oct 2003, Sergey N. Fefilatyev wrote: > Hello fellow developers! > Could you tell me , how many sites(the maximum) is possible to server > with cocoon?( i mean with one instance) > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <>- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: nuke like engine based on cocoon
I could help out I once tried using phpNuke but started hating the ugly mixing of looks and content, and the quick hack look of it all. I wanted something skinnable so I started writing a simple nuke like community portal that used Xalan and an xsl skin to show news/forums/polls/downloads/members/etc from a mysql database with "modules" producing pages and blocks from the xml content. modules can be added/removed and restricted to access levels etc. 3 months into this project i realized that half the work was actually implemented already in something called cocoon :( I am also very interested in using cocoon to make a solid replacement for phpNuke. A look of what it looked like before I ditched the project and started looking into cocoon is on this game-clan's website (unfortunately swedish) http://sheriff.mine.nu Without knowing too much about cocoon blocks, they seem like they could help a lot in the creation of such a framework... rgds /Anders this is just an idea or/and a proposition to begin a "CocoonNuke" maybe project something just like nukes (postnuke phpnuke) but using cocoon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
sendmail logicsheet
hi all, is it possible to send html mails using the xsp logicsheet sendmail.xsl? ` i'm using cocoon 2.1.2. html attachments work fine, but i need to send the body with mime-type text/html. i tried something like but it doesn't work :-( thanks for any hint, markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon sites (server performance)
On Friday, October 24, 2003, at 09:21 AM, Luke Penca wrote: <..snip..> All BLOB links (including images, CSS, and js) are now handled by Apache HTTPd because it makes sense. Are you serving those from a different (virtual?) host? Or are you running your servlet container behind Apache w/ a connector? Thanks (curious because I'm just getting started myself...) ~ml - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cocoon sites (server performance)
The short answer: virtual host -- ww2.hostname.com for BLOBs, etc. It's very easy to find all the LINK, SCRIPT, IMG (and certain A) tags that need rewriting. Longer answer (what's with me and long answers today?): In production we go with the above configuration. On the staging server, I use the JK2 connector in front of Tomcat. I have to say that I am not all that pleased with the performance of this connector on Windows machines. HTH, Luke. -Original Message- From: Mark Lundquist [mailto:[EMAIL PROTECTED] Sent: Fri 10/24/2003 11:33 AM To: [EMAIL PROTECTED] Cc: Subject:Re: cocoon sites (server performance) On Friday, October 24, 2003, at 09:21 AM, Luke Penca wrote: > <..snip..> > > All BLOB links (including images, CSS, and js) are now handled by > Apache HTTPd because it makes sense. > Are you serving those from a different (virtual?) host? Or are you running your servlet container behind Apache w/ a connector? Thanks (curious because I'm just getting started myself...) ~ml - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <>- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon sites (server performance)
On Fri, 24 Oct 2003, Mark Lundquist wrote: > > On Friday, October 24, 2003, at 09:21 AM, Luke Penca wrote: > > > <..snip..> > > > > All BLOB links (including images, CSS, and js) are now handled by > > Apache HTTPd because it makes sense. > > > > Are you serving those from a different (virtual?) host? Or are you > running your servlet container behind Apache w/ a connector? > > Thanks (curious because I'm just getting started myself...) > ~ml they are two ways to pass static content to apache (and increase performance) mod_proxy and mod_rewrite you can find examples in wiki -- stavros > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Solution for Protecting Cocoon Apps
Background: If you want to gíve customers your application (e.g. for a demo, proof-of-concept, discussion) you habe to include source code, everybody can see as plain text. If one of your customer has evil intensions he can look at all interna of your application, e.g. XSL-stylesheets, SVG data, the sitemap or XML files with private data. Idea: Protect some files from read directly from the file system. When running Cocoon, it should decrypt those files without having to change any code of the Java apps (Cocoon, Tomcat, Jetty, whatever). Solution: To do so, you can replace the java.io.FileInputStream class with one you can easily extend. E.g. via looking for the file extension and if it's ".xmap" decrypt the file. You can easily crypt those files before building the demo. The problem is that java.io.FileInputStream uses native methods so that you cannot change the file directly. But you can write your own WrappedFileInputStream which uses it's own native methods. The shared library acts like a wrapper, so calling "WrappedFileInputStream.open()" will forward the call to "FileInputStream.open()". If you've done that, your own FileInputStream can extend WrappedFileInputStream and decrypt files as needed. You can then use -Xbootclasspath to replace the JDK's FileInputStream with your version. I've done so with Jetty, Cocoon, J2SE 1.4.2 on Win32 and it worked. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Possible to POST using a HTML Generator?
Thanks for your answers on this everyone! Sounds like bottom line is - it can't be done at present. (unless he doesn't really need POST but can substitute GET). Correcting myself: of course it can be done. It can't be done by configuring the current set of components available. A new component, or additional capability added to an existing component is needed. Well, the need is still there, and its sufficient that I'm prepared to get my hands dirty with a bespoke component. Any pointers as to were I should start? I'm guessing I need to write a new generator, but HTTPGenerator doesn't seem to have access to the guts of the url request... any pointers in a general direction would be much appreciated! Thanks again, Nick _ Hotmail messages direct to your mobile phone http://www.msn.co.uk/msnmobile - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Possible to POST using a HTML Generator?
Nick Smith wrote: Well, the need is still there, and its sufficient that I'm prepared to get my hands dirty with a bespoke component. Any pointers as to were I should start? I'm guessing I need to write a new generator, but HTTPGenerator doesn't seem to have access to the guts of the url request... any pointers in a general direction would be much appreciated! Nick, Check out the HttpProxyGenerator in the proxy block, that should get you started. Regards, Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Patterns and Authentication
I can't seen to do the pattern matching on a pipeline to work when using authentication. I successfully got the Authentication Framework working properly (thanks Laurent Trillaud for the link to the mailing list archive). Here is the match: The value of {1} is blank when its under the tag. If I pull out the action it works just fine. Is there something I need to do to retrieve the {1} data? Thanks, - Brent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Patterns and Authentication
Brent L Johnson wrote: I can't seen to do the pattern matching on a pipeline to work when using authentication. I successfully got the Authentication Framework working properly (thanks Laurent Trillaud for the link to the mailing list archive). Here is the match: The value of {1} is blank when its under the tag. If I pull out the action it works just fine. Is there something I need to do to retrieve the {1} data? Brent, Since the generate is inside the map:act, and you're trying to access the match from one level "up" (the map:match), you need to use the syntax: {../1} HTH, Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Patterns and Authentication
use {../1} > -Original Message- > From: Brent L Johnson [mailto:[EMAIL PROTECTED] > Sent: Friday, October 24, 2003 12:42 PM > To: [EMAIL PROTECTED] > Subject: Patterns and Authentication > > > I can't seen to do the pattern matching on a pipeline > to work when using authentication. > > I successfully got the Authentication Framework working > properly (thanks Laurent Trillaud for the link to the > mailing list archive). > > Here is the match: > > > > > > > > > > > The value of {1} is blank when its under the > tag. If I pull out the action it works just fine. > Is there something I need to do to retrieve the > {1} data? > > Thanks, > > - Brent > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon sites (server performance)
On Friday, October 24, 2003, at 10:20 AM, Luke Penca wrote: The short answer: virtual host -- ww2.hostname.com for BLOBs, etc. It's very easy to find all the LINK, SCRIPT, IMG (and certain A) tags that need rewriting. OK (like I said, I'm new at this)... a question (for anyone) about this approach: why not run Apache on a different port, since you control all the URLs through which this content will be requested, I would think you could just as easily rewrite them to specify the alternate port as to name the alternate virtual host. Longer answer (what's with me and long answers today?): In production we go with the above configuration. On the staging server, I use the JK2 connector in front of Tomcat. I have to say that I am not all that pleased with the performance of this connector on Windows machines. You've obviously never witnessed the breathtaking spectacle of one of _my_ "long answers" :-) :-) Cheers, ~ml - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
not working in xsl-file
Hi, I'm desperatly trying to do an I'm using: in my xsl-file. Cocoon does not complain it can't find the file, but the stylesheet isn't being generated. Any ideas? Do I have to tell the sitemap about the included file? If yes, how? Jonny _ 5 neue Buddies = 50 FreeSMS. http://messenger-mania.msn.de Messenger-Mania - FreeSMS und 666 Webcams abräumen mit dem MSN Messenger! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: not working in xsl-file
i use succesfull the paths in href are file system relative to .xsl where the xsl:include element is for example in the same dir are core.xsl plugin.xsl in core.xsl add this work for me -- stavros On Fri, 24 Oct 2003, Johannes Becker wrote: > Hi, > > I'm desperatly trying to do an file. > > I'm using: in my xsl-file. > Cocoon does not complain it can't find the file, but the stylesheet isn't > being generated. Any ideas? > > Do I have to tell the sitemap about the included file? If yes, how? > > Jonny > > _ > 5 neue Buddies = 50 FreeSMS. http://messenger-mania.msn.de Messenger-Mania - > FreeSMS und 666 Webcams abrδumen mit dem MSN Messenger! > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: not working in xsl-file
On Fri, 24 Oct 2003, Johannes Becker wrote: > Hi, > > I'm desperatly trying to do an file. > > I'm using: in my xsl-file. > Cocoon does not complain it can't find the file, but the stylesheet isn't > being generated. Any ideas? > > Do I have to tell the sitemap about the included file? If yes, how? no i dont have put nothing in sitemap > > Jonny > > _ > 5 neue Buddies = 50 FreeSMS. http://messenger-mania.msn.de Messenger-Mania - > FreeSMS und 666 Webcams abrδumen mit dem MSN Messenger! > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Link Livesites: Cocoon 2.1 : Ameripath, Inc. - Physician WebPorta l
Ameripath, Inc. - Physician WebPortal The Physician WebPortal is an online service which allows doctors and physicians to have access to lab test reports. For additional info, please contact me. Stefano Fiorini [EMAIL PROTECTED] CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cocoon and MSSQL
hi people i have been asked to create a small html reporting system for a msSQL (microsoft) database. is it possible to connect cocoon with msSQL, is any connector available out there ? (i'dont have touch msSQL before) everything works just like cocoon and mySQL for example or not from your answers depent if i accept this or not thnx -- stavros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cocoon and MSSQL
Hi, You can use standard JDBC, but there is a more interesting approach. SQL Server can output XML, and can be accessed directly over HTTP. To get an XML output from the SQL simply write "FOR XML" at the end of a SELECT statement. You can give three qualifiers to this: FOR XML RAW (this returns xml roughly mapped from the resultset) FOR XML AUTO (this returns XML a bit like the esql logicsheet) FOR XML EXPLICIT (this nees you to do some horrible union select joins to create your own schema from the output). The first two are fine, much like ESQL. You can access it from http like this; http://serverrunningIIS/virtual-dir?sql=SELECT+*+FROM+whatever+FOR+XML+A UTO&root=page You can read how to configure IIS to create a virtual directory here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsql/ ac_xml1_8e7t.asp Good idea to use Stored Procedures, they're fast and need less data in the query string: http://serverrunningIIS/virtual-dir?sql=EXECUTE+CategoryInfo&root=page Disclaimer - I've used SQL server in this way, and I've used Cocoon, but not together. Should be fine though. I'm planning to use this myself. Jo > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 24 October 2003 21:55 > To: [EMAIL PROTECTED] > Subject: cocoon and MSSQL > > > > > hi people > > i have been asked to create a small html reporting system for a msSQL > (microsoft) database. is it possible to connect cocoon with > msSQL, is any > connector available out there ? (i'dont have touch msSQL before) > > everything works just like cocoon and mySQL for example or not > > > from your answers depent if i accept this or not > > thnx > > -- stavros > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Starting a conversation: OO, CMS's, Zope, open source
Andrzej, Thanks for the reply, it's been a busy week, therefore the delay in getting back to you. I'd like to start a discussion on design principles in web apps. Maybe someone will talk me out of the way I'm doing things. Maybe some people will like it. I've also been wondering if I should open source it or not. The issue I see is that design never lives in a vaccum. To really comment on a design you have to know what problems it is trying to address. So, with that, what problems is your software trying to solve, Ideally I want a system where a non-programmer can assemble a fairly complex web app by graphically assembling pre-built components. I know this doesn't really describe a particular problem. A lot of this design has come from my experience when I was developing web based training. WBT is mostly content, with some interactivity like quizes or a simulation. The content breaks down into a nice object model (ie. course -> section -> lesson - > page) and each type of content is displayed differently. Somehow writing course.jsp, section.jsp, etc... so that you could have urls like "something.com/course.jsp?id=1" never seemed right. It actually becomes a problem when you're reusing your code for a project where they have a different course layout. A customer might use course -> module or test -> section -> chapter. Being able to arrange the content in arbitrary ways seems better. and what unique features does it provide (compared with other solutions based on Cocoon, Zope, etc)? I truthfully need to look more into Zope. I don't know much about it beyond that it's based on an OO concept and that objects are authored in python. I know it has a standard graphical editor for assembling site, which is pretty similar in some ways to mine. The feature I like most over Cocoon is that the XML is generated by traversing the object tree and reflects the structure. each object only need to generate it's own XML. If you change an object definition it's reflected everywhere that uses that object. Some features (current and planned)... graphical editor object definition files can be dropped in and used in the editor without any configuration object-level permissions with users and groups, like UNIX filesystems easy content reuse by linking to objects in a library I feel like I should describe how I'm building my current project, but I don't have the time now. It also seems that you are mixing up different strata of "design". Application architecture, with is moving towards SOA principles, and code- level design which can be based on OO. I don't see how using an OO architecture keeps you from using SOA. The project I'm working on now is going to use SOAP to interact with a authorization server. An object in my system will be responsible for the communication between my app and the web service. In this way SOAP is just message passing between objects. A normal HTTP request is a message passed to an object; a request for it's content. I'm looking at everything as messages passed to objects. It also preserves SoC. Programmers author objects. Site administrators or programmers can build the web site with the editor, and graphic artists can handle the XSL/HTML/CSS end. Since XSL isn't very well know out there (in my experience) I often use a two tiered XSL transformation. The first one transforms to a very generic XHTML files that's suitable for transforming again to the final HTML or sending to the browser with CSS. It's usually a mistake to try to use OO at the overall architecture level. Why is this? I do see that it doesn't have some of the flexibility of the sitemap, which acts like a declarative programming language in many ways, but it's very consistent and easier to understand. I'm thinking of it as OO at the content level. Most sites are mostly hierarchal content. Sections of a site, articles with in sections, etc. I think a files system is a actually great way to layout a site because it's easy to see that folders and files actually relate to the URL. Of course abstracting the URL space is a nice feature of Cocoon. Just some initial thoughts to kick of your discussion. Andrzej Jan Taramina Chaeron Corporation: Enterprise System Solutions http://www.chaeron.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon and MSSQL
Hi, > i have been asked to create a small html reporting system for a msSQL > (microsoft) database. is it possible to connect cocoon with msSQL, is any > connector available out there ? (i'dont have touch msSQL before) have a look at the wiki: http://wiki.cocoondev.org/Wiki.jsp?page=MsSQL hth -- * best regards * Jens Maukisch * www: http://www.maukisch.net * rss0.91: http://www.maukisch.net/rss.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sendmail logicsheet
I never used sendmail, neither the logicsheet nor the action, but maybe some comments can help. OTOH "doesn't work" does not really help to find the reason of the problem. 1. documentation http://cocoon.apache.org/2.1/userdocs/xsp/sendmail.html http://cocoon.apache.org/2.1/userdocs/actions/sendmail-action.html http://wiki.cocoondev.org/Wiki.jsp?page=MailBodyViaPipeline http://wiki.cocoondev.org/Wiki.jsp?page=SendingEmail 2. comment The sendmail logicsheet uses the Java Mail API. XSP gets transformed into Java code. So if you know how to do it with Java Mail, you can have a look into the generated Java code or the logicsheet, if the correct code can/is created. It's obvious that this is not a task for a normal user, because XSP should avoid the user to learn about implementation details, but sometimes that's not possible. Or you ask the writer of the logicsheet, maybe he can answer your question or implement the missing stuff ... Joerg On 24.10.2003 18:59, Markus Heussen wrote: hi all, is it possible to send html mails using the xsp logicsheet sendmail.xsl? ` i'm using cocoon 2.1.2. html attachments work fine, but i need to send the body with mime-type text/html. i tried something like but it doesn't work :-( thanks for any hint, markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
File upload classes missing?
Hello, In cocoon 2.0 I used to use org/apache/cocoon/components/request/multipart/* classes. They no longer exist in cocoon-2.1.2-dev.jar. If I rebuild my action, which classes should I be using and where are they located. Thanks. __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File upload classes missing?
Bruce Perryman wrote: Hello, In cocoon 2.0 I used to use org/apache/cocoon/components/request/multipart/* classes. They no longer exist in cocoon-2.1.2-dev.jar. If I rebuild my action, which classes should I be using and where are they located. http://cocoon.apache.org/2.1/installing/updating.html#File+Upload http://wiki.cocoondev.org/Wiki.jsp?page=FileUploadsWithCocoon2.1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Possible to POST using a HTML Generator?
Nick Smith wrote: Thanks for your answers on this everyone! Sounds like bottom line is - it can't be done at present. (unless he doesn't really need POST but can substitute GET). Correcting myself: of course it can be done. It can't be done by configuring the current set of components available. A new component, or additional capability added to an existing component is needed. Well, the need is still there, and its sufficient that I'm prepared to get my hands dirty with a bespoke component. Any pointers as to were I should start? I'm guessing I need to write a new generator, but HTTPGenerator doesn't seem to have access to the guts of the url request... any pointers in a general direction would be much appreciated! OK, hold the phone. I looked into the org.apache.excalibur.source.impl.URLSource which is used for http:// sources and it _does_ have support for POST but I don't understand it! /** * Initialize a new object from a URL. * @param parameters This is optional */ public void init(URL url, Map parameters) throws IOException { String systemId = url.toExternalForm(); setSystemId(systemId); setScheme(SourceUtil.getScheme(systemId)); m_url = url; m_isPost = false; if (null != parameters) { m_parameters = (SourceParameters) parameters.get(SourceResolver.URI_PARAMETERS); final String method = (String) parameters.get(SourceResolver.METHOD); if ("POST".equalsIgnoreCase(method)) m_isPost = true; } ... Ok, so it looks like that has support for POST. But I don't think the HTML Generator takes advantage of it. How does one get the Map of paramenters to contain the value of SourceResolver(METHOD) for instance. They are not the nested configs of the call I don't think. Geoff Geoff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [PATCH QUEUE] Summary October 25 2003
--- This mail is generated automatically using Jakarta Ant. Contents are automatically downloaded from Apache's Bugzilla. --- Please do not reply to this mail. --- *** COCOON PATCH QUEUE UPDATE patches in queue: 13 *** --- 16537:[PATCH] fixed redirect under JRun 3.1 --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16537 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 17771:[PATCH] new logging category never set when using log logics --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17771 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 19138:[Contrib]/[Patch] Made SQLTransformer paginatable. --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19138 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 19638:[PATCH] Same cell definitions blows document (problem with --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19638 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 19641:[PATCH] HSSFSerializer Support for FreezePane --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19641 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 20508:[PATCH] Namespace cleanup in HTMLSerializer --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20508 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 20631:[PATCH] Support for transactions in SQLTransformer --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20631 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 23538:[PATCH] JXTemplateGenerator calls setDocumentLocator() exces --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23538 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 23901:[PATCH] [woody], adding and moving load() and --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23901 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 23921:[PATCH] New ReadDOMTransformer/WriteDOMTransformer available --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23921 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 23299:[PATCH] UTFDataFormatException: String cannot be longer than --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23299 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: ASSI --- 21536:[PATCH] 2 new generators: MultiPartPosted XML and MS Excel c --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21536 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: REOP --- 23796:[PATCH] docs pages containing are sometimes too wid --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23796 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: REOP *that's it! patch HOWTO Send patches to http://nagoya.apache.org/bugzilla/ specifying [PATCH] in the summary. Bugzilla sends a mail automatically to this list. Reviewers will mark it FIXED there when applied. Patches not sent to Bugzilla will not be reviewed. --- This file is scheduled to be generated every Tuesday and Friday 1:00 CET for the cocoon-dev mailing list, on Sundays 1:00 CET fo