Lookup of generator failed

2003-10-23 Thread Ivo Limmen
I use Cocoon 2.1.2 on Tomcat 4.1.24. I had build an generator in Cocoon 
2.0.3 and wanted to update the code to use the ServiceableGenerator class.
I added logging to each method of my generator but I see nothing. I 
added System.err outputs and only say that the constructor is called. So 
I at least know that the classes are found and that Cocoon instantiated 
my generator.
But setup() service() and dispose() are not called at all...

Sitemap.log:

ERROR   (2003-10-23) 08:44.02:601   [sitemap.handled-errors] 
(/cocoon/butterfly/dealDetail.xml) Thread-11/PipelineNode: Lookup of 
generator for role 'dealGen' failed.
org.apache.cocoon.ProcessingException: Lookup of generator for role 
'dealGen' failed.: 
org.apache.avalon.framework.component.ComponentException: generators: 
ComponentSelector could not find the component for hint [dealGen] (key 
[dealGen])
	at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setGenerator(AbstractProcessingPipeline.java:254)
	at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setGenerator(AbstractCachingProcessingPipeline.java:158)
	at 
org.apache.cocoon.components.treeprocessor.sitemap.GenerateNode.invoke(GenerateNode.java:92)

Sitemap.xmap:



  


...


  
  

  
  



  


  

Thanks,
--
Ivo Limmen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: URL encoding for request

2003-10-23 Thread Fleischer Roman
Hello Joerg,

thank you for the quick answer. I will tell my case, resp. show my problem.
I use a search form with the input field searchString. The form action is
OCIprod (a matcher in the cocoon sitemap).
When i look to the log-files the request is URL encoded
(http://127.0.0.1/cocoon/OCIprod?searchString=Gie%C3%9Fharz&searchMLFB=&sear
c)
 
The OCI prod matcher looks like this:








In the stylesheet product.xsl i use a cinclude to show the search result

...

  
 

Now the param $searchString has the value "Gießharz" instead of
"Gie%C3%9Fharz" and can not be found in the database. I get an error on the
searchPage result page like "Your search for "GieEUR?harz" has no hits. If I
call the searchPageResult direct in the browser with URL encoded
searchString everything works.

What is my error?
Thanks


-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 23. Oktober 2003 01:19
To: [EMAIL PROTECTED]
Subject: Re: URL encoding for request


Hello Roman,

for the request generator the decoding is okay. It gives the request 
params in their string representation in an XML structure. It knows 
nothing about an URL encoded string. (%C3%9F is URl encoded, not UTF 
encoded!!)

Maybe it's better to tell us your use case. If you transform the output 
of the request generator back into a HTML page with links, the @href 
will be URL encoded again - at least that should be done by the XML 
serializer.

Joerg

On 21.10.2003 14:10, Fleischer Roman wrote:

> Hello,
> 
> i have some problems with URL encoding. 
> I call a matcher in this form:
>
http://127.0.0.1/cocoon/OCIprod?searchString=Gie%C3%9Fharz&searchMLFB=&searc
> h=result...
> (%C3%9F is the german "ss")
> 
> In the matcher i call a request generator and a xml-serializer.
> The result is:
> ...
> 
>   
>   Gießharz 
>   
>   
>   result
> ...
> 
> Why is the parameter searchString transformed? How can i aviod the
> transforming? I need this param UTF-8 encoded (like in the  calling URL)
> 
> Any idea?
> Thanks...


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Newbie]jsp and cocoon

2003-10-23 Thread Joerg Heinicke
On 23.10.2003 05:38, Andrew Smith wrote:
I am going to have my stylesheet generate jsp scriplets, as well as 
html. After the stylesheet is applied,   I have jsp content, how do I 
get that filtered through the jsp engine, and have the output sent 
back.  I have looked at jsp reader and writer, but don't think it is 
quite what I am looking for
You are right, it is not what you are looking for. Cocoon is an XML 
framework, not a JSP framework. So you should push XML SAX events 
through the pipelines, handle it in different transformers and at the 
end serialize it to what ever you want. I don't know whatfor you need 
JSP here. Tell us your use case and you will get help from the list.

Regards,

Joerg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: only-internal pipeline can be called from the webbrowser

2003-10-23 Thread mathias . wiegard
Moohhh, thanks guys! ;)

> That is not a pipeline, just a fragment of one
> Apply internal-only="true" to your pipeline element:
> 
> 
> ...
> 
> 
> All matchers inside will be hidden from the web.
> 
> Peter
> 
> -Original Message-
> From: Mathias Wiegard [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 22, 2003 5:20 PM
> To: [EMAIL PROTECTED]
> Subject: only-internal pipeline can be called from the webbrowser
> 
> 
> Hi,
> I've a further question: I'm using the concept of internal pipelines.
> But the following pipeline ist still available to the web:
> 
> 
> 
> 
> 
>
> 
> 
> 
> 
> Any suggestions?
> Mat
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Lookup of generator failed

2003-10-23 Thread Ivo Limmen
I just saw that the constructor is called with each request I make, I 
don't think that is normal behaviour.

Ivo Limmen wrote:

I use Cocoon 2.1.2 on Tomcat 4.1.24. I had build an generator in Cocoon 
2.0.3 and wanted to update the code to use the ServiceableGenerator class.
I added logging to each method of my generator but I see nothing. I 
added System.err outputs and only say that the constructor is called. So 
I at least know that the classes are found and that Cocoon instantiated 
my generator.
But setup() service() and dispose() are not called at all...

Sitemap.log:

ERROR   (2003-10-23) 08:44.02:601   [sitemap.handled-errors] 
(/cocoon/butterfly/dealDetail.xml) Thread-11/PipelineNode: Lookup of 
generator for role 'dealGen' failed.
org.apache.cocoon.ProcessingException: Lookup of generator for role 
'dealGen' failed.: 
org.apache.avalon.framework.component.ComponentException: generators: 
ComponentSelector could not find the component for hint [dealGen] (key 
[dealGen])
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setGenerator(AbstractProcessingPipeline.java:254) 

at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setGenerator(AbstractCachingProcessingPipeline.java:158) 

at 
org.apache.cocoon.components.treeprocessor.sitemap.GenerateNode.invoke(GenerateNode.java:92) 

Sitemap.xmap:



  


...


  
  

  
  



  


  

Thanks,
--
Ivo Limmen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [Newbie]jsp and cocoon

2003-10-23 Thread Andrew Smith
Joerg Heinicke wrote:

On 23.10.2003 05:38, Andrew Smith wrote:

I am going to have my stylesheet generate jsp scriplets, as well as 
html. After the stylesheet is applied,   I have jsp content, how do I 
get that filtered through the jsp engine, and have the output sent 
back.  I have looked at jsp reader and writer, but don't think it is 
quite what I am looking for


You are right, it is not what you are looking for. Cocoon is an XML 
framework, not a JSP framework. So you should push XML SAX events 
through the pipelines, handle it in different transformers and at the 
end serialize it to what ever you want. I don't know whatfor you need 
JSP here. Tell us your use case and you will get help from the list.

Regards,

Joerg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

thanks, xsp pages have solved my problem

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Flowscript and releaseComponent()

2003-10-23 Thread Joerg Heinicke
On 22.10.2003 16:39, Reinhard Poetz wrote:

Additionally there has also been a prototyp by Christopher that does all
the magic without user defined interceptions but has never reached CVS
(checkout the archives to find out more).
Wasn't there an agreement about avoiding automagic also for releasing 
components? Or was it something about that the components are sometimes 
still needed and should not be released, so it's up to the script writer?

Joerg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: URL encoding for request

2003-10-23 Thread Joerg Heinicke
Seems to be more weird than it should be. In your database there is 
"Gießharz" I think and not the URL encoded form of it. Furthermore the 
string is correctly in your pipelines, so everything should work. But 
some representations of this string are not correct, so that they don't 
match. One of them is the search result HTML ("Your search for 
"GieEUR?harz" has no hits."). I guess you have to debug around a bit 
where the string is "Gießharz" and where not. It should always be in 
this representation internally. What about encoding (ISO-8859-1 vs. 
UTF-8)? How does your searchPageResult pipeline look like?

Joerg

On 23.10.2003 09:11, Fleischer Roman wrote:

Hello Joerg,

thank you for the quick answer. I will tell my case, resp. show my problem.
I use a search form with the input field searchString. The form action is
OCIprod (a matcher in the cocoon sitemap).
When i look to the log-files the request is URL encoded
(http://127.0.0.1/cocoon/OCIprod?searchString=Gie%C3%9Fharz&searchMLFB=&sear
c)
 
The OCI prod matcher looks like this:








In the stylesheet product.xsl i use a cinclude to show the search result

select="request:requestParameters/request:[EMAIL PROTECTED]'searchString']/re
quest:value/text()"/>
...


src="cocoon:/searchPageResult?lang={$lang}&searchString={$searchString}"
/>
 

Now the param $searchString has the value "Gießharz" instead of
"Gie%C3%9Fharz" and can not be found in the database. I get an error on the
searchPage result page like "Your search for "GieEUR?harz" has no hits. If I
call the searchPageResult direct in the browser with URL encoded
searchString everything works.
What is my error?
Thanks
-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 23. Oktober 2003 01:19
To: [EMAIL PROTECTED]
Subject: Re: URL encoding for request
Hello Roman,

for the request generator the decoding is okay. It gives the request 
params in their string representation in an XML structure. It knows 
nothing about an URL encoded string. (%C3%9F is URl encoded, not UTF 
encoded!!)

Maybe it's better to tell us your use case. If you transform the output 
of the request generator back into a HTML page with links, the @href 
will be URL encoded again - at least that should be done by the XML 
serializer.

Joerg

On 21.10.2003 14:10, Fleischer Roman wrote:


Hello,

i have some problems with URL encoding. 
I call a matcher in this form:

http://127.0.0.1/cocoon/OCIprod?searchString=Gie%C3%9Fharz&searchMLFB=&searc

h=result...
(%C3%9F is the german "ss")
In the matcher i call a request generator and a xml-serializer.
The result is:
...

	
 		Gießharz 
 	
	
 		result
...

Why is the parameter searchString transformed? How can i aviod the
transforming? I need this param UTF-8 encoded (like in the  calling URL)
Any idea?
Thanks...


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Authentication FW: auth. by java class?

2003-10-23 Thread mathias . wiegard
Hi again,
I tested the authentication fw in cocoon 2.1.2. In the user's manual is said 
that - as the authentication resource - a java class could be used...
Can You directly call a java class in a pipeline (is that what the resource 
protocol is meant for?). How has the class an its returning values to be 
look like?
Thanks in advance,
Mat

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Authentication Framework: manipulating session parameters?

2003-10-23 Thread mathias . wiegard
Sorry that I'm flooding the list with my questions.. :(
Now, the last one for today,.. hopefully ;):
Is there any way to configure the session's parameter in the auth.-fr.? 
Specifically, I want so set the maximum inactive interval...
I'd hate to do this with a xsp-page and java code...
Mat

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



learning flows: question

2003-10-23 Thread Patrick Hess
Hi,

I'm trying to leran :) how flows work at the moment and after playing 
with the examples I get a feeling how the things fit together. Now I 
wanted to test my knownledge own my own project.

I think it's a simple question:

How to get the ${continuation.id} in my XML/XSP? I need it in my woody 
form (which works fine). This is my sitemap (simplified) for 'myflow':

...


Re: Cocoon Forms or not?

2003-10-23 Thread Gianluca Sartori
Okay, thank you all, I think I'll go with the "FormValidatorActions". It
seems to be the most documented. Unfortunally I don't have much time
neither to follow Woody progress nor to try undocumented features.

Of course the choice I've done is for the current project only. I'll
keep following Woody progresses.

If someone have to stop me from this choiche, please do it now before
it's too late :)

Gianluca

Il mer, 2003-10-22 alle 18:00, Gianluca Sartori ha scritto:
> Hi guys, 
> It's only me.
> 
> I'm going ahead with my cocoon journey and I discover what Woody, now
> Cocoon Forms, is. My question is: Did this framework reach a usable
> stage? I'm going to use cocoon for the first time in a real-world
> project. I'd like to know if Woody is for me or if I should turn to
> another Form framework. If this is the case, which one do you suggest to
> me?
> 
> Thanks for any help,
> Gianluca
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Flowscript and releaseComponent()

2003-10-23 Thread Reinhard Poetz

From: Joerg Heinicke
 
> On 22.10.2003 16:39, Reinhard Poetz wrote:
> 
> > Additionally there has also been a prototyp by Christopher 
> that does 
> > all the magic without user defined interceptions but has 
> never reached 
> > CVS (checkout the archives to find out more).
> 
> Wasn't there an agreement about avoiding automagic also for releasing 
> components? Or was it something about that the components are 
> sometimes 
> still needed and should not be released, so it's up to the 
> script writer?

Jörg,

The handling of pooled components was discussed several times. AS we
wanted to ship 2.1 ASAP we decided that it is the responsibility of the
writer to handle components. But if somebody comes up with a working
solution that we don't need to worry about this issue any more I think
nothing speaks against it.

Reinhard


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: learning flows: question

2003-10-23 Thread Reinhard Poetz

From: Patrick Hess

> Hi,
> 
> I'm trying to leran :) how flows work at the moment and after playing 
> with the examples I get a feeling how the things fit together. Now I 
> wanted to test my knownledge own my own project.
> 
> I think it's a simple question:
> 
> How to get the ${continuation.id} in my XML/XSP? I need it in 
> my woody 
> form (which works fine). 

Use the JXTemplateGenerator before the WoodyTransformer.

Reinhard


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: learning flows: question

2003-10-23 Thread Patrick Hess
Reinhard Poetz wrote:

Use the JXTemplateGenerator before the WoodyTransformer.
Thanks! Works fine now!! Cocoon is geat! :-) I really love it...

Patrick



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


how to mount subsitemap based on request parameters?

2003-10-23 Thread Tsui, Alban
Title: how to mount subsitemap based on request parameters?





hi


I am having an url something like:


http://server/cocoon?p1=x&p2=y&p3=z


How do I define a pipeline in my main sitemap to determine which subsite map it should go to depending on the first parameter p1 and then passing all request parameters onto the subsitemap for handling?

For example:


        
            
        


I know the above won't work but I am just trying to demonstratte my requirement.


Any help would be appreciated and I am using cocoon2.0.3.


Cheers
Alban


Join us at Cognos' biggest event of the year Enterprise 2003, The Cognos Business Forum.  Taking place in over 25 cities around the world, it's an opportunity for Business and IT leaders to learn about strategies for driving performance. Visit http://www.cognos.com/enterprise03 for more details. 

This message may contain privileged and/or confidential information.  If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so.  Thank you.




Re: how to mount subsitemap based on request parameters?

2003-10-23 Thread gounis

is this what r u looking for ?

http://wiki.cocoondev.org/Wiki.jsp?page=WildcardRequestParameterMatcher


-- stavros 


On Thu, 23 Oct 2003, Tsui, Alban wrote:

> hi
> 
> I am having an url something like:
> 
> http://server/cocoon?p1=x&p2=y&p3=z
> 
> How do I define a pipeline in my main sitemap to determine which subsite map
> it should go to depending on the first parameter p1 and then passing all
> request parameters onto the subsitemap for handling?
> 
> For example:
> 
>   
>check-reload="yes"/>
>   
> 
> I know the above won't work but I am just trying to demonstratte my
> requirement.
> 
> Any help would be appreciated and I am using cocoon2.0.3.
> 
> Cheers
> Alban
> 
> Join us at Cognos' biggest event of the year Enterprise 2003, The Cognos
> Business Forum.  Taking place in over 25 cities around the world, it's an
> opportunity for Business and IT leaders to learn about strategies for
> driving performance. Visit http://www.cognos.com/enterprise03 for more
> details. 
> 
> This message may contain privileged and/or confidential information.  If you
> have received this e-mail in error or are not the intended recipient, you
> may not use, copy, disseminate or distribute it; do not open any
> attachments, delete it immediately from your system and notify the sender
> promptly by e-mail that you have done so.  Thank you.
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Getting a JNDI datasource from Cocoon

2003-10-23 Thread Mark H
Hi,

I would like Hibernate and Cocoon to use the same connection pooling
mechanism. Is there any way to get a JNDI datasource from Cocoon?

Mark



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Authentication Framework: manipulating session parameters?

2003-10-23 Thread Carsten Ziegeler
Do you mean the session timeout? This has nothing to do with
the authentication fw, it's a parameter of the servlet
that can be set in the web.xml

Carsten

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 23, 2003 10:34 AM
> To: [EMAIL PROTECTED]
> Subject: Authentication Framework: manipulating session parameters?
> 
> 
> Sorry that I'm flooding the list with my questions.. :(
> Now, the last one for today,.. hopefully ;):
> Is there any way to configure the session's parameter in the auth.-fr.? 
> Specifically, I want so set the maximum inactive interval...
> I'd hate to do this with a xsp-page and java code...
> Mat
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Authentication FW: auth. by java class?

2003-10-23 Thread Carsten Ziegeler


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 23, 2003 10:01 AM
> To: [EMAIL PROTECTED]
> Subject: Authentication FW: auth. by java class?
> 
> 
> Hi again,
> I tested the authentication fw in cocoon 2.1.2. In the user's 
> manual is said 
> that - as the authentication resource - a java class could be used...
> Can You directly call a java class in a pipeline (is that what 
> the resource 
> protocol is meant for?). How has the class an its returning values to be 
> look like?

Using a class is an alternative for using a pipeline.
You can define this class in the handler configuration as an attribute
"authenticator" of the "authentication" element, e.g.


This class must conform to the Authenticator interface and provides
a method that tries to authenticate a User and delivers XML that
is stored in the session on success. So, the behaviour is similar
to the pipeline.

Carsten

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



xsp request parameter conundrum

2003-10-23 Thread Frank Daly
Hi

I have an xsp file which queries a database, the results of which are
then displayed on pdf.  

In the xsp file when I hard code the query parameter, i.e. where code
'red23' the results display correctly.  However when I use where code =
 I get either nothing, if the
match pattern is not pdf, or this file does not begin with '%pdf-' if
the match pattern ends with the pdf extension.  

I've checked the xsl:fo being generated in both cases and they are
identical.  Is there something I'm missing.  I've spent a week on this
now and can't work it out.

Any help would be much appreciated.

Frank


---Legal  Disclaimer---

The above electronic mail transmission is confidential and intended only for the 
person to whom it is addressed. Its contents may be protected by legal and/or 
professional privilege. Should it be received by you in error please contact the 
sender at the above quoted email address. Any unauthorised form of reproduction of 
this message is strictly prohibited. The Institute does not guarantee the security of 
any information electronically transmitted and is not liable if the information 
contained in this communication is not a proper and complete record of the message as 
transmitted by the sender nor for any delay in its receipt.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Lookup of generator failed

2003-10-23 Thread Geoff Howard
Ivo Limmen wrote:
I just saw that the constructor is called with each request I make, I 
don't think that is normal behaviour.

Ivo Limmen wrote:

I use Cocoon 2.1.2 on Tomcat 4.1.24. I had build an generator in 
Cocoon 2.0.3 and wanted to update the code to use the 
ServiceableGenerator class.
I added logging to each method of my generator but I see nothing. I 
added System.err outputs and only say that the constructor is called. 
So I at least know that the classes are found and that Cocoon 
instantiated my generator.
But setup() service() and dispose() are not called at all...
Is there no error in the error logs?  Where do you have your System.err 
outputs within the methods?  I'd guess that an exception is thrown in 
constructor or early in setup.  Also the default log levels have changed 
 in 2.1 - if you are logging at getLogger().debug() level you are 
probably not configured in logkit.xconf to output that level.

Geoff

Sitemap.log:

ERROR   (2003-10-23) 08:44.02:601   [sitemap.handled-errors] 
(/cocoon/butterfly/dealDetail.xml) Thread-11/PipelineNode: Lookup of 
generator for role 'dealGen' failed.
org.apache.cocoon.ProcessingException: Lookup of generator for role 
'dealGen' failed.: 
org.apache.avalon.framework.component.ComponentException: generators: 
ComponentSelector could not find the component for hint [dealGen] (key 
[dealGen])
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setGenerator(AbstractProcessingPipeline.java:254) 

at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setGenerator(AbstractCachingProcessingPipeline.java:158) 

at 
org.apache.cocoon.components.treeprocessor.sitemap.GenerateNode.invoke(GenerateNode.java:92) 

Sitemap.xmap:



  


...


  
  

  
  



  


  

Thanks,




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: URL encoding for request

2003-10-23 Thread Fleischer Roman
I think it is a problem for the used "searcheDatabase Servlet". For the
result I use a file-generator, but in reality it is a service like:
http://server1.inside.com?cmd=configurator.SearchProduct&output=xml
&keyword={request-param:searchString}&cmid={request-param:cmid}"/> 

When I use UTF-8 encoding for form-encoding and ISO-8859-1 for
container-encoding "Gießharz" is sending to the servlet. If both are UTF-8
something like "Gie~A#harz" is sent to the servlet. 
I ask the developer of the servlet, what kind of format he needs. He needs
the format "Gie%C3%9Fharz" and a special information in the http-request
header that the encoding is UTF-8. 

Can i send a param with the request header to a generator, or should i use a
HTTP-generator instead?

Thanks
Roman
 

-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 23. Oktober 2003 09:41
To: [EMAIL PROTECTED]
Subject: Re: URL encoding for request


Seems to be more weird than it should be. In your database there is 
"Gießharz" I think and not the URL encoded form of it. Furthermore the 
string is correctly in your pipelines, so everything should work. But 
some representations of this string are not correct, so that they don't 
match. One of them is the search result HTML ("Your search for 
"GieEUR?harz" has no hits."). I guess you have to debug around a bit 
where the string is "Gießharz" and where not. It should always be in 
this representation internally. What about encoding (ISO-8859-1 vs. 
UTF-8)? How does your searchPageResult pipeline look like?

Joerg

On 23.10.2003 09:11, Fleischer Roman wrote:

> Hello Joerg,
> 
> thank you for the quick answer. I will tell my case, resp. show my
problem.
> I use a search form with the input field searchString. The form action is
> OCIprod (a matcher in the cocoon sitemap).
> When i look to the log-files the request is URL encoded
>
(http://127.0.0.1/cocoon/OCIprod?searchString=Gie%C3%9Fharz&searchMLFB=&sear
> c)
>  
> The OCI prod matcher looks like this:
> 
> 
> 
> 
> 
> 
> 
> 
> In the stylesheet product.xsl i use a cinclude to show the search result
> 
select="request:requestParameters/request:[EMAIL PROTECTED]'searchString']/re
> quest:value/text()"/>
> ...
> 
> 
src="cocoon:/searchPageResult?lang={$lang}&searchString={$searchString}"
> />
>  
> 
> Now the param $searchString has the value "Gießharz" instead of
> "Gie%C3%9Fharz" and can not be found in the database. I get an error on
the
> searchPage result page like "Your search for "GieEUR?harz" has no hits. If
I
> call the searchPageResult direct in the browser with URL encoded
> searchString everything works.
> 
> What is my error?
> Thanks
> 
> 
> -Original Message-
> From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
> Sent: Donnerstag, 23. Oktober 2003 01:19
> To: [EMAIL PROTECTED]
> Subject: Re: URL encoding for request
> 
> 
> Hello Roman,
> 
> for the request generator the decoding is okay. It gives the request 
> params in their string representation in an XML structure. It knows 
> nothing about an URL encoded string. (%C3%9F is URl encoded, not UTF 
> encoded!!)
> 
> Maybe it's better to tell us your use case. If you transform the output 
> of the request generator back into a HTML page with links, the @href 
> will be URL encoded again - at least that should be done by the XML 
> serializer.
> 
> Joerg
> 
> On 21.10.2003 14:10, Fleischer Roman wrote:
> 
> 
>>Hello,
>>
>>i have some problems with URL encoding. 
>>I call a matcher in this form:
>>
> 
>
http://127.0.0.1/cocoon/OCIprod?searchString=Gie%C3%9Fharz&searchMLFB=&searc
> 
>>h=result...
>>(%C3%9F is the german "ss")
>>
>>In the matcher i call a request generator and a xml-serializer.
>>The result is:
>>...
>>
>>  
>>  Gießharz 
>>  
>>  
>>  result
>>...
>>
>>Why is the parameter searchString transformed? How can i aviod the
>>transforming? I need this param UTF-8 encoded (like in the  calling URL)
>>
>>Any idea?
>>Thanks...


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: xsp request parameter conundrum

2003-10-23 Thread Luca Morandini
Frank Daly wrote:

In the xsp file when I hard code the query parameter, i.e. where code
'red23' the results display correctly.  However when I use where code =
 I get either nothing, if the
match pattern is not pdf, or this file does not begin with '%pdf-' if
the match pattern ends with the pdf extension.  
silly things first: have you quoted your XSP tag,
like in: where code = '' ?
This may cause errors in the DBMS, which may, in turn, produce incorrect 
PDF.

Regards,

---
Luca Morandini   -   GIS Consultant
[EMAIL PROTECTED]
http://xoomer.virgilio.it/ukmorand/
---


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: xsp request parameter conundrum

2003-10-23 Thread gounis
r u sure that you get tha parameter?

the most common problem i have is that 
 is empty or with wrong content

for 2 reasons
1. encoding problems 
2. parameters that have % symbol for example ?id=10&desc=50%

-- stavros 



On Thu, 23 Oct 2003, Frank Daly wrote:

> Hi
> 
> I have an xsp file which queries a database, the results of which are
> then displayed on pdf.  
> 
> In the xsp file when I hard code the query parameter, i.e. where code
> 'red23' the results display correctly.  However when I use where code =
>  I get either nothing, if the
> match pattern is not pdf, or this file does not begin with '%pdf-' if
> the match pattern ends with the pdf extension.  
> 
> I've checked the xsl:fo being generated in both cases and they are
> identical.  Is there something I'm missing.  I've spent a week on this
> now and can't work it out.
> 
> Any help would be much appreciated.
> 
> Frank
> 
> 
> ---Legal  Disclaimer---
> 
> The above electronic mail transmission is confidential and intended only for the 
> person to whom it is addressed. Its contents may be protected by legal and/or 
> professional privilege. Should it be received by you in error please contact the 
> sender at the above quoted email address. Any unauthorised form of reproduction of 
> this message is strictly prohibited. The Institute does not guarantee the security 
> of any information electronically transmitted and is not liable if the information 
> contained in this communication is not a proper and complete record of the message 
> as transmitted by the sender nor for any delay in its receipt.
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Lookup of generator failed

2003-10-23 Thread Ivo Limmen
I just found of that I casted the ServiceSelector wrong and that it 
resulted in a ClassCastException that is only logged in debug mode 
because it is wrapped into something else.

Geoff Howard wrote:

Ivo Limmen wrote:

I just saw that the constructor is called with each request I make, I 
don't think that is normal behaviour.

Ivo Limmen wrote:

I use Cocoon 2.1.2 on Tomcat 4.1.24. I had build an generator in 
Cocoon 2.0.3 and wanted to update the code to use the 
ServiceableGenerator class.
I added logging to each method of my generator but I see nothing. I 
added System.err outputs and only say that the constructor is called. 
So I at least know that the classes are found and that Cocoon 
instantiated my generator.
But setup() service() and dispose() are not called at all...


Is there no error in the error logs?  Where do you have your System.err 
outputs within the methods?  I'd guess that an exception is thrown in 
constructor or early in setup.  Also the default log levels have changed 
 in 2.1 - if you are logging at getLogger().debug() level you are 
probably not configured in logkit.xconf to output that level.

Geoff

Sitemap.log:

ERROR   (2003-10-23) 08:44.02:601   [sitemap.handled-errors] 
(/cocoon/butterfly/dealDetail.xml) Thread-11/PipelineNode: Lookup of 
generator for role 'dealGen' failed.
org.apache.cocoon.ProcessingException: Lookup of generator for role 
'dealGen' failed.: 
org.apache.avalon.framework.component.ComponentException: generators: 
ComponentSelector could not find the component for hint [dealGen] 
(key [dealGen])
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setGenerator(AbstractProcessingPipeline.java:254) 

at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setGenerator(AbstractCachingProcessingPipeline.java:158) 

at 
org.apache.cocoon.components.treeprocessor.sitemap.GenerateNode.invoke(GenerateNode.java:92) 

Sitemap.xmap:



  


...


  
  

  
  



  


  

Thanks,





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Ivo Limmen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: xsp request parameter conundrum

2003-10-23 Thread Frank Daly
Many thanks for your replies; my transformation now works.

I had put the quotes in the url, e.g. ...?code='red23' and so I didn't
put the quotes into the xsp file.  This worked for querying the database
when generating the xsl:fo. This also worked when using this xsp file as
the transformer in a pipeline which was then serialized into html.  The
only time it didn't work was when the data was to be transformed to pdf.

It now works when I remove the quotes from the url and put them into the
xsp file as Luca suggested.

Once again, many thanks

Frank


---Legal  Disclaimer---

The above electronic mail transmission is confidential and intended only for the 
person to whom it is addressed. Its contents may be protected by legal and/or 
professional privilege. Should it be received by you in error please contact the 
sender at the above quoted email address. Any unauthorised form of reproduction of 
this message is strictly prohibited. The Institute does not guarantee the security of 
any information electronically transmitted and is not liable if the information 
contained in this communication is not a proper and complete record of the message as 
transmitted by the sender nor for any delay in its receipt.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Refering to parts of the URI using a matcher

2003-10-23 Thread Oleg Dulin
Dear Distinguished Colleagues:

I need to do the following:

Given URIs like these:

/foo/bar/baz/bom/bim.xml/some/other/stuff
/foo/bar/blah/boom.xml/some/other/stuff
I need to write a match like this:



and then refer to the parts of the "**" and "*.xml" parts of the match 
using "{1}" and "{2}.xml" respectively.

Is it possible? How?

Regards,
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Refering to parts of the URI using a matcher

2003-10-23 Thread Joerg Heinicke
Oleg Dulin wrote:
Dear Distinguished Colleagues:

I need to do the following:

Given URIs like these:

/foo/bar/baz/bom/bim.xml/some/other/stuff
/foo/bar/blah/boom.xml/some/other/stuff
I need to write a match like this:



and then refer to the parts of the "**" and "*.xml" parts of the match 
using "{1}" and "{2}.xml" respectively.

Is it possible? How?

Regards,
Oleg
What's the problem? It's exactly as you wrote it.

Joerg

--
System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Refering to parts of the URI using a matcher

2003-10-23 Thread Oleg Dulin
Joerg:



and then refer to the parts of the "**" and "*.xml" parts of the match 
using "{1}" and "{2}.xml" respectively.

What's the problem? It's exactly as you wrote it.
The problem is that as long as i have pattern="/foo/**/some/other/stuff" 
the match is triggered. As soon as I change it to 
"/foo/**/*.xml/some/other/stuff" I start getting 404 Not Found

Oleg





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: directorygenerator for a shared drive

2003-10-23 Thread Jorg Heymans
right..it's like this :

Although i explicitly granted full control to my user account for the 
share, and i explicitly setup the tomcat service to logon as my user 
account, and in task manager the service seems to run under my user 
account, windows *still* does not like the permissions set on the share..
When i run tomcat from a dos window all is fine.

damn winblows

jorg

Jorg Heymans wrote:

no prob. It shouldn't be a security problem because i have 
transformers reading from shared drives as well.

I just stepped through the code with a debugger, findings below
From the cocoon source (directorygenerator.java)
if (!directoryFile.isDirectory()) {
   throw new ResourceNotFoundException(directory + " is 
not a directory.");
}
--> exception thrown here, stepping into the isDirectory() call...
   public boolean isDirectory() {
   SecurityManager security = System.getSecurityManager();
   if (security != null) {
   security.checkRead(path);
   }
   return ((fs.getBooleanAttributes(this) & FileSystem.BA_DIRECTORY)
   != 0);
   }

The security manager here is null. The return tail call are all native 
(bleh) so i can't peek there.

any thoughts? Could you bring this up on the dev list maybe?

Regards
Jorg
Joerg Heinicke wrote:

Oh, I seem to have missed an important point: shared drive. I simply 
listed another drive than the Cocoon's one on the same machine. But 
this makes it a bit strange, doesn't it? What's the difference 
between a shared drive and "another" drive from Java's point of view? 
It's the Windows' task to handle the mapping correctly. Maybe there 
is only a "non access" error?

Sorry for any irritations triggered by my nonattention.

Joerg

Jorg Heymans wrote:

Hi Joerg.

Tnx for testing. It still does not work for me (winxp, java 
1.4.1_02, cocoon 2.0.4)

Can anyone else on the list test a quick sitemap snippet :

   
   
   
   
Where Z: is a drive mapping to another windows machine, temp is the 
name of the share (can be anything ofcourse).
For me this is *not* working and i can't for the love of god find 
out why.

Something must be conflicting within cocoon because below java 
snippet works
File directoryFile = new File("z:\\temp");
if (!directoryFile.isDirectory()) {
  System.out.println("not a directory");
}

@Joerg : is there anything else i can do to provide you with more 
information? If not then i setup a debugging environment and step 
through that very block of code. This is just too weird :)

rgds
Jorg
Joerg Heinicke wrote:

Hello Jorg,

sorry I deleted your mail, so I lost the thread, I copied only the 
subject from the archive.

My test with latest Cocoon 2.0 code: It works. Both  and . Not surprising from a code point of view: 
nothing has changed in the handling of the src attribute.

I don't know what you are doing wrong. I can only say: It works for 
me (Win 2k, Sun Java 2 SDK 1.4.2).

Regards,

Joerg





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Refering to parts of the URI using a matcher

2003-10-23 Thread Geoff Howard
Oleg Dulin wrote:
Joerg:



and then refer to the parts of the "**" and "*.xml" parts of the 
match using "{1}" and "{2}.xml" respectively.


What's the problem? It's exactly as you wrote it.


The problem is that as long as i have pattern="/foo/**/some/other/stuff" 
the match is triggered. As soon as I change it to 
"/foo/**/*.xml/some/other/stuff" I start getting 404 Not Found
try "/foo**/*.xml/some/other/stuff"

you probably don't always have something between those slashes.

Geoff

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Getting a JNDI datasource from Cocoon

2003-10-23 Thread Grange, John
Title: RE: Getting a JNDI datasource from Cocoon





in Borland Enterprise Server: http://wiki.cocoondev.org/Wiki.jsp?page=JNDIDatasourceWithBorlandEnterpriseServer5.1


In JBoss : http://wiki.cocoondev.org/Wiki.jsp?page=JNDIDatasourceWithJBoss3.0.6


There is also one for tomcat, but i can't find it for now - let me know if you need it or can't find it yourself



John Grange 
Software Team Leader 


Tel: +44 (0) 1749 834922 
Email: [EMAIL PROTECTED] 



BlueFinger Limited 
Underwood Business Park, Wookey Hole Road, Wells, Somerset, BA5 1AF, UK 
Tel: +44 (0) 1749 834900
Fax: +44 (0) 1749 834902 
Mobile: +44 (0) 7876 038058 
web: www.bluefinger.com   


 


Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG.


*** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.***



> -Original Message-
> From: Mark H [mailto:[EMAIL PROTECTED]]
> Sent: 23 October 2003 11:41
> To: Cocoon Users
> Subject: Getting a JNDI datasource from Cocoon
> 
> 
> Hi,
> 
> I would like Hibernate and Cocoon to use the same connection pooling
> mechanism. Is there any way to get a JNDI datasource from Cocoon?
> 
> Mark
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 





Xalan Extension functions not working in Cocoon

2003-10-23 Thread Oleg Dulin
This was probably discussed before, but I can't find a solution.

I am trying to use extension functions in XSLT as described at 
http://xml.apache.org/xalan-j/extensions.html and I keep getting:

Description: org.apache.cocoon.ProcessingException: Failed to execute 
pipeline.: java.lang.RuntimeException: java.lang.NoSuchMethodException: 
For extension function, could not find method 
java.lang.String.getdate([ExpressionContext,] ).

Any ideas ? I am desperate! I need decent string manipulation in XSLT

Regards,
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: element name value in xsl

2003-10-23 Thread Zamek
Hello All,

McDonald, Bruce wrote:
> The best place to get questions about XSL and generally fool about is
> http://www.zvon.org/   Go and check out the tutorials and tools.  Quite
> honestly XML and XSLT (especially) is quite a learning curve so you will
> need to do some work.


Ok I understand, 
-- 
thx,

Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Refering to parts of the URI using a matcher

2003-10-23 Thread Oleg Dulin
Same problem...

Note that I also have things like:



which come later in the pipeline to ensure proper prioritization.

Oleg

Geoff Howard wrote:

Oleg Dulin wrote:

Joerg:



and then refer to the parts of the "**" and "*.xml" parts of the 
match using "{1}" and "{2}.xml" respectively.



What's the problem? It's exactly as you wrote it.


The problem is that as long as i have 
pattern="/foo/**/some/other/stuff" the match is triggered. As soon as 
I change it to "/foo/**/*.xml/some/other/stuff" I start getting 404 
Not Found


try "/foo**/*.xml/some/other/stuff"

you probably don't always have something between those slashes.

Geoff

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Default value for input modules?

2003-10-23 Thread mathias . wiegard
Hi,
I want to use the "request-param" input module on the sitemap to define a 
parameter's value. My question is: is it possible to "initialize" this 
parameter with an default value? I saw something in the documentation under 
"modules" for xsp but not for the sitemap:
...

...

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Xalan Extension functions not working in Cocoon

2003-10-23 Thread McDonald, Bruce
This should all "work out of the box".  Here is something that I use in babeldoc:

http://www.w3.org/1999/XSL/Transform";   
xmlns:java="http://xml.apache.org/xslt/java";  
xmlns:xalan="http://xml.apache.org/xalan";  
xmlns:my-ext="ext1"  extension-element-prefixes="my-ext">

 
 
 
 
 
 
 


You can then access the variables using:  

Another way to do it is to buy the O'Reilly XSLT Cookbook which has lots of very smart 
and complex tricks for XSLT.  I highly recommend this book.

Bruce.



-Original Message-
From: Oleg Dulin [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 10:32 AM
To: [EMAIL PROTECTED]
Subject: Xalan Extension functions not working in Cocoon


This was probably discussed before, but I can't find a solution.

I am trying to use extension functions in XSLT as described at 
http://xml.apache.org/xalan-j/extensions.html and I keep getting:

Description: org.apache.cocoon.ProcessingException: Failed to execute 
pipeline.: java.lang.RuntimeException: java.lang.NoSuchMethodException: 
For extension function, could not find method 
java.lang.String.getdate([ExpressionContext,] ).

Any ideas ? I am desperate! I need decent string manipulation in XSLT

Regards,
Oleg


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Special Chars in HTML Output

2003-10-23 Thread Brent L Johnson
That does make since that it wouldnt escape the
chars between script tags.  So I checked my sitemap file
and I was indeed serializing to xhtml - so I changed it
to html and I'm still having the same problem.







Pretty straightforward.  I'll dig through the docs related
to the serializer and see what I find.

Here's a portion of the XSL file:


...
  
   1) {
  alert('DOH!');
  }
  }
  ]]>
  
...

Thanks,

- Brent

> Probably you want to look at some details on HTML vs. XML 
> output methods of xslt - 
> http://www.w3.org/TR/xslt#section-HTML-Output-Method . 
> Relevant info there looks something like this: 
> 
> The html output method should not perform escaping for the 
> content of the script and style elements. For example, a 
> literal result element written in the stylesheet as
> 
> if (a < b) foo()
> or
> 
> 
> should be output as
> 
> if (a < b) foo()
> The html output method should not escape < characters 
> occurring in attribute values. 
> 
> 
> So, simple solution would be changing map:serialize from xml 
> or xhtml to html. If it doesn't work for you, then probably 
> you could try some analogy of  cdata-section-elements="script"/> by modifying settings for 
> your map:serialize / map:serializer - I can't give you 
> details for that, try to find it in docs for XMLSerializer.
> 
> 
> > I'll say sorry up front - I'm sure this is a newbie thats been 
> > answered a hundred times on this list.  The search terms 
> are so vague 
> > that I don't get any good results from searching around on the 
> > internet.
> >
> > Pretty simple - I've got Javascript in my XSL file that
> > needs a less-than symbol.  I've got the Javascript wrapped 
> in a CDATA 
> > section.. but thats getting converted to < in the code.
> > 
> > How can I prevent this?
> 
> Probably somebody from advanced cocooners can provide better 
> details / comment / solution for this problem - I also would 
> be very interested in that.
> 
> > Thanks,
> > 
> > - Brent
> 
> Thanks,
> Ru
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Babeldoc 1.2.0-RC2 Release

2003-10-23 Thread McDonald, Bruce
As much as I work with Cocoon (which is a lot), I want to announce that the second 
release candidate for Babeldoc 1.2 has been release.

Babeldoc is intended for those applications which Cocoon is not suitable.  It is 
generally a commandline utility.  It is dynamically modular, both at build time (think 
dynamic blocks) and at runtime - the blocks auto-discover themselves and initialize in 
strict dependancy order.  

Babeldoc is also not strictly XML based although this is where most function is added. 
 Unfortunately it is slower than Cocoon since it does not propagate SAX events, rather 
the entire document.  This is necessary due to the heterogeneous nature of the 
documents it can process.

Check it out:

www.babeldoc.com

Bruce.

PS.  It is licensed under the Apache Public License.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Xalan Extension functions not working in Cocoon

2003-10-23 Thread Oleg Dulin
Thank you so much, kind sir! :-)

This should solve most of my string manipulation problems for the time 
being.

Kind regards,
Oleg
McDonald, Bruce wrote:

This should all "work out of the box".  Here is something that I use in babeldoc:

http://www.w3.org/1999/XSL/Transform";   
xmlns:java="http://xml.apache.org/xslt/java";  
xmlns:xalan="http://xml.apache.org/xalan";  
xmlns:my-ext="ext1"  extension-element-prefixes="my-ext">

 
 
 
 
 
 
 


You can then access the variables using:  

Another way to do it is to buy the O'Reilly XSLT Cookbook which has lots of very smart and complex tricks for XSLT.  I highly recommend this book.

Bruce.



-Original Message-
From: Oleg Dulin [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 10:32 AM
To: [EMAIL PROTECTED]
Subject: Xalan Extension functions not working in Cocoon
This was probably discussed before, but I can't find a solution.

I am trying to use extension functions in XSLT as described at 
http://xml.apache.org/xalan-j/extensions.html and I keep getting:

Description: org.apache.cocoon.ProcessingException: Failed to execute 
pipeline.: java.lang.RuntimeException: java.lang.NoSuchMethodException: 
For extension function, could not find method 
java.lang.String.getdate([ExpressionContext,] ).

Any ideas ? I am desperate! I need decent string manipulation in XSLT

Regards,
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [auth-fw] NPE in Application Manager

2003-10-23 Thread Carsten Ziegeler
I think I have fixed now the bug, so the NPE should not occur
any more.

Please cross check.

Thanks
Carsten

Carsten Ziegeler wrote:
>
> Hi,
>
> I guess you have found a bug :(
> Your assumptions are right, except that the save uri is called
> on logout. Currently you have to do it manually using the
> session transformer.
> But I think having a save on logout is a nice addition.
>
> So, I hope to have time in the next week to look at it,
> but if you want you can of course send a patch.
>
> Carsten
>
> > -Original Message-
> > From: Laurent Trillaud [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, October 22, 2003 9:46 AM
> > To: [EMAIL PROTECTED]
> > Subject: [auth-fw] NPE in Application Manager
> >
> >
> > Hi cocooners
> > I'm trying to add a new application in the portal engine's
> > authentication handler. The goal is to activate a pipeline at login and
> > logout and put data in a separate session context. Here is the sniplet
> > of the sitemap
> > ...
> > 
> > 
> > 
> >
> > > uri="cocoon:raw:/sunrise-authuser"/>
> >
> >  > name="portal">
> > 
> > 
> > ...
> > 
> > 
> > 
> > 
> >  uri="cocoon:raw:/load-MyData"/>
> >  uri="cocoon:raw:/save-MyData"/>
> > 
> >
> > 
> > 
> > 
> > ...
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > ...
> > If I understand the documentation of the authentication framework
> > http://localhost:/docs/developing/webapps/authentication.html
> > the uri load-MyData is trigger at login and I hope save-MyData trigger
> > at logout. When I do a login I got this NPE.
> >
> > -
> > java.lang.NullPointerException
> > at
> > org.apache.cocoon.webapps.authentication.context.AuthenticationContext.c
> > reateParameters(AuthenticationContext.java:771)
> > at
> > org.apache.cocoon.webapps.authentication.context.AuthenticationContext.l
> > oadApplicationXML(AuthenticationContext.java:884)
> > at
> > org.apache.cocoon.webapps.authentication.components.PipelineAuthenticato
> > r.authenticate(PipelineAuthenticator.java:265)
> > at
> > org.apache.cocoon.webapps.authentication.components.DefaultAuthenticatio
> > nManager.login(DefaultAuthenticationManager.java:238)
> > at
> > org.apache.cocoon.webapps.authentication.acting.LoginAction.act(LoginAct
> > ion.java:118)
> > at
> > org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(Ac
> > tTypeNode.java:152)
> > at
> > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
> > invokeNodes(AbstractParentProcessingNode.java:84)
> > at
> > org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.i
> > nvoke(PreparableMatchNode.java:164)
> > at
> > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
> > invokeNodes(AbstractParentProcessingNode.java:108)
> > at
> > org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P
> > ipelineNode.java:163)
> > at
> > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
> > invokeNodes(AbstractParentProcessingNode.java:108)
> > at
> > org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(
> > PipelinesNode.java:161)
> > at
> > org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
> > cessor.java:351)
> > at
> > org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
> > cessor.java:304)
> > at
> > org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(Moun
> > tNode.java:132)
> > at
> > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
> > invokeNodes(AbstractParentProcessingNode.java:84)
> > at
> > org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.i
> > nvoke(PreparableMatchNode.java:164)
> > at
> > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
> > invokeNodes(AbstractParentProcessingNode.java:108)
> > at
> > org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P
> > ipelineNode.java:163)
> > at
> > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
> > invokeNodes(AbstractParentProcessingNode.java:108)
> > at
> > org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(
> > PipelinesNode.java:161)
> > at
> 

Re: Babeldoc 1.2.0-RC2 Release

2003-10-23 Thread Oleg Dulin
How come you didn't use COcoon as a based framework ?

Also, how does it compare with http://www.openadaptor.org/

Oleg

McDonald, Bruce wrote:

As much as I work with Cocoon (which is a lot), I want to announce that the second release candidate for Babeldoc 1.2 has been release.

Babeldoc is intended for those applications which Cocoon is not suitable.  It is generally a commandline utility.  It is dynamically modular, both at build time (think dynamic blocks) and at runtime - the blocks auto-discover themselves and initialize in strict dependancy order.  

Babeldoc is also not strictly XML based although this is where most function is added.  Unfortunately it is slower than Cocoon since it does not propagate SAX events, rather the entire document.  This is necessary due to the heterogeneous nature of the documents it can process.

Check it out:

www.babeldoc.com

Bruce.

PS.  It is licensed under the Apache Public License.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Babeldoc 1.2.0-RC2 Release

2003-10-23 Thread Reinhard Poetz
What are use cases for Babeldoc and when is it the better (only)
solution compared to Cocoon?

Reinhard

> -Original Message-
> From: McDonald, Bruce [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 23, 2003 4:46 PM
> To: [EMAIL PROTECTED]
> Subject: Babeldoc 1.2.0-RC2 Release
> 
> 
> As much as I work with Cocoon (which is a lot), I want to 
> announce that the second release candidate for Babeldoc 1.2 
> has been release.
> 
> Babeldoc is intended for those applications which Cocoon is 
> not suitable.  It is generally a commandline utility.  It is 
> dynamically modular, both at build time (think dynamic 
> blocks) and at runtime - the blocks auto-discover themselves 
> and initialize in strict dependancy order.  
> 
> Babeldoc is also not strictly XML based although this is 
> where most function is added.  Unfortunately it is slower 
> than Cocoon since it does not propagate SAX events, rather 
> the entire document.  This is necessary due to the 
> heterogeneous nature of the documents it can process.
> 
> Check it out:
> 
www.babeldoc.com

Bruce.

PS.  It is licensed under the Apache Public License.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Babeldoc 1.2.0-RC2 Release

2003-10-23 Thread McDonald, Bruce
Please see the response I made to Oleg.

-Original Message-
From: Reinhard Poetz [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 11:03 AM
To: [EMAIL PROTECTED]
Subject: RE: Babeldoc 1.2.0-RC2 Release


What are use cases for Babeldoc and when is it the better (only)
solution compared to Cocoon?

Reinhard

> -Original Message-
> From: McDonald, Bruce [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 23, 2003 4:46 PM
> To: [EMAIL PROTECTED]
> Subject: Babeldoc 1.2.0-RC2 Release
> 
> 
> As much as I work with Cocoon (which is a lot), I want to 
> announce that the second release candidate for Babeldoc 1.2 
> has been release.
> 
> Babeldoc is intended for those applications which Cocoon is 
> not suitable.  It is generally a commandline utility.  It is 
> dynamically modular, both at build time (think dynamic 
> blocks) and at runtime - the blocks auto-discover themselves 
> and initialize in strict dependancy order.  
> 
> Babeldoc is also not strictly XML based although this is 
> where most function is added.  Unfortunately it is slower 
> than Cocoon since it does not propagate SAX events, rather 
> the entire document.  This is necessary due to the 
> heterogeneous nature of the documents it can process.
> 
> Check it out:
> 
www.babeldoc.com

Bruce.

PS.  It is licensed under the Apache Public License.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Babeldoc 1.2.0-RC2 Release

2003-10-23 Thread McDonald, Bruce
Babeldoc is really quit different from Cocoon.

Introduction

Everthing is build around pipelines (which is similar to cocoon) but babeldoc does not 
require any kind of web container (cocoon used to require this).  The configuration of 
babeldoc is also quite interesting.  Here is a small pipeline:


>  PROPERTIES BASED PIPELINE CONFIGURATION <

entryStage=hello

hello.stageType=Scripting
hello.nextStage=attrcheck
hello.language=javascript
hello.script=\
importClass(Packages.java.lang.System);\
java.lang.System.out.println("Running report");\
var yyQn=document.get("yyQn");\
java.lang.System.out.println("yyQn = "+yyQn);

attrcheck.stageType=Scripting
attrcheck.nextStage=query
attrcheck.language=javascript
attrcheck.scriptFile=core/scripts/attrcheck.js
attrcheck.attrs.env_name=The attribute: env_name must be either test or prod
attrcheck.attrs.yyQn=The attribute:  yyQn for the year and quarter must be supplied
#attrcheck.attrs.YYMM=The attribute:  YYMM (Year and month) must be supplied

query.stageType=SqlQuery
query.nextStage=xmlwriter
query.resourceName=seg_tera
query.sql.select1=select count(*) from Y${document.get('yyQn')}.Z
query.sql.select2=select count(*) from Y${document.get('yyQn')}.F
query.sql.select3=select count(*) from Y${document.get('yyQn')}.HH
query.sql.select4=select count(*) from Y${document.get('yyQn')}.U
query.sql.select5=select count(distinct GG) from 
vdwq${document.get('yyQn')}.JJJ where seg_alg_use_cd='C'

#xmlwriter.stageType=FileWriter
xmlwriter.stageType=Null
xmlwriter.nextStage=transform
xmlwriter.outputFile=out.xml

transform.stageType=XslTransform
transform.nextStage=htmlwriter
transform.transformationFile=documents/seg_html.xsl

transform.param.yyQn=${document.get('yyQn')}

htmlwriter.stageType=FileWriter
htmlwriter.nextStage=script
htmlwriter.outputFile=/${document.get("env_name")}/some/out/put/seg_rpt.html

script.stageType=Scripting
script.nextStage=null
script.language=javascript
script.scriptFile=scripts/agefile.js
script.maxAge=3
script.fileName=/${document.get("env_name")}/some/out/put/seg_rpt.html
script.extension=htm

<< END PIPELINE CONFIGURATION >>>

XML Configuration
-
Note this can be done using XML too - I just find it a little tiresome to do the same 
semantic thing in XML which can be long winded and hard to follow for my eyes.

Pipeline Configuration
--
Notice how the pipeline stages are explicitly noted.  Notice again that you do not 
have to declare pipeline stages - there is a concept of a service in Babeldoc which 
abstracts the Java class from the service name.  This service name can be overridden 
in private customization (generally by setting the BABELDOC_USER environment 
variable).  

Modularization
--
A pipeline consists of pipeline stages.  Each stage is of a certain type.  This is 
illustrated above:  FileWriter, XsltTransform, etc, etc.  It is possible to call other 
pipeline stages from pipelines.  This can be used to promote modularity in pipelines.

Configuration
-
All of the configuration is merged so that your customer configuration does not 
override the default (out of the box configuration)  -  you just need to supply the 
"differences" and then babeldoc will merge the configuration.  This makes configuring 
babeldoc a snap.  Think about you never having to mess with the sitemap.conf file - 
you leave the one that comes with Cocoon, and you just supply your customizations.

Journaling
---
This allows babeldoc to store all operations performed on a document and then play 
back those operations so that processing maybe resumed in those cases where it is 
interrupted.  This is necessary for large sites with critical data.

J2ee

Babeldoc is fully j2ee integrated - its major components are implemented as EJBs and 
support remote operation - this allows for some very interesting sitations where the 
processing is split between clients and servers.

Scanning

Babeldoc has a document scanner that is able to detect and retrieve documents from a 
number of places included SMPT, filesystem, FTP, http, soap, etc and then process 
them.  This makes standalone system design quite nice.

And more...

Bruce.


-Original Message-
From: Oleg Dulin [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 10:53 AM
To: [EMAIL PROTECTED]
Subject: Re: Babeldoc 1.2.0-RC2 Release


How come you didn't use COcoon as a based framework ?

Also, how does it compare with http://www.openadaptor.org/

Oleg


McDonald, Bruce wrote:

> As much as I work with Cocoon (which is a lot), I want to announce that the second 
> release candidate for Babeldoc 1.2 has been release.
> 
> Babeldoc is intended for those applications which Cocoon is not suitable.  It is 
> generally a commandline utility.  It is dynamically modular, both at build time 
> (think dynamic blocks) and at runtime - the blocks auto-discover 

Re: Default value for input modules?

2003-10-23 Thread Tony Collen
[EMAIL PROTECTED] wrote:

Hi,
I want to use the "request-param" input module on the sitemap to define a 
parameter's value. My question is: is it possible to "initialize" this 
parameter with an default value? I saw something in the documentation under 
"modules" for xsp but not for the sitemap:
...

...


Mathias,

You might want to check out the DefaultsModule, as well as the 
ChainMetaModule.  They will allow you to setup a default values to "Fall 
back" to in case the main module (in this case request-param) can't get 
a value.

Regards,

Tony

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


cocoon url redirection using action?

2003-10-23 Thread Tsui, Alban
Title: cocoon url redirection using action?





Hi 


I want to do some redirection using
    
            
                
            
        


Assuming the redirect url is generated by my action as above, would it automatically redirect all the queryparameters (POSTed) along to the redirect url?

Or do I need to do something special in the action codes to pass along the posted query parameters?


What I have in mind is that I have a url like:


  cocoon/gateway


and a form is posted to this url and then from my action, it would examine some parameters and then redirect the posted form to another url for further processing by keeping all the request parameters orginally posted to cocoon/gateway.

Any help would be appreciated.


Thanks.
Alban


P.S. I am using cocoon 2.0.3 on tomcat.






Join us at Cognos' biggest event of the year Enterprise 2003, The Cognos Business Forum.  Taking place in over 25 cities around the world, it's an opportunity for Business and IT leaders to learn about strategies for driving performance. Visit http://www.cognos.com/enterprise03 for more details. 

This message may contain privileged and/or confidential information.  If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so.  Thank you.




hello everyone

2003-10-23 Thread John Blumer
Hello,
I have just installed cocoon, and am getting a 404 (server not found) 
in my Safari browser.  I think I'm missing something simple.  I also 
get "command not found." in the terminal when I type 'cocoon servlet.'  
Something has not initialized properly, or-more likely- I didn't do 
something right.
I am using X.2.8 Jaguar.  TIA
...and Greetings
John

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: hello everyone

2003-10-23 Thread McDonald, Bruce
So it looks like your web container is not running...

Try:  ./cocoon.sh servlet



-Original Message-
From: John Blumer [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 11:31 AM
To: [EMAIL PROTECTED]
Subject: hello everyone


Hello,
I have just installed cocoon, and am getting a 404 (server not found) 
in my Safari browser.  I think I'm missing something simple.  I also 
get "command not found." in the terminal when I type 'cocoon servlet.'  
Something has not initialized properly, or-more likely- I didn't do 
something right.
I am using X.2.8 Jaguar.  TIA
...and Greetings
John


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Babeldoc 1.2.0-RC2 Release

2003-10-23 Thread Reinhard Poetz

From: McDonald, Bruce

> Babeldoc is really quit different from Cocoon.

Beside that Babeldoc is different (How pipelines are described?
Non-XML-data, ...) I don't see any difference between Cocoon used via
the command line interface (CLI) and Babeldoc. Or more concrete I don't
know what you can do with Babeldoc that you can't do with Cocoon. (But
maybe 15 minutes reading the Whitepaper is not enough).

Cheers,
Reinhard


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: hello everyone

2003-10-23 Thread John Blumer
I get the same error: ./cocoon.sh: Command not found
On Thursday, Oct 23, 2003, at 10:36 America/Chicago, McDonald, Bruce wrote:

So it looks like your web container is not running...

RE: Babeldoc 1.2.0-RC2 Release

2003-10-23 Thread McDonald, Bruce
Heres are some things:

The big difference is the configuration and the dynamic modularity.  You cannot do the 
same with Cocoon.  In order to use Cocoon from the commandline you need to supply an 
xconf file.  This is handled differently in babeldoc:

1.  The configuration of babeldoc is "merged" - so you just need to "add" those 
functions/configurations - you do not need to supply a wholly new (or derived) 
configuration.  Also it makes configuration incremental and overridable.  You do not 
need to crack open babeldoc to override a configuration option.  Additionally the 
configuration data can be stored in a SQL database and accessed just as from XML or 
properties files.

2.  Journaling - Cocoon just has no way of recreating previous processing state.  
Babeldoc has this built in.  You can replay processing.

3.  Babeldoc also has a number of text/data to XML conversion pipeline stages.  You 
can convert Excel or EDI or CSV or COBOL copy book data to XML and then process it.  
Ideal for heterogeneous sites.

4.  The scanner - great for unattended systems.  Supports CRON-like scheduling.


This is not to say that Babeldoc is "better" than Cocoon - its different from Cocoon.  
Personally I think that they are complementary and I use both daily.  I want to focus 
on XML and document technologies and Cocoon and Babeldoc allow me to do that.

regards,
Bruce.

-Original Message-
From: Reinhard Poetz [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 11:40 AM
To: [EMAIL PROTECTED]
Subject: RE: Babeldoc 1.2.0-RC2 Release



From: McDonald, Bruce

> Babeldoc is really quit different from Cocoon.

Beside that Babeldoc is different (How pipelines are described?
Non-XML-data, ...) I don't see any difference between Cocoon used via
the command line interface (CLI) and Babeldoc. Or more concrete I don't
know what you can do with Babeldoc that you can't do with Cocoon. (But
maybe 15 minutes reading the Whitepaper is not enough).

Cheers,
Reinhard


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: hello everyone

2003-10-23 Thread McDonald, Bruce
Well, what directory are you in?  Please find the cocoon.sh and then execute it.  You 
may need to do a little searching.


-Original Message-
From: John Blumer [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 11:54 AM
To: [EMAIL PROTECTED]
Subject: Re: hello everyone


I get the same error: ./cocoon.sh: Command not found 
On Thursday, Oct 23, 2003, at 10:36 America/Chicago, McDonald, Bruce wrote: 


So it looks like your web container is not running...

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: hello everyone

2003-10-23 Thread John Blumer
/Users/johnblumer/cocoon-2.1.2/cocoon.sh/: Not a directory.
On Thursday, Oct 23, 2003, at 10:57 America/Chicago, McDonald, Bruce wrote:

Well, what directory are you in?

Re: hello everyone

2003-10-23 Thread John Blumer
I should have added that this is the path to cocoon.sh
On Thursday, Oct 23, 2003, at 10:57 America/Chicago, McDonald, Bruce wrote:

Well, what directory are you in?

Re: hello everyone

2003-10-23 Thread Rod Giffin
Try it without the trailing slash.
/Users/johnblumer/cocoon-2.1.2/cocoon.sh

Rod.

John Blumer said:
> /Users/johnblumer/cocoon-2.1.2/cocoon.sh/: Not a directory.
> On Thursday, Oct 23, 2003, at 10:57 America/Chicago, McDonald, Bruce
> wrote:
>
>>
>> Well, what directory are you in?




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: hello everyone

2003-10-23 Thread John Blumer
/User/johnblumer/cocoon-2.1.2/cocoon.sh: No such file or directory
But it is there!  I opened up and looked!

On Thursday, Oct 23, 2003, at 11:19 America/Chicago, Rod Giffin wrote:

Try it without the trailing slash.

RE: hello everyone

2003-10-23 Thread McDonald, Bruce



Make 
sure that files accessed from the script are all there...
 
Look 
at the first line:
 
#!/bin/sh
 
Make 
sure that this file exists.  (ls -la /bin/sh)
 
If 
this is ok.  Edit the file:  #!/bin/sh -x (this adds debugging 
printouts)
 
Bruce.

  -Original Message-From: John Blumer 
  [mailto:[EMAIL PROTECTED]Sent: Thursday, October 23, 2003 12:27 
  PMTo: [EMAIL PROTECTED]Subject: Re: hello 
  everyone
  /User/johnblumer/cocoon-2.1.2/cocoon.sh: No such file or directory 
  But it is there! I opened up and looked! 
  On Thursday, Oct 23, 2003, at 11:19 America/Chicago, Rod Giffin wrote: 
  
  
Try it without the trailing 
slash.


Re: hello everyone

2003-10-23 Thread John Blumer
Maybe the file is corrupt.  How do I do a clean install, please.
On Thursday, Oct 23, 2003, at 11:19 America/Chicago, Rod Giffin wrote:
Try it without the trailing slash.
/Users/johnblumer/cocoon-2.1.2/cocoon.sh
Rod.

John Blumer said:
/Users/johnblumer/cocoon-2.1.2/cocoon.sh/: Not a directory.
On Thursday, Oct 23, 2003, at 10:57 America/Chicago, McDonald, Bruce
wrote:
Well, what directory are you in?




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: hello everyone

2003-10-23 Thread Rod Giffin
John Blumer said:
> /User/johnblumer/cocoon-2.1.2/cocoon.sh: No such file or directory But
> it is there!  I opened up and looked!

I bet it's not executable (a permissions thing).  If you have enough
rights to the directory, you should be able to change the permissions with
chmod +x

(or read man chmod)

Rod.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Woody repeater size / paging

2003-10-23 Thread Philippe JOURNAULT
While using the woody repeater, it seems that I cannot display more than 10
elements in the list.
I suppose this is linked to a default parameter of the repeater, but:
1) I do not know which one and how it can be modified.
2) Is there the capability to view page by page the content of a repeater
(10 first items, then a button for 10 next/previous items ...) ? Can
somebody help by giving good pointers to documentation ?

Regards.

Philippe JOURNAULT


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: hello everyone

2003-10-23 Thread McDonald, Bruce
Yes,

There are numerous possibilities here.  What might help is the following commands:

cd /User/johnblumer/cocoon-2.1.2 ; ls -la

And then post the results.

-Original Message-
From: Rod Giffin [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 12:33 PM
To: [EMAIL PROTECTED]
Subject: Re: hello everyone


John Blumer said:
> /User/johnblumer/cocoon-2.1.2/cocoon.sh: No such file or directory But
> it is there!  I opened up and looked!

I bet it's not executable (a permissions thing).  If you have enough
rights to the directory, you should be able to change the permissions with
chmod +x

(or read man chmod)

Rod.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Cocoon Dev Handbook: FormValidatorAction error...

2003-10-23 Thread Joe Williams
Working on the examples in Lajos and Jeremy's book, I cannot get the new
ticket form to return the results. It just keeps displaying the blank form,
without updating the database. (This has nothing to do with the xsp-formval
logicsheet...I haven't even gotten that far. :-)  )

>From sitemap log:

DEBUG   (2003-10-23) 10:15.18:762   [sitemap.action.validator]
(/cocoon_dev/pondsprings/support/newticket) Thread-12/FormValidatorAction:
All form params validated. An error occurred.

>From core.log:

DEBUG   (2003-10-23) 10:15.18:763   [core.manager]
(/cocoon_dev/pondsprings/support/newticket) Thread-12/sitemap_xmap:
Component generator:serverpages(Parameters.EMPTY_PARAMETERS)

I'm running Cocoon 2.0.3 on Tomcat 4.1.18.

Anybody else solved this particular problem?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: hello everyone

2003-10-23 Thread John L. Webber
What are the permissions on the file?

John Blumer wrote:

/User/johnblumer/cocoon-2.1.2/cocoon.sh: No such file or directory
But it is there! I opened up and looked!
On Thursday, Oct 23, 2003, at 11:19 America/Chicago, Rod Giffin wrote:

Try it without the trailing slash.

--
-
Jentro Technologies GmbH
John L. Webber, Software Development
-
Peter-Henlein-Strasse 28, 85540 Haar/Munich, Germany
Tel. +49 89 462 385 0 mailto:[EMAIL PROTECTED] 
Fax  +49 89 462 385 29http://www.jentro.com
-
NOTICE: The information contained in this e-mail is confidential or may otherwise be legally privileged. It is intended for the named recipient only. If you have received it in error, please notify us immediately by reply or by calling the telephone number above and delete this message and all its attachments without any use or further distribution of its contents. Please note that any unauthorised review, copying, disclosing or otherwise making use of the information is strictly prohibited. Thank you. 
-



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: hello everyone

2003-10-23 Thread John Blumer


cocoon ls -al.rtf
Description: RTF file

On Thursday, Oct 23, 2003, at 11:38 America/Chicago, McDonald, Bruce wrote:

es,

There are numerous possibilities here.-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: hello everyone

2003-10-23 Thread John Blumer
I sent this as an attachment a while ago.  Maybe I shouldn't have sent it that way.  Are attachments cool, if small?

Last login: Thu Oct 23 11:46:18 on ttyp1
Welcome to Darwin!
[jb:~] johnblumer% cd /Users/johnblumer/cocoon-2.1.2
[jb:~/cocoon-2.1.2] johnblumer% ls -al
total 424
drwxrwxr-x  25 johnblum  staff850 Oct 23 11:22 .
drwxrwxr-x  59 johnblum  staff   2006 Oct 23 11:41 ..
-rwxrwxr-x   1 johnblum  staff  12292 Oct 23 11:22 .DS_Store
-rw-rw-r--   1 johnblum  staff   3533 Oct  1 05:07 CREDITS.txt
-rw-rw-r--   1 johnblum  staff 70 Oct  1 05:07 DESKTOP.INI
-rw-rw-r--   1 johnblum  staff   4369 Oct  1 05:07 INSTALL.txt
-rw-rw-r--   1 johnblum  staff   3923 Oct  1 05:07 KEYS
-rw-rw-r--   1 johnblum  staff   2710 Oct  1 05:07 README.txt
-rw-rw-r--   1 johnblum  staff   3224 Oct  1 05:07 blocks.properties
drwxrwxr-x   5 johnblum  staff170 Oct 23 11:19 build
-rw-rw-r--   1 johnblum  staff   2328 Oct  1 05:07 build.bat
-rw-rw-r--   1 johnblum  staff   4243 Oct  1 05:07 build.properties
-rwxrwxr-x   1 johnblum  staff470 Oct  1 05:07 build.sh
-rw-rw-r--   1 johnblum  staff   3815 Oct  1 05:07 build.xml
-rw-rw-r--   1 johnblum  staff   9507 Oct  1 05:07 cli.xconf
-rw-rw-r--   1 johnblum  staff   5983 Oct  1 05:07 cocoon.bat
-rwxrwxr-x   1 johnblum  staff   4449 Oct  1 05:07 cocoon.sh
-rw-rw-r--   1 johnblum  staff   3524 Oct  1 05:07 forrest.properties
-rw-rw-r--   1 johnblum  staff  32359 Oct  1 05:07 gump.xml
drwxrwxr-x  55 johnblum  staff   1870 Oct  1 05:07 legal
drwxrwxr-x   8 johnblum  staff272 Oct 23 11:23 lib
-rw-r--r--   1 johnblum  staff   3224 Oct 23 09:10 local.blocks.properties
drwxrwxr-x  14 johnblum  staff476 Oct 22 17:14 src
-rw-rw-r--   1 johnblum  staff  77935 Oct  1 05:07 status.xml
drwxrwxr-x  10 johnblum  staff340 Oct 23 11:22 tools
[jb:~/cocoon-2.1.2] johnblumer% 
On Thursday, Oct 23, 2003, at 11:38 America/Chicago, McDonald, Bruce wrote:

Yes,

RE: hello everyone

2003-10-23 Thread McDonald, Bruce



How 
did you go looking at why the cocoon.sh script is not running.  Please 
confirm that the commands referenced from the cocoon.sh script are indeed in 
your path.

  -Original Message-From: John Blumer 
  [mailto:[EMAIL PROTECTED]Sent: Thursday, October 23, 2003 1:08 
  PMTo: [EMAIL PROTECTED]Subject: Re: hello 
  everyone
  I sent this as an attachment a while ago. Maybe I shouldn't have sent it 
  that way. Are attachments cool, if small? 
  Last login: Thu Oct 23 11:46:18 on ttyp1 
  Welcome to Darwin! 
  [jb:~] johnblumer% cd /Users/johnblumer/cocoon-2.1.2 
  [jb:~/cocoon-2.1.2] johnblumer% ls -al 
  total 424 
  drwxrwxr-x 25 johnblum staff 850 Oct 23 11:22 . 
  drwxrwxr-x 59 johnblum staff 2006 Oct 23 11:41 .. 
  -rwxrwxr-x 1 johnblum staff 12292 Oct 23 11:22 .DS_Store 
  -rw-rw-r-- 1 johnblum staff 3533 Oct 1 05:07 CREDITS.txt 
  -rw-rw-r-- 1 johnblum staff 70 Oct 1 05:07 DESKTOP.INI 
  -rw-rw-r-- 1 johnblum staff 4369 Oct 1 05:07 INSTALL.txt 
  -rw-rw-r-- 1 johnblum staff 3923 Oct 1 05:07 KEYS 
  -rw-rw-r-- 1 johnblum staff 2710 Oct 1 05:07 README.txt 
  -rw-rw-r-- 1 johnblum staff 3224 Oct 1 05:07 blocks.properties 
  drwxrwxr-x 5 johnblum staff 170 Oct 23 11:19 build 
  -rw-rw-r-- 1 johnblum staff 2328 Oct 1 05:07 build.bat 
  -rw-rw-r-- 1 johnblum staff 4243 Oct 1 05:07 build.properties 
  -rwxrwxr-x 1 johnblum staff 470 Oct 1 05:07 build.sh 
  -rw-rw-r-- 1 johnblum staff 3815 Oct 1 05:07 build.xml 
  -rw-rw-r-- 1 johnblum staff 9507 Oct 1 05:07 cli.xconf 
  -rw-rw-r-- 1 johnblum staff 5983 Oct 1 05:07 cocoon.bat 
  -rwxrwxr-x 1 johnblum staff 4449 Oct 1 05:07 cocoon.sh 
  -rw-rw-r-- 1 johnblum staff 3524 Oct 1 05:07 forrest.properties 
  -rw-rw-r-- 1 johnblum staff 32359 Oct 1 05:07 gump.xml 
  drwxrwxr-x 55 johnblum staff 1870 Oct 1 05:07 legal 
  drwxrwxr-x 8 johnblum staff 272 Oct 23 11:23 lib 
  -rw-r--r-- 1 johnblum staff 3224 Oct 23 09:10 local.blocks.properties 
  
  drwxrwxr-x 14 johnblum staff 476 Oct 22 17:14 src 
  -rw-rw-r-- 1 johnblum staff 77935 Oct 1 05:07 status.xml 
  drwxrwxr-x 10 johnblum staff 340 Oct 23 11:22 tools 
  [jb:~/cocoon-2.1.2] johnblumer% 
  On Thursday, Oct 23, 2003, at 11:38 America/Chicago, McDonald, Bruce 
  wrote: 
  
Yes,


Re: hello everyone

2003-10-23 Thread Rod Giffin
John Blumer said:
> Maybe the file is corrupt.  How do I do a clean install, please.

It's in install.txt, but having just done that yesterday on my XP box (I
do use Cocoon on my Linux systems too) I did

./build clean
to remove the existing build, then
./build [option]
where option is optional and represents whatever build target you want to
use.

I personally usually don't specify a build target.  No point unless you're
deploying to a different box and want everything in a handy war file.

I'm wondering if there's something missing in your classpath or $JAVA_HOME
environmental variables.  That has been a big problem for me on multi-user
systems where the administrator hasn't set $JAVA_HOME globally, or
properly.

Note too that I'm still just learning Cocoon.

Rod.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: hello everyone

2003-10-23 Thread John Blumer
Maybe this is wrong.  What all do I need to show for my path in .sh?

set path = $PATH /users/johnblumer/cocoon-2.1.2/cocoon.sh
On Thursday, Oct 23, 2003, at 12:11 America/Chicago, McDonald, Bruce wrote:

How did you go looking at why the cocoon.sh script is not running.  Please confirm that the commands referenced from the cocoon.sh script are indeed in your path.



Re: hello everyone

2003-10-23 Thread Rod Giffin
John Blumer said:
> Maybe this is wrong.  What all do I need to show for my path in .sh?
>
> set path = $PATH /users/johnblumer/cocoon-2.1.2/cocoon.sh

Paths are case sensitive.  Your listing shows /Users/...etc., not /users/
so your path is going elsewhere.

Rod.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: hello everyone

2003-10-23 Thread Michael McConnell


and you shouldn't have any individual file listed within the path, there should only be directories. (I have been reading this thread, and I am assuming that cocoon.sh is an individual file (like it is on my system) versus a directory).
 
-M>>> [EMAIL PROTECTED] 10/23/2003 12:25:55 PM >>>
John Blumer said:> Maybe this is wrong.  What all do I need to show for my path in .sh?>> set path = $PATH /users/johnblumer/cocoon-2.1.2/cocoon.shPaths are case sensitive.  Your listing shows /Users/...etc., not /users/so your path is going elsewhere.Rod.-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]

Re: hello everyone

2003-10-23 Thread John Blumer
Sorry, my sloppiness -typo.  I checked to make sure though!
On Thursday, Oct 23, 2003, at 12:25 America/Chicago, Rod Giffin wrote:

Paths are case sensitive.  Your listing shows /Users/...etc., not /users/

Re: hello everyone

2003-10-23 Thread John Blumer
Maybe my syntax, whatever, is wrong for the sh directory?

setenv JAVA_HOME /System/Library/Frameworks/JavaVM.framework/Home
#!/bin/sh -x
On Thursday, Oct 23, 2003, at 12:36 America/Chicago, Michael McConnell 
wrote:

versus a directory


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: xsp request parameter conundrum

2003-10-23 Thread Luca Morandini
Frank Daly wrote:

I had put the quotes in the url, e.g. ...?code='red23' and so I didn't
put the quotes into the xsp file.  This worked for querying the database
when generating the xsl:fo. This also worked when using this xsp file as
the transformer in a pipeline which was then serialized into html.  The
only time it didn't work was when the data was to be transformed to pdf.
You know: the devil lies in the details... ;)

---
Luca Morandini   -   GIS Consultant
[EMAIL PROTECTED]
http://xoomer.virgilio.it/ukmorand/
---


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Babeldoc 1.2.0-RC2 Release

2003-10-23 Thread Reinhard Poetz

From: McDonald, Bruce

> Heres are some things:
> 
> The big difference is the configuration and the dynamic 
> modularity.  You cannot do the same with Cocoon.  In order to 
> use Cocoon from the commandline you need to supply an xconf 
> file.  This is handled differently in babeldoc:
> 
> 1.  The configuration of babeldoc is "merged" - so you just 
> need to "add" those functions/configurations - you do not 
> need to supply a wholly new (or derived) configuration.  Also 
> it makes configuration incremental and overridable.  You do 
> not need to crack open babeldoc to override a configuration 
> option.  Additionally the configuration data can be stored in 
> a SQL database and accessed just as from XML or properties files.

Sorry, I don't understand this - I think this needs more work from my
side than looking into some specs and docs.

> 
> 2.  Journaling - Cocoon just has no way of recreating 
> previous processing state.  Babeldoc has this built in.  You 
> can replay processing.

I think the Cocoon control flow could help here

> 
> 3.  Babeldoc also has a number of text/data to XML conversion 
> pipeline stages.  You can convert Excel or EDI or CSV or 
> COBOL copy book data to XML and then process it.  Ideal for 
> heterogeneous sites.

This should work with Cocoon too ...

> 
> 4.  The scanner - great for unattended systems.  Supports 
> CRON-like scheduling.

Cocoon 2.1 has a Cron block

> This is not to say that Babeldoc is "better" than Cocoon - 
> its different from Cocoon.  Personally I think that they are 
> complementary and I use both daily.  I want to focus on XML 
> and document technologies and Cocoon and Babeldoc allow me to do that.

I understand. My comments are also not meant in a way that I want to
prove that Cocoon is better - I simply want to find out whether it is
worth learning to understand how Babeldoc works.

Anyway, thank your very much for your explanations. Maybe it makes the
decision for some people easier.

Cheers,
Reinhard 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Troubles with CLI

2003-10-23 Thread Alex Romayev
Hi,

I'm trying to run a very simple "Hello World" test
(one XML/one XSL) using CLI and getting the following
error:

 Executing -
Main Class: org.apache.cocoon.Main

cocoon 2.1.3-dev
Copyright (c) 1999-2003 Apache Software Foundation.
All rights reserved.



Exception in thread "main"
java.lang.reflect.InvocationTargetExceptionserver.properties
not found, u
sing command line or default properties
Opening database:
C:\home\src\cocoon-2.1\build\webapp\WEB-INF\db\cocoondb
HSQLDB server 1.7.1 is running
Use SHUTDOWN to close normally. Use [Ctrl]+[C] to
abort abruptly

at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:324)
at Loader.invokeMain(Unknown Source)
at Loader.run(Unknown Source)
at Loader.main(Unknown Source)
Caused by: java.lang.NoClassDefFoundError:
javax/servlet/http/HttpSessionBindingListener
at java.lang.ClassLoader.defineClass0(Native
Method)
at
java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at
java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
at
java.net.URLClassLoader.access$100(URLClassLoader.java:54)
at
java.net.URLClassLoader$1.run(URLClassLoader.java:193)
at
java.security.AccessController.doPrivileged(Native
Method)
at
java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.ClassLoader.defineClass0(Native
Method)
at
java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at
java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
at
java.net.URLClassLoader.access$100(URLClassLoader.java:54)
at
java.net.URLClassLoader$1.run(URLClassLoader.java:193)
at
java.security.AccessController.doPrivileged(Native
Method)
at
java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.configure(ExcaliburCompo
nentSelector.java:404)
at
org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:239)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponen
tFactory.java:315)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeCom
ponentHandler.java:141)
at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburCompo
nentManager.java:554)
at
org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.jav
a:539)
at
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
at
org.apache.cocoon.Cocoon.initialize(Cocoon.java:332)
at
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
at
org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:185)
at
org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:132)
at org.apache.cocoon.Main.main(Main.java:349)
... 7 more
Thu Oct 23 15:00:42 EDT 2003 Listening for connections
...

Any idea what I might be doing wrong?

Thanks,
-Alex

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Getting a JNDI datasource from Cocoon

2003-10-23 Thread Martin Holz

"Mark H" <[EMAIL PROTECTED]> writes:
>
> I would like Hibernate and Cocoon to use the same connection pooling
> mechanism. Is there any way to get a JNDI datasource from Cocoon?

Yes. See http://cocoon.apache.org/2.1/developing/datasources.html

--
Martin Holz <[EMAIL PROTECTED]>

Softwareentwicklung / Vernetztes Studium - Chemie
FIZ CHEMIE Berlin
Franklinstrasse 11
D-10587 Berlin 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Flowscript and releaseComponent()

2003-10-23 Thread Joerg Heinicke
On 23.10.2003 12:08, Reinhard Poetz wrote:

Jörg,

The handling of pooled components was discussed several times. AS we
wanted to ship 2.1 ASAP we decided that it is the responsibility of the
writer to handle components. But if somebody comes up with a working
solution that we don't need to worry about this issue any more I think
nothing speaks against it.
Reinhard
Thanks for the info.

Joerg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Example for session output module anyone?

2003-10-23 Thread Christian Haul
Mika Fonsen wrote:
Hi,

As far as I know, output modules work only from
modular database actions (set in the descriptor
files). I asked this few messages back and got
confirmation to this. This would be a great feature,
tough :)
This is incorrect. Output modules are in no way tied to the database 
actions. However, there are few other places that use them.

For example, there is a TestAction that shows how to use both
input and output modules. Another example is the 
SimpleFormInstanceTransformer.

But there is no way to directly use them from your sitemap.
Only through an action or any other avalon component.
	Chris.

--
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Cocoon Forms or not?

2003-10-23 Thread Christian Haul
Gianluca Sartori wrote:
Okay, thank you all, I think I'll go with the "FormValidatorActions". It
seems to be the most documented. Unfortunally I don't have much time
neither to follow Woody progress nor to try undocumented features.
If you really want to use plain HTML forms you should make sure to have 
a look at the forms sample coming with cocoon and in particular the 
SimpleFormTransformer and SimpleFormInstanceTransformer. They should 
ease this alot by (a) automatically filling a form from e.g. request 
parameters (b) include / exclude error tags corresponding to 
FormValidatorAction results and (c) provide a way to separate instance 
data from actual form.

	Chris.

--
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


FW: Babeldoc 1.2.0-RC2 Release

2003-10-23 Thread McDonald, Bruce
Reinhard,

Please feel free to email me or otherwise contact me to talk about this off list if 
you want - I am not sure how interested people are in this.  I really want to get 
babeldoc into Apache as a project.  I understand the first question that I will be 
asked is:  How is Babeldoc different than Cocoon?  Well, it is but its different not 
in that their functions don't overlap (they do) but how the solutions are arrived at.  
Babeldoc is modeled after tools like WebMethods, etc that are exclusively intended for 
EAI and other integration work.  Cocoon, on the other hand grew out of XML / XSL 
transformations using servlets (I have been using Cocoon since pre-1.0 days on Apache 
JServ).  These different origins continue to influence strongly.

regards,
Bruce.


-Original Message-
From: Reinhard Poetz [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 3:02 PM
To: [EMAIL PROTECTED]
Subject: RE: Babeldoc 1.2.0-RC2 Release



From: McDonald, Bruce

> Heres are some things:
> 
> The big difference is the configuration and the dynamic 
> modularity.  You cannot do the same with Cocoon.  In order to 
> use Cocoon from the commandline you need to supply an xconf 
> file.  This is handled differently in babeldoc:
> 
> 1.  The configuration of babeldoc is "merged" - so you just 
> need to "add" those functions/configurations - you do not 
> need to supply a wholly new (or derived) configuration.  Also 
> it makes configuration incremental and overridable.  You do 
> not need to crack open babeldoc to override a configuration 
> option.  Additionally the configuration data can be stored in 
> a SQL database and accessed just as from XML or properties files.

Sorry, I don't understand this - I think this needs more work from my
side than looking into some specs and docs.

> 
> 2.  Journaling - Cocoon just has no way of recreating 
> previous processing state.  Babeldoc has this built in.  You 
> can replay processing.

I think the Cocoon control flow could help here

> 
> 3.  Babeldoc also has a number of text/data to XML conversion 
> pipeline stages.  You can convert Excel or EDI or CSV or 
> COBOL copy book data to XML and then process it.  Ideal for 
> heterogeneous sites.

This should work with Cocoon too ...

> 
> 4.  The scanner - great for unattended systems.  Supports 
> CRON-like scheduling.

Cocoon 2.1 has a Cron block

> This is not to say that Babeldoc is "better" than Cocoon - 
> its different from Cocoon.  Personally I think that they are 
> complementary and I use both daily.  I want to focus on XML 
> and document technologies and Cocoon and Babeldoc allow me to do that.

I understand. My comments are also not meant in a way that I want to
prove that Cocoon is better - I simply want to find out whether it is
worth learning to understand how Babeldoc works.

Anyway, thank your very much for your explanations. Maybe it makes the
decision for some people easier.

Cheers,
Reinhard 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Authentication with JDBC

2003-10-23 Thread Brent L Johnson
I can't quite figure out how (or where) Cocoon runs the SQL
necessary for testing my userid/passwords for the
Authentication Framework.

Does Cocoon make a call out to some specific Java class
that I need to write in the auth-login pipeline or something?

I've read the doc on Authentication, and the docs on updating
your web.xml and cocoon.xconf file to get Cocoon talking with
a database.

I've also examined the portal sample.. but its only authenticating
with an XML file on the filesystem.

Is there a tutorial/doc on doing this through jdbc?  Anyone
have any insight on this that may help me?

Thanks!

- Brent



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Authentication with JDBC

2003-10-23 Thread Jens Maukisch
Hi,

this should help you:
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=105289531706378&w=2

--
* best regards
* Jens Maukisch  
* www: http://www.maukisch.net
* rss0.91: http://www.maukisch.net/rss.php


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Possible to POST using a HTML Generator?

2003-10-23 Thread Joerg Heinicke
Should be possible if an action handles the file upload, stores the file 
on the server, returns the position on the server to the sitemap. The 
HTMLGenerator (yes it's the only possibility of pushing HTML through the 
pipeline) reads it from there and the rest goes on as normally.

Is this correct, Mr. File Upload Geoff? ;-)

Joerg

On 22.10.2003 01:26, Nick Smith wrote:

Hi guys,

I wonder if anyone could help me: (pretty please? ;))

I'm trying to get hold of the results of a POST request made to a remote 
server - does anyone know if this is possible using the HTML generator? 
The reason I need to use this generator (I think) is that the results of 
the request will probably be HTML rather than XML, and I get the 
impression that this is the only generator that will handle regular HTML 
(using JTidy)?

After substantial wanderings through the cocoon folklore, I hear that 
the Web Service Proxy Generator might do want I need, except that: 1) it 
requires well formed XML to come back which I don't have, and 2) it 
requires cocoon version 1.2 at least, and I'm unfortunatly not in a 
position to upgrade yet.

What I'd ideally like to do is pass on any post parameters that cocoon 
gets, and forward them to the remote server before formatting the 
results of the post and passing them back to the user.

Could anyone give me any hint at all as to what direction I should 
research in? Is this even =possible= using cocoon?

Any ideas at all would be very gratefully recieved!

Thanks,
Nick
_
It's fast, it's easy and it's free. Get MSN Messenger today! 
http://www.msn.co.uk/messenger

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Changes finished from Component to Service?

2003-10-23 Thread Joerg Heinicke
Hello Stephan,

this question is a bit to specific for the users list. I guess you get 
more response on the dev list.

The conversion is not finished and will never for Cocoon 2.1. In 2.2 
components will be replaced as much as possible. Please correct me if 
I'm wrong.

Joerg

On 22.10.2003 14:34, Stephan Coboos wrote:

Hello,

because the package "component" from Avalon is deprecated, so the package
"service" should be used instead. After I had looked into some cocoon
sources (and Avalon sources = DataSource, too!), it seems to me that not all
components converted to service yet. I'm right?
Which differences between creating a component and creating a service
exists?
To integrate a new component based on the service package I realized the
following steps. They are correct?
Defining the interface (Extending of "Serviceable" necessary?):

// no extension of Component necessary
public interface MyComponent {
public void myMethod();
}
Creating an implementation of the Component:

public class MyComponentImpl implements MyComponent, Poolable, Loggable {

public void myMethod() {

// Do something here ...
}
}
Thank you.

Regards
Stephan


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: where messages are logged?

2003-10-23 Thread Joerg Heinicke
On 22.10.2003 20:14, Rui Alberto L. Gonçalves wrote:

Me again,
my assumptions where right and everything is working
as supposedI didn't copied the new compiled component to the 
correct location and was using an old version...
You know...it's not my day...:)
Thanks to all...

On Wed, 2003-10-22 at 14:30, Rui Alberto L. Gonçalves wrote:

Hi all,
I'm trying to write my own generator, but I can't
figure out where messages logged with getLogger().debug(msg)
are actually logged!!
It depends on you component declaration, i.e.

>>>  pool-grow="4" pool-max="32" pool-min="8"
>>  src="cava.generators.MyGenerator">
>>  
>>  
>>
, and logkit.xconf. In theory and defalt parameters from Cocoon, it 
should log in sitemap.log. But the default log level is INFO if I 
remember correctly, so it could be that your logging is suppressed.

Joerg

Another question. Having ..
public class MyGenerator
 extends ServiceableGenerator
 implements Parameterizable {


}

Implementing interface
org.apache.avalon.framework.parameters.Parameterizable the method
parametrize(...) is invoked when the component is first initialized,
right?
The method setup( ... ) defined in interface
SitemapModelComponent is invoked each time the component is 
requested?
Some parameters to my component are fixed, but others change
each time the component is requested. Is this the correct way
of doing things?

My sitemap:


 
 

Component initialization is done correctly


   
 
   
...

The setup of the compoenent is never done!
Many thanks to all,

Rui Alberto







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Cut root element in CInclude inclusion ?

2003-10-23 Thread Joerg Heinicke
On 22.10.2003 15:39, Olivier Billard wrote:

Hi all !

The doc and javadoc aren't very clear : is there a way to cut the root 
element of an xml fragment included via the CInclude transformer ? I 
read there is an attribute for surrounding the content by an element, 
but not for cutting the root element.
No, there is not. Sitemap aggregation cuts elements optionally. XInclude 
can prevent any element from being included by using XPointer.

Joerg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Troubles with CLI

2003-10-23 Thread Simon Mieth
On Thu, 23 Oct 2003 12:03:34 -0700 (PDT)
Alex Romayev <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I'm trying to run a very simple "Hello World" test
> (one XML/one XSL) using CLI and getting the following
> error:

flect.Method.invoke(Method.java:324)
> at Loader.invokeMain(Unknown Source)
> at Loader.run(Unknown Source)
> at Loader.main(Unknown Source)
> Caused by: java.lang.NoClassDefFoundError:
> javax/servlet/http/HttpSessionBindingListener
> at java.lang.ClassLoader.defineClass0(Native
> Method)
> at
>

Hi,

maybe you must only copy the "servlet-2.3.jar" from "tools/jetty/lib" to 
"build/webapp/WEB-INF/lib" or it must be in your CLASSPATH.
Some days ago there was a thread to, with problems around CLI 
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=106652170804628&w=2

Hope you will find answers there,

Regards,
Simon

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Possible to POST using a HTML Generator?

2003-10-23 Thread Geoff Howard
Joerg Heinicke wrote:
Should be possible if an action handles the file upload, stores the file 
on the server, returns the position on the server to the sitemap. The 
HTMLGenerator (yes it's the only possibility of pushing HTML through the 
pipeline) reads it from there and the rest goes on as normally.

Is this correct, Mr. File Upload Geoff? ;-)
I don't see anything related to file uploads below.  I thought he just 
wanted to proxy a normal form post.  Am I missing it?

As the HTML generator uses the httpclient package I think it could be 
modified to do this, but I don't know for sure.

Geoff

On 22.10.2003 01:26, Nick Smith wrote:

Hi guys,

I wonder if anyone could help me: (pretty please? ;))

I'm trying to get hold of the results of a POST request made to a 
remote server - does anyone know if this is possible using the HTML 
generator? The reason I need to use this generator (I think) is that 
the results of the request will probably be HTML rather than XML, and 
I get the impression that this is the only generator that will handle 
regular HTML (using JTidy)?

After substantial wanderings through the cocoon folklore, I hear that 
the Web Service Proxy Generator might do want I need, except that: 1) 
it requires well formed XML to come back which I don't have, and 2) it 
requires cocoon version 1.2 at least, and I'm unfortunatly not in a 
position to upgrade yet.

What I'd ideally like to do is pass on any post parameters that cocoon 
gets, and forward them to the remote server before formatting the 
results of the post and passing them back to the user.

Could anyone give me any hint at all as to what direction I should 
research in? Is this even =possible= using cocoon?

Any ideas at all would be very gratefully recieved!




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: where messages are logged?

2003-10-23 Thread Geoff Howard
Joerg Heinicke wrote:

On 22.10.2003 20:14, Rui Alberto L. Gonçalves wrote:

Me again,
my assumptions where right and everything is working
as supposedI didn't copied the new compiled component to the 
correct location and was using an old version...
You know...it's not my day...:)
Thanks to all...

On Wed, 2003-10-22 at 14:30, Rui Alberto L. Gonçalves wrote:

Hi all,
I'm trying to write my own generator, but I can't
figure out where messages logged with getLogger().debug(msg)
are actually logged!!


It depends on you component declaration, i.e.

 >>>  pool-grow="4" pool-max="32" pool-min="8"
 >>  src="cava.generators.MyGenerator">
 >>  
 >>  
 >>
, and logkit.xconf. In theory and defalt parameters from Cocoon, it 
should log in sitemap.log. But the default log level is INFO if I 
remember correctly, so it could be that your logging is suppressed.
I think it's even ERROR in 2.1

Geoff

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Possible to POST using a HTML Generator?

2003-10-23 Thread Joerg Heinicke
On 23.10.2003 23:01, Geoff Howard wrote:

Joerg Heinicke wrote:

Should be possible if an action handles the file upload, stores the 
file on the server, returns the position on the server to the sitemap. 
The HTMLGenerator (yes it's the only possibility of pushing HTML 
through the pipeline) reads it from there and the rest goes on as 
normally.

Is this correct, Mr. File Upload Geoff? ;-)


I don't see anything related to file uploads below.  I thought he just 
wanted to proxy a normal form post.  Am I missing it?
Oh no, I missed "results of a POST request". I combined POST and HTML 
and XML and thought file upload. Sorry for that.

As the HTML generator uses the httpclient package I think it could be 
modified to do this, but I don't know for sure.
HTMLGenerator? Why it should use httpclient? The proxy generators, yes.

We have an example accessing remote server with HTMLGenerator in the 
Cocoon samples (the page switched from Yahoo News to Google SciFi not so 
long ago).

http://www.remoteserver.com"/>

But this will not result in a POST AFAIK, but a GET request, while the 
proxy generators only handle POST.

Joerg

Geoff

On 22.10.2003 01:26, Nick Smith wrote:

Hi guys,

I wonder if anyone could help me: (pretty please? ;))

I'm trying to get hold of the results of a POST request made to a 
remote server - does anyone know if this is possible using the HTML 
generator? The reason I need to use this generator (I think) is that 
the results of the request will probably be HTML rather than XML, and 
I get the impression that this is the only generator that will handle 
regular HTML (using JTidy)?

After substantial wanderings through the cocoon folklore, I hear that 
the Web Service Proxy Generator might do want I need, except that: 1) 
it requires well formed XML to come back which I don't have, and 2) 
it requires cocoon version 1.2 at least, and I'm unfortunatly not in 
a position to upgrade yet.

What I'd ideally like to do is pass on any post parameters that 
cocoon gets, and forward them to the remote server before formatting 
the results of the post and passing them back to the user.

Could anyone give me any hint at all as to what direction I should 
research in? Is this even =possible= using cocoon?

Any ideas at all would be very gratefully recieved!


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Possible to POST using a HTML Generator?

2003-10-23 Thread Tony Collen
Geoff Howard wrote:

Joerg Heinicke wrote:

Should be possible if an action handles the file upload, stores the 
file on the server, returns the position on the server to the sitemap. 
The HTMLGenerator (yes it's the only possibility of pushing HTML 
through the pipeline) reads it from there and the rest goes on as 
normally.

Is this correct, Mr. File Upload Geoff? ;-)


I don't see anything related to file uploads below.  I thought he just 
wanted to proxy a normal form post.  Am I missing it?

As the HTML generator uses the httpclient package I think it could be 
modified to do this, but I don't know for sure.
The WebServiceProxyGenerator and the HttpProxyGenerator both are 
configurable for POST, but they require XML back from the remote 
service.  Perhaps we should think about refactoring a proxy so it 
requires XML or not (ran through tidy).  There's definately some 
similarity between these components.

Regards,

Tony

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Troubles with CLI

2003-10-23 Thread Alex Romayev
Thanks Simon, I've got it working now -- the trick
was: follow instructions ;-)

--- Simon Mieth <[EMAIL PROTECTED]> wrote:
> On Thu, 23 Oct 2003 12:03:34 -0700 (PDT)
> Alex Romayev <[EMAIL PROTECTED]> wrote:
> 
> > Hi,
> > 
> > I'm trying to run a very simple "Hello World" test
> > (one XML/one XSL) using CLI and getting the
> following
> > error:
> 
> flect.Method.invoke(Method.java:324)
> > at Loader.invokeMain(Unknown Source)
> > at Loader.run(Unknown Source)
> > at Loader.main(Unknown Source)
> > Caused by: java.lang.NoClassDefFoundError:
> > javax/servlet/http/HttpSessionBindingListener
> > at
> java.lang.ClassLoader.defineClass0(Native
> > Method)
> > at
> >
> 
> Hi,
> 
> maybe you must only copy the "servlet-2.3.jar" from
> "tools/jetty/lib" to "build/webapp/WEB-INF/lib" or
> it must be in your CLASSPATH.
> Some days ago there was a thread to, with problems
> around CLI
>
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=106652170804628&w=2
> 
> Hope you will find answers there,
> 
> Regards,
> Simon
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Possible to POST using a HTML Generator?

2003-10-23 Thread Tony Collen
Joerg Heinicke wrote:

 > Oh no, I missed "results of a POST request". I combined POST and HTML
and XML and thought file upload. Sorry for that.

As the HTML generator uses the httpclient package I think it could be 
modified to do this, but I don't know for sure.


HTMLGenerator? Why it should use httpclient? The proxy generators, yes.
The WSProxy and the HttpProxy both use commons-httpclient, but I believe 
that "down below", the HTMLGenerator seems to use a Source.  I'm not 
sure how this is handled under the hood of source though, it could just 
be java.net.URL, or something.
We have an example accessing remote server with HTMLGenerator in the 
Cocoon samples (the page switched from Yahoo News to Google SciFi not so 
long ago).

http://www.remoteserver.com"/>

But this will not result in a POST AFAIK, but a GET request, while the 
proxy generators only handle POST.
This is wrong -- they can use either GET or POST, configured via parameter.

Regards,

Tony

Joerg


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Possible to POST using a HTML Generator?

2003-10-23 Thread Joerg Heinicke
On 23.10.2003 23:38, Tony Collen wrote:

We have an example accessing remote server with HTMLGenerator in the 
Cocoon samples (the page switched from Yahoo News to Google SciFi not 
so long ago).

http://www.remoteserver.com"/>

But this will not result in a POST AFAIK, but a GET request, while the 
proxy generators only handle POST.
This is wrong -- they can use either GET or POST, configured via parameter.
Then I did not remember correctly (or it has changed in the meantime). I 
thought there was a "we do not handle GET exception" anywhere.

Joerg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: URL encoding for request

2003-10-23 Thread Joerg Heinicke
On 23.10.2003 13:35, Fleischer Roman wrote:

I think it is a problem for the used "searcheDatabase Servlet". For the
result I use a file-generator, but in reality it is a service like:

src="http://server1.inside.com?cmd=configurator.SearchProduct&output=xml
&keyword={request-param:searchString}&cmid={request-param:cmid}"/> 
This was already mentioned short time ago: In the sitemap the request 
params are available as strings, not in any encoded form. So, you are 
right, the parameters are no longer URL encoded for the servlet request. 
Tony, didn't you have a similar problem? How have you fix it (if)?

When I use UTF-8 encoding for form-encoding and ISO-8859-1 for
container-encoding "Gießharz" is sending to the servlet. If both are UTF-8
something like "Gie~A#harz" is sent to the servlet. 
Container encoding should always be ISO-8859-1, independent on the form 
handling. This is important for reading text files like properties or 
similar.

I ask the developer of the servlet, what kind of format he needs. He needs
the format "Gie%C3%9Fharz" and a special information in the http-request
header that the encoding is UTF-8. 

Can i send a param with the request header to a generator, or should i use a
HTTP-generator instead?
I don't know exactly what's all possible with the proxy generators. 
Maybe Tony can jump in? But maybe having the parameters URL encoded 
already works.

Joerg

-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 23. Oktober 2003 09:41
To: [EMAIL PROTECTED]
Subject: Re: URL encoding for request
Seems to be more weird than it should be. In your database there is 
"Gießharz" I think and not the URL encoded form of it. Furthermore the 
string is correctly in your pipelines, so everything should work. But 
some representations of this string are not correct, so that they don't 
match. One of them is the search result HTML ("Your search for 
"GieEUR?harz" has no hits."). I guess you have to debug around a bit 
where the string is "Gießharz" and where not. It should always be in 
this representation internally. What about encoding (ISO-8859-1 vs. 
UTF-8)? How does your searchPageResult pipeline look like?

Joerg

On 23.10.2003 09:11, Fleischer Roman wrote:


Hello Joerg,

thank you for the quick answer. I will tell my case, resp. show my
problem.

I use a search form with the input field searchString. The form action is
OCIprod (a matcher in the cocoon sitemap).
When i look to the log-files the request is URL encoded
(http://127.0.0.1/cocoon/OCIprod?searchString=Gie%C3%9Fharz&searchMLFB=&sear

c)

The OCI prod matcher looks like this:







In the stylesheet product.xsl i use a cinclude to show the search result

select="request:requestParameters/request:[EMAIL PROTECTED]'searchString']/re

quest:value/text()"/>
...


src="cocoon:/searchPageResult?lang={$lang}&searchString={$searchString}"

/>
 

Now the param $searchString has the value "Gießharz" instead of
"Gie%C3%9Fharz" and can not be found in the database. I get an error on
the

searchPage result page like "Your search for "GieEUR?harz" has no hits. If
I

call the searchPageResult direct in the browser with URL encoded
searchString everything works.
What is my error?
Thanks
-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 23. Oktober 2003 01:19
To: [EMAIL PROTECTED]
Subject: Re: URL encoding for request
Hello Roman,

for the request generator the decoding is okay. It gives the request 
params in their string representation in an XML structure. It knows 
nothing about an URL encoded string. (%C3%9F is URl encoded, not UTF 
encoded!!)

Maybe it's better to tell us your use case. If you transform the output 
of the request generator back into a HTML page with links, the @href 
will be URL encoded again - at least that should be done by the XML 
serializer.

Joerg

On 21.10.2003 14:10, Fleischer Roman wrote:



Hello,

i have some problems with URL encoding. 
I call a matcher in this form:



http://127.0.0.1/cocoon/OCIprod?searchString=Gie%C3%9Fharz&searchMLFB=&searc

h=result...
(%C3%9F is the german "ss")
In the matcher i call a request generator and a xml-serializer.
The result is:
...

	
		Gießharz 
	
	
		result
...

Why is the parameter searchString transformed? How can i aviod the
transforming? I need this param UTF-8 encoded (like in the  calling URL)
Any idea?
Thanks...


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: URL encoding for request

2003-10-23 Thread Conal Tuohy
I believe the RawRequestParameterModule input module may be the answer here.
This will provide access to the original (URLEncoded) parameter. Otherwise
it's like the RequestParameterModule.

Cheers

Con

> -Original Message-
> From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
> Sent: Friday, 24 October 2003 10:55
> To: [EMAIL PROTECTED]
> Subject: Re: URL encoding for request
>
>
> On 23.10.2003 13:35, Fleischer Roman wrote:
>
> > I think it is a problem for the used "searcheDatabase
> Servlet". For the
> > result I use a file-generator, but in reality it is a service like:
> >  >
> src="http://server1.inside.com?cmd=configurator.SearchProduct&;
> amp;output=xml
> >
> &keyword={request-param:searchString}&cmid={request-pa
> ram:cmid}"/>
>
> This was already mentioned short time ago: In the sitemap the request
> params are available as strings, not in any encoded form. So, you are
> right, the parameters are no longer URL encoded for the
> servlet request.
> Tony, didn't you have a similar problem? How have you fix it (if)?
>
> > When I use UTF-8 encoding for form-encoding and ISO-8859-1 for
> > container-encoding "Gießharz" is sending to the servlet. If
> both are UTF-8
> > something like "Gie~A#harz" is sent to the servlet.
>
> Container encoding should always be ISO-8859-1, independent
> on the form
> handling. This is important for reading text files like properties or
> similar.
>
> > I ask the developer of the servlet, what kind of format he
> needs. He needs
> > the format "Gie%C3%9Fharz" and a special information in the
> http-request
> > header that the encoding is UTF-8.
> >
> > Can i send a param with the request header to a generator,
> or should i use a
> > HTTP-generator instead?
>
> I don't know exactly what's all possible with the proxy generators.
> Maybe Tony can jump in? But maybe having the parameters URL encoded
> already works.
>
> Joerg
>
> > -Original Message-
> > From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
> > Sent: Donnerstag, 23. Oktober 2003 09:41
> > To: [EMAIL PROTECTED]
> > Subject: Re: URL encoding for request
> >
> >
> > Seems to be more weird than it should be. In your database there is
> > "Gießharz" I think and not the URL encoded form of it.
> Furthermore the
> > string is correctly in your pipelines, so everything should
> work. But
> > some representations of this string are not correct, so
> that they don't
> > match. One of them is the search result HTML ("Your search for
> > "GieEUR?harz" has no hits."). I guess you have to debug
> around a bit
> > where the string is "Gießharz" and where not. It should
> always be in
> > this representation internally. What about encoding (ISO-8859-1 vs.
> > UTF-8)? How does your searchPageResult pipeline look like?
> >
> > Joerg
> >
> > On 23.10.2003 09:11, Fleischer Roman wrote:
> >
> >
> >>Hello Joerg,
> >>
> >>thank you for the quick answer. I will tell my case, resp. show my
> >
> > problem.
> >
> >>I use a search form with the input field searchString. The
> form action is
> >>OCIprod (a matcher in the cocoon sitemap).
> >>When i look to the log-files the request is URL encoded
> >>
> >
> >
> (http://127.0.0.1/cocoon/OCIprod?searchString=Gie%C3%9Fharz&se
archMLFB=&sear
> >
> >>c)
> >>
> >>The OCI prod matcher looks like this:
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>In the stylesheet product.xsl i use a cinclude to show the
> search result
> >> >>
> >
> >
> select="request:requestParameters/request:[EMAIL PROTECTED]'sea
> rchString']/re
> >
> >>quest:value/text()"/>
> >>...
> >>
> >> >>
> >
> >
> src="cocoon:/searchPageResult?lang={$lang}&searchString={$
searchString}"
> >
> >>/>
> >>
> >>
> >>Now the param $searchString has the value "Gießharz" instead of
> >>"Gie%C3%9Fharz" and can not be found in the database. I get
> an error on
> >
> > the
> >
> >>searchPage result page like "Your search for "GieEUR?harz"
> has no hits. If
> >
> > I
> >
> >>call the searchPageResult direct in the browser with URL encoded
> >>searchString everything works.
> >>
> >>What is my error?
> >>Thanks
> >>
> >>
> >>-Original Message-
> >>From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
> >>Sent: Donnerstag, 23. Oktober 2003 01:19
> >>To: [EMAIL PROTECTED]
> >>Subject: Re: URL encoding for request
> >>
> >>
> >>Hello Roman,
> >>
> >>for the request generator the decoding is okay. It gives
> the request
> >>params in their string representation in an XML structure. It knows
> >>nothing about an URL encoded string. (%C3%9F is URl
> encoded, not UTF
> >>encoded!!)
> >>
> >>Maybe it's better to tell us your use case. If you
> transform the output
> >>of the request generator back into a HTML page with links,
> the @href
> >>will be URL encoded again - at least that should be done by the XML
> >>serializer.
> >>
> >>Joerg
> >>
> >>On 21.10.2003 14:10, Fleischer Roman wrote:
> >>
> >>
> >>
> >>>Hello,
> >>>
> >>>i have some problems with URL encoding.
> >>>I call a matcher in this form:
> >>>
> >>
> >>
> >
> http://127.0.0.1

Re: Special Chars in HTML Output

2003-10-23 Thread Joerg Heinicke
Hello Brent,

it works for me by default.


  function test() {
if (1 < 2) {}
  }

in the stylesheet is converted to (1 < 2) in the HTML output when using 
the HTML serializer. This is with Cocoon 2.1 and Xalan 2.5.1. I have 
neither configured something special in xsl:output nor the serializer 
declaration.

Joerg

On 23.10.2003 16:43, Brent L Johnson wrote:

That does make since that it wouldnt escape the
chars between script tags.  So I checked my sitemap file
and I was indeed serializing to xhtml - so I changed it
to html and I'm still having the same problem.





Pretty straightforward.  I'll dig through the docs related
to the serializer and see what I find.
Here's a portion of the XSL file:


...
  
   1) {
  alert('DOH!');
  }
  }
  ]]>
  
...
Thanks,

- Brent


Probably you want to look at some details on HTML vs. XML 
output methods of xslt - 
http://www.w3.org/TR/xslt#section-HTML-Output-Method . 
Relevant info there looks something like this: 

The html output method should not perform escaping for the 
content of the script and style elements. For example, a 
literal result element written in the stylesheet as

if (a < b) foo()
or

should be output as
if (a < b) foo()
The html output method should not escape < characters 
occurring in attribute values. 


So, simple solution would be changing map:serialize from xml 
or xhtml to html. If it doesn't work for you, then probably 
you could try some analogy of  by modifying settings for 
your map:serialize / map:serializer - I can't give you 
details for that, try to find it in docs for XMLSerializer.



I'll say sorry up front - I'm sure this is a newbie thats been 
answered a hundred times on this list.  The search terms 
are so vague 

that I don't get any good results from searching around on the 
internet.

Pretty simple - I've got Javascript in my XSL file that
needs a less-than symbol.  I've got the Javascript wrapped 
in a CDATA 

section.. but thats getting converted to < in the code.

How can I prevent this?
Probably somebody from advanced cocooners can provide better 
details / comment / solution for this problem - I also would 
be very interested in that.


Thanks,

- Brent
Thanks,
Ru


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Special Chars in HTML Output

2003-10-23 Thread Horsfield, Peter A.
I think you missed the problem Joerg.

No one wants to code 

if(1 < 2)

Brent wants his scripts untouched.

Solution: external scripts.

All the best,

Peter

-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 6:13 PM
To: [EMAIL PROTECTED]
Subject: Re: Special Chars in HTML Output


Hello Brent,

it works for me by default.


   function test() {
 if (1 < 2) {}
   }


in the stylesheet is converted to (1 < 2) in the HTML output when using 
the HTML serializer. This is with Cocoon 2.1 and Xalan 2.5.1. I have 
neither configured something special in xsl:output nor the serializer 
declaration.

Joerg

On 23.10.2003 16:43, Brent L Johnson wrote:

> That does make since that it wouldnt escape the
> chars between script tags.  So I checked my sitemap file
> and I was indeed serializing to xhtml - so I changed it
> to html and I'm still having the same problem.
> 
> 
> 
>  type="xslt"/>
> 
> 
> 
> Pretty straightforward.  I'll dig through the docs related
> to the serializer and see what I find.
> 
> Here's a portion of the XSL file:
> 
> 
> ...
>   
>      function checkAgree() {
>   if (2 > 1) {
>   alert('DOH!');
>   }
>   }
>   ]]>
>   
> ...
> 
> Thanks,
> 
> - Brent
> 
> 
>>Probably you want to look at some details on HTML vs. XML 
>>output methods of xslt - 
>>http://www.w3.org/TR/xslt#section-HTML-Output-Method . 
>>Relevant info there looks something like this: 
>>
>>The html output method should not perform escaping for the 
>>content of the script and style elements. For example, a 
>>literal result element written in the stylesheet as
>>
>>if (a < b) foo()
>>or
>>
>>
>>should be output as
>>
>>if (a < b) foo()
>>The html output method should not escape < characters 
>>occurring in attribute values. 
>>
>>
>>So, simple solution would be changing map:serialize from xml 
>>or xhtml to html. If it doesn't work for you, then probably 
>>you could try some analogy of >cdata-section-elements="script"/> by modifying settings for 
>>your map:serialize / map:serializer - I can't give you 
>>details for that, try to find it in docs for XMLSerializer.
>>
>>
>>
>>>I'll say sorry up front - I'm sure this is a newbie thats been 
>>>answered a hundred times on this list.  The search terms 
>>
>>are so vague 
>>
>>>that I don't get any good results from searching around on the 
>>>internet.
>>>
>>>Pretty simple - I've got Javascript in my XSL file that
>>>needs a less-than symbol.  I've got the Javascript wrapped 
>>
>>in a CDATA 
>>
>>>section.. but thats getting converted to < in the code.
>>>
>>>How can I prevent this?
>>
>>Probably somebody from advanced cocooners can provide better 
>>details / comment / solution for this problem - I also would 
>>be very interested in that.
>>
>>
>>>Thanks,
>>>
>>>- Brent
>>
>>Thanks,
>>Ru


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   >