I just checked this site and can't find any mention of Cocoon or Java
hosting.
Searching for either just returns you to their main page...
Maybe they only support Cocoon through dedicated servers?
Steve
Running the latest version of Tomcat and Cocoon
Hi Brittany,
What website are you trying to login to?
I'm guessing you might be accessing a website Powered by Cocoon and the
developer of that site might not have put in place error handling to direct
you to them instead of this mailing list. You might look at the site for a
contact email
Anna,
Yet another client-side approach is to look at Domapi www.domapi.com. IIRC
he's implemented a sortable Grid that uses rpc to talk to the server to pull
data. That way he can support paging and other dynamic activities. I think
he is using JSON as the wire representation of the data sets.
Joose
I believe you do have to enhance the new classes. I don't have a dist here.
But look in the build.xml file in the ojb/samples. I recall it has a line in
there enhancing the category and department classes.
Hope this helps
Steve
I forgot to say that I have not enhanced the new classes.
Hi again,
Anyone have any ideas?
Thanks
Steve
Hi
I've written some flowscript to perform login validation using OJB and on
success I end up with a populated bean. I then call sendPage() to a pipeline
that uses JXPathGenerator along with the bean to create the XML that meets
the needs of the
Hi
I've written some flowscript to perform login validation using OJB and on
success I end up with a populated bean. I then call sendPage() to a pipeline
that uses JXPathGenerator along with the bean to create the XML that meets
the needs of the authentication framework.
My problem is that
Hi
I was playing around to add a new sample to the ojb samples and can't seem
to find the script that is run in the build or startup of the standalone
demo that creates the tables used by this sample...
I'd like to integrate some new tables directly into the existing script(s).
Thanks,
Steve
Hi
I was reading in the WoodyWidgetReference that you can set the value of
output widgets either by binding or programmatically. I'd like to create a
widget into which I set user messages from my flowscript but I can't find an
example of how to do it w/o using a binding.
Thanks,
Steve
Hi,
IIUC your solution below will put the user on the page they requested. It
should only leave you with the do-login url if someone had tried to access a
link to a protected page and was not yet logged in. Once they login their
links will be correct for all other protected and non-protected
Hi
I'm still away from my code (I can send a sample Thurs PM CDT)
IIRC:
!-- sitemap --
map:match pattern=do-login
!-- try to login --
map:act type=auth-login
map:parameter name=handler value=mainhandler/
map:parameter name=parameter_loginame
Hi
I had the same need. I'm not where my source is but if I recall I use the
session transformer within the login pipeline to load the authentication
session info into my own session context only on success. Then this info is
available to all pipelines (either via the session input module or
Terry
I started using SQLTransformer and for a lot of things it works great. It
doesn't do parameter substitution (AFAIK) so my queries/inserts/updates are
built dynamically and build the query explicitly. I'm sure there are still a
lot of Cocoon apps deployed and currently being built using
:^)
Just an idea,
Steve
Thanks, I thought about it.
It would be a solution. My problem is that I don't know if my client would
be familiar by changing the parameters in the sitemap.
Steve Schwarz wrote:
Hi Lionel
If I understand correctly, I think you can put them in the sitemap
global-variables
Hi
I just went to use the 2.1.5 OJB sample and it looks like there are three
paths wrong in the sitemap. At least for my build of the standalone there is
no samples/forms only samples/blocks/forms
so these:
catalogue id=other name=OtherMessages
location=context://samples/forms/messages/
Hi Lionel
If I understand correctly, I think you can put them in the sitemap
global-variables section. Then the variable assignments are copied along
with the sitemap at installation. From the default sitemap:
global-variables
!--+
| Define global parameters here:
|
Hi
This has been discussed several times on the list. I'd take a look in the
archives.
I know I've also seen discussions of using both depending on a developer's
needs.
Goggle:
http://www.google.com/search?hl=enlr=ie=UTF-8q=cocoon+struts+compare
turned up a number of articles, Wiki entries,
Hi,
Take a look at:
http://wiki.cocoondev.org/Wiki.jsp?page=RemoveNamespaces
I think there was also other discussion about this in the last month or so
if you search the mail archives(?).
Hope this helps,
Steve
How can I make cinclude _not_ to put it's own namespace to the result?
Hi
I think I read that the auth-fw session info is only made available from
within an auth-protected pipeline. Take a look at the section in the auth
framework docs about accessing session information.
Hope this helps
Steve
From: Oro smith [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To:
Hi Tuomo
IIRC the file will only exist for the duration of the pipeline invoked by
the form action. So you need to process it within that pipeline as cocoon
deletes it right afterwards.
HTH,
Steve
Hi,
We're having some serious problems with Cocoon upload mechanism. Nothing
ends up in the
Tuomo
I believe the behavior changed in 2.1 so that that is no longer true:
http://wiki.cocoondev.org/Wiki.jsp?page=FileUploadsWithCocoon2.1
Steve
Hi,
But if autosave-uploads=true, the the file should be saved in the
upload-dir permanently, right?
-Tuomo
On Tue, 20 Apr 2004, Steve Schwarz wrote
Hi
I'm trying to generate html that displays the content of XML files to the
user. I found this archive mail:
http://archives.real-time.com/pipermail/cocoon-users/2002-August/020937.html
And I looked at the the snippet sitemap for how Cocoon documentation
displays xml in its html (it just
Conal
Thank you very much that did the trick!
Steve
Have a look @ xml2html.xslt (one of the Cocoon system stylesheets).
Hi
I'm trying to generate html that displays the content of XML
files to the
_
Tax headache? MSN Money
David
I think you want:
...
xsl:param name=requestedfile/
...
thebody
cinclude:include src={$requestedfile}/
/thebody
...
I highly recommend Michael Kay's XSLT 2nd Edition
Hope this helps
Steve
_
Tax headache? MSN Money
David
You can't do it directly within the document. But maybe you just need to
think about the problem a little differently. Remember you don't need this
aggregate document to physically exist. It just needs to be assembled at
some point in your pipeline.
So I'd use a stylesheet to get what
Hi
First of all Lionel Crine thank you for creating this wiki page:
http://wiki.apache.org/cocoon/DownloadFilesToLocalDisk
The first approach using an action and a reader works fine for me.
But I have a question about the second approach. Which serializer should be
configured to match type=file
Hi
AFAIK the serialization is implemented through Batik and Batik doesn't
support SVG to GIF conversion here's a link from their mail archives (if you
search them you will see many such discussions):
http://koala.ilog.fr/batik/mlists/batik-users/archives/msg04499.html
I use svg2png and for IE I
Hi
I've been using the 2.1 bundled Jetty and would like to change the
configuration to remove the cocoon from the uri as described here (for
Tomcat):
http://cocoon.apache.org/2.1/faq/faq-configure-environment.html#faq-N10005
Can someone give me the clue for how to setup the bundled Jetty in the
Geoff,
I'm sorry I mis-stated my request...
I'd like to move one of my sub sitemaps into the default context.
Thanks
Steve
Can someone give me the clue for how to setup the bundled Jetty in the
same way?
? The bundled jetty puts cocoon on the defualt context (i.e., without the
/cocoon).
Geoff
Hi
Sorry to post again; but I'm stumped on this one...
Thanks
Steve
Hi
I've been pouring through the mail archives and can't seem to find what I'm
doing wrong...
If I am not yet authenticated and I try to access a protected page, I am
(correctly) redirected to the login page with the uri
Hi
I've been pouring through the mail archives and can't seem to find what I'm
doing wrong...
If I am not yet authenticated and I try to access a protected page, I am
(correctly) redirected to the login page with the uri containing the
(encoded) resource that I tried to access. How do I
Please search the mail archives, I think a couple months ago someone posted
source to do what you wish; it might have been an action that would
pass/fail a document based on a DTD...
HTH,
Steve
In order to improve the quality of my app, I would like to have a
transformer that:
* given a
Hi
I've got a weird problem generating pdfs using FOP from xml containing SVG;
but only when converted through Cocoon (2.1.2). Generation directly with FOP
is problem free.
For viewBox values larger than 0 0 525 525 (you know this is going to be
weird already...) the generated image within the
Hi
Don't you need to specify a viewPort attribute in your outermost svg
element?
Steve
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:xlink=http://www.w3.org/1999/xlink;
.
xsl:template match=artists-photo1
Hi
Sorry if I lead you astray before...
How's about a divide and conquer strategy? Seems like it isn't clear if the
SVG being delivered to the svg2png serializer is correct or not.
I think someone else mentioned this already, but the way I debugged a
similar problem was to:
- install the Adobe
Well it ain't SVG. If this is what you are giving to the SVG serializer it
will never work. It has to be an SVG document. Looks like you are giving the
serializer a whole HTML page that doesn't contain any svg elements at all.
Please take a look at the svg samples that ship with Cocoon to see
Hi Guatam,
hi Steve,
This is the same mail that i sent to your mail box directly.. i am
extremely sorry for that.These mail is to the cocoon users group to
rectify that mistake of mine.
It was my bad that started this; I must have sent directly to you.
and wrt ur mail ,these is what i found:
I
Yoshi,
It all depends how many iterations you need to make an action work; how
complex the action is, how many actions you have. Softlinking is the the
quick and dirtyapproach and puts your compiled code into the deployed
cocoon class structure (or even jar file if that is what you want); it's
4. The error message I am getting is : tcsh: ./build-action.sh: Permission
denied.
what am I doing wrong here?
Isn't this obvious? On any file or directory that is touched you have not
the permission to touch it, maybe build-action.sh itself. It's not a
problem with compilation or Cocoon,
Hi
Does anyone have any comments on this idea?
Thanks
Steve
Hi,
I have a problem for which a general solution might be useful to others
and am looking for feedback on my idea.
As much as I'd like to supply SVG directly to the client; few people have
SVG plugins installed. So, like many of you,
Justin,
I'm using eclipse http://www.eclipse.org and use it to put my whole tree
under CVS. You can choose to exclude various directories if you don't want
to include your jars. I created a separate sub project for my Cocoon
application. If you use the sunbow extensions
Hi,
Unless I'm missing something, it looks like you've got one too many / in
your cocoon: statement. How's about:
cocoon://svgdiagram/
HTH,
Steve
I am using cocoon 2.0.3. I have a transform to a xml file which contains a
xlink to an cocoon pipeline for static images but it does not get rendered
Hi
Sorry I guess I did misunderstand your request.
A couple ideas:
- recently in the mail lists I seem to recall discussions about using source
resolver to do this. But I'm not an XSP guy so I don't know how you go about
accessing the source resolver w/in xsp...
- another post for this type of
Hi,
I have a problem for which a general solution might be useful to others
and am looking for feedback on my idea.
As much as I'd like to supply SVG directly to the client; few people have
SVG plugins installed. So, like many of you, I've been using svg2png to
generate images. But SVG also
Thank you for spotting my operator error! Moz fooled me when I was viewing
the styled xml in the browser.
I verified via SourceWritingTransformer serializing to xml that whitespace
is preserved.
Thanks again,
Steve
Steve Schwarz wrote:
How do I configure the XMLSerializer to preserve whitespace
Andrezej,
About 6 months ago I looked at JAXB and Castor. Settled on Castor for the
following business/tech reasons:
- It wasn't clear what the licensing terms for JAXB as part of Sun's larger
XML suite would be.
- JAXB either didn't handle polymorphism and/or substitution groups (I don't
have
Hi
This must be a FAQ but I can't seem to find the answer in the wiki or the
archives...
How do I configure the XMLSerializer to preserve whitespace?
Here's my test case:
Given an XML doc test.xml:
?xml version=1.0 encoding=UTF-8?
textSome text withspaces/text
I use an XSLT
Joesp,
Hmmm. I haven't checked the archives to see what I posted. But it is
possible I cut and pasted with some errorI'm very sorry if that is the
case! I didn't just attach the action since it wouldn't persist in the mail
archives that way.
In my code I have:
// Create the
Nacho
If I understand correctly, it looks like you can just create a pipeline that
serves your modified config file and then refer to it using the cocoon:
protocol when you need it.
I do something similar - here is where I generate my config data (from a db
instead of a file)
!-- Pull xml
Hi Thomas,
I'm building a simple CrUD (Create/Update/Delete) db app, similar to the
users/groups and users/depts examples, and I'd like to use
- XSP/ESQL for queries (some of which could get quite complex)
- modular DB actions for insert / update / delete.
This is from experimentation
Josep,
I think part of the problem is an overloading of the term upload
directory...
I have a problem with the upload directory.
immediately after your pipeline completes
Cocoon will delete the file from the upload-dir
if it is still there.
This iis the directory specified in the web.xml. For
Josep,
Steven Schwarz posted his own upload action, but I can't run it.
What error / failure condition are you getting? Please supply the logfile
showing the action output.
It contains a request action, that I don't need
It *has* to contain a request...that is where cocoon puts the
Hi Jan,
Sorry if this is a re-reply, my mailer just hiccuped...
Did you compile this before the code change from the command line as you
show? I'd recommend using the build script in the cocoon root, it will setup
everything correctly and copy the output to the correct places.
Steve
I get an
I just saw this in the SVG mail list and I know there are a lot of SVG users
in the Cocoon community who might want to use national flags in their web
apps as buttons and such.
Take Care,
Steve
Sodipodi flags 1.0
This is the first release of the Sodipodi flag collection. This
collection
Hi Jan
Please search the archives. I know in the last three weeks or so I've posted
a full action for upload that works for 2.1. Also I believe someone else
posted an action (or maybe a flow?) that is being considered for inclusion
into the official distribution.
HTH
Steve
I would like to get
Josep,
I week or so ago I posted a complete solution that I am using every day. I
never saw you reply that you had any problems..?? I assumed you had moved on
with your development.
Steve
I have posted some messages in order to learn about uploading files with
Cocoon 2.1. via an action, but
Josep
1. I'm pretty sure you need the enctype set on your form:
form method=post enctype=multipart/form-data action=upload
2. Temporarilly replace your sitemap entry to just return a static page:
map:match pattern=upload
map:generate src=upload.html/
map:serialize type=html/
/map:match
Once you
Hi
I'm writing a transformer that I need to make Configurable but as soon as I
add implements Configurable to my class, compile it, restart Jetty, and
request a pipeline using the transformer it get:
Lookup of transformer for role 'date' failed
If I remove implements Configurable the lookup
Hi Ralph
For an example of storing and retrieving objects in the Request take a look
at AbstractValidatorAction and SimpleFormTransformer.
The action fills a map with the validation information (for both success and
failure of the action)
and pushes it into the request. The transformer then
Hi
I have a select query containing joins across tables which have the same
column names. I'd like to be able to differentiate the similarly named
columns in the sql:row elements by explicitly naming them.
I've tried changing my query to include aliases for the selected columns but
the output
I just ran across this and thought it might help someone else...
If you are using the standalone demo Jetty servlet where it creates its temp
files (and consequently it's upload directory) on a different file system
from the cocoon deployment AND your File Upload Action naively uses
Hi
I'm using cocoon 2.1.1 running the standalone-demo against hsqldb.
I'm using ModularDatabaseActions to access my database.
It looks like the ping to check if the db connection is still up sends an
invalid select (select 1) which throws an exception in my log files.
Is it possible I have a
Hi
I'm using ModularDb to check if an entry already exists in the database and
I'm having trouble mapping the form fields to the mod db key/values. I'm
using simpleform validation together with the modular db also.
My simplified input form (there are actually a couple on the page - so I
prefix
Andrzej,
I'm just getting this to work myself... Have you taken a look at the modular
db samples in 2.1? You'll have to pick your way through the sample; there is
a lot going on there.
Also this doc shows a one liner about doing what you describe:
Take a look at:
http://cocoon.apache.org/2.1/installing/index.html#Headless+UNIX+and+PJA
You might also look at the batik install stuff because I think they made
some changes (due to 1.4?) that made this easier(???)
http://xml.apache.org/batik/
HTH
Steve
Yes, for headless operation u need to
Hi Jeff
When I first setup this up against MySQL I found that I had to specify my
hostname in the dburl.
So instead of:
dburljdbc:mysql://127.0.0.1:3306/test?autoReconnect=true/dburl
dburljdbc:mysql://myhostnamehere:3306/test?autoReconnect=true/dburl
I don't have access to
Bruno
I just grabbed the one file. Works perfectly now.
Thank you very, very much for looking into this and resolving it so quickly.
Best Regards,
Steve
From: Bruno Dumon [EMAIL PROTECTED]
Looking at the code, that's quite logical because the stored document
locator isn't properly reset between
Hi
I switched this week from 2.0.4 to 2.1rc2 and svg2png is now throwing on my
SVG documents with this error:
DEBUG (2003-08-11) 23:36.50:858 [sitemap.generator.file]
(/~sschwarz/assets/images/SwayBridge_93.png) PoolThread-3/FileGenerator:
file resolved to
I'm really confused by this problem and would appreciate any opinions!
I've simplified my issue down to Cocoon/Batik throwing an error on specific
styles of SVG documents if and only if a stylesheet is applied to the
document. Interestingly, once a single SVG document is processed w/o error
by
Hi
I'm just not quite getting how to associate the posted form content to a
modular database add action. So the action always sees nulls for all form
fields when I submit.
I've defined the modular action in my sitemap with the name insert
My pipeline:
map:match pattern=*-add
map:act
I have two javascript maps:
var map1 = { x : y };
var map2 = { a : b };
I want to copy both maps into one single map. Does anybody have an idea
how I can achieve this?
Object properties in JavaScript can be treated just like arrays:
script type=text/javascript
onload=function(){
var map1 = { x :
a great transformer; it sure doesn't seem to get much press
but it does exactly what I need.
Best Regards,
Steve
From: Christian Haul
On 09.Aug.2003 -- 04:50 PM, Steve Schwarz wrote:
Hi
I'm using SimpleFormTransformer to process the results of
FormValidatorAction and I am getting invalid xml
Hi
I'm new to writing actions and am having trouble debugging an action I've
written.
Is there a way for Cocoon's error logger to capture and log error messages
sent to stderr/stdout by actions within a pipeline? I'm invoking a JavaCC
generated parser within an action I've written to convert a
the
standard pipeline be applied? If someone has a pseudo pipeline for this I'd
really appreciate it.
Any help is greatly appreciated.
Steve Schwarz
_
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page
73 matches
Mail list logo