Versions: orion 1.5.2/1.6.0, cocoon 2.0.3, jdk 1.3.1_06, RedHat 7.3.
We have a web application that used to produce HTML from the JSP pages
in the UTF-8 encoding, so there are no problems with most languages.
Now we split the functional part from the visual design by having the
JSP pages produce
Thank you for your answer,
I have finally done your solution (write the source earlier to disk), using
a XSL stylesheet redirecting the generated XML in a local file. This file is
transformed/serialized when the PDF file is required later. I 'd prefer your
solution to save it after the XSLT
I'm lookin for Jar where Jdbc-Odbc classes are...help plz i cant find
-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
To
In 2.0.3 the SourceWritingTransformer can be found in the cocoon scratchpad.
HTH
Judith
-Ursprüngliche Nachricht-
Von: Ludovic de Beaurepaire [SMTP:[EMAIL PROTECTED]]
Gesendet am: Dienstag, 5. November 2002 10:28
An: [EMAIL PROTECTED]
Betreff: Re: Accessing serialized
It is in the JDK (rt.jar)
Ludovic
- Original Message -
From: marco scotoni [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 05, 2002 10:23 AM
Subject: Where is the Jar with Jdbc-Odbc Class!?!?!?
I'm lookin for Jar where Jdbc-Odbc classes are...help plz i cant
It's very big 22 mb
can i re-jar only class i need ? what do u think?
I think that loading a so big jar my memory fill out immediatly!
- Original Message -
From: Ludovic de Beaurepaire [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 05, 2002 10:37 AM
Subject: Re:
Mark,
I try to configure out the authenticate resource using XSP calling to the
database (see the code bellow). The xsp-request:get-parameter
name=userName/ within the select statement seems not work correctly. The
following exception is thrown :
C2.1 Exception :
If you use java you should be able to access it directly
- Original Message -
From: marco scotoni [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 05, 2002 10:36 AM
Subject: Re: Where is the Jar with Jdbc-Odbc Class!?!?!?
It's very big 22 mb
can i re-jar only
Artur Bialecki wrote:
Is there a way to redirect internally (without going back to the browser)
from an action? Actions get a Redirector but it is a SitemapRedirector
that calls HttpEnvironment.redirect(). Is there any way
I can get a ForwardRedirector in my action.
The best way is to exit
Hy there;
While enabling saxon within cocoon-2.0.3 i was faced
with some tricky problems. Consulting several mailing
lists i finally managed to get it up running stable.
Now i consider writing a little Howto enable saxon by
tying together all infos i found on several places in
the world. Would
On Monday, November 4, 2002, at 10:45 AM, [EMAIL PROTECTED] wrote:
Is this a good candidate for the Wiki?
Certainly!
Thanks for contributing.
Diana
-
Please check that your question has not already been answered in the
Hello experts,
I was wondering if anyone out there could provide me with some pointers
about how to integrate PHP code with Cocoon? Specifically I have some XML
documents that are serialised to HTML pages but I would like to add PHP
functionality to enable data to be passed to and from a MySQL
Dear Friend,
I read your post with enthusiasm - like a thirsty man receiving a bottle of
water!!!
What did it say? ... look at the authenticate resource.; ...anything
else...; ...you can...; ...can be..; ...you could... - WOW!!! The
water bottle was empty.
What do i know from the post - well,
Title: Blank
Hello experts,
I was wondering if anyone out there could provide me with someinstructions
about how torun "Hello World " kind ofXSP code with Cocoon?
If anyone could please give me some tips or ideas on how this might be
done
I will be most grateful.
Regards,
Dhiman Paul.
WARNING, Win users! the mail of Paul Dhiman is infected with HTML.Redlof.A
-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
To
Sender: Dhiman Paul [EMAIL PROTECTED]
Recipient: [EMAIL PROTECTED]
Subject: How to run XSP ?
Contains Virus HTML.Redlof.A
-
Please check that your question has not already been answered in the
FAQ before posting.
Dear Hai,
there is a scripting language available for Cocoon,
namely XSP, where you can execute Java-Statements.
To access databases an alternative approach would be
to use a component as the SQL Transformer.
Greetings!
Rimbert
-Ursprüngliche Nachricht-
Von: HA, Hai
Also suggest you do some reading of your own... have a
look at the database tutorials linked off of:
http://xml.apache.org/cocoon/tutorial/index.html
(the one by Leigh Dodds is especially helpful, and there
is also one by Michal Durdina)
and maybe think about a different approach from the PHP
Peter Sparkes wrote:
Sender: Dhiman Paul [EMAIL PROTECTED]
Recipient: [EMAIL PROTECTED]
Subject: How to run XSP ?
Contains Virus HTML.Redlof.A
reading mail through Mozilla brings much peace to my mind :-)
/Steven
--
Steven Noelshttp://outerthought.org/
Just started using Cocoon and I have a rather simple question:
Lets say i have a document with all my data (projects.xml)
projects
project id=A1
name RailwayTrack DF/name
responsible kni /responsible
economy_actual123/economy_actual
Kasper,
I'm kinda new at this too, but I believe you can do that easily with
xslt...just define two components and stylesheets in your
pipeline...one to include the first xml file and one to include the
second one.
There may be a faster/easier way to do this ;-)
Bob Hitchins
-Original
Hi Kasper,
You wouldn't need to write a custom transformer for this. One
solution would be to use aggregation to aggregate both files
together. Then using xsl you can extract the necessary data
for output.
Hope that helps.
Cheers,
Bram Bouwens wrote:
The actual output is produced by calling void write(int b) from
MyServletOutputStream for each character, with the ISO-8859-1 encoding
of the character, sign extended, as a parameter: the ë mentioned above,
which is 235 in ISO-8859-1, is sent as -21 . This appears quite
Hy;
I'm also new to cocoon, but i think, your
problem can be solved directly using the
sitemap capabilities by merging the two xml files with
aggregation then applying a stylesheet on the merged
data...
But you also could do it directly within the xslt context:
You can use the document()
Hy again;
Sorry, there was a typo in my example. Of course
it must be:
1.) From within the cocoon sitemap you would
create something like this within a pipeline:
map:match pattern=projects.xml
map:generate src=/projects.xml/
map:transform type=xslt src=mytransformer.xsl
map:parameter
On the subject of Cocoon and EJB:
I am developing an application based on JBoss 3.0.3 (with Jetty), Cocoon 2.0.3 and Sun JDK 1.4 - all nicely wrapped up in an InstallAnywhere executable and easy to install on any Linux/Windows box. We are using an almost stock JBoss where the Jetty container is
SAXESS - Hussayn Dabbous wrote:
snip/
But you also could do it directly within the xslt context:
You can use the document() function in your XSLT-file.
This function allows you to refer to data contained within
another XML-file. This is completely decoupled from cocoon
though. It's more about
Hi all,
I am trying to protect my pages by using the Authentication framework. The
authentication resource uses XSP to access the datastore. I've tried almost
everything but I didn't succeed to retrieve the auth-login action parameters
({request:...}) from within the XSP code to complete the
You've got the XSP but what does the sitemap look like??
-
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:
Look @ the cocoon documentation, e.g. Developer Documentation/ Developing
Webapps/Authentication
e.g. cocoon's authentication framework. and then for doing customized authentication
(using LDAP, SQL, etc.) look at the authentication resource for where you put your
code.
MD
Well you could probably write another transformer (to be placed after the
SQLTransformer in the pipeline) that would change the escaped charactors into ...
It could also look for the second ?xml version=1.0? and not pass it through.
That's kind of brutal coding IMO.
Another option may be
the sitemap looks like this :
***
* The auth-login action
***
map:match pattern=loginProcess
!-- try to login --
map:act type=auth-login
map:parameter name=handler value=authHandler/
map:parameter name=parameter_name
Too be honest I started using cocoon three months ago and am following a very
iterative process to eventually start talking to the db, e.g. do the look and feel,
validation, security, etc. were done first.
I had initially tried to get it running but even the sample authentication seemed
You'll need to confirm this but look in cocoon's sitemap.log. You should see the
pipeline parameters being passed around.
in the sitemap your passing cocoon parameters but in the XSP your looking in the HTTP
request. Try looking in the parameters, e.g. parameters.getParameter( name );
Actually, I found a Wiki entry for it already...
http://outerthought.net/wiki/Wiki.jsp?page=DesignPipelines
-- jack
John R. Callahan, Ph.D.
CTO
Sphere Software Corporation - The Intelligence of XML
[EMAIL PROTECTED]
On Monday, November 4, 2002, at 10:45 AM, [EMAIL PROTECTED] wrote:
Greetings
all:
I
have recently installed the sun one app server 7.0 and am in the process of
deploying our applications. Most of them have gone smoothly except when it
comes to cocoon.
I
created a war file from our current cocoon, and also tried to deploy the
current CVS version, and
Thanks Mark I'll try this. I didn't try the getParameter method yet
-Message d'origine-
De : [EMAIL PROTECTED] [mailto:Markdelanoy;aol.com]
Envoyé : mardi 5 novembre 2002 16:20
À : [EMAIL PROTECTED]
Objet : Re: Authentication Resource
You'll need to confirm this but look in cocoon's
- Root Cause -
java.security.AccessControlException: access denied (java.lang.RuntimePermission createSecurityManager)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
at java.security.AccessController.checkPermission(AccessController.java:401)
Hello,
In XMLForm, is it possible to protect the default value in a textbox against the user
changes.
I want to display the field in the form (with the default value) but it shouldn't be
possible to change the value of it.
Any idea?
Thank you
Sylvain
I used:
xf:selectOne selectUIType='listbox'
It works!
Sylvain
-Message d'origine-
De: Ivelin Ivanov [mailto:ivelin;apache.org]
Date: mardi, 5. novembre 2002 05:08
À: [EMAIL PROTECTED]
Objet: Re: XMLForm and pop-up menu
For drop down list use:
xf:selectOne
For radio buttons, use
I want to obtain a text file (not xml) from an XSLT
transformation. The problem is that after doing the transformation and
serializing the result with a text serializer, the ?xml version="1.0"? processing instruction appears at the
beginning of the text file,so I have to delete it
Hallo Sylvain
I think the property of textbox to be uneditable by the user is not
supported in the XMLForm ...
But u can --- only make a getter method for this field without a
setter method in the model bean ... so if the user tried to change the
text box value actually it will not changed
ATTACHMENT part 16 message/rfc822
Date: Mon, 04 Nov 2002 12:50:02 -0500
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Authentication: redirect
I did a hack because as you say currently the
examples only work for a particular
url/file/resource.
I actually pass the
Happily I have received another Cocoon2 book for review on
http://news.DiverseBooks.com
Does anyone have any questions which they want me to discuss in my review?
(We already have a review of the New Riders Cocoon book)
Title: Cocoon 2 Programming
Subtitle: Web Publishing with XML and Java
Well, after reading replies to my emails I have a better idea of wht to do
and unfortunately not a chance to do it.
I explain it.
A quick summary. I would like to manage many XMLForms in my sitemap. I would
like to declare a pipeline like this:
!-- XMLForms pipeline --
map:pipeline
A naive implementation of the document() function is likely
to do this. However happily, by implementing the
javax.xml.transform.URIResolver interface [1], and setting
this on the Tranformer using setURIResolver [2] you can easily
plug in a simple cache (e.g. hash of URL versus retrieved content)
--- Alex McLintock [EMAIL PROTECTED] wrote:
Happily I have received another Cocoon2 book for
review on
http://news.DiverseBooks.com
Does anyone have any questions which they want me to
discuss in my review?
1) which version of cocoon is the book relevant to?
2.0.3 release? any 2.1 dev
Well I can explain what I've done which matches your requirements but the
implementation I suspect is quite different.
First some issues I had.
1.) I like the XFORMS concept but... didn't like the fact that I couldn't represent
non-forms widgets, e.g. page banners, table of contents, footers,
In your XSLT file, right under xsl:stylesheet, include:
xsl:output omit-xml-declaration=yes method=text /
-Original Message-
From: Oskar Casquero [mailto:jtacaoio;bi.ehu.es]
Sent: Tuesday, November 05, 2002 11:31 AM
To: [EMAIL PROTECTED]
Subject: xml version procesing instruction and
Thanks for the help. I found that I had to this permission as well as
some others to the server.policy file. This is what I added:
permission java.lang.RuntimePermission createSecurityManager;
permission java.lang.RuntimePermission createClassLoader;
permission
-Original Message-
From: Geoff Howard [mailto:cocoongeoff;yahoo.com]
Sent: Tuesday, November 05, 2002 11:37 AM
To: [EMAIL PROTECTED]
Subject: Re: Sybex Cocoon book
--- Alex McLintock [EMAIL PROTECTED] wrote:
Happily I have received another Cocoon2 book for
review on
Yep. I gave up a SQLTransformer for this, and just went with XSP ESQL.
thanx,
rob
On Tue, 5 Nov 2002 [EMAIL PROTECTED] wrote:
Well you could probably write another transformer (to be placed after the
SQLTransformer in the pipeline) that would change the escaped charactors into ...
It
Hey all,
I'm attempting to get at authentication session data using the session
transformer in a installed portlet. That is, I want to check something
stored in the user's authentication session data from a pipeline called
from the portal itself (and not me directly).
For instance, I have a
Josema Alonso wrote:
So, an Action Dispatcher (or call it Proxy Action or whatever) is needed so
the action could be choosed at runtime. Unfortunately this involves working
with Avalon components and I have no idea about them. I tried their white
paper at their website but it is too hard for me
Robert Ellis Parrott wrote:
I want to pull a valid XML text out of a database using SQLTransformer if
possible.
Problem (1) everything is escaped away to gt;, lt;, and #13;
Problem (2) the resulting text won't really be valid, since it would
include a second ?xml version=1.0?.
How do people do
I'm trying to use the user-roles attribute on the cocoon element
of cocoon.xconf, but not having any luck.
I've followed the FAQ (faq-configure-c2.html) and have:
cocoon version=2.0 user-roles=WEB-INF/jtk-component.roles
but I get:
Exception reloading
On Tuesday, November 5, 2002, at 03:11 PM, Phil Shafer wrote:
I'm trying to use the user-roles attribute on the cocoon element
of cocoon.xconf, but not having any luck.
I've followed the FAQ (faq-configure-c2.html) and have:
cocoon version=2.0 user-roles=WEB-INF/jtk-component.roles
Did
Ilya A. Kriveshko wrote:
SAXESS - Hussayn Dabbous wrote:
But you also could do it directly within the xslt context:
You can use the document() function in your XSLT-file.
There are drawbacks. One of them is that Cocoon currently
(2.0.3) does not check XML sources referenced via document()
for
Have a look at your sitemap and try to comprehend the processings. For
example start with only the generator and an XML serializer in the
pipeline. See on which stage the namespace declaration is added.
Joerg
Derek Hohls wrote:
Yes, that's what I would like to know too - how to remove
all the
Peter Royal writes:
Did you try /WEB-INF/ ?
Nope, that did it. Cool. I was thinking the /localhost/jtk/
was part of the problem, but appearantly this is handled
internally by something (jndi?).
Thanks,
Phil
-
Please check
--- William Brogden [EMAIL PROTECTED] wrote:
1) which version of cocoon is the book relevant
to?
2.0.3 release? any 2.1 dev and if so how outdated
is
it?
Of the major topics of the book, how many are now
in
the process of being deprecated?
2) where is the book focused? static xml
On Tuesday 05 November 2002 21:44, Phil Shafer wrote:
Peter Royal writes:
Did you try /WEB-INF/ ?
Nope, that did it. Cool. I was thinking the /localhost/jtk/
was part of the problem, but appearantly this is handled
internally by something (jndi?).
Hm, I posted a patch for this at
J.Pietschmann wrote:
document() is good for rapid prototyping, but is a poor choice for final
deployment for performance reasons. Use aggregation instead.
The Cocoon developers recommend to use aggregation or xinclude
because of SoC (XSLT is for transforming, not for aggregating
content). I'd
On 04.Nov.2002 -- 07:43 PM, Phil Craven wrote:
here is the sitemap segment that shows what I am trying to do.
map:match pattern=group2.xsp
map:act type=mod-db-sel action=sel-ci
map:parameter name=table-set value=content_item/
map:generate type=serverpages
I get it. You should use request.getParameter(user) rather than
parameters.getParameter(user) in your XSP server page to access the user
information.
Below the XSP code that works
xsp:page language=java
xmlns:xsp=http://apache.org/xsp;
Hi, Mark.
Thanks for writing. After reading your message I can only say...wow!
I think it is very interesting the way you made things work and I really
would love to see it.
More than that, I'm with you when you say you're doing things from a very
different approach when comparing to the average
Ivelin,
I created a new main point in the left menu and called it Cocoon compared.
Reinhard
-Original Message-
From: Ivelin Ivanov [mailto:ivelin;apache.org]
Sent: Saturday, November 02, 2002 5:23 PM
To: [EMAIL PROTECTED]
Subject: Re: XMLForms vs Struts
Please do.
Wiki is
I tried that as well, and only row-count would come through, I was unable to
get the selected parameters even though I used map:parameter name=
value=
so what would the correct map:parameter look like to get at the output of a
mod-db select.
Just to reiterate I appologize for being dense and
Hello,
you do this in your xslt stylesheet:
e.g.:
input name=whatever type=textbox value=whatever disabled=disabled
the disabled should to the trick,
Hope that helps,
mh
Hi,
try
cocoon version=2.0 user-roles=/WEB-INF/jtk-component.roles
at my site work with /
Kim
Phil Shafer wrote:
I'm trying to use the user-roles attribute on the element
of cocoon.xconf, but not having any luck.
I've followed the FAQ (faq-configure-c2.html) and have:
but I get:
70 matches
Mail list logo