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),
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
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:
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:
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
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
),... 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
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
, 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
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
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
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
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
,
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
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
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
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
://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
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
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
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
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
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
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
')}#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
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
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
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
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
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
30 matches
Mail list logo