Authenticating pipelines called from a cron job

2007-05-09 Thread Sanket Pattekar
Hi, I am using a cron job that fires daily, which call the pipeline as follows component class=org.apache.cocoon.components.cron.CocoonPipelineCronJob logger=core role=org.apache.cocoon.components.cron.CronJob/pipeline-daily pipelinesome-external-pipeline/pipeline /component The above

Re: Authenticating pipelines called from a cron job

2007-05-09 Thread Sanket Pattekar
/ /map:act /map:act /map:match Havent tested this thogh ...my CronJobs don't need authentication since they are internal pipelines and I allways know who I am ;) Chris Sanket Pattekar schrieb: Hi, I am using a cron job

Problem with cocoon 2.1.8 and i18n transformer

2007-03-22 Thread Sanket Pattekar
Hi, I am using cocoon 2.1.8, and is using i18n transformer for internationalization. I have a issue with i18n caching. I generate the catalogues using pipeline, i.e I have the following for my i18n declaration map:transformer name=i18n logger=sitemap.transformer.i18n

Using date difference with cocoon

2006-12-28 Thread Sanket Pattekar
Hi, I want to find the difference between 2 dates in cocoon 2.1.8. I have the following pseudo code xsl:variable name=current-date as=xs:date2006-10-23/xsl:variable xsl:variable name=compare-date as=xs:date2006-10-12/xsl:variable xsl:variable name=diff

Re: Using date difference with cocoon

2006-12-28 Thread Sanket Pattekar
Lundquist [EMAIL PROTECTED] wrote: Hi Sanket, On Dec 28, 2006, at 9:31 AM, Sanket Pattekar wrote: snip If I run the same with saxon then, I get the correct difference, but the same doesnot work inside cocoon. Are you using Saxon in Cocoon? —ml

Re: Using date difference with cocoon

2006-12-28 Thread Sanket Pattekar
Hi, I have seen the date:difference function specified in the exslt, the problem I see is that The number of months specified in the duration must be less than 12, which may not be the case with me. I definately need some other way to find the difference Sanket On 12/28/06, Sanket Pattekar

CFORMS fd:selection-list with i18n issue

2006-11-02 Thread Sanket Pattekar
Hi, I am using CForms with cocoon 2.1.8. My condition is that I need to generate a fd:selection-list whose values are also i18n keys. I use the following code to populate the combo box fd:field id=title required=true fd:labelTitle:/fd:label fd:datatype base=string/

Re: Executing CocoonPipelineCronJob only once

2006-08-16 Thread Sanket Pattekar
Hi Ard, The solution suggested does not work. In fact the trigger is executed every sec. I also browsed through the quartz documentation and there is nothing about executing the trigger only once. Does any know how to configure the trigger so that it is executed only once. Sanket On 8/14/06,

Re: Custom class that runs when cocoon starts up

2006-08-14 Thread Sanket Pattekar
the documentation I noted that the cron is periodic, but I need to execute a pipeline only once after startup. Thanks Sanket On 8/8/06, David Perez [EMAIL PROTECTED] wrote: Sanket Pattekar schrieb: Hi Is it possible to have a custom class that runs when cocoon starts up. Using this class I need

Executing CocoonPipelineCronJob only once

2006-08-14 Thread Sanket Pattekar
Hi I need to execute a pipleline at startup only once. Based on the documentation, I found out that it is possible to do use s cron job that executes a pipeline using CocoonPipelineCronJob. However how do I have this cron job executed only once. I need to do some initialization at startup by

Accessing XML File input module inside a flowscript

2006-08-07 Thread Sanket Pattekar
Hi, Is it possible to access a XML File Input module inside a flowscript. Is so how this can be done. Thanks n Regards, Sanket - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Custom class that runs when cocoon starts up

2006-08-07 Thread Sanket Pattekar
Hi Is it possible to have a custom class that runs when cocoon starts up. Using this class I need to run call a pipeline at startup. This feature I need is similar to that of overriding the init() method of any servlet. Sanket

Accessing values of check-box having the same name in the stylesheets

2006-07-25 Thread Sanket Pattekar
Hi, I have a html form with multiple check box. This html form is dynamically generated based on the content. So I have kept the names of all the check boxes as MyCheck. When I select multiple check-boxes, the request query is as follows

Handling sendmail transformer errors/exception

2006-07-17 Thread Sanket Pattekar
Hi , We are using sendmail transformer for email generation. This is working fine, but we want to handle the exceptions that are generated by sendmail transformer. As I understand sendmail transformer results in an xml file which describes that status of the email generation. What I want to do

Accessing resources defined in the main sitemap in Sub sitemap

2006-05-30 Thread Sanket Pattekar
Hi, I want to access the resources defined in the main sitemap in my mounted sub-sitemap. How do I do the same. Sanket - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Using jx template generator

2006-05-15 Thread Sanket Pattekar
Hi, I am using jx template generator. I am passing a parameter called language from cocoon sitemap. The values to this could be en, nl or some thing different. map:generate type=jx src=test/test.xml map:parameter name=lang value=en/ /map:generate Based on the

Re: jx:choose problem

2006-05-13 Thread Sanket Pattekar
Thanks Antonio, This solution works Thanks again Sanket On 5/13/06, Antonio Gallardo [EMAIL PROTECTED] wrote: Hi Sanket, Try, jx:when test=${cocoon.parameters.country=='global'} or jx:when test=${cocoon.parameters.country.equals('global')} Best Regards, Antonio Gallardo Sanket

jx:choose problem

2006-05-12 Thread Sanket Pattekar
Hi, In my sitemap I have a parameter defined as map:parameter name=country value=gb/. I am using this in the xml file using jxtemplate jx:choose jx:when test=${cocoon.parameters.country}=='global' Step 1 /jx:when jx:otherwise Step 2

LDAP Authentication

2006-04-29 Thread Sanket Pattekar
Hi I have a user login page which has a user name and password implemeted using cocoon CForm. I problem is to authenticate this user's entered credentials against a LDAP server. As I understand there are 2 approaches we can follow 1. Use cocoons LDAP Transformer. 2. Use custom java-script code

Accessing parameters in aggregated pipeline

2006-03-29 Thread Sanket Pattekar
Hi all, How is it possible to pass parameter to the aggregated pipelines For e.g Main pipeline map:match pattern=home/default.html map:parameter name=MYVariable value={flow-attribute:session_Language}/ map:aggregate element=page map:part element=header src=cocoon:/content/common/header.xml/

Re: opening a new window in xsl

2006-03-24 Thread Sanket Pattekar
Hello Arnab, Add the following code under html head head tag in xsl stylesheet script language=JavaScript ![CDATA[ function image() { window.open(']]xsl:value-of select=samples/link/![CDATA['); } ]] /script In the above case it it uses

XSLT-Cinclude Transformer do not work

2006-03-02 Thread Sanket Pattekar
Hi, I am using the following cocoon pipeline. map:match pattern=*/index.html map:generate src=documents.xml map:transform src=document.xsl map:transform type=cinclude/ /map:serialize /map:match documents.xml is a explained in file below ?xml version=1.0? root

using esql:group like functionality with SQL Transformer

2005-02-25 Thread Sanket Pattekar
Hi, I want to implement the functionality like esql:group with SQL Transformer. Can any one suggest a way of doing the same. Thanks, Sanket. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Debug cocoon applications

2005-02-14 Thread Sanket Pattekar
Hi, I want to debug cocoon applications in eclipse. I have successfully integrated eclipse, tomcat plugin, and sunbow plugin. Can anyone give me detailed steps, as to how to debug my cocoon application Thanks, Sanket. - To

sunbow plugin

2005-02-08 Thread Sanket Pattekar
I want to download the sunbow plugin for eclipse3.0. Using this I can develop cocoon application with eclipse. I tried to download the same from the mentioned site, but it results in a zero sized file after download Thanks, Sanket.

integrate Cocoon and Tomcat with eclipse

2005-02-06 Thread Sanket Pattekar
Hi, I am trying to integrate Cocoon and Tomcat with eclipse. I have the following versions. Can any one help me intergrating the same. Cocoon 2.1.6 Tomcat 5.0.28 Eclipse 3.0.1 Tomcat Plugin V3 JDK 1.4.2.04 Thanks, Sanket.

integrate Cocoon and Tomcat with eclipse

2005-02-04 Thread Sanket Pattekar
Hi, I am trying to integrate Cocoon and Tomcat with eclipse. I have the following versions. Can any one help me intergrating the same. Cocoon 2.1.6 Tomcat 5.0.28 Eclipse 3.0.1 Tomcat Plugin V3 Thanks, Sanket. - To