Re: newlines to br

2004-12-09 Thread Johannes Textor
Hi Merico, I have attached a stylesheet that I use for doing this. Works for me with xalan, hopefully also with saxon. HTH, Johannes Merico Raffaele wrote: Dear Community I'm looking for a way to translate the newlines in a text into HTML-BR when serializing to HTML. Can anybody give me a tip. I'm

Re: jsp:include and JSP-Reader (IllegalStateExc.)

2004-12-09 Thread Kees van Dieren
I've been trying to make dynamic includes work in JSP work, for more than a day. Sadly it seems to be impossible to dynamicly include another JSP in a JSP. I also tried the c:import tag, which is from the JSTL spec, but it doesn't work also. The only way I could have made work is to use the

Getting Authentication info

2004-12-09 Thread angeloimm
Hi all! I use cocoon authentication framework ofr loggin into my application; the problem is that i need to have user info in a java class... how can i have them? I know that in cocoon session there is a xml rappresentation of user data, but how can i have this file in a java class? Thanks to

Re:Getting Authentication info

2004-12-09 Thread angeloimm
Hi; i'll try to be as clear as possible because i have seen that before i have not been too clear :-) I use the authenthication framework for log user; for this reason the framework creates the authentication session context; in this context there is an xml token so made: ?xml version=1.0

Re:SOLVEDRe:Getting Authentication info

2004-12-09 Thread angeloimm
Hi all i solved it... i have done in this way ( i have touched nothing of xml file and in the flow script.. the only thing i have changed is the java class... ) i show the right java class: package it.eng.nikko.test; //Cocoon import org.apache.cocoon.components.CocoonComponentManager;

Re: jsp:include and JSP-Reader (IllegalStateExc.)

2004-12-09 Thread Joerg Heinicke
On 09.12.2004 10:08, Kees van Dieren wrote: I've been trying to make dynamic includes work in JSP work, for more than a day. Sadly it seems to be impossible to dynamicly include another JSP in a JSP. I also tried the c:import tag, which is from the JSTL spec, but it doesn't work also. The only way

Re: [HOW-TO] Compile Cocoon 2.1.6 using java 1.5

2004-12-09 Thread Johnson
Supplementary info! Because Java language in 5.0, enum is now a keyword and can no longer be used as an identifier. So must add a line source=1.4 below target=1.5. more info pls see http://java.sun.com/j2se/1.5.0/compatibility.html Best Regards Johnson - Original Message - From:

Actions returning XML

2004-12-09 Thread Moser, Martin (Bbn)
Hi, I am using cocoon 2.0.4 and have some troubles with the return values of my actions. The action returns a string, containing xml. This xml should be parsed in an xsl sheet, which is revieving the return value of this action. But I am not able to access the xml tags in the style sheet.

DatabaseReader + ImageReader -- leak db connections?

2004-12-09 Thread george georgovassilis
Dear All When using the ImageReader to scale an image retrieved by the DatabaseReader in the same pipeline then up to N requests are serviced (where N is the database connection pool size) before the request hangs. The DatabaseReader alone however does fine. I have verified that the connection

Re: DatabaseReader + ImageReader -- leak db connections?

2004-12-09 Thread george georgovassilis
An update on that: It seems that connections are leaked even in a simple internal redirection: map:match pattern=preview/* map:read src=cocoon:/resource/{1}/ /map:match so I guess it doesn't have to do with the ImageReader, at least. george georgovassilis wrote: Dear All When using the

Re: Getting Authentication info

2004-12-09 Thread Jan Hoskens
Hi, You can get your context-related sessions through the ContextManager: http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/webapps/session/ContextManager.html Here you can manage all your session context stuff through the SessionContext object:

Weblogic 8.1 on Solaris, perfromance problem

2004-12-09 Thread Mark Edgington
Hi, we have followed all items previously listed (see below) but it still running very slow i.e. 0.3 seconds for a test page on a windows box and 6 seconds Solaris. If anyone has got decent performance from weblogic, cocoon and solaris I would be very grateful if they would contact me.

Cocoon-Actions returning xm

2004-12-09 Thread Moser, Martin (Bbn)
Hi all, I am using cocoon 2.0.4 and have some troubles with the return values of my actions. The action returns a string, containing xml. This xml should be parsed in an xsl sheet, which is revieving the return value of this action. But I am not able to access the xml tags in the style sheet.

Build Cocoon in Eclipse

2004-12-09 Thread Torsten Schlabach
Dear all, I am not sure if this is an old topic, but searching the archive did not really bring any solution. I would like to build Cocoon in Eclipse (3.1 M3 to be exact) and I have followed instructions on this page: http://wiki.apache.org/cocoon/LoadInEclipse What confuses me is this part:

XPath Functions in JXTemplate

2004-12-09 Thread Brent Johnson
Can I use XPath functions in a JXTemplate? I'm trying now.. but the XPath query always returns false. Here's my example: jx:choose jx:when test=starts-with('${colors.get(block.getColor())}','/') IMAGE /jx:when jx:otherwise NOT IMAGE /jx:otherwise /jx:choose I'm running this in a jx:forEach on

RE: Build Cocoon in Eclipse

2004-12-09 Thread H . vanderLinden
Although I don't do a full Cocoon build in Eclipse I do build part of it for my project in Eclipse. In this I followed the setup in http://wiki.apache.org/cocoon/YourCocoonBasedProjectAnt16 I would like to build Cocoon in Eclipse (3.1 M3 to be exact) and I have followed instructions on this

RE: XPath Functions in JXTemplate

2004-12-09 Thread H . vanderLinden
Hi, jx:choose jx:when test=starts-with('${colors.get(block.getColor())}','/') Try: jx:when test=#{starts-with(color.get(block.getColor()), '/')} (#{} = xpath, ${} = jexl) For me using the java versions usually work: jx:when test= ${color.get(block.getColor()).startswith('/')} HTH. Bye,

RE: Build Cocoon in Eclipse

2004-12-09 Thread Torsten Schlabach
This is interesting as well, but it does not really answer my question. My question is rather: Who is (successfully) using Eclipse to build / debug Cocoon? And what does that person that I don't do? I can build Cocoon from the command line and then continue with Eclipse, but I think this is not

Re: XPath Functions in JXTemplate

2004-12-09 Thread Brent Johnson
Yeah I tried moving the starts-with inside the brackets but it errored out saying it got a ( when it expected something else. But thanks for reminding me that I can simply use the Java startsWith() method. Dunno why I didnt think of that :) Thanks so much, - Brent On Thu, 9 Dec 2004 18:28:51

JXTemplate Variables in Attributes

2004-12-09 Thread Brent Johnson
Sorry for having to post another question to the list so quickly... but this seems very strange. Here's the code in the JXTemplate: jx:set var=colorvaljx:choosejx:when test=${colors.get(block.getColor()).startsWith('/')}background-image: url('${

Cocoon session context load URIs -- Need help!

2004-12-09 Thread Julien, Heryk
Hi all, I would like to have a web application where I can initially load data from a cocoon pipeline into my session context. I have successfully written a style sheet were in two steps I create a session context (createcontext) and then manually load data in it using the setxml tag. Example 1.

RE: JXTemplate Variables in Attributes

2004-12-09 Thread H . vanderLinden
If I remember correctly, the problem lies in the fact that you create the value of the variable between the jx:set tags. In that case you create a Node. If you create it in the value attribute, you create a string or text. You can try either of the following: jx:set var=colorvaljx:choosejx:when

RE: Build Cocoon in Eclipse

2004-12-09 Thread H . vanderLinden
Torsten, I just checked. I can build my SVN revision in Eclipse when I do the things below. The only thing I have to figure out now is how to tell Eclipse to use the build.properties/block.properties files. Hmm, quarter just fell: do you mean build using the Project, build option in Eclipse? I

Multivaluefield widget and binding to attribute

2004-12-09 Thread David Verdin
Hi, I wonder if there is a solution to use a multivaluefield in CForms bound to a multivalue attribute in an XMl document. For the moment, the only possibility I found is to bind a multivaluefield widget to several XML tags. What I would like to do is : All the values, V1, V2, V3, etc.

Sorting elements before jx:forEach ?

2004-12-09 Thread Laurent Perez
Hello Is it possible to directly sort elements (say, by some random bean property) within the JXTemplate itself before looping over an ArrayList received from a flowscript with jx:forEach, or is the best practice to sort them before they reach the JXTemplate ? And if so, how would you sort them

Re: Cocoon portal tabs

2004-12-09 Thread Anna Bikkina
I was doing exactly the same. It didnt work. Is there any other way I can try. Thank you for answering. Anna. On Wed, 2004-12-08 at 15:18, Nick Goupinets wrote: Hi Anna, I guess I was asking what is the underlying mechanism you use that switches tabs. I have no experience at all with

Re: JXTemplate Variables in Attributes

2004-12-09 Thread Brent Johnson
Ahah! Using #{colorval/text()} didnt work - but doing a jx:set in a choose like you suggested works like a charm. I just did 2 chooses.. one for the background type (image or color) and one for the value. Then all I had to do was: div style=...; background-${colortype}: ${colorval};.../div

RE: Cocoon-Actions returning xm

2004-12-09 Thread Connell, Robert (SAPOL)
Martin, Not sure whether I am missing something here put I don't think the intention is to pass XML as text into the sitemap. Was this going to be the way that you were going to extract data from your actions to feed into stylesheets? Regards, Robert -Original Message- From: Moser,

RE: Cocoon-Actions returning xm

2004-12-09 Thread Frangos, Nick (SAPOL)
The action doesn't return xml, it returns a string in its map. The subsequent transformer then treats it as a string not xml. To output xml to be used by a transformer you need to use an existing generator, or create your own to do what you require. To start with, have a look at

CForm XML binding

2004-12-09 Thread Lincoln Mitchell
I am trying to learn CFORMS and for starters wish to create just a simple 1 field form and a submit button that appends a new contact to a xml document like this: contacts contact firstnameFred/firstname /contact contact

Re: Cocoon-Actions returning xm

2004-12-09 Thread Ralph Goers
Moser, Martin (Bbn) wrote: The action returns a string, containing xml. This xml should be parsed in an xsl sheet, which is revieving the return value of this action. But I am not able to access the xml tags in the style sheet. Other folks have given you this answer, but I'm not sure its clear.