Can you supply a link to this discussion/anwer?
[EMAIL PROTECTED] 16/08/2002 12:20:57
This has been answered in the archives.
I used the pdf transformer and saved the output stream to a file.
TA
-Original Message-
From: Geoff Howard [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August
Any comments on previous message?
Per
-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
I just tried the latest from the cocoon_2_0_3_branch and got...
org.apache.cocoon.components.language.LanguageException: Error compiling control_xsp:
Line 448, column 45: unreported exception: java.lang.IllegalAccessException; must be
caught or declared to be thrown
Line 448 in
Per Kreipke wrote:
Ah, philosophy :-)
Yupp!
Ok, I think we reached a state where it's difficult to say who is right
and who is wrong.
Personally, I think that the meaning of 'groups' and roles is mixed
somewhere in the servlet spec. *My* understanding is that a person
can be in several
But if you use schema-based storage, you can have your XML
internally
stored
into SQL tables. And XPath queries are rewritten (yes yes!) into
corresponding
SQL equivalent.
That's on the feature list, but is it implemented yet? If so,
where? In XSU?
Oracle 9iR2 (yes R2 makes the
On 15.Aug.2002 -- 09:32 AM, Wang, Gonghui wrote:
Thanks, it actually works by switching back to an older verion of jdbc
driver and only use ifxjdbc.jar.
One more gotya when using XSP however, when I use
esql:get-string column=name/ twice for the same column,
option
Frequently I recieve following error. Can anybody help me to resolve this issue.
The Sitemap is null, this should never be!
description java.lang.RuntimeException: The Sitemap is null, this should never be!
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
request-uri
Hi all:
I downloaded the last Tomcat beta release and is working fine with Cocoon2.
more info at: http://jakarta.apache.com/
download at:
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.9-beta/
Antonio Gallardo
Hi all:
I downloaded the last Tomcat beta release and is working fine
with Cocoon2.
more info at: http://jakarta.apache.com/
download at:
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4
.1.9-beta/
This week being the Off-topic week, I will ask something so OT:
is
Hi,
could somebody please advise me on what options I have to include one or
more request parameter values into a soap request (using the soap
logicsheet of Cocoon 2.0.3).
Iow, with a request message similar to
xsp:page
language=java
xmlns:xsp=http://apache.org/xsp;
hallo,
i want to include single-nodes or fragments of
xml-documents.
simply i can do this with a stylesheet
xsl:template match="xlink"
...
!-- show attributes --
xsl:value-of
select="@pathToFile"/
!--= docs/samples/xml-file.xml
--xsl:value-of
select="@xpathExpression"/
!-- =
I have an old problem on a new machine ;-(
The new machine, where I have just done a 'clean' installation
of an app that runs without any problems on my machine (and
on the local Unix box) has the following config:
- Windows2000
- IIS
- Tomcat 4.0.01
- Cocoon 2.0
- mySQL 3.23.xx
Cocoon itself
Hi all,
I am running in a difficulty where I can't get a
value from an action. 'myAction' will define a key
called 'myParam' and return its value via the Map
object. Now myURL.xsp, in turn, tries to get the param
from the sitemap (see below); the param contains null.
I have tried
--org.gjt.mm.mySQL.Driver
I define mine as org.gjt.mm.mysql.Driver instead...
__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
-
Please
Hassan Abolhassani wrote:
Frequently I recieve following error. Can anybody help me to resolve this issue.
You forgot to specify what Cocoon version you use and what's your
servlet engine.
Vadim
The Sitemap is null, this should never be!
description java.lang.RuntimeException: The
Werner Guttmann wrote:
Hi,
could somebody please advise me on what options I have to include one or
more request parameter values into a soap request (using the soap
logicsheet of Cocoon 2.0.3).
Iow, with a request message similar to
xsp:page
language=java
xmlns:xsp=http://apache.org/xsp;
Rainer Häner wrote:
hallo,
i want to include single-nodes or fragments of xml-documents.
simply i can do this with a stylesheet
xsl:template match=xlink
...
!-- show attributes --
xsl:value-of select=@pathToFile/
!-- = docs/samples/xml-file.xml --
xsl:value-of
Thanks for the suggestion - I see it was it was all lowercase
on my machine too - however, when I changed it to 'mySQL'
here, and restarted Tomcat, I did not get any errors on my
machine - in other words, the case doesnt not affect the
problem happening on the client machine.
so I dont think
Kenny Chow wrote:
Hi all,
I am running in a difficulty where I can't get a
value from an action. 'myAction' will define a key
called 'myParam' and return its value via the Map
object. Now myURL.xsp, in turn, tries to get the param
from the sitemap (see below);
You did not tell how XSP gets
Hi
Which version of Cocoon are you using?
You only mentioned Cocoon 2.0 which isn´t enought.
Cocoon 2.0.2 has a problem with the connection pooling caused by the JDBC
update in JDK 1.4.0.
I had a similar problem - a update to cocoon 2.0.3 solved my problem.
greetings
mike
- Original
Mike
I have the original version 2.0 (I dont think it had any numbers...)
and the machine is running JDK 1.31 - this is vitually the same setup
on the all the machines running here and v. similar to the clients
I agree that if I had JDK 1.4 I would need a Cocoon upgrade.
Derek
[EMAIL
I use parameters.getParameter(myParam) in the xsp.
'myParam' doesn't show up in sitemap.log.
Thanks KOZLOV.
{../myParam} unfortunately doesn't work either.
--- Vadim Gritsenko [EMAIL PROTECTED]
wrote:
Kenny Chow wrote:
Hi all,
I am running in a difficulty where I can't get
a
Kenny Chow wrote:
I use parameters.getParameter(myParam) in the xsp.
'myParam' doesn't show up in sitemap.log.
May be something is wrong with the action.
Vadim
Thanks KOZLOV.
{../myParam} unfortunately doesn't work either.
--- Vadim Gritsenko [EMAIL PROTECTED]
wrote:
Kenny
ROSSEL Olivier wrote:
Hi all:
I downloaded the last Tomcat beta release and is working fine
with Cocoon2.
more info at: http://jakarta.apache.com/
download at:
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4
.1.9-beta/
This week being the Off-topic week, I will ask
Ah, philosophy :-)
Yupp!
Ok, I think we reached a state where it's difficult to say who is right
and who is wrong.
Personally, I think that the meaning of 'groups' and roles is mixed
somewhere in the servlet spec. *My* understanding is that a person
can be in several groups at a time
All,
Sorry, mentioned the wrong transformer earlier. Used stream generator,
posted xml, saved to file. See code below.
JAVA CLASS:
URL url = new URL(http://path/xml2pdf.pdf;);
HttpURLConnection httpConn = null;
try {
httpConn =
Title: RE: Can cocoon write pdf to a file?
will this code get .pdf file over HTTP?
if yes, then wouldn't it be more efficient if instead of that, you somehow directly write on the hard disk without loading a Web server?
-Original Message-
From: Terry Anderson [mailto:[EMAIL
will this code get .pdf file over HTTP?
if yes, then wouldn't it be more efficient if instead of that, you somehow
directly write on the hard disk without loading a Web server?
Yes! you want SourceWritingTransformer from Cocoon 2.1 dev. There is a
parameter to tell it how to serialize the
Yes! you want SourceWritingTransformer from Cocoon 2.1 dev.
There is a
parameter to tell it how to serialize the output. It writes
to a file
on the local hard drive.
SWT can have its own serializer? What a great stuff!
Is this feature available in the scratchpad of C2.0.3?
Title: RE: Can cocoon write pdf to a file?
thanks, I've seen it mentioned earlier.
-Original Message-
From: Geoff Howard [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 10:12 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Can cocoon write pdf to a file?
will this code
Yes! you want SourceWritingTransformer from Cocoon 2.1 dev.
There is a
parameter to tell it how to serialize the output. It writes
to a file
on the local hard drive.
SWT can have its own serializer? What a great stuff!
Is this feature available in the scratchpad of C2.0.3?
Title: RE: Can cocoon write pdf to a file?
isn't there to be a serializer after the transformer in the pipeline?
-Original Message-
From: Geoff Howard [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 10:22 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Can cocoon write pdf to
Hi,
just looking at the available XSP logicsheets, it seems that there is
not a logicsheet for the ServletContext that would offer the kind of
functionality the request logicsheet offers for interacting with the
HttpServletRequest. If that's true, how does one access e.g. context
parameters of
Sure.
The main pipeline continues but the portion of XML
corresponding to the SWT has been replaced by the result
of the SWT step.
Input:
...
source:write
content_to_write
...
/content_to_write
/source:write
...
Output:
...
source:result isSuccess='true'/
...
Note: this is not the
[repost] still stuck on this [/repost]
I'm quite new to Cocoon but want to set up a MySQL connection using
ESQL. I followed the directives on
http://www.cocooncenter.de/cc/documents/resources/db-app/index.html and
altered the settings for MySQL like I see them everwhere in the mail
archives. So
Title: RE: Can cocoon write pdf to a file?
I still don't see how this will work with PDF.
PDF comes only from FOPSerializer. the last step in the pipeline. So, if you want to write its result on the disk, how can SWT be useful?
I thought, maybe it makes a sense to have a special type of
right, and the output of the cocoon pipeline gives the result of the output
which you can transform into a report back to the user who called the
action, or ignore it entirely.
-Original Message-
From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 10:35 AM
well, the SWT writes to a WritableSource, AFTER being serialized by its OWN
serializer.
So the main pipeline can be a HTML report of the PDF written to disk.
-Message d'origine-
De: Argyn Kuketayev [mailto:[EMAIL PROTECTED]]
Date: vendredi 16 août 2002 16:40
À: '[EMAIL PROTECTED]'
Objet:
Title: RE: Can cocoon write pdf to a file?
ok, I'll check that, thanks
-Original Message-
From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 10:43 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Can cocoon write pdf to a file?
well, the SWT writes to a
-Message d'origine-
De: Argyn Kuketayev [mailto:[EMAIL PROTECTED]]
Date: vendredi 16 août 2002 16:40
À: '[EMAIL PROTECTED]'
Objet: RE: Can cocoon write pdf to a file?
...
on the other hand, having the caching configured properly
would probably
solve the problem too.
on the other hand, having the caching configured properly
would probably
solve the problem too.
Wait, this last statement makes it sound like you are only interested
in keeping the results cached to reduce load. If that is the case,
use cocoon caching - it will automatically keep
Title: RE: Can cocoon write pdf to a file?
well, I don't remember who started the thread, not me though :)
I'll also need some sort of solution with large PDF files. The idea is that you come and launch report, and given a URL to check it later (when PDF is ready). The URL would point to a
I think you can use such a a pipeline:
- SWT
-- Serializer : PDF
- sucessOrFailure2mail.xsl
- Sendmail transformer
So the first step makes the PDF and provides a report as XML .
The second step creates a report mail from the XML output of the SWT.
The third step sends the mail (may
Hello,
I'm new to Cocoon, trying to work my way through the documentation. So far,
I've been able to get most things to work satisfactorily enough, however
I've run into a roadblock while trying to implement XSPs. So far, I've
written a quick and dirty example, of which all I want to do is
thanks, this works fine,
sorry, i did not read most of the documentation
the idea behind my question was to write a logicsheet
which simulates xlink and xpointer
have a nice weekend,
rainer
- Original Message -
From: Vadim Gritsenko [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
Hi Brian,
I'm not totally sure if this is the cause of your problem, but make sure
your xsp:structure element is inside your xsp:page element, but outside your
content element. So for example:
xsp:page _namespace stuff_
xsp:structure
On 16.Aug.2002 -- 11:27 AM, Brian Schwark wrote:
directory is to include the following tag in my XSP, (or XSL? Can someone
clarify this please? The documentation is sketchy and I have seen examples
using either method. Are both kosher?):
In a logicsheet, yes, in a stylesheet there's no point
-BEGIN PGP SIGNED MESSAGE-Hash:
SHA1
Hi @ll,
I 've got a problem with dynamic parameters in an
XSP-ESQL-CombinedPage.What I want to do:I just want to write a
dynamically generated XSP-Page which put outthe results of an ESQL-Query in
a html-table. Each row of the tableshould have
And more importantly, do not to forget to put a
xsp:expinstance_of_your_class/xsp:expr
at the place where you want the generated XML to be inserted into your document.
Werner
Lai, Harry wrote:
Hi Brian,
I'm not totally sure if this is the cause of your problem, but make sure
your
Thank you everyone very much for the replies..
My xsp:structure element was indeed within the content, right before I
call the logic.. however, moving it out just under the xsp:page tag did no
good, Cocoon still failed to find the class. I find that if when calling my
method in the logic, I
I had the exact same problem...
which was solved by uploading an *uncompressed* mysql driver .jar to WEB-INf/lib (yes yes, it seems like a a lot of voodoo nonsense...)
good luck
I
think I did something similar with a stylesheet. I'm not sure if this is
quite what you want, but here's what I did:
I had
a logicsheet that used esql which results in xml like
this:
row
pin1/pin
other_infoinfo/other_info
more_infomore/more_info
/row
row
pin2/pin
Thanks a lot, Vadim!
Now I changed my pipeline as you said, using a host selector this time:
#
#map:match pattern=**research.pdf
# map:generate src=content/research/research.xml/
# map:select type=host
# map:when test=localhost
# map:transform src=transforms/page-fo.xsl/
#
Yes. Just noticed that map.put(key, value) was
mistakenly placed. But let me do a summary of my
problem anyhow.
==
Problem: get parameters from action in xsp
Context: Suppose you have an action and it returns
parameters via its map object; and an xsp will
I'm just starting a Cocoon project, looking for
docs or preferably example of how to do the following
read display a URL in a browser window...the
URL contents may include a link to an XML file that
must use a specific DTD. The name of the XML file
can be
hi - thank you!
another question - do i have to change something in my java-code of
my action.
i use bea weblogic6.0sp2 and hp-unix and cocoon2.0.2
greetings
-Original Message-
From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
Sent: Freitag, 16. August 2002 08:01
To: [EMAIL
Im using Cocoon 2.0.3 with Tomcat 4.0.1.
I have this code in my file...
fp:if-post
fp:write to=external-item select=when
xsp-request:get-parameter name=when/
/fp:write
/fp:if-post
fp:redirectxsp-request:get-parameter name=file//fp:redirect
Cocoon processes this but will not add to the
Is there a way to have Cocoon handle a POST request
and send it to a Perl CGI script? The Perl script
returns XML which I want to use in the pipeline.
If there's no way to call the Perl CGI script (and I
presumably have to rewrite it in XSP/Java) how can I
get at the POST data and process it
I don't have experience using Torque, but can't see any reason
why torque's auto generated classes should have a problem. Here's
a few questions that may help debugging:
- What jdk did torque use to create the classes and what is cocoon
using (that should be defined in cocoon.xconf)?
- Which
It seems to be that Cocoon uses J2EE (witch I do
not have) for it uses javax.transaction.UserTransaction.. is this correct or
have I possibly done something wrong during the build process?
The whole trace is included below.
Oh by the way: The link is in a class within the
scratchpad, so...
Werner Guttmann wrote:
Hi,
just looking at the available XSP logicsheets, it seems that there is
not a logicsheet for the ServletContext that would offer the kind of
functionality the request logicsheet offers for interacting with the
HttpServletRequest.
They (context parameters) are not
Hi everyone,
I'm working on a web app where I'd like to have a page send an email
to someone and attach a file to the email. The attachment would
actually be an html or pdf document generated by Cocoon.
Right now the 'sendmail' logicsheet allows attachments, but the filename
is an absolute
Geoff -
Thanks for the reply. I'll try to answer your questions to the best of my
ability so you've got a little clearer picture of my setup, I apologize for
the vagueness of my description but as I said, being new to Cocoon I'm still
learning all of this as I go along. :)
What jdk did torque
Dwayne Kemp wrote:
Im using Cocoon 2.0.3 with Tomcat 4.0.1.
I have this code in my file...
fp:if-post
fp:write to=external-item select=when
xsp-request:get-parameter name=when/
/fp:write
/fp:if-post
What's 'fp'? If this is some logicsheet, what is namespace? Cocoon 2.0.3
does not have any
Paul Pattison wrote:
Hi everyone,
I'm working on a web app where I'd like to have a page send an email
to someone and attach a file to the email. The attachment would
actually be an html or pdf document generated by Cocoon.
Right now the 'sendmail' logicsheet allows attachments, but the
Brian Schwark wrote:
Geoff -
Thanks for the reply. I'll try to answer your questions to the best of my
ability so you've got a little clearer picture of my setup, I apologize for
the vagueness of my description but as I said, being new to Cocoon I'm still
learning all of this as I go along. :)
Try changing ur esql snippet to following,
esql:connection
esql:poolusers/esql:pool
esql:execute-query
esql:queryselect * from users/esql:query
esql:results
table
esql:row-results
tr
tdesql:get-string column=username//td
tdesql:get-string column=password//td
/tr
/esql:row-results
/table
Hi,
Im looking for a cocoon2 powerpoint presentation, and I would rather not
start from scratch.
Anybody got one that I could cut and paste from?
- Kasper
-
Please check that your question has not already been answered in
hmm. you've checked the logs in WEB-INF/logs?
Geoff
-Original Message-
From: Brian Schwark [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 3:47 PM
To: [EMAIL PROTECTED]
Subject: RE: XSP Java Class Include
Geoff -
Thanks for the reply. I'll try to answer your
Title: RE: XSP Java Class Include
Is the response blank, or just the display in the browser (ie., do a
view source)
When I'm able to get cocoon to correctly locate the class by using it's
fully qualified name while calling it (I still can't get it to find my class
using xsp:structure and
Take a look at,
http://www.pankaj-k.net/cocoon/
--Amir
-Original Message-
From: Kasper Nielsen [mailto:[EMAIL PROTECTED]]
Sent: August 16, 2002 5:31 AM
To: [EMAIL PROTECTED]
Subject: cocoon powerpoint presentation
Hi,
Im looking for a cocoon2 powerpoint presentation, and I would
I just noticed that class XSPUtil (the implementing class for util taglib)
has the following function, which also shows how to get context info in
Java:
public static Object getContextAttribute(Map objectModel, String name)
{
Context context = ObjectModelHelper.getContext(objectModel);
On 16.Aug.2002 -- 06:03 PM, Georg Spar wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi @ll,
I 've got a problem with dynamic parameters in an XSP-ESQL-Combined
Page.
What I want to do:
I just want to write a dynamically generated XSP-Page which put out
the results of an
Hi,
I understand how to implement new actions in the sitemap, however i don't understand
exacly how to define those actions.
Actions are java code which i write seperatly from everything else. Do i save this
file as a.java or .jsp? What directories do i have to place in into
in order for it
Actions are java code which i write seperatly from everything else.
right.
Do i save this file as a.java or .jsp?
.java, and then you compile it.
What directories do i have to place in into in order for it to properly
compile
you can compile it from anywhere, but you need your
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
- -BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
very funny!
this is what I tried out:
!-- -snip ---
xsp:logic
String ref = esql:get-string column=mail_ID/;
String m_from = esql:get-string column=mail_from/;
/xsp:logic
!--
I upgraded to the com.mysql.jdbc.Driver, same error. The settings you
described are like I already had.
Try jdk1.4.1 and the cvs HEAD of Cocoon. If your going to be
on the edge, then being one or two versions back can be
rougher than being where the developers are; the developers
are
Jesse Reynolds wrote:
At 22:29 -0400 15/8/2002, Vadim Gritsenko wrote:
Jesse Reynolds wrote:
At 22:10 -0400 15/8/2002, Vadim Gritsenko wrote:
Jesse Reynolds wrote:
And I've made the changes to JaxpParser.java as Vadim has
suggested to get it to tell Xerces to allow-java-encodings but
Hi Vadim
Okay, I've modified the JaxpParser.java and placed it at:
$TOMCAT_HOME/webapps/cocoon/WEB-INF/classes/org/apache/avalon/excalibur/xml/Attic/JaxpParser.java
Ahem...
Take a look at package ... line in the source code. *This* line
should match directory, not URL from CVS. It should
Jesse Reynolds wrote:
...
OK! Now we're getting somewhere. All my debug output is now happening,
YAY, but now cocoon is not initialising. H. I must have stuffed up
the code I guess, I will review...
What version of Excalibur is shipped with Cocoon 2.0.2???
See jar name. Usually it
80 matches
Mail list logo