Hi,
Using Cocoon 2.1.3.
I`m trying to get the value of a cookie inside a flow script (Woody) using the syntax:
var cookies = cocoon.request.getCookies();
//i know i have 1 cookie, cookies[0]
//output from these first two info statements is OK..
cocoon.log.info(cookies.length);
= 1
Hi,
I am doing Cocoon 2.0.4 with websphere 5.0 . I
not able to configure the JSP other than JSP all are
working fine. I saw your 2 steps i tried but i am
getting the following error.
In Browser the ERROR is:
Error 500: Server caught unhandled exception from
servlet [Cocoon2]:
Hi,
Using Cocoon 2.1.3.
I`m trying to get the value of a cookie inside a flow script (Woody) using the syntax:
var cookies = cocoon.request.getCookies();
//i know i have 1 cookie, cookies[0]
//output from these first two info statements is OK..
cocoon.log.info(cookies.length);
= 1
Hi:
I cannot found info about the topic of this mail. I tried to call a new
flow request from a flow function:
cocoon.sendPage(nextPage, {anIntegerId: anIntegerId);
The variable anIntegerId has data, but I cannot catch or get it on
the next flow function:
function nextPageProcessing() {
Hi,
I'm dealing with the following situation:A
directory structure containing a lot of files with the same structure is handled
by the same woody definition, bindingand template by simply changing the
datafile. This file contains an attribute which indicates that it is an original
one or a
Well, it seems like an encoding problem: a problem you should find with all
XML files.
Yours XSL Exception are raised by Trax: the XSLT interpreters (Xalan,
Saxon,...) but you haven't changed these files and they didn't raise that
exception before.
Could you please try to validate your
Thanks a lot that seems to work now.
I now have to do some rejigging of the sub sitemaps to make thenm work again
though.
Is there many other considerations that need to be taken into account when
switching from compiled to interpreted sitemaps?
Thanks for all your help.
Iain
- Original
Stefan Klein wrote:
Upayavira,
How do I store a java object in some application context or an
application level variable, just once during servlet container startup,
when I'm writing an app that uses flow?
Could you not write it as I component, include it in cocoon.roles so that
it'll
Frans Thamura, Intercitra wrote:
anyone know how to make cocoon only parse an xsp only, and the rest
will become tomcat standard, so i can use struts, turbine, webwork
inside my context
can you help me?
First a disclaimer: I've never used XSP.
AFAIK, XSP in Cocoon is a set of XSL stylesheets
Joerg Heinicke wrote:
On 05.01.2004 21:06, Tim Larson wrote:
Anybody care to offer their working Saxon configuration
for Cocoon-2.1?
--Tim Larson
Wasn't Upayavira successful with getting Saxon to work?
Yup. Apart from the fact that I discovered some Xalan extensions in the
site I was trying
Hi,
I have managed to get sort out the permissions issue with the .sh file,
but now I am getting the following error message when trying to build
an action. I understand what the error is, but don't understand why the
variables being used by the classpath are not being acted on.
1.
hi
how can i use cocoon (transforming xml to html) to develop components =
with data in my presentation layer , because i receive the data like a =
stream(xml).=20
the purpose is how to use cocoon in my jsp files to construct =
presentation componets with data .=20
please to mail me the answer=20
Hi,
I'm looking for an easy way to delete an attribute from the user's
session after doing some stuff in the sitemap. Is there a way without
using XSP like the xsp-session:remove-attribute or
session.removeAttribute()? Maybe a sitemap-action?
Thanks!
--
Patrick Hess
Maybe I don't exactly understand your problem. XML documents stored in
database colums you can access using the esql:get-xml column=name/. It
parses the text after loading it from the database and builds valid xml.
http://cocoon.apache.org/2.1/userdocs/xsp/esql.html
If it is no valid xml (just
No I don't believe it. It seems to me as if it is a clientside javascript
problem. A function is called that even does not exists.
Markus
-Ursprungliche Nachricht-
Von: Alex Romayev
Gesendet: Montag, 5. Januar 2004 22:08
An: [EMAIL PROTECTED]
Betreff: RE: [cocoon forms] Javascript
Hi all,
i use a sourcewriting transformer to write a xml file. Immediately after
the transformer i call an action. It seems like the action is executed
before the file is completely written by the transformer.
Does the sourcewriting transformer write asynchronous ?
Thanks,
Edith
On further examination of the catalina_home/webapps/cocoon/web-inf/lib
directory all the *.jar files requested by build-action.sh are now
depreciated, so tha ammended document look like this:
export CP=$JAR_DIR/avalon-excalibur-vm12-20020705.jar
export
Edith Chevrier wrote:
Hi all,
i use a sourcewriting transformer to write a xml file. Immediately
after the transformer i call an action. It seems like the action is
executed before the file is completely written by the transformer.
What do you mean immediately after the transformer?
Within a
It is not clear for me what exactly you want to do.
(B
(BIf you want to generate your xml structure in jsp and use cocoon to
(Bstyle it, you can use jspgenerator. Take a look at here for some
(Bexplanation:
(Bhttp://cocoon.apache.org/2.1/userdocs/generators/jsp-generator.html
(B
(BHassan
Patrick Hess wrote:
Hi,
I'm looking for an easy way to delete an attribute from the user's
session after doing some stuff in the sitemap. Is there a way without
using XSP like the xsp-session:remove-attribute or
session.removeAttribute()? Maybe a sitemap-action?
Thanks!
What do you think
Hello,
is it possible to return exactly to the position in the sitemap after
executing a flowscript on which this script was called, to process the
rest of the pipeline? Maybe without using sendPage oder sendPageAndWait?
map:match pattern=foo
map:generate type=file src=myFile.xml/
// Go
Hi,
I would like to get the _actual_ current working directory, as I
want to write files on the server. As I'm using Java for that, I
need to have the full path explicitly. I can't use the protocols
such as 'context:/' or 'cocoon:/'.
I have my app in such a directory:
Upayavira wrote:
Frans Thamura, Intercitra wrote:
anyone know how to make cocoon only parse an xsp only, and the rest
will become tomcat standard, so i can use struts, turbine, webwork
inside my context
can you help me?
First a disclaimer: I've never used XSP.
AFAIK, XSP in Cocoon is a set
Hi,
Thanks for all the help.
I have never heard of such a strange effect and I can't
imagine what the
reason for it should be. You must have a crazy encoding specified
somewhere if #160 is not nbsp. Are you using another encoding
than UTF-8
or ISO-8859-1? Maybe only because of a typo?
--- [EMAIL PROTECTED] wrote:
Hi Tim and Upayavira,
Thanks for commenting.
Look at the new Form Model GUI woody sample form in CVS to see how
to deal with nested (or recursive) data with varying nesting depth.
Note that the sample form's save binding is not completed/correct yet.
Guys,
I read some of the posts in the mail-archives that the problem lies in
Tomcat 4.1.29 (which I use too). So I copied my project directory to the
cocoon-2.1.3/build/webapp dir and started Jetty from the Cocoon dir. It
states to use Xalan 2.5.2, but the problem remains.
Bye, Helma
Hi,
I've a problem using fo:external-graphic
whith relative path.
For example i can't load an image like
fo:external-graphic src=""/. It's OK only if I specify
the absolute url (or path from the disk file:///C/etc...)
Thanks for your help.
Sebastien
Just need JTA (and JNDI and RMI Registry Service Provider) to compile
JDORI. From what I can tell, the JDORI 1.0.1 binary release is missing
the JDOModelException class. I now have a JDOModelException.class file
and eliminated that problem.
Thanks for your help!
Antonio Gallardo wrote:
Just one question: did you try serializing just after the PHP Generator with
map:serialize type=xml / ???
Le Mardi 06 Janvier 2004 16:37, Davide a écrit :
Hi all, i'm trying to use the PHP generator but without success...
I had a look ath the cocoon wiki php generator page and followed the
Hi cocooners !
I asked a question yesterday, that is maybe not clear, so let me explain cleaner.
Cocoon forms offers 2 ways of validating a form : definition validation (with
wd:validation in the form def file) and in the flow with the validator property of the
flow form object.
And how can I
starting with 2.1.3, a call to sendPage() or sendPageAndWait() is required
in your script. i think it sucks but was unable to convince the dev list.
in 2.1.2 and earlier you can just omit any sendPage call and the sitemap
continues where the flowscript left off.
-Original Message-
yes sure, i did it
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Tim Olson wrote:
starting with 2.1.3, a call to sendPage() or sendPageAndWait() is required
in your script. i think it sucks but was unable to convince the dev list.
in 2.1.2 and earlier you can just omit any sendPage call and the sitemap
continues where the flowscript left off.
-Original
--- Olivier Billard [EMAIL PROTECTED] wrote:
Hi cocooners !
Hello!
My flow validator function begins with :
code
if (!form.getWidget().isValid()) {
return false;
}
/code
But even when the form seems to be valid, isValid() returns false, and I can never
run
business validation
My flow validator function begins with :
code
if (!form.getWidget().isValid()) {
return false;
}
/code
But even when the form seems to be valid, isValid() returns
false, and I can never run
business validation code after the test...
Usually this is caused by the form
Hi!
I use
form.validator = myValidator;
placed before
form.showForm(form.display);
and in my validator function something like this
function myValidator(form) {
var validationError = new
Packages.org.apache.cocoon.woody.datatype.ValidationError(xxx);
if
You are doing this the hard way. If you get Cocoon, modifiy
local.build.properties and local.block.properties and then do a build you
can then assume that everything in WEB-INF/lib should be in your classpath.
Although this is overkill, it will always work.
You should really look into using a
Hi,
The union does not help distinguish. You would use a normal widget
binding (probably the javascript binding) to distinguish what you are
dealing with and to load a value representing the decision into an
output widget. union bindings, widgets, or templates could then
react to this
From: Stephan Coboos
Tim Olson wrote:
starting with 2.1.3, a call to sendPage() or sendPageAndWait() is
required in your script. i think it sucks but was unable to
convince
the dev list. in 2.1.2 and earlier you can just omit any
sendPage call
and the sitemap continues where the
Hi Tim !
Thanks for your answer.
It seems that all my required fields are present, excepts a repeater (that is not required
if such attribute is valid for a repeater) because there is no rows in.
And the isValid() returns false...
argh !
--
Olivier
On 06/01/2004 17:11, Tim Larson wrote:
---
Hi Markus,
Thanks for your answer.
I also used
form.validator = myValidator;
But I don't want to do business stuff if the basic definition validation doesn't work
I have :
function myValidator(form) {
if (!form.getWidget().isValid()) {
cocoon.request.setAttribute(formulaire,
is there someone out there that uses the PHP generator???
how to install it??
I tried to use cocoon as standalone or under tomcat but with the same
result:nothing
I only got php working under tomcat with my compiled phpsrvlt.jar, but for
cocoon there is no way to get it working. heelp...
Reinhard Poetz wrote:
From: Stephan Coboos
Tim Olson wrote:
starting with 2.1.3, a call to sendPage() or sendPageAndWait() is
required in your script. i think it sucks but was unable to
convince
the dev list. in 2.1.2 and earlier you can just omit any
sendPage
Davide wrote:
Hi all, i'm trying to use the PHP generator but without success...
I had a look ath the cocoon wiki php generator page and followed the
instructions but id doesn't run;
thisi is the link: http://wiki.cocoondev.org/Wiki.jsp?page=PHPGenerator
for example this is my test page:
?php
the PHPServlet is in beta stage still... I've tried to use it with a lot of
problems...
Le Mardi 06 Janvier 2004 18:14, Tony Collen a écrit :
Davide wrote:
Hi all, i'm trying to use the PHP generator but without success...
I had a look ath the cocoon wiki php generator page and followed
From: Stephan Coboos
snip/
Please see
http://marc.theaimsgroup.com/?t=10686444852r=1w=2
and
http://marc.theaimsgroup.com/?t=10684956638r=1w=2
Thank you. But I think this was not a good decision. An action can
redirect or return to the actual position. Why not a
Davide wrote:
is there someone out there that uses the PHP generator???
I have managed to make it run, but I still couldn't use it, because it
crashed after a couple of hits. Sam Ruby told me that he developed it
with JDK1.1 and that things might have changed since then.
If you want to give it
ok, so you tell me to forget the PHP generator...and for me is a big problem...
I said that with apache i had php working so... I have a cocoon application
where i manage authentication. Can I from cocoon, when authenticated in my
app call another tomcat webapp??
Hi,
I'm working on a project where several users will be connected with the same
account. I'm using the Auth-FW and I noticed this is not possible.
Any idea what to do?
If I need to modify the source code, does any ppl need something like that? If
yes (and if my employer agree) I'll send over
Sorry, I didn't get what you wanted to do?
Le Mardi 06 Janvier 2004 18:36, Davide a écrit :
ok, so you tell me to forget the PHP generator...and for me is a big
problem...
I said that with apache i had php working so... I have a cocoon application
where i manage authentication. Can I from
Reinhard Poetz wrote:
From: Stephan Coboos
snip/
Please see
http://marc.theaimsgroup.com/?t=10686444852r=1w=2
and
http://marc.theaimsgroup.com/?t=10684956638r=1w=2
Thank you. But I think this was not a good decision. An action can
redirect or return to the actual position.
Our site uses xsp documents compiled and served by cocoon. We're
working on a server upgrade to the latest versions of tomcat and
cocoon. In the upgraded configuration, the server dies with the
following message after a certain fairly large number of distinct
documents have been viewed/compiled.
the actual current working directory is a bit ambiguous here. For java
it will always be the directory from where the application is started from.
I can think of ugly non portable hacks using
Runtime.getRuntime().exec(insert your external program here);
but surely you can save yourself this mess
[EMAIL PROTECTED] wrote:
Ok, what I know so far: I start off with XML without any such nbsp; codes.
These are added in the last XSL stylesheet. I've defined my own !ENTITY
nbsp #160; (and raquo and copy as well). When I add a
SourceWriteTransformation that writes the output of this stylesheet to
Jan,
I don't know the details of your configuration, but what is the RealPath
input module returning?
As a test, try one of the samples:
http://localhost:8080/cocoon/samples/modules/realpath.xsp (modify for your
environment)
And what do you exaclty mean with: but Java (embedded in a XSP page)
I have this in my pipeline:
map:match pattern=FooBar
map:read mime-type=text/html
src=cocoon:/FooBar/home /
/map:match
The output I get is correct, but it has Content-Type: text/xml, even
though I specified text/xml.
This makes my browser
[EMAIL PROTECTED] wrote:
Use wget or a similar command line utility to access the page. If the
??? Is this Linux? I'm on Windows XP Pro. I know a tiny bit about Linux,
but I don't have easy access to a Linux machine.
Its also available for Windows, as part of the cygwin toolkit. There
may
Its also available for Windows, as part of the cygwin toolkit. There
may be standalone distributions, I don't know. Alternatively, use any
other of the zillions of non-browse tools which can save the raw data,
or a HTTP-sniffer, or perhaps a raw network sniffer.
Taking a look at the raw
How do you do a full merge in cocoon??
Full merge, occurs when you need to combine two documents with slightly different structures and data into a third document. For example, you might want to combine a document containing employee names with a similar document containing employee addresses.
Title: Message
Hi,
just a
wild guess:
first
merge the two documents using aggregation and replacing the second root with a
different one, e.g. addresses. After that adjust the XSL from the
example to merge /employees/employee with
/addresses/employee.
Hope
this helps.
Bye,
Helma
First please do not reply to other mails when starting a new thread.
Your mail can get lost in the other thread and you will get no answer,
otherwise it's just annoying to have few threads mixed.
Second your problem. The task itself is to be done in XSLT, but the
question is, how you get the
On 06.01.2004 18:07, Stephan Coboos wrote:
starting with 2.1.3, a call to sendPage() or sendPageAndWait() is
required in your script. i think it sucks but was unable to
convince
the dev list. in 2.1.2 and earlier you can just omit any
sendPage call
and the sitemap continues
[EMAIL PROTECTED] dijo:
Guys,
I read some of the posts in the mail-archives that the problem lies in
Tomcat 4.1.29 (which I use too). So I copied my project directory to the
cocoon-2.1.3/build/webapp dir and started Jetty from the Cocoon dir. It
states to use Xalan 2.5.2, but the problem
Unfortunately an already known bug:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25121
Can you replace it with
map:generate src=cocoon:/FooBar/home/
map:serialize type=html/
??
Joerg
On 06.01.2004 23:27, Mark Lundquist wrote:
I have this in my pipeline:
map:match
On 06.01.2004 20:18, J.Pietschmann wrote:
Upayavira wrote:
as the Saxon XML parser is read-only
ERROR: wrong nomenclature. It's the DOM implementation shipped in
the Saxon jar which wont handle standard DOM writing operations.
BTW I don't appreciate that many Cocoon parts unnecessarily rely
on
Hi,
I tried use attribute disable-output-escaping in XSLT transformer (by xsl:value-
of and xsl:copy-of), but it doesn't work, it seems (the output is encoded as
well as unusing the attribute). What I'm doing wrong? Thanks a lot!
Otmar Vobejda
I have never used it myself, but I know that some are using it through
reading mails on this list. I searched the archives a bit and nobody
complains about a similar error, for everybody cocoon: with 1 and 2
slashes seem to work.
Where are the people having sendmail with internal cocoon
On 06.01.2004 22:41, Lars Huttar wrote:
-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
The XSP code is transformed into a method generate() which throws the
ProcessingException. So you don't have to care about it.
Joerg
Can you explain this?
In what way do I not
This feature is not disabled, but not recommended to be used. Can you
show a simple stylesheet that does not work?
Joerg
On 07.01.2004 01:31, [EMAIL PROTECTED] wrote:
Hi,
I tried use attribute disable-output-escaping in XSLT transformer (by xsl:value-
of and xsl:copy-of), but it doesn't
I don't think, simply removing all namespaces is a good solution, though
the namespace might not be needed here. Furthermore this approach slows
down the processing through an additional transformer step where it is
not necessary.
Her problem is the output of cincludeFiles.xsl in the default
Thanks for your answer, but have I any other choices to create HTML output from
HTML fragments, they are readed from database? I'm doing a CMS, so I'm reading
some HTML fragments from database (as title, abstract, content of article,
etc.) plus many other stuff (forum notes, questionnaires
On 07.01.2004 03:37, [EMAIL PROTECTED] wrote:
Thanks for your answer, but have I any other choices to create HTML output from
HTML fragments, they are readed from database? I'm doing a CMS, so I'm reading
some HTML fragments from database (as title, abstract, content of article,
etc.) plus
Hi,
I have a problem. I want to use transformer, it gets XSL stylesheets not from
filesystem, but from database. As some good mind advised, I used cocoon:/
protocol to call another pipeline with databasereader, which returns
appropriate XSL stylesheet. But cocoon reports: Streaming of an
I am getting my stylesheets from LDAP using a source resolver that I wrote.
I believe you could do the same thing with a database. I haven't tried it
myself, but you might investigate using the Blob source.
Ralph
-Original Message-
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
Thanks for your idea description. But I don't know, if it would be
uneconomical - because I have stored several HTML snippets in one record (they
are readed just once). And if I would read every snippet separately, I would
become multiple loading. What do you think about it?
Otmar
Cituji z
Hi all,I need to upload powerpoint files to remote PCS using cocoon XSP framework.So for that i had a HTML page as follows:form method="post" enctype="multipart/form-data" name="sayHello" action="" input type="file" name="uploadfile" size="25"//td/formAnd i update web.xml file as
76 matches
Mail list logo