Input modules

2005-07-13 Thread Roberto Marra
Hi guys, Im trying to read the contextPath in the flow. In my sitemap I got this: map:match pattern="**.lista" map:call function="{1}ls" map:parameter name="form-name" value="{1}"/ map:parameter name="contextPath" value="{request:contextPath}"/ /map:call /map:match In the flow I try to read

Antw: SourceWriting Transformer

2005-07-13 Thread Reinhard Haller
[EMAIL PROTECTED] 13.07.2005 02:21 I need to write an xml file to the client. I proved with SWT. It write perfectly if I run it from a browser in the server If you want to write a file to the client, the suggested way to do this is by providing a URL and serving the file as download. The

Re: Re: Input modules

2005-07-13 Thread holger . willenborg
I have no clue concerning Flow, but have you tried var param = cocoon.parameters.contextPath or var param = cocoon.parameters['contextPath '] Just an idea... HTH [EMAIL PROTECTED] schrieb am 13.07.2005 11:07:04: Actually any of the RequestModule Accessor gave me back a value, is always

RE: Re: Input modules

2005-07-13 Thread Jeroen Reijn
Roberto, what version of cocoon are you using? Greetz, Jeroen -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]Posted At: Wednesday, July 13, 2005 11:20 AMPosted To: Cocoon User ListConversation: Re: Input modulesSubject: Re: Re: Input modulesI

Re: Input modules[SOLVED]

2005-07-13 Thread Roberto Marra
I don't know what happenI mean I reebooted coocon now it works. Thanx in any case Cheers Roberto - Original Message - From: Roberto Marra To: users@cocoon.apache.org Sent: Wednesday, July 13, 2005 10:21 AM Subject: Input modules Hi guys, Im trying to

Test session attribute in sitemap

2005-07-13 Thread Carlos Dias
Hi folks! How can I get check if a session attribute is not set in the sitemap. I'm trying something like: map:select type=session-attribute map:parameter name=attribute-name value=session-language/ map:when test= map:act type=session-store map:parameter

Mysql connection error

2005-07-13 Thread Derek Hohls
I am struggling with getting a new server to communicate with a mySQL database on another machine. The database and queries work fine, when running on machine A, where the database is installed, as does the Cocoon application when running there. However, when I try and emulate the Cocoon

Re: Mysql connection error

2005-07-13 Thread Upayavira
Could be that you need to grant authorisation by machine name not by IP. I've had struggles with that sort of thing before. Best to debug this by trying to login to remote host just using the mysql command at the command line. Then, once you've got that working, you can scale up to doing it

cocoon.getComponent causes NullPointerException

2005-07-13 Thread Angelo Immediata
Hi all; i'm using Cocoon 2.1.7; i'm usign the cocoon-portal block. Well i have an application that i want to transform in a CachingURICoplet. In this application i must use the SAXParser. In order to do it i have created this function: function stringToSAX( str, consumer, ignoreRootElement,

Re: cocoon.getComponent causes NullPointerException

2005-07-13 Thread Jan Hinzmann
Hi Angelo, maybe you want to have a look at this wikipage: http://wiki.apache.org/cocoon/WebServiceServer On Wednesday 13 July 2005 13:36, Angelo Immediata wrote: Hi all; i'm using Cocoon 2.1.7; i'm usign the cocoon-portal block. Well i have an application that i want to transform in a

Re: cocoon.getComponent causes NullPointerException

2005-07-13 Thread Angelo Immediata
Hi Jan; first of all thanks for your rapid answer. I have given a look to the link but it seems to me that there is no reference to the error i have. Where must i search for it? Any other ideas? Thanks, Angelo -- Initial Header --- From : Jan Hinzmann [EMAIL PROTECTED]

Re: Tomcat + Cocoon (as only a renderer)

2005-07-13 Thread Andrew Franz
Isn't it easier just to use the cocoon sitemap? e.g. map:match pattern=*.htm map:generate src=http://(domain)/(JSP-path)/{1}.jspx / map:transform src=jspx2htm.xsl / map:serialize type=xhtml / /map:match suplizio wrote: Lars, Thank you for your response. Sorry if I

Re: Mysql connection error

2005-07-13 Thread Derek Hohls
Upayavira Thanks for the heads-up. I have now tried using the machine name as well... but with no success. Re the second approach - this is not clear to me. I would normally telnet into the box, then run ./mysql -u myname -p to work with sql. However, my understanding is that when I do this I

Re: cocoon.getComponent causes NullPointerException

2005-07-13 Thread Jan Hinzmann
On the page, you can find a similar function, to generate a sax-event-stream out of a string: /** * function from joose: http://joose.iki.fi/cocoon/saxInJX.txt */ function stringToSAX( str, consumer, ignoreRootElement ) { var is = new Packages.org.xml.sax.InputSource( new

Flow - How to set variables after sendPage

2005-07-13 Thread Johannes Becker
Hi, I've got a function. function myFunc(){ ... cocoon.sendPage(xxx, { myVariable: myVariable, }); } Right after this cocoon.sendPage I want to set a global variable (in my case myVariable) automatically: myVariable = null; But how can I do that? Thanks Jonny -- GMX DSL =

Re: Mysql connection error

2005-07-13 Thread Derek Hohls
Uh - if I try: ./mysql -u myname -ppasswd -h machineB.com that gives me the error: Access denied for user machineA.com (machine A is where I have telnetted into [from MachineB] ... and is also where the database is located - this is in line with the manual which states: If mysql -u root test

Re: Mysql connection error

2005-07-13 Thread Upayavira
I have Mysql running on Linux, on host Chandra. I have the mysql client running on windows, host creatively named win2k. If I log onto win2k and run: mysql -uroot -ppasswd -h chandra I get: Access denied for user: '[EMAIL PROTECTED]' (Using password: YES) So, I logged onto chandra and did:

cocoon.request.getParameter null

2005-07-13 Thread Joshua . Schairbaum
If I have a page with the following line: a href=?id=77/a and I click on '7' it displays the following in the address bar: http://my.page.com/function?id=7 I've got a flow script that matches 'function' and does the following: map:match pattern=function map:call function=do_call/

Re: Mysql connection error

2005-07-13 Thread Derek Hohls
Upayavira This makes sense, except for the mysql client part. My MachineB is the equivalent of your Windows (except it runs Linux, but I assume that makes no difference); and my MachineA is the equivalent of your chandra (and also running mysql). The only difference is that there is not a

[SOLVED] Re: Mysql connection error

2005-07-13 Thread Derek Hohls
Quick follow-up. I check with the admin staff and the mysql client had been installed and so was able to test the permissions as per your guidelines - that worked and I was also able to run my query OK. So I figured there must be a problem with the Cocoon setup... somewhere. I went back to

Re: [SOLVED] Re: Mysql connection error

2005-07-13 Thread Upayavira
Derek Hohls wrote: Quick follow-up. I check with the admin staff and the mysql client had been installed and so was able to test the permissions as per your guidelines - that worked and I was also able to run my query OK. So I figured there must be a problem with the Cocoon setup...

Re: Lenya/Cocoon Install

2005-07-13 Thread Ron Wheeler
After removing the spaces from the TOMCAT_HOME, at least now I am now getting a cocoon screen in the browser window. If I look with windows explorer, the missing file BypassableAccessController.class does seem to be in the right place C:\Program Files\Apache Software Foundation\Tomcat

Re: Lenya/Cocoon Install

2005-07-13 Thread Michael Wechner
Ron Wheeler wrote: After removing the spaces from the TOMCAT_HOME, at least now I am now getting a cocoon screen in the browser window. If I look with windows explorer, the missing file BypassableAccessController.class does seem to be in the right place C:\Program Files\Apache Software

Re: Coplet error-uri does not work

2005-07-13 Thread Jean-Baptiste Quenot
* Mathieu Garcia: My project is based on the portal block and coplets. When an error occurs in a coplet, the error is displayed on the top and not in the coplet that has thrown this error. I tried to add an error-uri attribute in my coplet, but the result is the same. It seems that the

Re: Antw: SourceWriting Transformer

2005-07-13 Thread Victor Pergolesi
Dear Reinhard: Thank you for your help. I am developing a portal for our Intranet and I need to write in the hard disk of the client a file when he/she login. Then that file is for read from our desktop applications. So I need to write that file transparently for the client. Any idea, how can I

Scripts loaded via cocoon.load not refreshing on page reload

2005-07-13 Thread Alexander Malic
Hi there, I was trying to outsource flowscripts into seperate files and load them into my main flowscript via cocoon.load('./path/filename.js');. now i'm experiencing some problems: here's what i'm experiencing: - when i make changes into the external js-file (loaded via cocoon.load) the

Re: Lenya/Cocoon Install

2005-07-13 Thread Ron Wheeler
I can see the class with Widows explorer and it looks to be in the right place ...\lenya\WEB-INF\classes\org\apache\lenya\ac\impl but cocoon is complaining. I am wondering if there is a setting missing. I will try a rebuild fom the command line to see what the difference is in performance.

Re: Problems wirh HSSF/XLS-Serializer(Styles)

2005-07-13 Thread Joerg Heinicke
The HSSF/XLSSerializer does not support that much functionality, but it supports at least some stylings. If you have a look into the samples delivered with Cocoon you can see samples for formatting dates and for alignment. For the NPE I don't know, I never came across it. And I guess the

Re: Tomcat + Cocoon (as only a renderer)

2005-07-13 Thread Lars Huttar
suplizio wrote: Lars, Thank you for your response. Sorry if I was unclear, however, your response did help me understand somethings better. I have some additional issues I'd like to ask your help with...I'll be much more verbose. You did understand my question correctly: I want my

Re: Tomcat + Cocoon (as only a renderer)

2005-07-13 Thread suplizio
Thanks Lars again for your help. I am able to get this to work using HTTP...so I'll be able to show that to my boss. I really need to get it working the way Stephan mentioned...that would make it a viable solution moving forward. On Wed, Jul 13, 2005 at 1:37pm Lars Huttar <[EMAIL PROTECTED]>

Re: Tomcat + Cocoon (as only a renderer)

2005-07-13 Thread Dan Durkin
Stefan Podkowinski wrote: On 7/13/05, suplizio [EMAIL PROTECTED] wrote: You did understand my question correctly: I want my servlet/jsp Tomcat web app to call Cocoon to perform presentation layer rendering. [...] First of all, is there another way to communicate with cocoon rather than

question about control flow and DomParser

2005-07-13 Thread Jarry Liu
Hi, I am using java control flow. In the middle of the flow, I need use DomParser function parse( String file) to read the new xml file that I got from the pipeline. I use sourcewriting transformer to write the new xml to disk and nameed it as temp.xml and then parse it to DomParser. But after

Re: Test session attribute in sitemap

2005-07-13 Thread Antonio Gallardo
Hi: Try to use session input module. Best Regards, Antonio Gallardo. Carlos Dias wrote: Hi folks! How can I get check if a session attribute is not set in the sitemap. I'm trying something like: map:select type=session-attribute map:parameter name=attribute-name value=session-language/

Re: Flow - How to set variables after sendPage

2005-07-13 Thread Antonio Gallardo
IIRC, sendPage forks the execution, so if you set the variable right after the sendPage() call, is posible the global variable is setted before the sendPage() call finish. Hmm please explain, what are you trying to do. Perhaps there is another way to accomplish that. Best Regards,

Re: cocoon.request.getParameter null

2005-07-13 Thread Antonio Gallardo
[EMAIL PROTECTED] wrote: If I have a page with the following line: a href=?id=77/a and I click on '7' it displays the following in the address bar: http://my.page.com/function?id=7 I've got a flow script that matches 'function' and does the following: map:match pattern=function