Re: Calling the flow object model objects from java classes?

2004-06-14 Thread Thomas Kjeldahl Nilsson
The problem looks really strange; when I rewrite the function call to the java (class with cocoon.session as in-parameter), subsequent tests of the website comes up with an error: Function javascript:preFunction() not found (preFunction() is run before all flowscripts, not just the one where I

Re: Simple question about validation

2004-06-14 Thread Leszek Gawron
Bartosz Zgodzinski wrote: Hello Simple problem. I need to write a regular expresion. Only one word is prohibited: idiota. How to write a negation in regular expresion? fd:regexp pattern=idota/ -- this means only idiota. Pleaste make a negation really not a cocoon question

How to define a portal bookmark

2004-06-14 Thread Björn Voigt
moin list, I am testing the portal engine of cocoon and I try to define bookmarks for my sample. I have defined 3 tabs in the anonymous-view of the portal. composite-layout name=tab id=maintab named-item name=Home composite-layout name=row [...] /composite-layout

Re: [flowscript] Add value into the request object

2004-06-14 Thread Lionel Crine
The variable is empty. Oh yes, I forgot the ending bracket. But this is not related to my problem. There is no error message. At 17:26 11/06/2004 +0200, you wrote: Lionel Crine wrote: Hi all, I tried to add a new parameter the the request object then doing a redirection. function addrequest(){

Any known issues with Cocoon 2.1.3 and Tomcat 5.0.19 (NullPointerException?)

2004-06-14 Thread Sandor Spruit
Hi all, Strange: I've been developing a webapp based on Cocoon 2.1.3, running on Tomcat 4.1.30 with no problems. Now I'm extending it with custom Actions using NetBeans with built-in Tomcat 5.0.19. I'm getting weird NullPointerExceptions right in the middle of some ordinary pipeline. The same

XSP

2004-06-14 Thread Oro smith
I have the session_prop action inside the auth_login action. I retrieve the user id for the current session and store it in a parameter 'userid'. How can this userid be accessed from an XSP page? The sitemap action is given below. map:act type=auth-login map:parameter name=handler

Re: XSP

2004-06-14 Thread Antonio Gallardo
Hi Oro: See http://wiki.cocoondev.org/Wiki.jsp?page=XspSessionFw Best Regards, Antonio Gallardo Oro smith dijo: I have the session_prop action inside the auth_login action. I retrieve the user id for the current session and store it in a parameter 'userid'. How can this userid be accessed

Re: JDO Questions

2004-06-14 Thread Antonio Gallardo
Jason Lane dijo: Hi list, just a quick question regarding the Sun JDO libraries. I've downloaded jdo-1_0_1-ri that contains: btree.jar jdo.jar jdori-enhancer.jar jdori.jar OK I assume that all I need to get the OJB samples running is jdo.jar jdori.jar? What about the other jar files?

XSP

2004-06-14 Thread Oro smith
I have stored the user id and password in the session_prop action inside the auth_login action. How can i access the parameters from an xsp page? the auth_login and session_prop actions are given below. map:act type=auth-login map:parameter name=handler value=demohandler/

CForms and Database - 5 Degrees of Separation?

2004-06-14 Thread Derek Hohls
I understand that the separation of concerns offered by Cocoon allows for parallel development on a system, through the enforcement of appropriately defined contracts. In theory, this separation is meant to ensure that a system is more flexible and more maintainable... Now the flexibility part I

Re: Hibernate Authentication Sample?

2004-06-14 Thread Upayavira
Derek Hohls wrote: I cannot get the Hibernate Authentication Sample from the wiki: http://wiki.cocoondev.org/Wiki.jsp?page=HibernateAndTheAuthenticationFramework to work. I get the following errors in the Cocoon error.log and the sitemap.log files: ERROR (2004-06-14) 12:48.34:403 [sitemap]

Re: action sets

2004-06-14 Thread John L. Webber
Hi Marco, Did you define your individual actions in the map:actions block (under map:components) ? Are you getting any other useful error messages in the logs? You may find Flow more useful than action sets. John Marco Friedrich wrote: Hello Community! How can i use multiple actions for one

Tricky question (?) re. JXTemplate accessing object functions, not values

2004-06-14 Thread Thomas Kjeldahl Nilsson
Hey again- Problem: I've got a java object with a 'String getText(String id)' method. This object acts as an abstraction of a database (the database contains text content in different languages.) Now, what I would like to do is send this java object to the jxtemplate generator, and in each

Re: uploading file in cocoon2.1.4

2004-06-14 Thread gounis
one more link http://wiki.cocoondev.org/Wiki.jsp?page=RecipeUploadUsingAction --stavros On Thu, 27 May 2004, Madhavi Thottempudi wrote: Thank you Jeorg and Venkatesan for your suggestions. I will look into the documentation and hopefully I will find a solution. - M Now At 22:52

Re: CForms and Database - 5 Degrees of Separation?

2004-06-14 Thread Ugo Cei
Derek Hohls wrote: The following steps now seem to be required: 1. Update the database - pretty straightforward, assuming that the new piece of data is just a new attribute on an existing table... 2. Update the TableBean representing where that data is stored, 3. Update the persistence layer

Re: CForms and Database - 5 Degrees of Separation?

2004-06-14 Thread Antonio Gallardo
Ugo Cei dijo: Derek Hohls wrote: The following steps now seem to be required: 1. Update the database - pretty straightforward, assuming that the new piece of data is just a new attribute on an existing table... 2. Update the TableBean representing where that data is stored, 3. Update the

RE: CForms and Database - 5 Degrees of Separation?

2004-06-14 Thread David Leangen
Sorry if this thread diverges a little from Cocoon... Using OJB and Druid I do: BTW, next version of Druid will include support for Hibernate Druid looks really interesting, but there is NO documentation... No doc, no use! Any idea where I can get SOME info, even if it's old?

RE: CForms and Database - 5 Degrees of Separation?

2004-06-14 Thread Antonio Gallardo
David Leangen dijo: Sorry if this thread diverges a little from Cocoon... Using OJB and Druid I do: BTW, next version of Druid will include support for Hibernate Druid looks really interesting, but there is NO documentation... The docs are bundled in, just look inside. No doc, no use!

[flowscript] [SOLUTION] Add value into the request object

2004-06-14 Thread Lionel Crine
OK I found the error. I did not use the redirectTo method correctly: I should have written cocoon.redirectTo('mypage,{my_parameter; my_value}); Now It's working. Lionel At 10:05 14/06/2004 +0200, you wrote: The variable is empty. Oh yes, I forgot the ending bracket. But this is not related to my

Re: [flowscript] [SOLUTION] Add value into the request object

2004-06-14 Thread Antonio Gallardo
Lionel Crine dijo: OK I found the error. I did not use the redirectTo method correctly: I should have written cocoon.redirectTo('mypage,{my_parameter; my_value}); AFAIK, it should be: cocoon.redirectTo(mypage,{my_parameter: my_value}); Best Regards, Antonio Gallardo

flowscript and databaseActions

2004-06-14 Thread Stephane Delort
Dear list, I am in front of a cocoon -best way- choice and need some expert feedback. So, I need to do some forms with C-forms and store the results in a database. for the Cforms I wil use flowscripts but then, I don't know which solution is better to access the database: - databaseActions :

Brake in output of HTMLSerializer, Why?

2004-06-14 Thread Stephan Coboos
Hello, I'am using JXTemplates to generate dynamic output. In these templates I need XHTML-Entities like amp; oder nbsp;. To use these entities I had included the DOCTYPE: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; But if I

Re: JDO Questions

2004-06-14 Thread Jason Lane
On 14 Jun 2004, at 11:41, Antonio Gallardo wrote: Jason Lane dijo: Hi list, just a quick question regarding the Sun JDO libraries. I've downloaded jdo-1_0_1-ri that contains: btree.jar jdo.jar jdori-enhancer.jar jdori.jar OK I assume that all I need to get the OJB samples running is jdo.jar

Re: Flow Java Error: VERIFIED_REJECTED Number of LocalVariableTable ...

2004-06-14 Thread Stephan Michels
Am Sa, den 12.06.2004 schrieb johan coens um 21:08: Hello, When retrieving a singleton class in a java flow handler i receive the error: Snippet from sitemap.xml:: map:call function=protect Called method in AuthenticationHandler:: public void doProtect() { ...

Hibernate Authentication sample not working?

2004-06-14 Thread Derek Hohls
I cannot get the Hibernate Authentication Sample from the wiki: http://wiki.cocoondev.org/Wiki.jsp?page=HibernateAndTheAuthenticationFramework to work. I get the following errors in the Cocoon error.log and the sitemap.log files: ERROR (2004-06-14) 12:48.34:403 [sitemap]

Re: Hibernate Authentication Sample?

2004-06-14 Thread Derek Hohls
Well, I presume so; unfortunately the sample only ships with .class files ... but the instructions say to place them in the htest directory, so I *assume* the package name would correspond - where else might they go? Thanks Derek [EMAIL PROTECTED] 06/14/04 1:15 PM Derek Hohls wrote: I cannot

Re: CForms+Hibernate+Flow

2004-06-14 Thread Antonio Gallardo
Derek Hohls dijo: I know that there are other approaches to getting data from CForms persisted into a database (e.g. OJB) but it seems to me that getting Cocoon to play nicely with the really clean implementation offered by Hibernate is a key aspect in securing Cocooon's use as a valid

Re: Hibernate Authentication sample not working?

2004-06-14 Thread Derek Hohls
Please ignore this - its an accidentally repost of an earlier message/topic. [EMAIL PROTECTED] 06/14/04 6:58 PM I cannot get the Hibernate Authentication Sample from the wiki: http://wiki.cocoondev.org/Wiki.jsp?page=HibernateAndTheAuthenticationFramework to work. I get the following errors

Re: CForms+Hibernate+Flow

2004-06-14 Thread Derek Hohls
Antonio I *assume* those comments were meant as a joke even though the traditional smilie was missing?! Derek PS If they weren't, then you need to read the message again - the point of the post was to try and get help on the use of Hibernate, not start any kind of heated debate on the pros and

RE: Hibernate Authentication sample not working?

2004-06-14 Thread Hugo Burm
The example you are using uses a generator to do the authentication. Meanwhile, I found out (thanks to much better documentation!), that the authentication pipeline can call a java class directly. No need for actions or generators and additional pipelines. So I updated the Wiki page five minutes

Re: CForms and Database - 5 Degrees of Separation?

2004-06-14 Thread Derek Hohls
Ugo Some good points. Bear in mind, however that your revised 1,2,3 are probably only feasible if your DB amin and web developer are one and the same. I am not sure my db admin would take kindly to me updating her data- bases with my tool! As for using XDoclet; I 've seen references to this

Re: [flowscript] [SOLUTION] Add value into the request object

2004-06-14 Thread Stephan Coboos
Antonio Gallardo wrote: AFAIK, it should be: cocoon.redirectTo(mypage,{my_parameter: my_value}); But it can be {my_parameter:my_value}, too (no quotes)! But your version is more clear and the better one ;-) Regards Stephan -

request for CLI-only build

2004-06-14 Thread Murphy, Thomas H. (Newport News)
Partly because Cocoon comes with just about everything except the kitchen sink (scheduled for Cocoon 2.2?), I'm interested in exploring Cocoon as a standalone, command-line application, *separate* from any use of Cocoon as a webapp. I realize that Cocoon can currently be used from the command

Using HTTPS as a src for a file generator

2004-06-14 Thread Steven Noels
Hi folks, I'm trying to use a https source in a simple pipeline, but Java doesn't like the server certificate on the originating side. With the help of openssl, I managed to save a local copy of the certificate, but now I need to add it to my local set of certificates. Despite gazillion of web

Re: Using HTTPS as a src for a file generator

2004-06-14 Thread Tony Collen
Steven Noels wrote: Hi folks, I'm trying to use a https source in a simple pipeline, but Java doesn't like the server certificate on the originating side. With the help of openssl, I managed to save a local copy of the certificate, but now I need to add it to my local set of certificates.

Re: CForms and Database - 5 Degrees of Separation?

2004-06-14 Thread Ugo Cei
Il giorno 14/giu/04, alle 20:36, Derek Hohls ha scritto: Some good points. Bear in mind, however that your revised 1,2,3 are probably only feasible if your DB amin and web developer are one and the same. I am not sure my db admin would take kindly to me updating her data- bases with my tool! In

Need help

2004-06-14 Thread Catalin Ghergu
HI! i have this problem:i have a aplication(it's about a questionnaire, where i submit some fields and i want to have back a response from the server through servlets:a content- type HTML anda WML one ) which should work on a emulator(OpenWave SDk 6.2.2) and i'm using cocoon as a servlet to

Re: Using HTTPS as a src for a file generator

2004-06-14 Thread Steven Noels
On 14 Jun 2004, at 22:36, Tony Collen wrote: I'm no expert, but this is what I've found so far: http://www.hp.com/products1/unix/java/infolibrary/install_verisign.html http://www.digicert.com/ssl-certificate-installation-java.htm http://www.pankaj-k.net/WSOverSSL/WSOverSSL-HOWTO.html That last one

Re: Need help

2004-06-14 Thread Jason Lane
On 14 Jun 2004, at 21:44, Catalin Ghergu wrote: OK your server should be configured for this already right? but have you described the WML mime type in your server? If I understand correctly it's just the WML that's failing? HI! i have this problem:i have a aplication(it's about a

Re: cocoon install

2004-06-14 Thread Nanda
Did you try sh ./build.sh? If not, edit the build.sh to supply -x flag. Eg. #!/bin/sh -x This will run the script in debug mode and can help find out the actual error. I got the same problem today in a lab totally unrelated to cocoon. There were alot of environment variables to setup. So

That was it--Thanks!

2004-06-14 Thread Jeff Potts
--- Joerg Heinicke [EMAIL PROTECTED] wrote: You probably have to add another XML consumer into the pipeline that filters out the *Document events. Therefore add a class extending AbstractXMLPipe and overwriting startDocument and endDocument with empty body. That was it. Thanks for your

RE: Hibernate Authentication sample not working?

2004-06-14 Thread Derek Hohls
Hugo I will look at this - in the meantime can you explain the errors produced by the first approach - I think this is affecting some other examples I am trying out... Thanks Derek [EMAIL PROTECTED] 06/14/04 8:31 PM The example you are using uses a generator to do the authentication.