Re: jpath transformer

2004-04-23 Thread Jan Hoskens
I've not yet heard of a jpath transformer, where did you find it? I do know that there's an xsp logicsheet "jpath" that you may use, especially for use with flow. There's another transformer which does jpath/jexl stuff, but that's the JXTemplateTransformer.

Re: Removing a selectionList

2004-04-23 Thread Joerg Heinicke
On 23.04.2004 02:03, Joe Latty wrote: I am using the on-value-changed event for a field to do some validation . If the value has a direct code match I leave the value if, however, there is more than one match I return a selectionlist and have the user choose from the list. This is all working

Re: Passing parameters to aggregation parts

2004-04-23 Thread laurent_rorive
Here is what I use : xsp:logic String paramname = parameters.getParameter(PARAM_NAME, -DEFAULT-); /xsp:logic Other used the xsp:util but sometimes encounter problems Laurent Carlos Dias [EMAIL PROTECTED] 22/04/2004 19:23 Please respond to users To: [EMAIL PROTECTED]

Re: Transofrmer from Invalid HTML to XHTML or XML

2004-04-23 Thread laurent_rorive
Thanks for this , I will try. To explain the context : I have a woody form, when completed , I send a success page. This success page is a JX page which allow me to retrieve woody content,... In this JX page, I use a jx:import src="" . The purpose of this line is load html content into my

Re: Querying A Repository of XML Files...Or, How To Do Portal Objects

2004-04-23 Thread Joerg Heinicke
On 23.04.2004 02:18, David Swearingen wrote: I picked Cocoon as my platform in part because of the elegance and simplicity of keeping content in xml files in a directory(s) where I can see them, and so I can have ad hoc document structures without having to be tied down to a RDBMS schema that can

Re: Passing parameters to aggregation parts

2004-04-23 Thread Jan Hoskens
When calling a pipeline, you can't pass parameters (As far as I know).I had the same problem a while ago. I then just passed the parameters asrequest parameters by callingsrc="". Another option is to setyour parameters in a session by invoking an action before generatinganything. Though I

profile question

2004-04-23 Thread Sebastian G.
Hi, How can one change the profile at run-time of the portal? Can I deactivate the Cache for user profiles? Thanks for help Seb -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail:

How to check request parameter exist (in sitemap)?

2004-04-23 Thread Mariusz Wjcik
Hi I'm using request parameter selector to maka a choice of correct xsl tranformation. This pipeline works correctly, but additionaly I'd like to check if the request parameter exists. How can I do it? (I'd like to do the same transform when parameter doesn't exist, and is equal 0) map:pipeline

{Spam?} Newbie Question: Howto make Web App access CLASSPATH

2004-04-23 Thread David Tekeshe
Title: Newbie Question: Howto make Web App access CLASSPATH My Woody Action subclass is coming up with System Error: No SAX Parsers found in classpath but 'xerces.jar' is included in the classpath. Cocoon started as a servlet and I am trying to show a Woody form. Help please. David

Re: {Spam?} Newbie Question: Howto make Web App access CLASSPATH

2004-04-23 Thread Olivier Billard
Why don't you use the parser via Cocoon ? Parser parser = manager.lookup(Parser.ROLE); David Tekeshe wrote: My Woody Action subclass is coming up with System Error: No SAX Parsers found in classpath but 'xerces.jar' is included in the classpath. Cocoon started as a servlet and I am trying to

use flowscript or sitemap for conditionaly selecting output pages?

2004-04-23 Thread Joakim Verona
I have a flowscript that winds up doing a sendpage to a pipeline producing a table from data generated from a cgi script. this script either returns a table or an error code I would like to jump to different pages depending on the result, that is, either a text page describing that there was no

Re: Transofrmer from Invalid HTML to XHTML or XML

2004-04-23 Thread Leon Widdershoven
You might try a map:resource entry called e.g. success-resource in which you HTMLGenerate src=cocoon:/success-config.html and call that resource where you now call cocoon:/success-config That way you load a properly formatted XML document based on the html document in your pipeline, and not the

Re: jpath transformer

2004-04-23 Thread beyaNet Consultancy
Jan, the transformer I mentioned is: map:transformer logger=sitemap.transformer.jpath name=jpath src=org.apache.cocoon.transformation.JPathTransformer/> Peter On 23 Apr 2004, at 07:14, Jan Hoskens wrote: I've not yet heard of a jpath transformer, where did you find it? I do know that there's an

{Spam?} Re: Newbie Question: Howto make Web App access CLASSPATH

2004-04-23 Thread David Tekeshe
Title: Re: Newbie Question: Howto make Web App access CLASSPATH Thanks Olivier but I am trying to keep the xml parsing staff separated from Cocoon. I am binding my Woody Form to a JAVA Bean which I am populating using a different framework, org.openadaptor The System Error: No SAX

AW: Running Cocoon from CD

2004-04-23 Thread Jörn Heid
What about using Jetty? You can write your own startup app which launches Jetty+Cocoon, even as an autostart-exe which uses a jre on the cd (which might be a little bit slow). -Ursprüngliche Nachricht- Von: Michael Faschinger [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 22. April 2004

Re: [FLOW] Bug in cookie handling?

2004-04-23 Thread Philippe Guillard
Hi Markus, Ya, it's the same for getValue, instead cocoon.request.getCookies()[0].value() works. Phil On Fri, 2004-04-23 at 03:38, Markus Heussen wrote: Hi! Is there a known bug in the Cocoon cookie handling within a flowscript? I created a cookie using

Re: jpath transformer

2004-04-23 Thread Jan Hoskens
Ha, I see, did you read the javadocs? It states: snip Transformer implementation of the JPath XSP tag library. /snip But the jpath transformer doesn't support every tag yet. Anyways you're better off using the xsp logicsheet. I also think you misinterpreted the jpath transformer. (what

Re: Passing parameters to aggregation parts

2004-04-23 Thread Carlos Dias
It's something like: map:match pattern=test-*-* CDias - Original Message - From: Jorg Heymans [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 22, 2004 10:03 PM Subject: Re: Passing parameters to aggregation parts what does your map:match look like? Carlos Dias wrote:

Re: Passing parameters to aggregation parts

2004-04-23 Thread Carlos Dias
Thanks Jan... I will try it... CDias - Original Message - From: Jan Hoskens To: [EMAIL PROTECTED] ; Carlos Dias Sent: Friday, April 23, 2004 8:23 AM Subject: Re: Passing parameters to aggregation parts When calling a pipeline, you can't pass parameters (As

error by try to get component

2004-04-23 Thread Sebastian G.
Hi, the following lines produced error. can anyone help? var profile; profile = cocoon.getComponent(Packages.org.apache.cocoon.portal.profile.impl.AbstractUserProfileManager.ROLE); profile.logout(); ERROR: WARN(2004-04-23) 11:51.46:702 [portal] (/cocoon/test/portal)

Generating XML - Design decisions

2004-04-23 Thread Hildebrandt, Ole
Hi, I am fairly new to cocoon and I am planning to use it for a quite big website. I keep thinking what the best way is to genrate XML from a database. - XSP seems too complicated and limited and there is no knowledge in the developer-team available - JSP seems okay, many developers are familiar

Profile with the new cocoon portal

2004-04-23 Thread Sebastian G.
Hello, I try to find a way to grant the customization of some section of the portal page to end user with new cocoon portal. With the portal framework, that is possible with Type profile (and the type-base uri=profiles/types.xml/ in sitemap), but in the new portal, I don't see this possibility. So

Re: How to check request parameter exist (in sitemap)?

2004-04-23 Thread Martin Holz
Mariusz Wjcik [EMAIL PROTECTED] writes: Hi I'm using request parameter selector to maka a choice of correct xsl tranformation. This pipeline works correctly, but additionaly I'd like to check if the request parameter exists. How can I do it? (I'd like to do the same transform when

Re: Generating XML - Design decisions

2004-04-23 Thread laurent_rorive
Hi, I also ask me such a question when I start with Cocoon. For me, I think that : 1) You have to use as much as possible the existing generator ans simply pass them parameters. 2) If you have database, you can greatly reduce development time by using XSP and ESQL 3) When there are really

Re: Generating XML - Design decisions

2004-04-23 Thread Leon Widdershoven
You could try an Object/Relational bridge, like OJB or Hibernate, and combine it with Flowscript. You can use the JX generator to write bean information in the pages dynamically (using, of course, flowscript and cocoon.sendPage) There are tutorials and introductions on the WIKI on that subject.

Re: Generating XML - Design decisions

2004-04-23 Thread Geert Van Damme
Hey, I think you should consider anyway using XSP. It isn't hard to learn/use (actually to get data from database and convert it to XML it is really simple !!) and the performance should be good (use caching if possible). We use XSP's for data extraction, which also consists of generating

Re: Generating XML - Design decisions

2004-04-23 Thread Martin Holz
[EMAIL PROTECTED] writes: Hi, I also ask me such a question when I start with Cocoon. For me, I think that  : 1) You have to use as much as possible the existing generator ans simply pass them parameters. Reusing existing components is fine, but there is a limit. If you need complicated

Problems retrieving object elements using jpath (flowscript)

2004-04-23 Thread beyaNet Consultancy
Hi, I have a flowscript which does the following: cocoon.sendPage(registered_section1, {userGlobal:userGlobal}); where userGlobal is a user object. I try to retrieve elements within the java object inside my xsp page by saying: jpath:value-of select=userGlobal.getUserName()/> but am getting

Re: Generating XML - Design decisions

2004-04-23 Thread Ugo Cei
Hildebrandt, Ole wrote: I am fairly new to cocoon and I am planning to use it for a quite big website. I keep thinking what the best way is to genrate XML from a database. Persistence layer: OJB, Hibernate or similar O/R mapping tool Business logic: Java classes Controller: Flowscript View:

Re: Generating XML - Design decisions

2004-04-23 Thread Ugo Cei
Leon Widdershoven wrote: It is, of course, strongly recommended that you have some knowledge about java if you're going to build a O/R bridge. But not that much. I would strongly advise against *building* an O/R bridge. It's not easy at all to get it right and there are many good products

Re: Problems retrieving object elements using jpath (flowscript)

2004-04-23 Thread Ugo Cei
beyaNet Consultancy wrote: jpath:value-of select=userGlobal.getUserName()/ userGlobal.getUserName() does not seem like a valid XPath expression to me. Try userGlobal/userName. I don't know if it works, since I would never do it that way. Why don't you use the JXTemplateGenerator? Ugo

AW: Generating XML - Design decisions

2004-04-23 Thread Hildebrandt, Ole
Hi, Thanks for all the replies. I will have a look at the flowscript, which i ommitted so far, as I thought it is not essential for builing a website that has fairly any user-interactive processes, but is just barely an information-delivery-website. I have been developing some MVC-Webapps with

Re: Generating XML - Design decisions

2004-04-23 Thread Bertrand Delacretaz
Le 23 avr. 04, à 14:15, Ugo Cei a écrit : ...Persistence layer: OJB, Hibernate or similar O/R mapping tool Business logic: Java classes Controller: Flowscript View: JXTemplateGenerator or Velocity Don't let anyone try to convince you that you can find a better combination for Cocoon. You

Re: How to check request parameter exist (in sitemap)?

2004-04-23 Thread defe
Quoting Mariusz Wójcik [EMAIL PROTECTED]: Hi, maybe you could isolate the case with no parameter with a ParameterMatcher... map:match pattern=dir map:match type=parameter pattern=yourParameterName /map:match I'm using request parameter selector to maka

Re: Problems retrieving object elements using jpath (flowscript)

2004-04-23 Thread beyaNet Consultancy
Ugo, in the context o what I am doing within an xsp page which has a jpath xmlns declaration : xmlns:jpath=http://apache.org/xsp/jpath/1.0, how would i use the JXTemplateGenerator you mention? my sitemap pipe is: map:match pattern=unprotected> map:generate type=serverpages

Re: AW: Generating XML - Design decisions

2004-04-23 Thread Ugo Cei
Hildebrandt, Ole wrote: Hi, Thanks for all the replies. I will have a look at the flowscript, which i ommitted so far, as I thought it is not essential for builing a website that has fairly any user-interactive processes, but is just barely an information-delivery-website. I have been developing

Re: Generating XML - Design decisions

2004-04-23 Thread Philippe Guillard
Hi, I agree with all that has been said here, and as a newbie i can tell XSP+SQL for reading is really easy and OJB not so hard if like me you use 10% of its incredible capabilities. But!!: speaking about full XML website, i'm surprised to see nobody mentioned native XML databases and XML:DB?

Re: Problems retrieving object elements using jpath (flowscript)

2004-04-23 Thread Ugo Cei
beyaNet Consultancy wrote: Ugo, in the context o what I am doing within an xsp page which has a jpath xmlns declaration : xmlns:jpath=http://apache.org/xsp/jpath/1.0;, how would i use the JXTemplateGenerator you mention? I suggested that you should use JXTG _instead_ of XSP. You won't certainly

integrate Calendar in XSP page

2004-04-23 Thread robby . pelssers
Hi all, i'm looking for a way to integrate a nice calendarpicker in our portal. It would be perfect if i could select days, but also ranges of dates. E.g. if a query needs a fromdate and todate it would be nice if i could select a week or month and that my parameters get this fromdate and

Re: Xindice

2004-04-23 Thread Steven Noels
On 23 Apr 2004, at 16:04, David Swearingen wrote: Thanks, Joerg. So I read up on Xindice last night. Are people using Xindice for production sites yet, or is it still in alpha? FWIW, I saw a nice Lucene/Cocoon-based project this week, which supposedly was handling the load pretty well. Dunnow

Re: Problems retrieving object elements using jpath (flowscript)

2004-04-23 Thread beyaNet Consultancy
Ugo, your eralier suggestion, jpath:value-of select=userGlobal/userName/>, worked fine. My only reason for using an xsp page is because I can transform it with an xsl stylesheet. Can I do the same with an JXTG file? On 23 Apr 2004, at 14:55, Ugo Cei wrote: beyaNet Consultancy wrote: Ugo, in the

Re: Xindice

2004-04-23 Thread Upayavira
David Swearingen wrote: Thanks, Joerg. So I read up on Xindice last night. Are people using Xindice for production sites yet, or is it still in alpha? I know of people using XIndice in production. It is currently Beta, but we might expect a formal release at some point in the next three-six

Re: Problems retrieving object elements using jpath (flowscript)

2004-04-23 Thread Ugo Cei
beyaNet Consultancy wrote: Ugo, your eralier suggestion, jpath:value-of select=userGlobal/userName/, worked fine. My only reason for using an xsp page is because I can transform it with an xsl stylesheet. Can I do the same with an JXTG file? Of course you can! JXTemplateGenerator is a generator,

#13; in textarea?

2004-04-23 Thread Stephan Coboos
Hello, im saving text coming from a textarea in a MySQL database using Java and Flowscript. All linebreaks will be replaced by \r\n. After reading this text from the database and displaying it in the textarea using a JXTemplate I got 2 linebreaks in the html source: 1. a new line 2. a entity

Deal with variable page content??????????????

2004-04-23 Thread lechael
BlankSome inputs of the page are serialized from the inquire outcome from a database. Nobody knows how many they are and what they are. Then what should I do if I want to retrieve the value of these inputs associated with their names? Many thanks!!

Re: Problems retrieving object elements using jpath (flowscript)

2004-04-23 Thread beyaNet Consultancy
Ugo, thanks for your help. All is working now ;-) Peter On 23 Apr 2004, at 15:42, Ugo Cei wrote: beyaNet Consultancy wrote: Ugo, your eralier suggestion, jpath:value-of select=userGlobal/userName/, worked fine. My only reason for using an xsp page is because I can transform it with an xsl

Deal with variable page content??????????????

2004-04-23 Thread lechael
Basically content of the page is generalized from the database. There are variable number of userinputs. Each input can be -textfields, radio, select list etc. Names of these inputs are inquired from database, and transformed by a xstl because I know all possiblenames of them. But I

Re: Generating XML - Design decisions

2004-04-23 Thread Bertrand Delacretaz
Le 23 avr. 04, à 15:52, Ugo Cei a écrit : ...I more or less assumed that a big site would also be a complex web site, with a complex information architecture, data model and interaction Sure...but the perception of what is big varies widely between people and projects! People might not

Re: Generating XML - Design decisions

2004-04-23 Thread Leon Widdershoven
Ugo Cei wrote: Leon Widdershoven wrote: It is, of course, strongly recommended that you have some knowledge about java if you're going to build a O/R bridge. But not that much. I would strongly advise against *building* an O/R bridge. It's not easy at all to get it right and there are many

Re: cocoon.dat in cache-dir keeps growing ?

2004-04-23 Thread Stefan Geelen
Title: Message Hi Corin, can you tell me where I can find this information ? Stefan - Original Message - From: Corin Moss To: [EMAIL PROTECTED] Sent: Thursday, April 22, 2004 11:17 PM Subject: RE: cocoon.dat in cache-dir keeps growing ? Hi There,

Re: Generating XML - Design decisions

2004-04-23 Thread Ugo Cei
Bertrand Delacretaz wrote: People might not realize that for Cocoon a 10'000-pages website generated from a read-only database is not that big ;-) Well, just this morning I generated a static snapshot of a Cocoon website totaling a little more than 9800 pages ;-). Most of them are coming from

Re: Xindice

2004-04-23 Thread James Cummings
On Fri, 23 Apr 2004, Upayavira wrote: David Swearingen wrote: Thanks, Joerg. So I read up on Xindice last night. Are people using Xindice for production sites yet, or is it still in alpha? I know of people using XIndice in production. It is currently Beta, but we might expect a formal

Re: Deal with variable page content??????????????

2004-04-23 Thread Leon Widdershoven
lechael wrote: Basically content of the page is generalized from the database. There are variable number of user inputs. Each input can be -textfields, radio, select list etc. Names of these inputs are inquired from database, and transformed by a xstl because I know all possible names

Re: Deal with variable page content??????????????

2004-04-23 Thread Askild Aaberg Olsen
Just a long shot at what you are asking: Have you looked at the request-generator? It generates an XML-representation of the request, making it more or less trivial to retrieve the request-parameters from the form. Askild - lechael [mailto:[EMAIL PROTECTED] wrote: Basically content of the page

Install problem

2004-04-23 Thread Alex Kane
I am trying to install Cocoon 2.1.4 on my Redhat linux server. I followed the simple instructions setting my JAVA_HOME variable, but when I run build.sh I get this: [EMAIL PROTECTED] cocoon]# set JAVA_HOME=/usr/java/j2sdk1.4.1_02/ [EMAIL PROTECTED] cocoon]# ./build.sh Apache Cocoon

Re: Generating XML - Design decisions

2004-04-23 Thread Mark Lundquist
On Apr 23, 2004, at 5:15 AM, Ugo Cei wrote: Hildebrandt, Ole wrote: I am fairly new to cocoon and I am planning to use it for a quite big website. I keep thinking what the best way is to genrate XML from a database. Persistence layer: OJB, Hibernate or similar O/R mapping tool Business logic:

Re: #13; in textarea?

2004-04-23 Thread Joerg Heinicke
On 23.04.2004 16:45, Stephan Coboos wrote: Hello, im saving text coming from a textarea in a MySQL database using Java and Flowscript. All linebreaks will be replaced by \r\n. After reading this text from the database and displaying it in the textarea using a JXTemplate I got 2 linebreaks in

RE: Generating XML - Design decisions

2004-04-23 Thread David Leangen
Persistence layer: OJB, Hibernate or similar O/R mapping tool Business logic: Java classes Controller: Flowscript View: JXTemplateGenerator or Velocity Ditto to all of that. I think this is really the killer combo! Since we're on the subject, I'm interested in hearing everybody's

Re: Problem: Enabling uploads

2004-04-23 Thread Tuomo L
Ok. I see. I managed to catch the file with a custom component and save it in db. Has anyone noticed, that if you change the location of upload-dir from web.xml, the files get stuck on that dir? It seems that Cocoon cannot delete the files if it's not the default location. -Tuomo On Tue, 20 Apr

Re: Generating XML - Design decisions

2004-04-23 Thread Alex Romayev
One issue with the combination below is that JXTemplateGenerator is not Cacheable. Implementing a custom generator may be a bit more effort, but can pay back in performance. Le 23 avr. 04, à 14:15, Ugo Cei a écrit : ...Persistence layer: OJB, Hibernate or similar O/R mapping tool Business

Re: Xindice

2004-04-23 Thread Darren Petrie
We use and really like eXist. Nice work being done with XQuery and XUpdate. Integrates great with Cocoon. Darren On Apr 23, 2004, at 12:06 PM, James Cummings wrote: On Fri, 23 Apr 2004, Upayavira wrote: David Swearingen wrote: Thanks, Joerg. So I read up on Xindice last night. Are

Re: Generating XML - Design decisions

2004-04-23 Thread beyaNet Consultancy
On 23 Apr 2004, at 19:58, Alex Romayev wrote: JXTemplateGenerator is not Cacheable. Is any work being done on this??? Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Error ServiceException

2004-04-23 Thread Sebastian Gnoyke
Hi, the following line in flow, produced an error. Can anyone help me please? LINES: var dportalComponentManager = cocoon.getComponent(Packages.org.apache.cocoon.portal.impl.DefaultPortalComponentManager); ERROR: org.apache.cocoon.ProcessingException: Could not read resource

Re: Running Cocoon from CD

2004-04-23 Thread Michael Faschinger
On 22.04.2004 17:02, Michael Faschinger wrote: Hello everyone! I just try to set up Tomcat(4.0.6) + Cocoon (2.0) to run from CD. Tomcat works perfectly fine but cocoon won't work as it tries to write some files (WEB-INF\db\commondb.*) to the CD. Is there a way to avoid this? Are there

RE: how to initiate a CVS update from within Cocoon?

2004-04-23 Thread Lars Huttar
Hi, I've been trying the AntBuildGenerator (to invoke CVS from within Ant from within Cocoon) but I'm running into the following problems: (1) Ant has to have the cvs client executable in the path, but there doesn't seem to be a way to specify the path from within Ant, and I don't know of a way to

problem in sendmail migrating cocoon 2.1.3 to cocoon 2.1.4

2004-04-23 Thread Henry Orlando Canastero
Title: Mensaje Hello, I'm try to migrate my app from cocoon 2.1.3 to cocoon 2.1.4. I have one xsp file that use the sendmail logicsheet. This worked well in cocoon 2.1.3, but in cocoon 2.1.4 appear the next error: Error compiling comentarios_xsp: Line 0, column 0: This compilation unit

Re: problem in sendmail migrating cocoon 2.1.3 to cocoon 2.1.4

2004-04-23 Thread Carlos Araya
Title: Mensaje -BEGIN PGP SIGNED MESSAGE-Hash: SHA1 Did you download java mail? It's an external library that needs to bein your classpath (can't remember if it's webapp/yourapp/lib or thegeneral classpath carlos- - Original Message - From: Henry Orlando Canastero To:

[JspGenerator] StringIndexOutOfBoundsException when streaming to other Generators

2004-04-23 Thread Benoit Deshaies
- What's not working: JspGenerator gives an exception when invoked from another pipeline: Exception JspGenerator.generate() org.apache.cocoon.ProcessingException: Exception JspGenerator.generate(): java.lang.StringIndexOutOfBoundsException: String index out of range: -1 I tried with Cocoon

Database Insert Across Multiple Tables

2004-04-23 Thread Mike Dickson
We are using Cocoon 2.1/MySQL 4.0.16 and have user data from a HTML form that needs to be inserted into two tables inside a single transaction. Inserts into a single table seem to be simple, but into multiple tables is little harder... How should I accomplish this? I have looked at table-set in

Re: [JspGenerator] StringIndexOutOfBoundsException when streaming to other Generators

2004-04-23 Thread Joerg Heinicke
On 24.04.2004 00:18, Benoit Deshaies wrote: - What's not working: JspGenerator gives an exception when invoked from another pipeline: Exception JspGenerator.generate() org.apache.cocoon.ProcessingException: Exception JspGenerator.generate(): java.lang.StringIndexOutOfBoundsException: String