Cocoon and Sun Java System Application Server 8.2 PE

2006-05-24 Thread Victoria Vitaver

Hi,

We currently have cocoon 2.1.9 happily running on jboss, however we are
upgrading our servers and need to move it to a nice new Sun Java System
Application Server. Unfortunately we have hit a wall as the xalan and xerces
libraries in cocoon conflict with the newer versions of xalan and xerces
libraries are shipped by default with Java System App Server.
We really do not want to remove them from the Sun server because we will
have other apps running there which will need those.

What I have tried to do is replace cocoon's versions of the libraries with
the new ones. I have had to 'exclude' a few blocks, but have got it to a
stage that it compiles. However, we still cant get it on the server.

Is there any way of upgrading these libraries without cocoon breaking, or is
there any other method to let these old libraries 'play nice' with the new
default sun libraries  (and not force all the other apps in the server to
use the old cocoon libraries)? Has any one succeeded on getting cocoon to
run on sun server?

Thanks.

Vica


--
Disclaimer: This email is confidential and may contain privileged information 
for the sole use of the person or business to which it is addressed. If you are 
not the intended recipient, please notify the sender by return e-mail or phone 
as you must not view, disseminate, distribute or copy this email without our 
consent. We do not accept any liability in connection with any computer virus, 
data corruption, incompleteness, or unauthorised amendment of this email. It is 
the sole responsibility of the receiver to scan for viruses before opening.

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



RE: Accessing Global Variables As External File

2006-05-24 Thread Andrew Stevens

From: "Stewart, Gary" <[EMAIL PROTECTED]>
Date: Wed, 24 May 2006 16:57:42 +0100

Hi there,

I was wondering if it was possible to access the global-variables component 
configuration as an external file? Basically there are some values in there 
that change depending on which server I was using so I figured I could 
separate that into a static XML file and not include that file in version 
control so I could customise it depending on the server.


Is there a way to do this or should I use something other than 
global-variables to access these values in the sitemaps.


The way we do it is by defining an external entity in the internal DTD i.e.



]>
http://apache.org/cocoon/sitemap/1.0";>
...
 
   
 
   &environment;
 
   
...

where environment.ent is of the form

myfoo
dev_bar_database

Possibly I should have included the global-variables tags in there too, but 
I figured I might want to specify some other variables directly in the 
sitemap.


The only drawback we've found with this approach is that, unlike when the 
sitemap changes, we have to restart the application for it to see any 
changes in the environment.ent file.


In the same way, I externalised the database configuration from 
cocoon.xconf, since that was the only part which differed between our 
development/testing/production environments.



Andrew.



Thanks,

Gary




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



RE: Authentication-fw: two quick questions

2006-05-24 Thread Andrew Stevens

From: footh <[EMAIL PROTECTED]>
Date: Wed, 24 May 2006 09:24:51 -0700 (PDT)

Thanks for the reply.

I was hoping for something a little bit simpler than
creating or modifying a transformer, like something
that was configurable in the sitemap.  I'll take a
look at those options though.


Another option I've thought of - according to 
http://cocoon.apache.org/2.1/developing/webapps/authentication/pipeline_patterns.html
"The auth-protect action returns - if the user is logged in for the given 
handler - all values from the context to the sitemap, e.g. ID, role etc. 
These values can be used within the other components"
So you should then be able to use the ParameterSelector to choose a 
different pipeline for admin users with (I think)


...

 
   
   
 
   
   
 
 

...


Andrew.



Every page flows through a single javaflow so I could
check for the Admin role there and control access to
pages in the admin section.  However, that would
require me to hardcode the admin directory in code
which I would hate to do.

I do pass a variable to the pages if the user is an
adminstrator so based on your suggestion, I might be
able to do something with that.  I'll give it a try.

--- Andrew Stevens <[EMAIL PROTECTED]> wrote:

> >From: footh <[EMAIL PROTECTED]>
> >Date: Tue, 23 May 2006 10:22:59 -0700 (PDT)
> >
> >I've newly implemented cocoon's auth-fw and have a
> >couple of questions.
>
> Unfortunately, I've not used the auth framework
> much, so I can't help with
> the first one.
>
> >The second question has to do with roles.  I have a
> >protected area which has an admin section that only
> >users with the "admin" role can access.  Are there
> any
> >creative solutions for getting this to work with
> just
> >one auth handler?  I'd like for the user to only
> have
> >to login once (ie, not use a separate "admin
> >handler").
>
> RoleFilterTransformer, maybe?
> It'd be a bit tricky integrating that with the
> auth-fw, though, as it uses
> the request's isUserInRole method rather than the
> authentication context the
> auth-fw provides.  You could always create a servlet
> filter that extracts
> the auth information from the session and overrides
> isUserInRole in a
> request wrapper.  Or just use the
> RoleFilterTransformer as the basis for a
> similar transformer that uses the role information
> from the context instead
> of isUserInRole.
>
> Alternatively, you can use the session transformer
> to extract any role
> information from the authentication context, then
> use it in an XSL template
> to filter out other elements if the required role
> isn't in it.  See "Getting
> information from the context" in
>
http://cocoon.apache.org/2.1/developing/webapps/authentication/user_management.html
>
> Hope this helps,
>
>
> Andrew.




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



Re: AW: AW: Cforms dates and data destinations

2006-05-24 Thread Peter Flynn

Jason Johnston wrote:
[me]
Umm. There's already a head element in the template, which is the 
sample one from the Cocoon documentation


Are your HTML elements by chance in the http://www.w3.org/1999/xhtml 
namespace, or another namespace?  The CForms XSLT only matches elements 
in the null namespace.  I've been tripped up by that before.


Yes, it was my own stupidity :-)
I had added a DocType Declaration to the top of the file for a modified 
copy of the XHTML DTD to help me learn the structure and be able to edit 
the file properly in Emacs/psgml, and of course the moment I commented 
it out, the problem disappeared. Grrr :-)


Thanks for all your suggestions. Now I just need to figure out how to 
write the validated form data to disk...


///Peter

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



Re: Accessing Global Variables As External File

2006-05-24 Thread Ralph Goers
The latest version of Cocoon lets you use property files. You can define 
your global variables but make their values be ${varname}.  Then define 
the variable in your property file and Cocoon will substitute it.


Ralph

Stewart, Gary wrote:


Hi there,

I was wondering if it was possible to access the global-variables component 
configuration as an external file? Basically there are some values in there 
that change depending on which server I was using so I figured I could separate 
that into a static XML file and not include that file in version control so I 
could customise it depending on the server.

Is there a way to do this or should I use something other than global-variables 
to access these values in the sitemaps.

Thanks,

Gary

*
The information contained in this message may be confidential or 
legally privileged and is intended for the addressee only. If you 
have received this message in error or there are any problems 
please notify the originator immediately. The unauthorised use, 
disclosure, copying or alteration of this message is 
strictly forbidden.

*


-
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]



question

2006-05-24 Thread Ayzenberg, Nina N
Hi,

We have a problem with the application when we try to create a dynamic report 
in Excel format.  The same application is running on four servers.  Servers 1 
and 3 are on one computer  and the servers 2 and 4 are on another computer.  
The problem happens only on servers 1 and 3 and it began occurring about a 
month ago.  Before that everything was fine and we did not implement any 
changes to the application since January.

Below is the text of an error.  The strange thing that the error occurs only 
when we try to generate large excel file (700 rows, 20 columns).  When we 
generate smaller reports (100 rows, 10 columns) everything works fine. When we 
try to generate about 150 rows report, sometimes program works and sometimes it 
does not.  So it looks like the problem is related to the size of the excel 
files.

The first thing we did is to compare path and classpath on both computers.  
They are the same.  This is the java application (jdk 1.4.2) running under 
weblogic 8.1 server.  Weblogic configurations are the same on both machines.

From the error text below looks like the program cannot find the 
org.apache.log.Logger class.  If this is the case, then how can this program 
work fine on small excel files?  Does it use the Logger class only to generate 
the large files?  Could you suggest anything on how to debug this error?  For 
now we stopped servers 1 and 3 because the help desk gets too many customer 
calls and we need to fix the error asap.

Any help and ideas will be greatly appreciated.

Thank you,
Nina Ayzenberg



javax.xml.transform.TransformerException: 
org.apache.cocoon.components.elementprocessor.CannotCreateElementProcessorException:
 Could not create ElementProcessor for element Content (exception 
(java.lang.ClassNotFoundException: org.apache.log.Logger) occured while 
creating new instance of ElementProcessor)
at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:725)
at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)
at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)
at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:185)
at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)
at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:210)
at 
org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:441)
at org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:300)
at 
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:425)
at 
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:216)
at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)
at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:185)
at 
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:425)
at 
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:216)
at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)
at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)
at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)
at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)
at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
at 
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:425)
at 
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:216)
at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)
at 
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2160)
at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1213)
at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:668)
at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1129)
at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1107)
at 
com.questdiagnostics.applications.resultview.servlet.QueryServlet.service(QueryServlet.java:278)
   

Re: inserting result of one pipeline into another

2006-05-24 Thread Brian Hawkins
I found my problem.  The output of the main.xsl was set to "html" and 
that hosed the xinclude transformer.  When I change it to xml it worked 
fine.


Brian Hawkins wrote:

Here is my pipeline


  




I've added the xi:include tag in the main.xsl file.  The problem is 
that it does not work.


It does work however if I move the xi:include into the main.xsp and 
put the xinclude transform after the generate.  Why does it not work 
after the XSL transform?


Brian

Andre Juffer wrote:

Brian Hawkins wrote:
I have one pipeline that generates a page that has a div tag in it.  
I would like to pass this pipeline a parameter that will be the name 
of another pipeline that it can run, get the result, and then place 
the results into that div tag.


How does one do this?


How about using xinclude and jx like:

  

  

The value of pipeline could be set with flow. The first pipeline 
should rely on the XIncludeTransformer.




Thanks
Brian

-
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]
begin:vcard
fn:Brian Hawkins
n:Hawkins;Brian
org:;Development
adr:suite A122;;34 E 1700 S;Provo;UT;84606;USA
email;internet:[EMAIL PROTECTED]
title:Software Engineer
tel;work:801-705-9306
x-mozilla-html:TRUE
url:http://www.lingotek.com
version:2.1
end:vcard


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

Error in connections with jdbc connection pool

2006-05-24 Thread Anna Bikkina

Hi,

I am using jdbc collection pool in cocoon.xconf to connect to my 
database from my cocoon portal server. Sometimes the dba does some 
audits and kills some connections in the database. In the application 
when I am trying to connect I want to make sure that the connection is 
alive before using it . I am currently getting a broken pipe and  Socked 
not found exception whenever there is a broken connection. Any help is 
greatly appreciated. Here are the tags I am using.




false

jdbc:informix-sqli://xxx:1532/xxxdb:INFORMIXSERVER=xx1db   
informix

informix
com.informix.jdbc.IfxDriver
   

I am using esql to connect to the database.. here is how I am using them.
esql:connection>
 db1
 
 SET LOCK MODE TO WAIT ;
 
 
 SET ISOLATION TO DIRTY READ;
 
   
 {call 
xxx_proc()}

   
...

Thanks,
Anna.

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



Re: inserting result of one pipeline into another

2006-05-24 Thread Brian Hawkins

Here is my pipeline


  




I've added the xi:include tag in the main.xsl file.  The problem is that 
it does not work.


It does work however if I move the xi:include into the main.xsp and put 
the xinclude transform after the generate.  Why does it not work after 
the XSL transform?


Brian

Andre Juffer wrote:

Brian Hawkins wrote:
I have one pipeline that generates a page that has a div tag in it.  
I would like to pass this pipeline a parameter that will be the name 
of another pipeline that it can run, get the result, and then place 
the results into that div tag.


How does one do this?


How about using xinclude and jx like:

  

  

The value of pipeline could be set with flow. The first pipeline 
should rely on the XIncludeTransformer.




Thanks
Brian

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



begin:vcard
fn:Brian Hawkins
n:Hawkins;Brian
org:;Development
adr:suite A122;;34 E 1700 S;Provo;UT;84606;USA
email;internet:[EMAIL PROTECTED]
title:Software Engineer
tel;work:801-705-9306
x-mozilla-html:TRUE
url:http://www.lingotek.com
version:2.1
end:vcard


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

RE: Authentication-fw: two quick questions

2006-05-24 Thread footh
Thanks for the reply.

I was hoping for something a little bit simpler than
creating or modifying a transformer, like something
that was configurable in the sitemap.  I'll take a
look at those options though.

Every page flows through a single javaflow so I could
check for the Admin role there and control access to
pages in the admin section.  However, that would
require me to hardcode the admin directory in code
which I would hate to do.

I do pass a variable to the pages if the user is an
adminstrator so based on your suggestion, I might be
able to do something with that.  I'll give it a try.

--- Andrew Stevens <[EMAIL PROTECTED]> wrote:

> >From: footh <[EMAIL PROTECTED]>
> >Date: Tue, 23 May 2006 10:22:59 -0700 (PDT)
> >
> >I've newly implemented cocoon's auth-fw and have a
> >couple of questions.
> 
> Unfortunately, I've not used the auth framework
> much, so I can't help with 
> the first one.
> 
> >The second question has to do with roles.  I have a
> >protected area which has an admin section that only
> >users with the "admin" role can access.  Are there
> any
> >creative solutions for getting this to work with
> just
> >one auth handler?  I'd like for the user to only
> have
> >to login once (ie, not use a separate "admin
> >handler").
> 
> RoleFilterTransformer, maybe?
> It'd be a bit tricky integrating that with the
> auth-fw, though, as it uses 
> the request's isUserInRole method rather than the
> authentication context the 
> auth-fw provides.  You could always create a servlet
> filter that extracts 
> the auth information from the session and overrides
> isUserInRole in a 
> request wrapper.  Or just use the
> RoleFilterTransformer as the basis for a 
> similar transformer that uses the role information
> from the context instead 
> of isUserInRole.
> 
> Alternatively, you can use the session transformer
> to extract any role 
> information from the authentication context, then
> use it in an XSL template 
> to filter out other elements if the required role
> isn't in it.  See "Getting 
> information from the context" in 
>
http://cocoon.apache.org/2.1/developing/webapps/authentication/user_management.html
> 
> Hope this helps,
> 
> 
> Andrew.
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: AW: AW: encoding problem with eXist database

2006-05-24 Thread Abbas Mousavi
HiI dont know how to use String.getBytes(encoding) or XMLResourc.setContent(xml-string) , I explain my whole word:I have this in the sitemap                                                            that reads a html file from the disk and generates an
 xmland I have this function in my flowscript. I call it when I want to write to a source.function write(){var home = cocoon.parameters.home;var name = cocoon.parameters.name;//writeDoc('webdav://[EMAIL PROTECTED]:8080/exist-webdav/db/'+home+'/'+name+'.xml',name+'.xml');writeDoc('xmldb:exist:///db/'+home+'/'+name+'.xml',name+'.xml');writeDoc(name+'.htm',name+'.htm');cocoon.redirectTo("");}function writeDoc(doc, pipeline) {    var resolver = null;    var source = null;    var output = null;        try {    resolver = cocoon.getComponent(Packages.org.apache.excalibur.source.SourceResolver.ROLE);    source = resolver.resolveURI(doc);    if (source instanceof
 Packages.org.apache.excalibur.source.ModifiableSource) {    output = source.getOutputStream();    cocoon.processPipelineTo(pipeline, {}, output);    output.close();    } else {    cocoon.log.error("Cannot write to " + doc + ": not a modifiable source");    }    } catch (error) {    cocoon.log.error("Error getting output stream: " + error);    } finally {    if (source != null) resolver.release(source);   
 cocoon.releaseComponent(resolver);    if (output != null) {    try {    output.close();    } catch (error) {    cocoon.log.error("Error closing output stream: " + error);    }    }    }}as I said the first and second writeDoc() work but write wrong encodingand the next writeDoc() works correct.and another
 thing:org.exist.cocoon.XMLDBSource has a setEncoding() method that sets the default encoding of outputstreambut the cocoon source resolver returns  org.apache.cocoon.components.source.impl.XMLDBSourcewhich has not such method. Is there any way to use org.exist.cocoon.XMLDBSourceinstead of org.apache.cocoon.components.source.impl.XMLDBSource ?thanks.AbbasChristofer Dutz <[EMAIL PROTECTED]> wrote: How exactly do you stroe your data? Do you use XMLResourc.setContent(xml-string)? You could try explicitly seting the input-Strings encoding using the String.getBytes(encoding) method.      If this doesn’t help. I’d try the exist mailinglist, the guys there should be able to help you solve your problems.     Chris     [ c h r i s t o f e r   d u t z ] 
 IT-Berater univativ GmbH & Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt  fon:  0 61 51 / 66 717 -0 fax:  0 61 51 / 66 717 -29 email:  [EMAIL PROTECTED] http://www.univativ.de  Darmstadt, Stuttgart, Karlsruhe, Düsseldorf        Von: Abbas Mousavi [mailto:[EMAIL PROTECTED]  Gesendet: Mittwoch, 24. Mai 2006 16:59 An: users@cocoon.apache.org Betreff: Re: AW: encoding problem with eXist
 database   Hi chris  I have set container-encoding and form encoding and serializer encoding to utf-8.  also I can write the same pipeline to other sources (for example to hard disk) truly by the same mechanism.  I think this problem has some thing related to eXist because I have tested the webdav interface to eXist and it was the same as xmldb: protocol: wrong encoding.  Christofer Dutz <[EMAIL PROTECTED]> wrote:Hi Abbas,     I think you should check the settings in your web.xml (container-encoding and
 form-encoding) and the serializer settings in the sitemap.xmap. I think I remember having some encoding-problems with CForms. I guess cocoon will provide content encoded in the format set here. And since you are using cocoon to generate the document stored in the db, I’d give it a try.      Chris     [ c h r i s t o f e r   d u t z ]  IT-Berater univativ GmbH & Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt  fon:  0 61 51 / 66 717 -0 fax:  0 61 51 / 66 717 -29 email:  [EMAIL PROTECTED] http://www.univativ.de  Darmstadt, Stuttgart, Karlsruhe, D�sseldorf        Von: Abbas Mousavi [mailto:[EMAIL PROTECTED]  Gesendet: Mittwoch, 24. Mai 2006 15:11 An: users@cocoon.apache.org Betreff: encoding problem with eXist database   Hi   I am using eXist with cocoon as my xml database. I can copy xml documents to eXist by a webdav client and exist
 admin client, and also can retrieve them correctly by xmldb:exist://  protocol, but when I want to write documents to exist with flowscript it does not writes the unicode documents correctly.  I use    resolver = cocoon.getComponent(Packages.org.apache.excalibur.source.SourceResolver.ROLE);     source = resolver.resolveURI('xmldb:exist:///db/collection/document.xml');   if (source instanceof Packages.org.apache.excalibur.source.ModifiableSource) {     output = source.getOutputStream();     cocoon.processPipelineTo(pipeline, {}, output);     output.close();     }  It writes the document to the database but 

Accessing Global Variables As External File

2006-05-24 Thread Stewart, Gary
Hi there,

I was wondering if it was possible to access the global-variables component 
configuration as an external file? Basically there are some values in there 
that change depending on which server I was using so I figured I could separate 
that into a static XML file and not include that file in version control so I 
could customise it depending on the server.

Is there a way to do this or should I use something other than global-variables 
to access these values in the sitemaps.

Thanks,

Gary

*
The information contained in this message may be confidential or 
legally privileged and is intended for the addressee only. If you 
have received this message in error or there are any problems 
please notify the originator immediately. The unauthorised use, 
disclosure, copying or alteration of this message is 
strictly forbidden.
*


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



AW: AW: encoding problem with eXist database

2006-05-24 Thread Christofer Dutz









How exactly do you stroe
your data? Do you use XMLResourc.setContent(xml-string)? You could try explicitly
seting the input-Strings encoding using the String.getBytes(encoding) method. 

 

If this doesn’t
help. I’d try the exist mailinglist, the guys there should be able to
help you solve your problems.

 

Chris

 

[ c h r i s t o f e r   d u t z ]

IT-Berater
univativ GmbH & Co. KG
Robert-Bosch-Str. 7, 64293 Darmstadt

fon:  0 61 51 / 66 717 -0
fax:  0 61 51 / 66 717 -29
email:  [EMAIL PROTECTED]
http://www.univativ.de

Darmstadt,
Stuttgart, Karlsruhe, Düsseldorf

 

 









Von: Abbas Mousavi
[mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 24. Mai 2006
16:59
An: users@cocoon.apache.org
Betreff: Re: AW: encoding problem
with eXist database



 

Hi chris

I have set container-encoding and form encoding and serializer encoding to
utf-8.

also I can write the same pipeline to other sources (for example to hard disk)
truly by the same mechanism.

I think this problem has some thing related to eXist because I have tested the
webdav interface to eXist and it was the same as xmldb: protocol: wrong
encoding.

Christofer Dutz <[EMAIL PROTECTED]> wrote:



Hi
Abbas,





 





I think you should check
the settings in your web.xml (container-encoding
and form-encoding) and the
serializer settings in the sitemap.xmap. I think I remember having some
encoding-problems with CForms. I guess cocoon will provide content encoded in
the format set here. And since you are using cocoon to generate the document
stored in the db, I’d give it a try. 





 





Chris





 





[ c h r i s t o f e r   d u t z ]

IT-Berater
univativ GmbH & Co. KG
Robert-Bosch-Str. 7, 64293 Darmstadt

fon:  0 61 51 / 66 717 -0
fax:  0 61 51 / 66 717 -29
email:  [EMAIL PROTECTED]
http://www.univativ.de

Darmstadt,
Stuttgart, Karlsruhe, D�sseldorf





 





 













Von: Abbas Mousavi
[mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 24. Mai 2006
15:11
An: users@cocoon.apache.org
Betreff: encoding problem with
eXist database







 





Hi 

I am using eXist with cocoon as my xml database. I can copy xml documents to
eXist by a webdav client and exist admin client, and also can retrieve them
correctly
by xmldb:exist://  protocol, but when I want to write documents to exist
with flowscript it does not writes the unicode documents correctly.

I use 

 resolver =
cocoon.getComponent(Packages.org.apache.excalibur.source.SourceResolver.ROLE);
    source =
resolver.resolveURI('xmldb:exist:///db/collection/document.xml');

 if (source instanceof Packages.org.apache.excalibur.source.ModifiableSource)
{
    output =
source.getOutputStream();
   
cocoon.processPipelineTo(pipeline, {}, output);
   
output.close();
    }

It writes the document to the database but with wrong encoding.
is there any way for fixing this problem?











Blab-away for as little as 1�/min. Make PC-to-Phone
Calls using Yahoo! Messenger with Voice.



 

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 








AW: Benefits of using eXist with Cocoon, when XML is versioned in Subversion?

2006-05-24 Thread Christofer Dutz









Not to forget the power
of the XQuery update-extensions. You can read and write documents using this.

New versions of eXist (in
the subversion repository) support access-control, locking,concurrency-control
and clustering. If your system Crashes during a write operation, using files
your entire file is junk. With eXist it will repair itself using the journal.

 

Chris 

 

[ c h r i s t o f e r   d u t z ]

IT-Berater
univativ GmbH & Co. KG
Robert-Bosch-Str. 7, 64293 Darmstadt

fon:  0 61 51 / 66 717 -0
fax:  0 61 51 / 66 717 -29
email:  [EMAIL PROTECTED]
http://www.univativ.de

Darmstadt,
Stuttgart, Karlsruhe, Düsseldorf

 

 









Von: Abbas Mousavi
[mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 24. Mai 2006
17:22
An: users@cocoon.apache.org
Betreff: Re: Benefits of using
eXist with Cocoon, when XML is versioned in Subversion?



 

hi

I think that what you missed is the speed of retriving information about your
data collection. think of listing the content of a title tag of many small xml
files at filesystem with cocoon xpathdirectory generator, It is a very time
consuming process on file system but with exist it is very fast. also eXist
lets you to use Xquery which is the standard way of retriving data from xml
data collections.

Of course if you dont need any such data processing and only access individual
files you dont need a database like exist and can use filesystem.



Craeg Strong
<[EMAIL PROTECTED]> wrote:

Hello:

My website content is in XML and version controlled in Subversion.
I want to use Cocoon to publish HTML and PDF, etc. for all the usual 
reasons.
I see that eXist is pre-integrated with Cocoon; I could import my 
documents into eXist and use that.
I can still version the source by exporting from eXist -> file system 
and "svn commit"

I am trying to get a handle on what exactly will the benefits be using 
eXist rather than just the file system.
Can anyone help?

My newbie guess is that it boils down to eXist providing certain things 
that otherwise would have to be programmed directly in the cocoon sitemap.
For example: directory generator, lucene/full text search

So.. isn't that just moving some logic from the sitemap into eXist 
configuration files? What am I missing?

Thanks!!

--Craeg


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

 







How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone
call rates.








Re: Benefits of using eXist with Cocoon, when XML is versioned in Subversion?

2006-05-24 Thread Abbas Mousavi
hiI think that what you missed is the speed of retriving information about your data collection. think of listing the content of a title tag of many small xml files at filesystem with cocoon xpathdirectory generator, It is a very time consuming process on file system but with exist it is very fast. also eXist lets you to use Xquery which is the standard way of retriving data from xml data collections.Of course if you dont need any such data processing and only access individual files you dont need a database like exist and can use filesystem. Craeg Strong <[EMAIL PROTECTED]> wrote: Hello:My website content is in XML and version controlled in Subversion.I want to use Cocoon to publish HTML and PDF, etc. for all the usual reasons.I see that eXist is pre-integrated with Cocoon; I could
 import my documents into eXist and use that.I can still version the source by exporting from eXist -> file system and "svn commit"I am trying to get a handle on what exactly will the benefits be using eXist rather than just the file system.Can anyone help?My newbie guess is that it boils down to eXist providing certain things that otherwise would have to be programmed directly in the cocoon sitemap.For example: directory generator, lucene/full text searchSo.. isn't that just moving some logic from the sitemap into eXist configuration files?  What am I missing?Thanks!!--Craeg-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
		How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.

Benefits of using eXist with Cocoon, when XML is versioned in Subversion?

2006-05-24 Thread Craeg Strong

Hello:

My website content is in XML and version controlled in Subversion.
I want to use Cocoon to publish HTML and PDF, etc. for all the usual 
reasons.
I see that eXist is pre-integrated with Cocoon; I could import my 
documents into eXist and use that.
I can still version the source by exporting from eXist -> file system 
and "svn commit"


I am trying to get a handle on what exactly will the benefits be using 
eXist rather than just the file system.

Can anyone help?

My newbie guess is that it boils down to eXist providing certain things 
that otherwise would have to be programmed directly in the cocoon sitemap.

For example: directory generator, lucene/full text search

So.. isn't that just moving some logic from the sitemap into eXist 
configuration files?  What am I missing?


Thanks!!

--Craeg


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



Re: AW: encoding problem with eXist database

2006-05-24 Thread Abbas Mousavi
Hi chrisI have set container-encoding and form encoding and serializer encoding to utf-8.also I can write the same pipeline to other sources (for example to hard disk)truly by the same mechanism.I think this problem has some thing related to eXist because I have tested the webdav interface to eXist and it was the same as xmldb: protocol: wrong encoding.Christofer Dutz <[EMAIL PROTECTED]> wrote:  
  Hi Abbas,     I think you should check the settings in your web.xml (container-encoding and form-encoding)
 and the serializer settings in the sitemap.xmap. I think I remember having some encoding-problems with CForms. I guess cocoon will provide content encoded in the format set here. And since you are using cocoon to generate the document stored in the db, I’d give it a try.      Chris   
  [ c h r i s t o f e r   d u t z ]  IT-Berater univativ GmbH & Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt  fon:  0 61 51 / 66 717 -0 fax:  0 61 51 / 66 717 -29 email:  [EMAIL PROTECTED] http://www.univativ.de  Darmstadt, Stuttgart, Karlsruhe,
 D�sseldorf        Von: Abbas Mousavi [mailto:[EMAIL PROTECTED]  Gesendet: Mittwoch, 24. Mai 2006 15:11 An: users@cocoon.apache.org Betreff: encoding problem with eXist database   Hi   I am using eXist with cocoon as my xml database. I can copy xml documents to eXist by a webdav client and exist admin client, and also can retrieve them correctly by xmldb:exist://  protocol, but when I want to write documents to exist with flowscript it does not writes the unicode documents correctly.  I use    resolver = cocoon.getComponent(Packages.org.apache.excalibur.source.SourceResolver.ROLE);
     source = resolver.resolveURI('xmldb:exist:///db/collection/document.xml');   if (source instanceof Packages.org.apache.excalibur.source.ModifiableSource) {     output = source.getOutputStream();     cocoon.processPipelineTo(pipeline, {}, output);     output.close();     }  It writes the document to the database but with wrong encoding. is there any way for fixing this problem?Blab-away for as little as 1�/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice.__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

Re: Pipeline Structure To Enable Caching of static data?

2006-05-24 Thread Craeg Strong
Sounds great!  yes, its very clear.  
thx,


--Craeg

Ard Schrijvers wrote:
You seem to be quite on track: 


Just remember the following simple guidelines:

1) If in a caching pipeline, cocoon tries to cache each pipeline match (thus the map:part 
in an aggregator or a src="cocoon:/..." it will try to cache the seperate 
pipeline matches, as well as the total)
2) Cocoon can ONLY cache a pipeline, if every single component is cacheable. 


So, in your case, 1) will be cached, and 2) wont be cached.

So the first match is on 2), cocoon cant find a cached response because not every part of the pipeline can be cached. It will re-generate the entire pipeline, beginning with the cocoon:/siteData. But for this cocoon:/siteData, it will find a cached pipeline result. 


Hope this is clear,

Regards Ard 



  

Hello:

I am returning to cocoon after a long hiatus.  My, how it has 
grown! :-)


I would like to generate a single HTML webpage from multiple 
XML sources. 

No problem-- use an aggregator, right?  The issue with that 
is some of 
the sources change far less frequently than others.


I have data to construct the header and footer that won't 
change at all 
throughout the site. 

On the other end of the spectrum, I have data that is specific to a 
particular page and that changes dynamically.


I would like to cache the "per-site" data separately from the 
"per-major 
division" data separately from the "per-page" data.


I believe the correct way to do this is via sub-pipelines, 
and XInclude, 
right?


I can use a separate transformer for each layer and they will 
get cached 
properly, I think.  Something like:





   
   





   
   
  value="some-uri-to-xinclude"/>


   


Does the above look right?  Can anyone point me to a document 
or example 
code that features multi-stage/multi-part caching?

I fear I may be way off-base.  Thanks in advance!

--Craeg




  


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



AW: encoding problem with eXist database

2006-05-24 Thread Christofer Dutz








Hi Abbas,

 

I think you should check
the settings in your web.xml (container-encoding
and form-encoding) and the
serializer settings in the sitemap.xmap. I think I remember having some
encoding-problems with CForms. I guess cocoon will provide content encoded in
the format set here. And since you are using cocoon to generate the document stored
in the db, I’d give it a try. 

 

Chris

 

[ c h r i s t o f e r   d u t z ]

IT-Berater
univativ GmbH & Co. KG
Robert-Bosch-Str. 7, 64293 Darmstadt

fon:  0 61 51 / 66 717 -0
fax:  0 61 51 / 66 717 -29
email:  [EMAIL PROTECTED]
http://www.univativ.de

Darmstadt,
Stuttgart, Karlsruhe, Düsseldorf

 

 









Von: Abbas Mousavi
[mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 24. Mai 2006
15:11
An: users@cocoon.apache.org
Betreff: encoding problem with
eXist database



 

Hi 

I am using eXist with cocoon as my xml database. I can copy xml documents to
eXist by a webdav client and exist admin client, and also can retrieve them
correctly
by xmldb:exist://  protocol, but when I want to write documents to exist
with flowscript it does not writes the unicode documents correctly.

I use 

 resolver =
cocoon.getComponent(Packages.org.apache.excalibur.source.SourceResolver.ROLE);
    source =
resolver.resolveURI('xmldb:exist:///db/collection/document.xml');

 if (source instanceof
Packages.org.apache.excalibur.source.ModifiableSource) {
    output =
source.getOutputStream();
   
cocoon.processPipelineTo(pipeline, {}, output);
   
output.close();
    }

It writes the document to the database but with wrong encoding.
is there any way for fixing this problem?







Blab-away for as little as 1¢/min. Make PC-to-Phone
Calls using Yahoo! Messenger with Voice.








Re: AW: AW: Cforms dates and data destinations

2006-05-24 Thread Jason Johnston

peter wrote:

On Wed, 24 May 2006 10:20:36 +0200, Christofer Dutz wrote
If you add a tag called "head" anywhere in your template, then 
CForms will add all CForm stuff (CSS, JavaScript, ... everything 
that belongs into a html head-tag) it needs inside this tag. All you 
have to do in any transformation is to "move" the entire content to 
the place it belongs to using a simple 


Umm. There's already a head element in the template, 
which is the sample one from the Cocoon documentation at 
http://cocoon.apache.org/2.1/userdocs/basics/sample.html:


  
Registration form
  


Are your HTML elements by chance in the http://www.w3.org/1999/xhtml 
namespace, or another namespace?  The CForms XSLT only matches elements 
in the null namespace.  I've been tripped up by that before.




Using the sample transformation from the same place
(forms-samples-styling.xsl), the output is appearing as:

  http://apache.org/cocoon/browser-update/1.0";>
Registration form
  

Obviously something is missing but I can't see what.

///Peter



-
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: delete cache after every change?

2006-05-24 Thread Ard Schrijvers
> > Hi!
> > 
> > I have a problem with the cocoon cache: Cocoon remembers 
> > everything, when I make a change in my code, there is often 
> > no reaction on it. Normally I have to stop the tomcat server 
> > and delete the work directory of cocoon and then cocoon 
> > recognizes the new lines. If I have a change in my javascript 
> > file, I also have to restart the computer to get the result of it.

A change in javascript requires computer restarting? You are talking about a 
javascript sent to the browser? Or do you mean cocoon flowscript? 

But you really have to be more specific about what you change. For example, if 
you are using an xsl, which imports another xsl, and you are saving changes to 
this imported xsl, frequently you have to make a save to the xsl importing the 
other one. This is because (though i might be a little off, but it is more or 
less like this) cocoon keeps a compiled version of the xsl, and only 
re-compiles when the timestamp has been changes. Since, the timestamp of the 
xsl used did not change (the one its imports though did), cocoon does not 
re-compile the xsl (though i am not sure this is part of cocoon or xalan, or 
whatever)

> > 
> > It's really annoying and time-consuming. Does anybody has an 
> > idea how to put this off?
> > 
> Did you use  for the 
> pipelines that need not to be cached?

This behavior is irrespective of the used caching mechanism (every default 
caching in cocoon checks for timestamp validity), unless you wrote your own 
generator/transformer returning a NOPvalidity or EventValidity...

Regards Ard

> 
> Jasha Joachimsthal
> 
> -
> 
> Hippo
> Oosteinde 11
> 1017 WT Amsterdam
> The Netherlands
> +31 (0)20 5224466 
> 
> [EMAIL PROTECTED]
> www.hippo.nl
> 
> -
> 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]



encoding problem with eXist database

2006-05-24 Thread Abbas Mousavi
Hi I am using eXist with cocoon as my xml database. I can copy xml documents to eXist by a webdav client and exist admin client, and also can retrieve them correctlyby xmldb:exist://  protocol, but when I want to write documents to exist with flowscript it does not writes the unicode documents correctly.I use  resolver = cocoon.getComponent(Packages.org.apache.excalibur.source.SourceResolver.ROLE);    source = resolver.resolveURI('xmldb:exist:///db/collection/document.xml'); if (source instanceof Packages.org.apache.excalibur.source.ModifiableSource) {    output = source.getOutputStream();    cocoon.processPipelineTo(pipeline, {}, output);   
 output.close();    }It writes the document to the database but with wrong encoding.is there any way for fixing this problem?
		Blab-away for as little as 1¢/min. Make  PC-to-Phone Calls using Yahoo! Messenger with Voice.

RE: Pipeline Structure To Enable Caching of static data?

2006-05-24 Thread Ard Schrijvers
You seem to be quite on track: 

Just remember the following simple guidelines:

1) If in a caching pipeline, cocoon tries to cache each pipeline match (thus 
the map:part in an aggregator or a src="cocoon:/..." it will try to cache the 
seperate pipeline matches, as well as the total)
2) Cocoon can ONLY cache a pipeline, if every single component is cacheable. 

So, in your case, 1) will be cached, and 2) wont be cached.

So the first match is on 2), cocoon cant find a cached response because not 
every part of the pipeline can be cached. It will re-generate the entire 
pipeline, beginning with the cocoon:/siteData. But for this cocoon:/siteData, 
it will find a cached pipeline result. 

Hope this is clear,

Regards Ard 


> Hello:
> 
> I am returning to cocoon after a long hiatus.  My, how it has 
> grown! :-)
> 
> I would like to generate a single HTML webpage from multiple 
> XML sources. 
> 
> No problem-- use an aggregator, right?  The issue with that 
> is some of 
> the sources change far less frequently than others.
> 
> I have data to construct the header and footer that won't 
> change at all 
> throughout the site. 
> 
> On the other end of the spectrum, I have data that is specific to a 
> particular page and that changes dynamically.
> 
> I would like to cache the "per-site" data separately from the 
> "per-major 
> division" data separately from the "per-page" data.
> 
> I believe the correct way to do this is via sub-pipelines, 
> and XInclude, 
> right?
> 
> I can use a separate transformer for each layer and they will 
> get cached 
> properly, I think.  Something like:
> 
> 
> 
>
>
> 
> 
> 
> 
>
>
>value="some-uri-to-xinclude"/>
> 
>
> 
> 
> Does the above look right?  Can anyone point me to a document 
> or example 
> code that features multi-stage/multi-part caching?
> I fear I may be way off-base.  Thanks in advance!
> 
> --Craeg
> 

-- 

Hippo
Oosteinde 11
1017WT Amsterdam
The Netherlands
Tel  +31 (0)20 5224466
-
[EMAIL PROTECTED] / http://www.hippo.nl
-- 
> -
> 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: Installing cocoon2.1.9 on WSAD5.1

2006-05-24 Thread Warrell Harries
I have just deployed cocoon.war to IBM WebSphere Application Server, 5.1.1.9 and there was no problem. It is only the Forms block and something else I recall that needs the modifications I described. Have you deployed cocoon as a war file with a context. You don't need to do anything else and the basic cocoon works no problem.- Original Message From: shreya <[EMAIL PROTECTED]>To: users@cocoon.apache.orgSent: Wednesday, 24 May, 2006 1:15:48 PMSubject: Re: Installing cocoon2.1.9 on WSAD5.1I have build cocoon.war In wsad I created a new dynamic web project and imported the war file in theproject folder. I have also set the classloader mode as PARENT_LAST. but
 still the server is not starting. It's giving an error that -*** Starting the server *** Start Display Current Environment WebSphere Platform 5.1 [BASE 5.1.0 b0344.02]  running with process namelocalhost\localhost\server1 and process id 2916Host Operating System is Windows XP, version 5.1Java version = J2RE 1.4.1 IBM Windows 32 build cn1411-20031011 (JIT enabled:jitc), Java Compiler = jitc, Java VM name = Classic VMwas.install.root = C:\Program Files\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51user.install.root = C:\Program Files\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51Java Home = C:\Program Files\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51\java\jrews.ext.dirs = C:\Program Files\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/java/lib;C:\Program
 Files\IBM\WebSphereStudio\Application Developer\v5.1.1\runtimes\base_v51/classes;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/classes;C:\Program Files\IBM\WebSphereStudio\Application Developer\v5.1.1\runtimes\base_v51/lib;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/lib/ext;C:\Program Files\IBM\WebSphereStudio\Application Developer\v5.1.1\runtimes\base_v51/web/help;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime;C:/ProgramFiles/IBM/WebSphere Studio/ApplicationDeveloper/v5.1.1/wstools/eclipse/plugins/com.ibm.etools.webservice_5.1.1/runtime/worf.jarClasspath = C:\Program Files\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/properties;C:\Program Files\IBM\WebSphereStudio\Application
 Developer\v5.1.1\runtimes\base_v51/properties;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/lib/bootstrap.jar;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/lib/j2ee.jar;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/lib/lmproxy.jar;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/lib/urlprotocols.jar;C:\j2sdk1.4.2_10\jre\lib\endorsed\xalan-2.7.0.jar;C:\j2sdk1.4.2_10\jre\lib\endorsed\xercesImpl-2.8.0.jar;C:\j2sdk1.4.2_10\jre\lib\endorsed\xml-apis-1.3.03.jar;C:\cocoon2.1.9\lib\optional\batik-all-1.6.jar;C:/ProgramFiles/IBM/WebSphere Studio/ApplicationDeveloper/v5.1.1/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1/runtime/wteServers.jar;C:/ProgramFiles/IBM/WebSphere
 Studio/ApplicationDeveloper/v5.1.1/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1/runtime/wasToolsCommon.jarJava Library path = C:\Program Files\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/bin;C:\Program Files\IBM\WebSphereStudio\Application Developer\v5.1.1\runtimes\base_v51/java/bin;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/java/jre/bin;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\eclipse\jre\bin;.;C:\Program Files\IBM\WebSphereStudio\ApplicationDeveloper\v5.1.1\eclipse\jre\bin;D:\oracle\product\10.2.0\client_2\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\j2sdk1.4.2_05\bin;c:\eslo_software\phoenix\dll;C:\j2sdk1.4.2_10\bin;C:\eslo_software\Jamaica\bin;C:\eslo_software\Jamaica\tools;C:\eslo_software\Jamaica\include;C:\eslo_software\Jamaica\lib;C:\eslo_software\Jamaica\components* End Display
 Current Environment *[5/24/06 16:30:41:627 IST] 3e5f99d4 ManagerAdmin  I TRAS0017I: The startuptrace state is *=all=disabled.[5/24/06 16:30:42:470 IST] 3e5f99d4 AdminInitiali A ADMN0015I: AdminServiceinitialized[5/24/06 16:30:43:658 IST] 3e5f99d4 Configuration A SECJ0215I: Successfullyset JAAS login provider configuration class tocom.ibm.ws.security.auth.login.Configuration.[5/24/06 16:30:43:705 IST] 3e5f99d4 SecurityDMI SECJ0231I: The Securitycomponent's FFDC Diagnostic Module com.ibm.ws.security.core.SecurityDMregistered successfully: true.[5/24/06 16:30:43:955 IST] 3e5f99d4 SecurityCompo I SECJ0309I: Java 2Security is disabled.[5/24/06 16:30:43:970 IST] 3e5f99d4 SecurityCompo I SECJ0212I: WCCM JAASconfiguration information successfully pushed to login provider cl

RE: dispose temporary file after request execution

2006-05-24 Thread Ard Schrijvers
I assume that your java method from flowscript generates a temporary xml file 
and writes that one to disk? 

You could make of course a cron job scanning the temporary file and delete 
files with an old timestamp. Or instead writing the file to disk, you generate 
the xml in the cocoon DefaultTransientStore with an expires Validity, and use 
in the next generator this cached xml file. 

Regards Ard



> 
> Hello
> 
> From a flowscript I call a java method that has to generate a 
> temporary
> xml file. 
> After that I call cocoon.sendPage() and the invoked generator uses the
> temporary xml file.
> 
> I'm afraid that I will get a lot of temporary files if I don't
> automatically delete them in some way.
> 
> Is there a special folder for temporary files that gets 
> cleaned up once
> in a while?
> Or is there some way to tell cocoon to dispose the file at the end of
> the request (as cocoon does with uploaded files)?
> Is there something else?
> 
> Thanks in advance
> 
> Philippe
> 

-- 

Hippo
Oosteinde 11
1017WT Amsterdam
The Netherlands
Tel  +31 (0)20 5224466
-
[EMAIL PROTECTED] / http://www.hippo.nl
-- 

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



Re: Installing cocoon2.1.9 on WSAD5.1

2006-05-24 Thread Warrell Harries
You have to make a shared library of the rhino-continuations jar and there is another fix for the Cache stuff which I can't remember at the moment cos I haven't got my material here. It ain't straightforward by any means (bad old WebSphere) so, as I said, cocncentrate on developing your application before you deploy to WebSphere.In the meantime, I will dig out the additional steps required to get 2.1.9 on WebSphere- Original Message From: shreya <[EMAIL PROTECTED]>To: users@cocoon.apache.orgSent: Wednesday, 24 May, 2006 1:15:48 PMSubject: Re: Installing cocoon2.1.9 on WSAD5.1I have build cocoon.war In wsad I created a new dynamic web project and imported the
 war file in theproject folder. I have also set the classloader mode as PARENT_LAST. but still the server is not starting. It's giving an error that -*** Starting the server *** Start Display Current Environment WebSphere Platform 5.1 [BASE 5.1.0 b0344.02]  running with process namelocalhost\localhost\server1 and process id 2916Host Operating System is Windows XP, version 5.1Java version = J2RE 1.4.1 IBM Windows 32 build cn1411-20031011 (JIT enabled:jitc), Java Compiler = jitc, Java VM name = Classic VMwas.install.root = C:\Program Files\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51user.install.root = C:\Program Files\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51Java Home = C:\Program Files\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51\java\jrews.ext.dirs = C:\Program Files\IBM\WebSphere
 Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/java/lib;C:\Program Files\IBM\WebSphereStudio\Application Developer\v5.1.1\runtimes\base_v51/classes;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/classes;C:\Program Files\IBM\WebSphereStudio\Application Developer\v5.1.1\runtimes\base_v51/lib;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/lib/ext;C:\Program Files\IBM\WebSphereStudio\Application Developer\v5.1.1\runtimes\base_v51/web/help;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime;C:/ProgramFiles/IBM/WebSphere Studio/ApplicationDeveloper/v5.1.1/wstools/eclipse/plugins/com.ibm.etools.webservice_5.1.1/runtime/worf.jarClasspath = C:\Program Files\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/properties;C:\Program
 Files\IBM\WebSphereStudio\Application Developer\v5.1.1\runtimes\base_v51/properties;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/lib/bootstrap.jar;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/lib/j2ee.jar;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/lib/lmproxy.jar;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/lib/urlprotocols.jar;C:\j2sdk1.4.2_10\jre\lib\endorsed\xalan-2.7.0.jar;C:\j2sdk1.4.2_10\jre\lib\endorsed\xercesImpl-2.8.0.jar;C:\j2sdk1.4.2_10\jre\lib\endorsed\xml-apis-1.3.03.jar;C:\cocoon2.1.9\lib\optional\batik-all-1.6.jar;C:/ProgramFiles/IBM/WebSphere Studio/ApplicationDeveloper/v5.1.1/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1/runtime/wteServers.jar;C:/ProgramFiles/IBM/WebSphere
 Studio/ApplicationDeveloper/v5.1.1/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1/runtime/wasToolsCommon.jarJava Library path = C:\Program Files\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/bin;C:\Program Files\IBM\WebSphereStudio\Application Developer\v5.1.1\runtimes\base_v51/java/bin;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/java/jre/bin;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\eclipse\jre\bin;.;C:\Program Files\IBM\WebSphereStudio\ApplicationDeveloper\v5.1.1\eclipse\jre\bin;D:\oracle\product\10.2.0\client_2\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\j2sdk1.4.2_05\bin;c:\eslo_software\phoenix\dll;C:\j2sdk1.4.2_10\bin;C:\eslo_software\Jamaica\bin;C:\eslo_software\Jamaica\tools;C:\eslo_software\Jamaica\include;C:\eslo_software\Jamaica\lib;C:\eslo_software\Jamaica\components* End Display
 Current Environment *[5/24/06 16:30:41:627 IST] 3e5f99d4 ManagerAdmin  I TRAS0017I: The startuptrace state is *=all=disabled.[5/24/06 16:30:42:470 IST] 3e5f99d4 AdminInitiali A ADMN0015I: AdminServiceinitialized[5/24/06 16:30:43:658 IST] 3e5f99d4 Configuration A SECJ0215I: Successfullyset JAAS login provider configuration class tocom.ibm.ws.security.auth.login.Configuration.[5/24/06 16:30:43:705 IST] 3e5f99d4 SecurityDMI SECJ0231I: The Securitycomponent's FFDC Diagnostic Module com.ibm.ws.security.core.SecurityDMregistered successfully: true.[5/24/06 16:30:43:955 IST] 3e5f99d4 SecurityCompo I SECJ0309I: Java 2Security is disabled.[5/24/06 16:30:43:970 IST] 3e5f99d4 SecurityComp

Re: Installing cocoon2.1.9 on WSAD5.1

2006-05-24 Thread shreya

I have build cocoon.war 
In wsad I created a new dynamic web project and imported the war file in the
project folder. 
I have also set the classloader mode as PARENT_LAST. 
but still the server is not starting. It's giving an error that -
*** Starting the server ***
 Start Display Current Environment 
WebSphere Platform 5.1 [BASE 5.1.0 b0344.02]  running with process name
localhost\localhost\server1 and process id 2916
Host Operating System is Windows XP, version 5.1
Java version = J2RE 1.4.1 IBM Windows 32 build cn1411-20031011 (JIT enabled:
jitc), Java Compiler = jitc, Java VM name = Classic VM
was.install.root = C:\Program Files\IBM\WebSphere Studio\Application
Developer\v5.1.1\runtimes\base_v51
user.install.root = C:\Program Files\IBM\WebSphere Studio\Application
Developer\v5.1.1\runtimes\base_v51
Java Home = C:\Program Files\IBM\WebSphere Studio\Application
Developer\v5.1.1\runtimes\base_v51\java\jre
ws.ext.dirs = C:\Program Files\IBM\WebSphere Studio\Application
Developer\v5.1.1\runtimes\base_v51/java/lib;C:\Program Files\IBM\WebSphere
Studio\Application Developer\v5.1.1\runtimes\base_v51/classes;C:\Program
Files\IBM\WebSphere Studio\Application
Developer\v5.1.1\runtimes\base_v51/classes;C:\Program Files\IBM\WebSphere
Studio\Application Developer\v5.1.1\runtimes\base_v51/lib;C:\Program
Files\IBM\WebSphere Studio\Application
Developer\v5.1.1\runtimes\base_v51/lib/ext;C:\Program Files\IBM\WebSphere
Studio\Application Developer\v5.1.1\runtimes\base_v51/web/help;C:\Program
Files\IBM\WebSphere Studio\Application
Developer\v5.1.1\runtimes\base_v51/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime;C:/Program
Files/IBM/WebSphere Studio/Application
Developer/v5.1.1/wstools/eclipse/plugins/com.ibm.etools.webservice_5.1.1/runtime/worf.jar
Classpath = C:\Program Files\IBM\WebSphere Studio\Application
Developer\v5.1.1\runtimes\base_v51/properties;C:\Program Files\IBM\WebSphere
Studio\Application Developer\v5.1.1\runtimes\base_v51/properties;C:\Program
Files\IBM\WebSphere Studio\Application
Developer\v5.1.1\runtimes\base_v51/lib/bootstrap.jar;C:\Program
Files\IBM\WebSphere Studio\Application
Developer\v5.1.1\runtimes\base_v51/lib/j2ee.jar;C:\Program
Files\IBM\WebSphere Studio\Application
Developer\v5.1.1\runtimes\base_v51/lib/lmproxy.jar;C:\Program
Files\IBM\WebSphere Studio\Application
Developer\v5.1.1\runtimes\base_v51/lib/urlprotocols.jar;C:\j2sdk1.4.2_10\jre\lib\endorsed\xalan-2.7.0.jar;C:\j2sdk1.4.2_10\jre\lib\endorsed\xercesImpl-2.8.0.jar;C:\j2sdk1.4.2_10\jre\lib\endorsed\xml-apis-1.3.03.jar;C:\cocoon2.1.9\lib\optional\batik-all-1.6.jar;C:/Program
Files/IBM/WebSphere Studio/Application
Developer/v5.1.1/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1/runtime/wteServers.jar;C:/Program
Files/IBM/WebSphere Studio/Application
Developer/v5.1.1/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1/runtime/wasToolsCommon.jar
Java Library path = C:\Program Files\IBM\WebSphere Studio\Application
Developer\v5.1.1\runtimes\base_v51/bin;C:\Program Files\IBM\WebSphere
Studio\Application Developer\v5.1.1\runtimes\base_v51/java/bin;C:\Program
Files\IBM\WebSphere Studio\Application
Developer\v5.1.1\runtimes\base_v51/java/jre/bin;C:\Program
Files\IBM\WebSphere Studio\Application
Developer\v5.1.1\eclipse\jre\bin;.;C:\Program Files\IBM\WebSphere
Studio\Application
Developer\v5.1.1\eclipse\jre\bin;D:\oracle\product\10.2.0\client_2\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\j2sdk1.4.2_05\bin;c:\eslo_software\phoenix\dll;C:\j2sdk1.4.2_10\bin;C:\eslo_software\Jamaica\bin;C:\eslo_software\Jamaica\tools;C:\eslo_software\Jamaica\include;C:\eslo_software\Jamaica\lib;C:\eslo_software\Jamaica\components
* End Display Current Environment *
[5/24/06 16:30:41:627 IST] 3e5f99d4 ManagerAdmin  I TRAS0017I: The startup
trace state is *=all=disabled.
[5/24/06 16:30:42:470 IST] 3e5f99d4 AdminInitiali A ADMN0015I: AdminService
initialized
[5/24/06 16:30:43:658 IST] 3e5f99d4 Configuration A SECJ0215I: Successfully
set JAAS login provider configuration class to
com.ibm.ws.security.auth.login.Configuration.
[5/24/06 16:30:43:705 IST] 3e5f99d4 SecurityDMI SECJ0231I: The Security
component's FFDC Diagnostic Module com.ibm.ws.security.core.SecurityDM
registered successfully: true.
[5/24/06 16:30:43:955 IST] 3e5f99d4 SecurityCompo I SECJ0309I: Java 2
Security is disabled.
[5/24/06 16:30:43:970 IST] 3e5f99d4 SecurityCompo I SECJ0212I: WCCM JAAS
configuration information successfully pushed to login provider class.
[5/24/06 16:30:43:986 IST] 3e5f99d4 SecurityCompo I SECJ0240I: Security
service initialization completed successfully
[5/24/06 16:30:43:986 IST] 3e5f99d4 JMSRegistrati A MSGS0602I: WebSphere
Embedded Messaging Client only has been installed
[5/24/06 16:30:46:736 IST] 3e5f99d4 CacheServiceI I DYNA0048I: WebSphere
Dynamic Cache initialized successfully.
[5/24/06 16:30:48:439 IST] 3e5f99d4 JMXSoapAdapte A ADMC0013I: SOAP
connecto

Re: AW: AW: Cforms dates and data destinations

2006-05-24 Thread peter
On Wed, 24 May 2006 10:20:36 +0200, Christofer Dutz wrote
> If you add a tag called "head" anywhere in your template, then 
> CForms will add all CForm stuff (CSS, JavaScript, ... everything 
> that belongs into a html head-tag) it needs inside this tag. All you 
> have to do in any transformation is to "move" the entire content to 
> the place it belongs to using a simple 

Umm. There's already a head element in the template, 
which is the sample one from the Cocoon documentation at 
http://cocoon.apache.org/2.1/userdocs/basics/sample.html:

  
Registration form
  

Using the sample transformation from the same place
(forms-samples-styling.xsl), the output is appearing as:

  http://apache.org/cocoon/browser-update/1.0";>
Registration form
  

Obviously something is missing but I can't see what.

///Peter



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



Re: How to install the cocoon framework in WSAD 5.1.2

2006-05-24 Thread shreya

Could you please tell the steps you have followed to deploy cocoon over WSAD?
Because I have to deploy cocoon2.1.9 over WSAD5.1 . If you will tell the
steps which you have followed it would be helpul to me.
Thanks in advance. 

--
View this message in context: 
http://www.nabble.com/How+to+install+the+cocoon+framework+in+WSAD+5.1.2-t1246541.html#a4539812
Sent from the Cocoon - Users forum at Nabble.com.


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



Re: Installing cocoon2.1.9 on WSAD5.1

2006-05-24 Thread Warrell Harries
Hi Sharda,The simplest way is to build the WAR file as in the INSTALL.TXT and import this into WSAD.You may be better off not bothering with WSAD as the whole point of Cocoon is that you can build fully featured applications without having to develop Java code as you can link components in a pipeline of functionality with XML alone. For this you don't need an IDE. Have a crack at that so that you understand what Cocoon is before trying to use the (marginal) benefits of an IDE,RegardsWarrell- Original Message From: sharda choudhary <[EMAIL PROTECTED]>To: [EMAIL PROTECTED]Cc: users@cocoon.apache.orgSent: Wednesday, 24 May, 2006 11:43:03 AMSubject:
 Installing cocoon2.1.9 on WSAD5.1Hi all can anybody please help me by tellimg the steps toinstall cocoon on WSAD and deploying it. Please giveall the steps as if you are telling to a fresher.Thanks in advance.ShreyaSoftware Engineer.__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com -To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]

Installing cocoon2.1.9 on WSAD5.1

2006-05-24 Thread sharda choudhary
Hi all
 can anybody please help me by tellimg the steps to
install cocoon on WSAD and deploying it. Please give
all the steps as if you are telling to a fresher.
Thanks in advance.
Shreya
Software Engineer.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Exception in ServerPagesGenerator.generate() during xinclude

2006-05-24 Thread kathi . mailbox

> -Ursprüngliche Nachricht-
> Von: users@cocoon.apache.org
> Gesendet: 23.05.06 16:26:31
> An: users@cocoon.apache.org
> Betreff: Re: Exception in ServerPagesGenerator.generate() during xinclude


> 
> > -Ursprüngliche Nachricht-
> > Von: users@cocoon.apache.org
> > Gesendet: 23.05.06 15:47:40
> > An: users@cocoon.apache.org
> > Betreff: Re: Exception in ServerPagesGenerator.generate() during xinclude
> 
> 
> > [EMAIL PROTECTED] wrote:
> > > Hi,
> > > 
> > > I have a problem with the xinclude transformer. After calling it, I get 
> > > the following error message:
> > > 
> > > org.apache.cocoon.ProcessingException: Exception in 
> > > ServerPagesGenerator.generate(): java.lang.RuntimeException: 
> > > java.lang.RuntimeException: 
> > > org.xml.sax.SAXException: Exception occured during xinclude processing, 
> > > and did not find a fallback element: null
> > > 
> > > Here are my files:
> > > 
> > > Sitemap:
> > > ==
> > > 
> > >> > src="resources/data/bs_insert_schutzziele.xml">
> > > 
> > >   
> > >   
> > >> > src="styles/portal/transformSchutzziele.xsl"/>
> > >   
> > > 
> > >   
> > >
> > >   
> > >  > > value="bs-portlets-bskonzept?add=no&type=Konzept&id={request-param:gid}"/>
> > >   
> > >   
> > > 
> > > 
> > > XML result before the xinclude transformer:
> > > ===
> > >  
> > >   http://namespaces.softwareag.com/tamino/response2"; 
> > > xmlns:xi="http://www.w3.org/2001/XInclude";>
> > >> > href="http://localhost/tamino/BSDB/Hessen?_XQUERY=update+insert+Allgemeine_Schutzziele_laut_Paragraph_14_MBO:_
> > >   
> > > Bauliche_Anlagen_sind_so_anzuordnen,_zu_errichten,_zu_aendern_und_instand_zu_halten,_dass_der_Entstehung_eines_Brandes_und_der_Ausbreitung_von_Feuer_und_Rauch_(Brandausbreitung)_
> > >  
> > > vorgebeugt_wird_und_bei_einem_Brand_die_Rettung_von_Menschen_und_Tieren_sowie_wirksame_Loescharbeiten_moeglich_sind.
> > >  Besondere_Schutzziele:_ Keine 
> > > +into+input()/BS_Konzept[gebaeude_id="1"]" /> 
> > 
> > This is really the XML result?  I ask because it is not well-formed XML; 
> > it contains special XML characters (<, ") within the href attribute.
> > 
> > >   
> > > 
> > > If I type this url from the href attribute of xinclude into my browser, 
> > > it works!
> > > And this is a sample of another matcher and it works also in cocoon:
> > >  
> > >  http://namespaces.softwareag.com/tamino/response2"; 
> > > xmlns:xi="http://www.w3.org/2001/XInclude";>
> > >> > href="http://localhost/tamino/BSDB/Hessen?_XQUERY=update+insert+Keine+into+input()/BS_Konzept[gebaeude_id="1"]"
> > >  /> 
> > >   
> > > 
> > > 
> > > So, what is wrong here?
> > > 
> > > Kathi
> > > 
> > > ___
> > > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
> > > kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
> > > 
> > > 
> > > -
> > > 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]
> > 
> 
> 
> Yes, it's the xml code, that is in the pipeline. I got it with a 
>  command directly before the xinclude transformer. 
> And it contains characters like '<' or '>'. But I put another sample into my 
> first mail that works. And there are also those characters in the xml 
> pipeline. And the xinclude works there.
> 
> Kathi
> 
> 
> __
> Verschicken Sie romantische, coole und witzige Bilder per SMS!
> Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


Hi again,

I tried to put the characters like '<' or '>' out of my xml using '<' and 
'>' instead of it. The stylesheet that creates the above xinclude statement 
that does not work looks like that:





?_XQUERY=update+insert

+<


+ID="

"

>




+<


+ID='

'

AW: AW: Cforms dates and data destinations

2006-05-24 Thread Christofer Dutz
If you add a tag called "head" anywhere in your template, then CForms will
add all CForm stuff (CSS, JavaScript, ... everything that belongs into a
html head-tag) it needs inside this tag. All you have to do in any
transformation is to "move" the entire content to the place it belongs o
using a simple 

One hint to the reading direction If you want to avoid having to code
multiple functions for reading from multiple places ... let cocoon do that
for you. If you add the following code to your CForm, then you can read from
any source cocoon can read from.

// For loadDocument
importClass(org.apache.excalibur.xml.dom.DOMParser);
importClass(org.apache.cocoon.environment.SourceResolver);
importClass(org.xml.sax.InputSource);

function loadDocument(uri) {
var parser = null;
var source = null;
var resolver = null;
try {
parser = cocoon.getComponent(DOMParser.ROLE);
resolver = cocoon.getComponent(SourceResolver.ROLE);
source = resolver.resolveURI(uri);
var is = new InputSource(source.getInputStream());
is.setSystemId(source.getURI());
return parser.parseDocument(is);
} finally {
if (source != null)
resolver.release(source);
cocoon.releaseComponent(parser);
cocoon.releaseComponent(resolver);
}
}


Here an example for using it:

var form = new Form("definition/guestbook-def.xml");
form.createBinding("bindings/guestbook-bind.xml");

var doc = loadDocument("cocoon:/guestbook.db?position=" + position);
form.load(doc);  

// Show the form
form.showForm("guestbook-templ.jexl");

I use XQuery with update functions for saving, but since this only works
with few Xml Databases, I left the code for saving out. I think you would
have to do this manually.

Chris

[ c h r i s t o f e r   d u t z ]

IT-Berater
univativ GmbH & Co. KG
Robert-Bosch-Str. 7, 64293 Darmstadt

fon:  0 61 51 / 66 717 -0
fax:  0 61 51 / 66 717 -29
email:  [EMAIL PROTECTED]
http://www.univativ.de

Darmstadt, Stuttgart, Karlsruhe, Düsseldorf


-Ursprüngliche Nachricht-
Von: Peter Flynn [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 23. Mai 2006 23:13
An: users@cocoon.apache.org
Betreff: Re: AW: Cforms dates and data destinations

Christofer Dutz wrote:
> a: The samples-styling xslt looks for a head-tag to insert the javascript.
> When starting to use CForms I missed that at first. Either change the xslt
> or add a dummy "head" element somewhere. You can move the stuff in another
> transformation ;)

Changing the XSLT is easy, but this sounds like I have to know what
Javascript it wants, and I wouldn't know where to start looking.

> b: As far as I understood everything you can either use W3C DOM Objects or
> java Beans with all get and set methods implemented. In flowscript you can
> do whatever you like with them. If you need some assistance, just mail me
> which form you prefer to store your data and I will send you some sample
> code.

DOM Objects would be preferable, but I haven't started learning
flowscript yet. I was just curious to see how Cocoon would be
expected to handle writing to the server disk, given that its
principal mode of operation is to read from disk and write down
the wire to the user.

Thanks very much for your offer, I'll mail separately about this.

///Peter

-
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]