[Auth-framwork] - How to manage multiple documents.

2002-09-05 Thread Antonio Gallardo Rivera
Hi buddies! I read about the auth-document in http://xml.apache.org/cocoon/developing/webapps/authentication.html Its a very nice authentication framework! I have just one question after read that: Given 4 pages to authenticate: a) create-category b) edit-category c) create-product d)

Re: [Auth-framwork] - How to manage multiple documents.

2002-09-05 Thread Barbara Post
Hello Antonio, you have somewhere a database, ldap directory or (for tests) an xml file storing ID, password, permissions for each user, and then the authentication simply happens the way you prefer, with an action etc. All the pages are protected by the same handler. Have a nice day, Babs

RE: [Auth-framwork] - How to manage multiple documents.

2002-09-05 Thread Matthew Langham
Hi Antonio, an interesting scenario - are you serious? :-) The authentication framework allows you to pass additional data back from the authentication pipeline. One solution would be to use the same handler for all the different pipelines but to pass back additional values that contain the

Re: [Auth-framwork] - How to manage multiple documents.

2002-09-05 Thread Antonio Gallardo Rivera
Hi Barbara I see you posting always! ;) Thanks, So Do you mean the best approach is to put the permission to every file into the data element of the auth-protect action? Then check this permission into each page? The auth-session data will return something like: authentication

Dynamic SelectOnes in XMLForms

2002-09-05 Thread u13209
Hello everybody and Hello to specially Ivelin, i have a problem to create dynamic selectOnes in my XMLForms with the xf:repeat.I looked on the source of XMLForm-Transformer and it seemsto be not possible with this Version. But this is importent to create powerfull forms. I solved this

Re: [Auth-framwork] - How to manage multiple documents.

2002-09-05 Thread Barbara Post
Antonio, this is my approach since I have many pages/rights to check... and it seems that it's secure and (maybe too ?) simple to write... But maybe your further processing will work better with another approach. In my case xsl checks the right (indeed from session:getxml) and then displays one

Re: [Auth-framwork] - How to manage multiple documents.

2002-09-05 Thread Tuomo Lesonen
I've done mine as Carsten proposed, by using the parameters returned by the AuthAction in the pipeline. Works great for protecting multiple pages! But if you want to show different things for different users, you will have to use the SessionTransformer. It can be done inside a xsp-page too, but

IE, caching and c2.1

2002-09-05 Thread Barbara Post
Now with cocoon 2.1, when I hit control and F5 to force reload of page after modification of the sitemap the page doesn't want to reload, cocoon has cached it and seems to ignore that sitemap has changed... I use Internet Explorer 5.5. If I modify the url sitemap changes are effective. With

continuations tag and ExtendedComponentSelector questions (cocoon.xconf)

2002-09-05 Thread Barbara Post
1. What is this is cocoon.xconf ? Session timeout ? : continuations time-to-live=3600/ 2. and what (when) is this component used for ? : org.apache.cocoon.components.ExtendedComponentSelector Thanks... - Please check that

Efficient aggregation

2002-09-05 Thread Martin Lüthi
Dear Cocooners I wonder what would be the most efficient aggregation of many small xml documents in a directory. My present approach is very slow: 1. use directory-generator to make an index of documents 2. generate a document containing xincludes with help of a stylesheet 3. perform all

Re: Efficient aggregation

2002-09-05 Thread u15603
Hello Martin, have you ever use the map:aggregation inside the sitemap? It is easy to handle! dirk Dear Cocooners I wonder what would be the most efficient aggregation of many small xml documents in a directory. My present approach is very slow: 1. use directory-generator to make an index

Re: continuations tag and ExtendedComponentSelector questions (cocoon.xconf)

2002-09-05 Thread Simon Price
Barbara Post wrote: 1. What is this is cocoon.xconf ? Session timeout ? : continuations time-to-live=3600/ Continuations are, in effect, a type of session and so I would expect this to be the session timeout - ie. the no. seconds that cocoon keeps the suspended flow program state

Re: Efficient aggregation

2002-09-05 Thread Bertrand Delacretaz
On Thursday 05 September 2002 11:21, Martin Lüthi wrote: I want to aggregate all files in a directory, which is not possible with map:aggregate afaik. You'll have to use CInclude or XInclude for this, along with a DirectoryGenerator to get the list of files. -- Bertrand Delacrétaz

Re: Efficient aggregation

2002-09-05 Thread Bruno Dumon
On Thu, 2002-09-05 at 10:37, Martin Lüthi wrote: Dear Cocooners I wonder what would be the most efficient aggregation of many small xml documents in a directory. My present approach is very slow: 1. use directory-generator to make an index of documents 2. generate a document containing

XSP Redirect in Cocoon 2

2002-09-05 Thread Michael Edge
Hi All It seems to me that the following code will not work in Cocoon 2. I believe it works in Cocoon 1, but for some reason the request and response objects available within XSP for Cocoon 2 are not HttpServletRequest and HttpServletResponse objects, but rather some cocoon equivalents,

Re: XSP Redirect in Cocoon 2

2002-09-05 Thread Nicola Ken Barozzi
Michael Edge wrote: Hi All It seems to me that the following code will not work in Cocoon 2. I believe it works in Cocoon 1, but for some reason the request and response objects available within XSP for Cocoon 2 are not HttpServletRequest and HttpServletResponse objects, but rather

Re: XSP Redirect in Cocoon 2

2002-09-05 Thread Nicola Ken Barozzi
http://outerthought.net/wiki/Wiki.jsp?page=Redirecting -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) -

Re: XMLForm - Howto - Mailing List - Not working

2002-09-05 Thread Ivelin Ivanov
Can you reach these links: http://localhost:8080/cocoon/samples/welcome http://localhost:8080/cocoon/samples/xmlform/wizard - Original Message - From: Gerry Reno [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 03, 2002 5:46 PM Subject: XMLForm - Howto - Mailing List -

if not working

2002-09-05 Thread Ganael LAPLANCHE
Hi all, I'm trying to test the value of a hidden parameter sent via an htmlform... Here is the test : xsp:logic if(xsp-request:get-parameter name="todo"/=="search") { xsp:contentThat's ok !/xsp:content } xsp:logic The test never returns true... What's wrong ??? Thank you, Gan.

RE: if not working

2002-09-05 Thread Piroumian Konstantin
Title: Message Try to use "search".equals(xsp-request .../) instead. -- Konstantin Piroumian [EMAIL PROTECTED] -Original Message-From: Ganael LAPLANCHE [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 5:49 PMTo: [EMAIL PROTECTED]Subject: "if" not working

RE: if not working

2002-09-05 Thread Rob Grundel
use the .equals("todo") operator on the string comparison -Original Message-From: Ganael LAPLANCHE [mailto:[EMAIL PROTECTED]]Sent: Thursday, 5 September 2002 11:49 PMTo: [EMAIL PROTECTED]Subject: "if" not working Hi all, I'm trying to test the value of a hidden

No SesionManager provided for Seleector?

2002-09-05 Thread Jan Bromberger
I intend to write a SessionContextSelector and tried to use a SessionManager just like the SessionTransformer does. But it seems that there is no SessionManager provided to a Selector while a Transformer gets one. Am I right? Why is that so? And: Has anybody a suggestion for a workaround?

Re: if not working

2002-09-05 Thread Ganael LAPLANCHE
That's perfect, thank you very much :) - Original Message - From: Rob Grundel To: '[EMAIL PROTECTED]' Sent: Thursday, September 05, 2002 3:50 PM Subject: RE: "if" not working use the .equals("todo") operator on the string comparison -Original

RE: No SesionManager provided for Seleector?

2002-09-05 Thread Carsten Ziegeler
This should work, you can get a SessionManager from the ComponentManager. What/how do you exactly try? PS: Please send plain text mails and not html. Carsten -Original Message- From: Jan Bromberger [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 3:47 PM To: [EMAIL

Re: if not working

2002-09-05 Thread Ilya A. Kriveshko
I prefer the search.equals(xsp-request:get-parameter name=todo/) form, since it will never throw a NullPointerException. The reason ``=='' doesn't work is because ``=='' is identity, not equality check. It will only return true if the two operands are the same object, not two different

Re: if not working

2002-09-05 Thread Ganael LAPLANCHE
Many thanks ! - Original Message - From: Ilya A. Kriveshko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 05, 2002 3:53 PM Subject: Re: if not working I prefer the search.equals(xsp-request:get-parameter name=todo/) form, since it will never throw a

Re: Efficient aggregation

2002-09-05 Thread Martin Lüthi
Thank you for your hint. I just tried out XPathDirectoryGenerator (scratchpad) which essentially does what I need, but is a lot less messy than my initial approach. However, also these results seem not to get cached... Presumably I should save the result with something like a

Re: No SesionManager provided for Seleector?

2002-09-05 Thread Jan Bromberger
This should work, you can get a SessionManager from the ComponentManager. What/how do you exactly try? public void compose(final ComponentManager componentManager) throws ComponentException { this.componentManager = componentManager; this.sessionManager = (SessionManager)

RE: No SesionManager provided for Seleector?

2002-09-05 Thread Carsten Ziegeler
Ok, I'm not sure, but I think you can't lookup the SessionManager in your compose() method. Try it in your select() method of the Selector Interface. That should work (I hope). Carsten -Original Message- From: Jan Bromberger [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05,

Re: No SesionManager provided for Seleector?

2002-09-05 Thread Jan Bromberger
Ok, I'm not sure, but I think you can't lookup the SessionManager in your compose() method. Try it in your select() method of the Selector Interface. That should work (I hope). Yes, thanks. That helps. But: The session that is provided is not the same as the one that I get with:

The dbAdd action not working

2002-09-05 Thread Antonio Gallardo Rivera
Please help me: I am using Cocoon 2.1: In the sitemap I have: map:action-set name=process map:act action=Crear Categoria type=form-validator map:parameter name=validate-set value=add/ map:act type=dbAdd/ /map:act map:action-set The actions are

RE: The dbAdd action not working

2002-09-05 Thread Klaus Bertram
Hi Antonio, You must also set the for-descriptor for form validation map:parameter name=form-descriptor value=docs/cat-form.xml/ The descriptor is only for the action dbAdd Klaus -Original Message- From: Antonio Gallardo Rivera [mailto:[EMAIL PROTECTED]] Sent: Thursday, September

Re: The dbAdd action not working

2002-09-05 Thread Gerhard Hipfinger
Hi Antonio, This bug was reported from Ivan Luzyanin quite a long time ago. There is a bug report under http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9835 Please, confirm this bug, I hope someone will investigate this issue. This bug is the reason I can't switch to 2.1 (and still use

RE: No SesionManager provided for Seleector?

2002-09-05 Thread Carsten Ziegeler
When is your session context created? Carsten -Original Message- From: Jan Bromberger [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 4:30 PM To: [EMAIL PROTECTED] Subject: Re: No SesionManager provided for Seleector? Ok, I'm not sure, but I think you can't lookup

Converting html documents to plain text

2002-09-05 Thread Francesco Marchioni
Hi all, I have to task to convert lots of html documents downloaded with the URLConnection class URL url = new URL("http://host/document.htm");URLConnection urlConnection = url.openConnection(); ...into plain text document to be written on

Re: No SesionManager provided for Seleector?

2002-09-05 Thread Jan Bromberger
When is your session context created? It should normaly be created only once on the first page request. At the moment for test purposes there is the following pipe: map:match pattern=sessiontest map:generate src=foo.xml/ map:transform type=session/ map:select type=context ... /map:select

RE: Converting html documents to plain text

2002-09-05 Thread Piroumian Konstantin
Title: Message Cocoon allowsto setup a pipeline that will retrieve remote HTML documents, transform them and write to the HD. I think you'll have to run Cocoon from command line and provide the list of all the documents you need. Though, I'm not so sure that Cocoon's command line

RE: No SesionManager provided for Seleector?

2002-09-05 Thread Carsten Ziegeler
-Original Message- From: Jan Bromberger [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 4:59 PM To: [EMAIL PROTECTED] Subject: Re: No SesionManager provided for Seleector? When is your session context created? It should normaly be created only once on the first

Re: The dbAdd action not working

2002-09-05 Thread Antonio Gallardo Rivera
Gerhard: Many thanks, I put to it 3 points in the bugzilla ;) I hope it will be soon resolved. Regards Antonio Gallardo El Jueves, 05 de Septiembre de 2002 08:46, Gerhard Hipfinger escribió: Hi Antonio, This bug was reported from Ivan Luzyanin quite a long time ago. There is a bug report

Re: REPOST: Uploaded file name problem

2002-09-05 Thread Ganael LAPLANCHE
Yeh, that's very strange, I'd like to find the answer... If someone can help... - Original Message - From: Lorenzo De Sio [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 30, 2002 2:42 PM Subject: R: REPOST: Uploaded file name problem You must be right... but, if so, why

Re: No SesionManager provided for Seleector?

2002-09-05 Thread Jan Bromberger
No, sorry - it is not. Actions, Matchers and Selectors are executed during processing of the sitemap immediately - generators, transformers and serializers are executed after the complete xml pipeline is established. So, first your selector is tested and at that time no context exists and

Re: Upload problem :( Windows related (again...)

2002-09-05 Thread Ganael LAPLANCHE
Title: Nachricht Sascha, Could you post the mod plz ? - Original Message - From: Sascha Kulawik To: [EMAIL PROTECTED] Sent: Tuesday, August 27, 2002 8:38 PM Subject: RE: Upload problem :( Windows related (again...) I know that problem and have

Re: cocoon-users Digest 5 Sep 2002 15:13:14 -0000 Issue 1567

2002-09-05 Thread Michael Edge
Thanks for the suggestion Nicola. Could you point me in the direction of an example on how to do this? I've spent hours searching for information on redirects, and as with most Cocoon documentation, it's pretty vague. Thanks Michael Michael Edge wrote: Hi All It seems to me that the

Re: XSP Redirect in Cocoon 2

2002-09-05 Thread Michael Edge
Thanks for the suggestion Nicola. Could you point me in the direction of an example on how to do this? I've spent hours searching for information on redirects, and as with most Cocoon documentation, it's pretty vague. Thanks Michael Michael Edge wrote: Hi All It seems to me that the

ERROR: Non-integer constant in ORDER BY

2002-09-05 Thread Antonio Gallardo Rivera
I am using Cocoon 2.1. I have the following ESQL: esql:query SELECT cat_id, cat_nombre, cat_habilitado FROM categoria WHERE cat_nombre LIKE esql:parameter%xsp-request:get-parameter name=nombre/%/esql:parameter AND cat_habilitado LIKE

Sorry for attaching entire digest

2002-09-05 Thread Michael Edge
My humbles apologies for replying to a message and attaching the entire cocoon users digest to it. I know it's irritating. Sorry about that, an accident caused by me not checking that Lotus Notes had correctly deleted the rest of the digest. Regards Michael -- This e-mail may contain

Xsltc and 2.0.3

2002-09-05 Thread Stephen Ng
Is it possible to plug xsltc into 2.0.3? I tried substituting in sitemap.xmap: map:transformer name=xslt src=org.apache.cocoon.transformation.TraxTransformer logger=sitemap.transformer.xsltc pool-max=32 pool-min=8 pool-grow=2

Re: The dbAdd action not working

2002-09-05 Thread Antonio Gallardo Rivera
Gerhard: You are right! This simple action is working fine: map:act action=Borrar type=dbDel/ but: map:act action=Crear Categoria type=form-validator map:parameter name=validate-set value=add/ map:act type=dbAdd/ /map:act map:act action=Actualizar type=form-validator

Redirect from sub-sitemap in authentication framework

2002-09-05 Thread apurva zaveri
Redirect from an sub-sitemap to the login page does not seem to be working in authentication framework. i.e If you have a protected page in subsitemap. The redirection in sub-sitemap (in case of not authenticated) is not able to go to login page (in sitemap) map:match pattern=protected

RE: Xsltc and 2.0.3

2002-09-05 Thread Amir Rosen
-Original Message- From: Stephen Ng [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 5:56 PM To: [EMAIL PROTECTED] Subject: Xsltc and 2.0.3 Is it possible to plug xsltc into 2.0.3? I tried substituting in sitemap.xmap: map:transformer name=xslt

global-parameters

2002-09-05 Thread Barbara Post
Hello, evening here... In c2.1, do the global parameters respect the stack created by actions ? So, if I have pipeline 1 and 3 nested actions in it, in the latest one I want to access foo1 global-parameter, do I use {../../../foo1} ? In pipeline 2, with one action, {../foo1} ? Thanks, where

Again: Cocoon and Websphere 4. This time: AIX

2002-09-05 Thread Moritz Petersen
Cheers, Mates, deploying Cocoon2 on Websphere is no problem, as we have seen during our project; we run it on WSAD 4.0.3/Win2k (using the build in Websphere 4.0.2) all the time. The problem is now, to bring Cocoon2 to AIX. We use WAS 4.0.3 AE on IBM AIX (RS/6000) to deploy our webapplication,

not so many levels

2002-09-05 Thread Barbara Post
Error while evaluating 'http://{../../../../../../foo}/...' : not so many levels I have an application that ran fine under 2.0.3 and now I use 2.1 so I replace some hard-coded parameters by global parameters. I here need to access a global parameter at level 6. I double-checked the syntax and

xsltc and 2.0.3

2002-09-05 Thread Stephen Ng
Is it possible to plug xsltc into 2.0.3? I tried substituting in sitemap.xmap: map:transformer name=xslt src=org.apache.cocoon.transformation.TraxTransformer logger=sitemap.transformer.xsltc pool-max=32 pool-min=8 pool-grow=2

very strange error when using tomcat + cocoon + ajp13 + apache

2002-09-05 Thread Leszek Gawron
I have a very strange problem and do not quite know what is the cause so I post here as I think this is the most responsive group I've ever seen. So: 1. I have a simple xsp page that collects data from request body, parses it to DOM structure and uses it later: ?xml version=1.0

Re: very strange error when using tomcat + cocoon + ajp13 + apache

2002-09-05 Thread Leszek Gawron
On Thu, Sep 05, 2002 at 07:47:17PM +0200, Leszek Gawron wrote: I have a very strange problem and do not quite know what is the cause so I post here as I think this is the most responsive group I've ever seen. So: 1. I have a simple xsp page that collects data from request body, parses it to

Handling lousy HTML

2002-09-05 Thread Ola Berg
At work I have to handle really bad written HTML (they used some really bad HTML generator): html body h1Hello, world!/H1 Hi there. p This is plain wrong. p But it works in certain browsers /body /html I thought by using the HTMLGenerator, the Tidy-thing should take care of this. In my site

Setting up a pipeline for cocoon2

2002-09-05 Thread Manish Shah
Hi guys, I am trying to get used to cocoon 2, and I'm not sure about how to do this. But I have a jsp file that references two other jsp files: main.jsp contains: framesrc=header.jsp framesrc=body.jsp To create two frames. header.jsp and body.jsp outputs into a xml file. Do I

XMLForm wizard data storage

2002-09-05 Thread pwcml
I was wondering if anyone had addressed the problem of getting the data from an XMLForm wizard into a database? Any ideas would be helpfull. Thanks, Phil Craven - Please check that your question has not already been answered

Re: Expiration Attribute in Pipeline Efficient aggregation

2002-09-05 Thread Ivelin Ivanov
Cocoon 2.1 supports an extra attribute in the pipeline, which specifies the expiration header in the http response. This should allow temporary caching of the result. I am not sure where this is documented though. - Original Message - From: Martin Lüthi [EMAIL PROTECTED] To: [EMAIL

Fwd: tuning

2002-09-05 Thread Stephen Ng
Just found the answer to my first question: the improved http/1.1 connector is in Tomcat 4.04: [B2] Coyote: This release include a completely new HTTP/1.1 connector and connector API, called Coyote. This connector provides much improved performance and robustness over the default HTTP/1.1

Re: XMLForm Wizard and Data Access

2002-09-05 Thread Ivelin Ivanov
Since the form is kept in the request or session, you can access it through the InputModules. I don't remember, Do we have the JXPath extension for request and session input modules? - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 04, 2002

Re: Xopus2 has been open sourced

2002-09-05 Thread Ivelin Ivanov
Looks promising. Is there a more complex demo than the one in the download. I would be interested to see line items, images, nested tables. - Original Message - From: Michael Wechner [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, September 04, 2002

Re: The dbAdd action not working

2002-09-05 Thread Antonio Gallardo Rivera
What we can do with this problem? :( I need to end forms to the next thursday :( How I can help? Antonio Gallardo. El Jueves, 05 de Septiembre de 2002 09:11, Antonio Gallardo Rivera escribió: Gerhard: Many thanks, I put to it 3 points in the bugzilla ;) I hope it will be soon resolved.

Re: Dynamic SelectOnes in XMLForms

2002-09-05 Thread Ivelin Ivanov
This feature has been requested multiple times before. I was holding on an implementation until the W3C XForms spec it out. Now it is available at: http://www.w3.org/TR/xforms/slice9.html#ui-common-elements-itemset It should be relatively easy to implement provided the xf:repeat tag is very

Re: The dbAdd action not working

2002-09-05 Thread Franck Lumpe
If you are in a hurry and solution will take time. A) Do your coding another way B) Switch back to 2.0.3. until problem is solved (yeah I know sounds stupid, but maybe it is possible in your environment) Solution A) is probably better :-) Not a Cocoon answer, just general IT problem solving.