XForms - and persistance layer - Xindice or other cleverness

2003-02-12 Thread Dirk-Willem van Gulik
Is there a well known receipe to generate the JavaBeans which XForms needs to hold the data for each form ? Or a generic mapper whcih given the xform data lets me store such directly in Xindice or, through somethign like an automated SQL mapping, elsewhere ? What I am looking for is a data

Re: xsp util and file contents

2003-02-12 Thread Christian Haul
On 11.Feb.2003 -- 09:13 PM, Tom Place wrote: Hi, I’m trying to insert xml into my xsp, this xml is for navigation purposes so ideally I would like to use one navigation file in many different xsp documents. I have looked at the mail archive to find out the details about this but I cant

Re: How to get an absolute path ?

2003-02-12 Thread Olivier Billard
Thank you both Jan and Timothy ! I tried with the context variable with the getAbsolutePath(), and it works perfectly ! -- Olivier BILLARD - Original Message - From: Jan Harms [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 11, 2003 4:47 PM Subject: AW: How to get an

Aggregating files using patterns?

2003-02-12 Thread Peter Klotz
Hi, how can one generate a document from multiple sources without knowing their exact names using a pattern? Given some files blah_*.xml, I would like to aggregate all these and get one XML document to apply stylesheets etc. But I have never seen that it is possible to use patterns in

Re: Aggregating files using patterns?

2003-02-12 Thread Michael Wechner
Peter Klotz wrote: Hi, how can one generate a document from multiple sources without knowing their exact names using a pattern? Given some files blah_*.xml, I would like to aggregate all these and get one XML document to apply stylesheets etc. But I have never seen that it is possible to use

Re: Aggregating files using patterns?

2003-02-12 Thread Peter Klotz
Hi, I don't think that this would help, because I would need to call this first pipeline with distinct names but I don't know that. And I can't pass a pattern to a pipeline, right? I thought of using a directory generator and use a XSL to get the actual file names but how would I then

RE: Jumping within sitemap?

2003-02-12 Thread Josema Alonso
Sure. You just need to use the cocoon:/ protocol. See info about Protocols at: http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html Best. -Mensaje original- De: Sonny Sukumar [mailto:[EMAIL PROTECTED]] Enviado el: miercoles, 12 de febrero de 2003 8:59 Para: [EMAIL PROTECTED]

RE: Jumping within sitemap?

2003-02-12 Thread Luca Morandini
Sonny, if a client-side redirect would do, try redirect-to, like in: map:act type=is-user-logged !-- logged user stuff -- /map:act !-- un-logged user stuff -- map:redirect-to uri=doc-stale.html/ Regards, - Luca Morandini

RE: XForms - and persistance layer - Xindice or other cleverness

2003-02-12 Thread Sylvain.Thevoz
Hi Dirk-Willem, See the How-to at Cocoon Wiki: http://wiki.cocoondev.org/Wiki.jsp?page=XMLFormXindice Regards Sylvain -Message d'origine- De: Dirk-Willem van Gulik [mailto:[EMAIL PROTECTED]] Date: mercredi, 12. février 2003 09:01 À: [EMAIL PROTECTED] Objet: XForms - and persistance

RE: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo

2003-02-12 Thread Sylvain.Thevoz
Hi Robert, I want to use the Eclipse debugger. I dont' if it is JPD compatible but I think... In Eclipse, how do you attach Tomcat remotely? Thanks Regards Sylvain -Message d'origine- De: Robert Simmons [mailto:[EMAIL PROTECTED]] Date: mardi, 11. février 2003 21:55 À: [EMAIL

Re: Aggregating files using patterns?

2003-02-12 Thread Michael Wechner
Peter Klotz wrote: Hi, I don't think that this would help, because I would need to call this first pipeline with distinct names but I don't know that. And I can't pass a pattern to a pipeline, right? I thought of using a directory generator and use a XSL to get the actual file names but how

RE: XForms - and persistance layer - Xindice or other cleverness

2003-02-12 Thread Dirk-Willem van Gulik
On Wed, 12 Feb 2003 [EMAIL PROTECTED] wrote: http://wiki.cocoondev.org/Wiki.jsp?page=XMLFormXindice Thanks -seems that Schematron was the missing piece - and this fits much nicer together than what I had managed sofar with Castor. Thanks again ! Dw.

Re: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo

2003-02-12 Thread Robert Simmons
If you add the following Java options to the line that runs tomcat: -Xint -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=12999,suspend=n Then you can attach to tomcat using elicpse at the socket 12999. How to attach eclipse specifically is somethign I dont know. I use NetBeans because

sub sitemap whith protected resource

2003-02-12 Thread Lionel Crine
Hello, Every time I need a pattern I need to pass cocoon-reload=true to relaod the sitemap even it 's unchanged. The issue is that is really slow, so I've decided to create a sub sitemap so that only it would be reloaded. I'm not sure it will works. The thing is that I need to insert

The cocoon-sandwich-use-case(was :Session managing problem)

2003-02-12 Thread SAXESS - Hussayn Dabbous
Hy, all; I see one special use case for cocoon, which i call the cocoon-sandwich. The raising amount of questions in the past few weeks triggered me to write down this text. Lajos Moczar and myself we are in this since about two months now. This message summarizes some of our results. I think,

Re: XForms - and persistance layer - Xindice or other cleverness

2003-02-12 Thread Jeremy Quinn
On Wednesday, February 12, 2003, at 08:00 AM, Dirk-Willem van Gulik wrote: Is there a well known receipe to generate the JavaBeans which XForms needs to hold the data for each form ? Or a generic mapper whcih given the xform data lets me store such directly in Xindice or, through somethign

webServiceProxy

2003-02-12 Thread Tudor Malene
Hi! I am new to cocoon, and I was wondering if I could use this feature ( webServiceProxy ) with any Website ( and if yes -how?) or just withthose sites who produce XML content. Thank you Tudor

cocoon on SunOne?

2003-02-12 Thread Tsui, Alban
hi I have compiled cocoon2.0.3 with jdk1.4 as a war and tried to deploy it to SunOne app server. When I hit the page: http://localhost:81/cocoon I got the following error: Type: Exception Report Message: Internal Server Error Exception javax.servlet.ServletException: Servlet.init() for servlet

AW: cocoon on SunOne?

2003-02-12 Thread Scherler, Thorsten
I am not quite sure but I guess: Root Cause java.security.AccessControlException: access denied (java.lang.RuntimePermission createSecurityManager) it has something to do with your Permission setting and I think they reside on your server. ...but it is just a guess! King regards Thorsten

Re: How to get an absolute path ?

2003-02-12 Thread Yury Mikhienko
On Tue, 11 Feb 2003 11:09:46 -0500 Timothy Larson [EMAIL PROTECTED] wrote: You can get the current sitemap path in an XSP: http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=104160818008223w=2 Tim [EMAIL PROTECTED] 02/11/03 10:24AM Hi all ! I am using Cocoon 2.0.4 with Tomcat

RE: AW: anyone interested in a cocoon-users meeting in Köln/germany ?

2003-02-12 Thread Maxime.Gheysen
I would be interested too. Despite I would prefere some place in Switzerland (or France). Hold us informed about it :-) -Original Message- From: Darren Petrie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 11, 2003 3:30 PM To: [EMAIL PROTECTED] Subject: Re: AW: anyone interested

RE: Writing Request to File System

2003-02-12 Thread jthaemlitz
The writeSource.xsl tranformer seems to be working. If I remove the map:transform type=write-source/ I can see the document on the browser and it looks correct. However when I include the write-source I get the following message on the browser the src attribute could not be resolved and failed

RE: cocoon on SunOne?

2003-02-12 Thread Kyle Koss
We are running cocoon on SunOne as well, and I had this problem too. It's really quite simple. You just need to add some permission in the server.policy file for cocoon to work. These are the permissions I added: permission java.lang.RuntimePermission createSecurityManager;

ideal hardware for cocoon?

2003-02-12 Thread caleb racey
Hi folks We are going to be setting up a dedicated cocoon server soon and I am trying to spec out the hardware. The operating system will be redhat (8 probably) and tomcat will be the servlet engine. Does anyone have any experiences of what hardware balance is right for cocoon? I know this is

RE: ideal hardware for cocoon?

2003-02-12 Thread Hunsberger, Peter
We are going to be setting up a dedicated cocoon server soon and I am trying to spec out the hardware. The operating system will be redhat (8 probably) and tomcat will be the servlet engine. Does anyone have any experiences of what hardware balance is right for cocoon? As much as

Fault tolerance...

2003-02-12 Thread Ben Young
In my current work with the aggregation option in Cocoon 2.0.4 it seems that the aggregation options are not very fault tolerant. If one of the map:part's of my map:aggregate section points to a file that does not exist, all map:part's after that one do not get returned even if their files exist.

Re: Fault tolerance...

2003-02-12 Thread Martin Holz
Ben Young [EMAIL PROTECTED] writes: In my current work with the aggregation option in Cocoon 2.0.4 it seems that the aggregation options are not very fault tolerant. If one of the map:part's of my map:aggregate section points to a file that does not exist, all map:part's after that one do not

Re: sample web-app too complex?

2003-02-12 Thread Ryan Hoegg
Michael Melhem wrote: Hi Christian, I was actually thinking that we could provide a new build target that would build a hello-world.war and would contain only one or two simple samples. The object of this hello-world.war would be demonstrate the basic features/ideas behind Cocoon without

Too much java in xsp

2003-02-12 Thread Lionel Crine
I'm using an xsp in which I manipulate some code (xsp:request parameters, for example). But unfortunately, There is too much code java in it and so the xsp is very HUGE. I was thinking about using an action in the sitemap to modify my document instead of java code in the xsp, is it a good

Re: Too much java in xsp

2003-02-12 Thread Robert Simmons
Probably a generator actually. Use generators for things that are more complex. XSP should be used, IMHO, only for generation with small amounts of code. -- Robert - Original Message - From: Lionel Crine [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 12, 2003 5:40 PM

RE: Too much java in xsp

2003-02-12 Thread Geoff Howard
Title: RE: Too much java in xsp why don't you create a helper class with your heavy duty java in it? Geoff -Original Message- From: Lionel Crine [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 12, 2003 11:40 AM To: [EMAIL PROTECTED] Subject: Too much java in xsp

Call of scratchpad webservices examples using soap:call

2003-02-12 Thread Frederic Bertin
Hi all, I'm trying to call web services from org.apache.cocoon.webservices package using AxisRPCReader. The given example of AdminService works and I try to call others services such as the Cocoon-JVM-Memory one. works: soap:call method=AdminService url=rpcrouter m:list

RE: Fault tolerance...

2003-02-12 Thread Geoff Howard
Title: RE: Fault tolerance... have you tried using the resource exists action? Geoff -Original Message- From: Ben Young [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 12, 2003 11:04 AM To: [EMAIL PROTECTED] Subject: Fault tolerance... In my current work

RE: Too much java in xsp

2003-02-12 Thread Lionel Crine
Please, can you give me more information (hints) about the helper Geoff ? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To

Re: Too much java in xsp

2003-02-12 Thread Lionel Crine
Robert, Here is my issue : I have create a portal : When I come to the form page : 1/An xsp file is generated from the form. 2/This xsp get the request parameters and modify the structure as I want it to be 3/A transformer Get the SAX events of the xsp generator, get information from XML DB

RE: Too much java in xsp

2003-02-12 Thread Geoff Howard
Title: RE: Too much java in xsp Well, Robert's suggestion is a good one and I've already written a tutorial about that (http://xml.apache.org/cocoon/tutorial/tutorial-generator.html) But if that seems out of reach, you can use something like: xsp:page xsp:structure

RE: Too much java in xsp

2003-02-12 Thread Ray Martin
Yes, Sir. Absolutely use an action and remove JAVA as much as possible from the xsp. When you do this and know how to pass a STRING ARRAY into the XML/XSL without the need of the XSP - please let me know - it is the only thing that i still rely on an XSP for. -Original Message- From:

Re: sample web-app too complex?

2003-02-12 Thread Dirk-Willem van Gulik
While on the subject, I just got: http://wiki.cocoondev.org/Wiki.jsp?page=XMLFormXindice to work - and was wondering how one should package this as cleanly, modular and small as possible ? I.e: http://cvs.apache.org/~dirkx/CoFi/ is what I have now. But it still has a few hard

Re: Writing Request to File System

2003-02-12 Thread Jeremy Quinn
On Wednesday, February 12, 2003, at 02:14 PM, [EMAIL PROTECTED] wrote: a little more help would be greatly appreciated. The root of my document after the transformation is source:write, do I need to wrap this in another tag so the map:serialize type=xml/ has something to send back to the

Re: Writing Request to File System

2003-02-12 Thread jthaemlitz
I'm not sure that this will solve my problem with write-source. Nothing is getting written to my file and I get the following message on the browser the src attribute could not be resolved and failed to cancel. I appreciate the tip, I'll run the response though another stylesheet and display

Pass custom parameters into an XSP

2003-02-12 Thread Collin VanDyck
Hello, I am trying to figure out how I can pass in custom parameters into an already existing generator such as the XSP/serverpages generator. Here's my scenario: I receive a request for /edit/page Which matches /edit/* So from this matcher, I have {1} == "page".. I want to pass this off

AW: Pass custom parameters into an XSP

2003-02-12 Thread Marco Rolappe
hi collin, with XSPs an easier alternative would be to pass your 'parameter' as a request parameter. then you would: map:match pattern="edit.xml" map:generate type="serverpages" src=""/ map:serialize type="xml"/ /map:match map:match pattern="edit/*" map:generate src=""/ ...

Re: Pass custom parameters into an XSP

2003-02-12 Thread Collin VanDyck
Wow. I did not know you could use the XSP to override the setup method. That is VERY helpful. Thanks!! - Original Message - From: Marco Rolappe To: [EMAIL PROTECTED] Sent: Wednesday, February 12, 2003 5:59 PM Subject: AW: Pass custom parameters into an

RE: Pass custom parameters into an XSP

2003-02-12 Thread Nathaniel Alfred
Actually, you don't need to override setup(). The base class ofthe XSP generated class already does that and provides "protected Parameters parameters;" You can use directly in xsp:logic String entityType = this.parameters.getParameter("entityType"); including the other nice features of

Re: sample web-app too complex?

2003-02-12 Thread Michael Melhem
On Mon, Feb 03, 2003 at 02:06:18PM +0100, Christian Haul wrote: On 03.Feb.2003 -- 01:33 PM, Michael Melhem wrote: Hi Cocooners, I know that we probably have had this discussion before, but is there a reason why we dont have simple Hello-World sample web-app along side the current

AW: Pass custom parameters into an XSP

2003-02-12 Thread Marco Rolappe
yeah, sorry. didn't follow the chain upto AbstractGenerator ;-) -Ursprüngliche Nachricht-Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von Nathaniel AlfredGesendet: Donnerstag, 13. Februar 2003 00:51An: [EMAIL PROTECTED]Betreff: RE: Pass custom

Dynamic XSL evaluation

2003-02-12 Thread Yatin Shah
My application access DB for content(Using SQL Transformer) which later gets transformed into HTML via xml2html transformer. For example, I have following sniippet in my xml2html transformer: xsl:variable name=welcome_title select=//welcome/sql:rowset/sql:row/sql:title/ p

RE: Dynamic XSL evaluation

2003-02-12 Thread Idhaya Chandran
You can use xsl:value-of select={$welcome_title}/ instead of xsl:value-of select=$welcome_title/ --Idhaya -Original Message- From: Yatin Shah [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 6:09 AM To: [EMAIL PROTECTED] Subject: Dynamic XSL evaluation My application

Re: Fault tolerance...

2003-02-12 Thread Niclas Hedhman
Many users has opinions about the Fault handling in Cocoon, and most, users and developers alike, agree it is not very good. I suggest that you bring it up for discussion on cocoon-dev instead, as many developers don't monitor this list. BTW, it would be great to have a most wanted list from

Re: ideal hardware for cocoon?

2003-02-12 Thread Niclas Hedhman
As Peter hints, there is no limit on how much you can spend on your ideal production environment. 50,000 CaffeinMark Java CPU (byte codes in silicon) with XML parsing hardware accelerator (similar to a NVidia chip) would be a good start. Then make that into an array of 1, each with a Gig

RE: Jumping within sitemap?

2003-02-12 Thread Idhaya Chandran
I think u can achieve this using selectors. You can have ur custom selectors. --Idhaya -Original Message- From: Sonny Sukumar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 12, 2003 1:29 PM To: [EMAIL PROTECTED] Subject: Jumping within sitemap? Hi guys, I'm wondering if it's

embedding graphics

2003-02-12 Thread joni santoso
Hi, I have asked this question before using other subject. Here are my problems : 1. I tried to overlap several images (please see the fo file below). I want to make images gigi1.jpg and gl.jpg overlapped. However, it seems that it is not doable. Is it? (Sorry if this question may actually