2.2 trunk - Servlet Service set attribute in global session but lose it at next servlet call.

2008-04-09 Thread Josh2007
Hello, I have a main block (block-a) which makes calls to a depend block (block-b). Block-b has access to the global session. At the first call from block-a, block-b creates a session-attribute test. I noticed this session-attribute can be retrieved within block-b (right after setting it),

Re: 2.2 trunk - Servlet Service set attribute in global session but lose it at next servlet call.

2008-04-09 Thread Josh2007
Reinhard, thanks for your quick reply. I created a new issue: COCOON-2194 Session-attr set in dependency blocks destroyed after servlet call. Regards, Josh Reinhard Poetz wrote: Josh2007 wrote: Hello, I have a main block (block-a) which makes calls to a depend block (block-b

Re: 2.2 - problem with session between blocks - no access to session from block dependency

2008-03-11 Thread Josh2007
Thanks Reinhard, I will get the last trunk. I will also think about a better way to avoid implicit contracts between servlets. Regards, Josh -- View this message in context:

Re: [HELP]No pipeline matched request: survey-ru

2008-03-09 Thread Josh2007
You need to post again, some part of your message are missing. Regards, Josh Lousine Toumasyan wrote: Description:org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: survey-ru -- View this message in context:

Re: 2.2 tutorials help

2008-03-08 Thread Josh2007
You should show the content of your /home/pepemuck/_opt/devel/isac/target/classes/META-INF/cocoon/spring/servlet-service.xml file to check if everything is ok. Josh -- View this message in context: http://www.nabble.com/2.2-tutorials-help-tp15914062p15914201.html Sent from the Cocoon - Users

Re: servlet-mapping in Cocoon 2.2 bean?

2008-03-08 Thread Josh2007
Sorry to get back so late. I debugged Cocoon and eXist and found the problem. eXist XQueryServlet expects an URI in order to be executed. I modified the code so it can receive content and everything works just fine. Thanks for your help. Josh Grzegorz Kossakowski-3 wrote: Josh2007 pisze

Re: servlet-mapping in Cocoon 2.2 bean?

2008-03-08 Thread Josh2007
),... and an empty folder Data to be added to the web-inf directory of the block. For now I'm doing it by hand which is not convenient. I would like to find a better solution before sharing. Regards, Josh Grzegorz Kossakowski-2 wrote: Josh2007 pisze: Sorry to get back so late. I debugged Cocoon and eXist

2.2 - problem with session between blocks - no access to session from block dependency

2008-03-08 Thread Josh2007
Hello all, I have a problem using session between blocks. I have to block Block1 and Block2 with Block1 having a dependency on Block2. To connect the blocks I make use of ServletService and everything works just fine, except for the session. case 1: If I create a session and set up a

Re: servlet-mapping in Cocoon 2.2 bean?

2008-01-28 Thread Josh2007
, where /exist-xquery-samples/guess.xql is considered as an URI? Thanks, Josh Grzegorz Kossakowski-3 wrote: Josh2007 pisze: Thanks Grzegorz, No problem. Servlet implementation and Spring bean registration: I've, then, been able to set my XQuery Servlet in a block registered as a bean

Re: servlet-mapping in Cocoon 2.2 bean?

2008-01-25 Thread Josh2007
Thanks Grzegorz, Servlet implementation and Spring bean registration: I've, then, been able to set my XQuery Servlet in a block registered as a bean. I patched the block web.xml to implement eXist database servlet, and add the required dependencies in the pom.xml (after installing then in my mvn

servlet-mapping in Cocoon 2.2 bean?

2008-01-22 Thread Josh2007
Hi, I'm implementing an Xquery Servlet as a block in Cocoon 2.2 Prior to Cocoon 2.2 I was able to define servlet-mapping in my web.xml. Now, is there a way to get the same result when the Servlet is declared as a Spring bean? something like: bean name=XqueryServlet

Migrating to Cocoon 2.2... calling servlets from Cocoon: ServletServiceGenerator

2007-11-22 Thread Josh2007
Hi, I'm migrating from Cocoon 2.1 to Cocoon 2.2. Cocoon 2.2 is deployed as a servlet in Tomcat along with 2 other servlets: Axis 2 and eXist xmldb. It seems with Cocoon 2.2 I can call my 2 other servlets from Cocoon and get any xml result they will generate in my sitemap. Can I do that with

Re: Migrating to Cocoon 2.2... calling servlets from Cocoon: ServletServiceGenerator

2007-11-22 Thread Josh2007
Thanks Grzegorz for this detailed reply, it really helps. I will take a look at the demos as well. Regards, Josh Grzegorz Kossakowski-3 wrote: Josh2007 pisze: Hi, I'm migrating from Cocoon 2.1 to Cocoon 2.2. Cocoon 2.2 is deployed as a servlet in Tomcat along with 2 other servlets

Re: How to access cocoon object from javascript scriptAction?

2007-10-10 Thread Josh2007
, Josh Joerg Heinicke wrote: On 09.10.2007 17:13 Uhr, Josh2007 wrote: I need to access cocoon object from a javascript scriptAction to make use of session, request... functions. The ScriptAction works more like a usual Cocoon Java component than like flowscript. Therefore you have

Re: How to access cocoon object from javascript scriptAction?

2007-10-10 Thread Josh2007
Thanks Joerg, I'm almost done. Not familiar with Java, I still need to get access to the session to store my xml. Using session = manager.lookup(Packages.org.apache.cocoon.environmentSession.ROLE); I get an error no public instance called ROLE. Furthermore I use objectModel to get sitemap

Re: How to access cocoon object from javascript scriptAction?

2007-10-10 Thread Josh2007
Sorry, everything is fine. I use request.getSession() instead of objectModel.session and replace objectModel.session.setAttribute(stream, stream) with session.setAttribute(stream, stream) and it works. Thanks again, Josh Josh2007 wrote: Thanks Joerg, I'm almost done. Not familiar

How to access cocoon object from javascript scriptAction?

2007-10-09 Thread Josh2007
Hi all, I need to access cocoon object from a javascript scriptAction to make use of session, request... functions. It seems the only way to access cocoon object is to create a flowscript. Is there another solution as I don't want to redirect to another pipeline after the script is performed

Re: How to get same function as java loadDocument(cocoon:/your.pipeline) in javascript flow?

2007-10-07 Thread Josh2007
://solprovider.com/lenya/flowxml The function works for any source in Cocoon so you can use the cocoon:, file:, and http: protocols and any others you have configured. Let me know if you need how to do a transform in JavaScript. solprovider On 10/6/07, Josh2007 [EMAIL PROTECTED] wrote: I

Re: How to get same function as java loadDocument(cocoon:/your.pipeline) in javascript flow?

2007-10-07 Thread Josh2007
Everything works fine with the function. I've been able to retrieve my xml and to fetch the required node. Problem, I can't fetch any nodeValue. To check, I save the node.nodeValue content in a session attribute and try to get this attribute content back to the browser. Each time I get an empty

Re: How to get same function as java loadDocument(cocoon:/your.pipeline) in javascript flow?

2007-10-07 Thread Josh2007
MLs. solprovider On 10/7/07, Josh2007 [EMAIL PROTECTED] wrote: Everything works fine with the function. I've been able to retrieve my xml and to fetch the required node. Problem, I can't fetch any nodeValue. To check, I save the node.nodeValue content in a session attribute and try

Re: How to get same function as java loadDocument(cocoon:/your.pipeline) in javascript flow?

2007-10-07 Thread Josh2007
Thanks for the tip to avoid looping. Everything works. Josh Joerg Heinicke wrote: On 07.10.2007 11:15 Uhr, [EMAIL PROTECTED] wrote: I am uncertain about scope in JavaScript. I would never declare a variable inside a block and expect the variable to be available outside the block, but

Re: defining parameters from xml

2007-10-07 Thread Josh2007
You can use flowscript to extract firstname and lastname from your xml and send their values back to your sitemap as parameters. If you query your database and get an xml with firstname and lastname: map:match pattern=query-database map:generate type=xquery

How to get same function as java loadDocument(cocoon:/your.pipeline) in javascript flow?

2007-10-06 Thread Josh2007
Hi all, I would like to load a pipeline in my flowscript. There's a function for that in java: document = loadDocument(cocoon:/your.pipeline); I can't figure out which way will provide me the same result in javascript. Actually, I need to get the result of a stream generation and xsl

Dojo and Cocoon Ajax libraries don't load when in use with Chiba XForms filter

2007-08-27 Thread Josh2007
Hi all, I've set up my Cocoon servlet with Chiba-web XForms as a filter and I'm using Ajax block to perform asynchronous requests. Everything works fine as long as I don't mix in the same document Ajax features from Cocoon and XForms (from Chiba). If I do so, Dojo and Cocoon Ajax libraries

Re: Dojo and Cocoon Ajax libraries don't load when in use with Chiba XForms filter

2007-08-27 Thread Josh2007
')}#160;/script to: script type=text/javascript src={concat($contextroot,'/_cocoon/resources/dojo/dojo.js')}#160;/script Josh Josh2007 wrote: Hi all, I've set up my Cocoon servlet with Chiba-web XForms as a filter and I'm using Ajax block to perform asynchronous requests. Everything

Re: how to get an Ajax request work with a pipeline without CForms?

2007-08-25 Thread Josh2007
libraries are really easy to use. Thanks again, Josh Josh2007 wrote: Hi all, I would like to know if there's a way to implement some simple Ajax futures with a pipeline without making use of CForms or creating Java classes (I'm not comfortable with Java). The idea is: When answering

how to get an Ajax request work with a pipeline without CForms?

2007-08-24 Thread Josh2007
Hi all, I would like to know if there's a way to implement some simple Ajax futures with a pipeline without making use of CForms or creating Java classes (I'm not comfortable with Java). The idea is: When answering to a request like http://localhost:8080/cocoon/ajax/some-pattern, to connect to

RE: how to get an Ajax request work with a pipeline without CForms?

2007-08-24 Thread Josh2007
of the Ajax.Updater function. Regards, Jeroen Reijn [1]http://wiki.script.aculo.us/scriptaculous/show/Ajax.Updater -Original Message- From: Josh2007 [mailto:[EMAIL PROTECTED] Sent: Fri 8/24/2007 16:08 To: users@cocoon.apache.org Cc: Subject: how to get an Ajax request work

Re: how to get an Ajax request work with a pipeline without CForms?

2007-08-24 Thread Josh2007
Yes I found some samples about ajax block but didn't find any information to set it up or to make it work, though it is exactly what I'm looking for. I'd be glad to get any inputs about ajax block. Thanks, Josh Grzegorz Kossakowski-2 wrote: Josh2007 pisze: Hi all, I would like to know

Looking for freelance tutoring to help with Cocoon project

2007-07-17 Thread Josh2007
Hello all, I'm working on a community project based on XML and am looking for a freelance to help me out with Cocoon Sitemap and Flow. This will mainly consist in helping me with setting Pipelines and making use of session, cookies and mails facilities provided with Cocoon. It should not take