Re: Cocoon & JBoss examples

2003-06-20 Thread Denis Svishchev
В сообщении от Пятница 20 Июнь 2003 20:20 Andreas Kühne 
написал(a):

Andreas!

I'm trying to use JBoss 4.0 with Cocoon 2.0.4.
My question is how can I configure standart EJB (if it's exist) for working 
with Oracle and which way can I use it from XSP .
Are there any samples on it?

> Hi Denis !
>
> > Does anybody know where can I find some examples about using EJB
> > components under JBoss from Cocoon XSP?
>
> Where is your problem ?
>
> You got all everything to call a EJB, because your just in Java Code ...
> get a JNDI context, find a home interface and call the bean ...
>
>
> Greetings
>
> Andrew

-- 
Best regards,
Denis Svishchev
ZAO "Mobicom-Kavkaz"


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



Re: How to trim whitespace?

2003-06-20 Thread Thang To
Hi Sonny,
Try the XSLT normalize-space() function in your stylesheets.
Hope this helps,
Thang
At 15:57 20/06/2003 -0700, you wrote:

Hi guys,

Does anyone know how to trim out all unnecessary whitespace on HTML and 
XML docs coming out of Cocoon pipelines before sending them to the 
browser?  I'd like to save some bandwidth costs where I can. :-)

Thanks!

Sonny

_
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
-
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]


How to trim whitespace?

2003-06-20 Thread Sonny Sukumar
Hi guys,

Does anyone know how to trim out all unnecessary whitespace on HTML and XML 
docs coming out of Cocoon pipelines before sending them to the browser?  I'd 
like to save some bandwidth costs where I can. :-)

Thanks!

Sonny

_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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


RE: Cocoon in BEA Weblogic

2003-06-20 Thread Ralph Goers


In the management console. Go the the Descriptor page for your
webapp.  Change "Servlet Reload Check Secs" to -1 and
"JSPPage Check Secs" to -1.
You can also make these changes manually.
Add the following in your weblogic.xml. 
In 

pageCheckSeconds
-1

then between the  and


   
-1

Ralph
At 6/20/2003 09:45 AM, you wrote:
How do you set that? I
am using weblogic 8.1. 
-Original Message- 
From: Ralph Goers
[mailto:[EMAIL PROTECTED]]

Sent: 20 June 2003 17:17 
To: [EMAIL PROTECTED] 
Subject: Re: Cocoon in BEA Weblogic 
Thanks.  I resolved my problem. The default
configuration, even in 
production mode, has BEA checking every second for changes
to the webapp 
and JSPs.  Explicity turning those off drastically
improved performance. 
Ralph 
At 6/20/2003 02:10 AM, you wrote: 
>Hello Ralph, 
>we use BEA WebLogic 5.1 and we also have terrible
performance problems and we 
>don't know how to solve them. For example on windows
with Apache Tomcat it 
>takes max. 2 minutes to generate an excel report with
3 records and on SUN 
>Solaris with BEA WLS 5.1 it takes aprox. 45
minutes! 
>As I see with 8.1 there are also performance
problems! 
> 
> 
>We are desparate and we don't know how to solve this
problem! I'm greatful for 
>any ehlp or hints! 
> 
>Thanks 
> Uwe 
> 
>[EMAIL PROTECTED] schrieb: 
> 
> > Does anyone have experience with running Cocoon in
Weblogic?  We are seeing 
> > terrible performance just accessing the hello.html
in the cocoon sample 
> > (1-5 transactions per second).  On the same
box using Jetty we can get 
> > close to 50.  This is with Weblogic Server
8.1. 
> > 
> > Ralph 
> > 
> >
-

> > To unsubscribe, e-mail:
[EMAIL PROTECTED] 
> > For additional commands, e-mail:
[EMAIL PROTECTED] 
> 
>-- 
>Uwe
Gerger   
_/_/_/   _/    _/  _/   
_/ 
>BMW AG, TG-53
IT-Technologie
_/   _/  _/_/_/_/  _/    _/

>80788
Muenchen 
_/_/_/   _/ _/ _/  _/ _/ _/ 
>Tel: +49 89 382
35687 
_/   _/  _/    _/  _/_/_/_/

>Fax: +49 89 382
49040
_/_/_/   _/    _/  _/   
_/ 
>mailto:[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] 
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.



HTML Generator, JTidy, charencoding

2003-06-20 Thread Gernot Koller
Hi!

I'm reading a HTML page from various URLs and convert it to XHTML using 
JTidy (as in HTML Generator). I know that I can configure JTidy to use a 
certain encoding by calling setCharEncoding(Configuration.UTF8); for 
example.
My problem is, that the character encoding is very often specifyed only 
within the HTML document using tags like .

Any tricks how to solve this problem ?

thx,

Gernot

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


SOLVED: ing, but with shared sitemap?

2003-06-20 Thread Dominic Chambers
On Fri, 2003-06-20 at 17:57, Christian Haul wrote:
> Dominic Chambers wrote:
> > Almost, but I need to switch based on host name. Perhaps if I could make
> > the result of the host name comparison a variable, like {1} is for
> > wildcard matches, that would work perfectly. I just tried this
> > experiemnt:
> 
> Try (Cocoon >= 2.0.4)
> 
>   
> 
> 
> 
>   
> 

Yes, that is perfect. Thanks Chris, Upayavira & Michael for the
excellent help!

>   Chris.


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



RE: Cocoon in BEA Weblogic

2003-06-20 Thread Tsui, Alban
Title: RE: Cocoon in BEA Weblogic





How do you set that? I am using weblogic 8.1.


-Original Message-
From: Ralph Goers [mailto:[EMAIL PROTECTED]]
Sent: 20 June 2003 17:17
To: [EMAIL PROTECTED]
Subject: Re: Cocoon in BEA Weblogic



Thanks.  I resolved my problem. The default configuration, even in 
production mode, has BEA checking every second for changes to the webapp 
and JSPs.  Explicity turning those off drastically improved performance.


Ralph


At 6/20/2003 02:10 AM, you wrote:
>Hello Ralph,
>we use BEA WebLogic 5.1 and we also have terrible performance problems and we
>don't know how to solve them. For example on windows with Apache Tomcat it
>takes max. 2 minutes to generate an excel report with 3 records and on SUN
>Solaris with BEA WLS 5.1 it takes aprox. 45 minutes!
>As I see with 8.1 there are also performance problems!
>
>
>We are desparate and we don't know how to solve this problem! I'm greatful for
>any ehlp or hints!
>
>Thanks
> Uwe
>
>[EMAIL PROTECTED] schrieb:
>
> > Does anyone have experience with running Cocoon in Weblogic?  We are seeing
> > terrible performance just accessing the hello.html in the cocoon sample
> > (1-5 transactions per second).  On the same box using Jetty we can get
> > close to 50.  This is with Weblogic Server 8.1.
> >
> > Ralph
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>--
>Uwe Gerger    _/_/_/   _/    _/  _/    _/
>BMW AG, TG-53 IT-Technologie _/   _/  _/_/_/_/  _/    _/
>80788 Muenchen  _/_/_/   _/ _/ _/  _/ _/ _/
>Tel: +49 89 382 35687  _/   _/  _/    _/  _/_/_/_/
>Fax: +49 89 382 49040 _/_/_/   _/    _/  _/    _/
>mailto:[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]


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.




How to get a parameter from web.xml

2003-06-20 Thread Andreas=20K=FChne
There are some cocoon parameters set in web.xml, e.g. upload-directory.

How can I manage to get the values of my own web.xml-properties in an generator or an 
action ? Is there a hidden path through the forest called 'objectModel' ?

Or am I conceptually wrong ?


Greetings 

Andrew
__
UNICEF bittet um Spenden fur die Kinder im Irak! Hier online an
UNICEF spenden: https://spenden.web.de/unicef/special/?mc=021101


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



Re: Cocoon & JBoss examples

2003-06-20 Thread Andreas=20K=FChne
Hi Denis !

>   Does anybody know where can I find some examples about using EJB components 
> under JBoss from Cocoon XSP?
Where is your problem ? 

You got all everything to call a EJB, because your just in Java Code ... get a JNDI 
context, find a home interface and call the bean ...


Greetings 

Andrew
__
UNICEF bittet um Spenden fur die Kinder im Irak! Hier online an
UNICEF spenden: https://spenden.web.de/unicef/special/?mc=021101


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



Re: Cocoon in BEA Weblogic

2003-06-20 Thread Ralph Goers
Thanks.  I resolved my problem. The default configuration, even in 
production mode, has BEA checking every second for changes to the webapp 
and JSPs.  Explicity turning those off drastically improved performance.

Ralph

At 6/20/2003 02:10 AM, you wrote:
Hello Ralph,
we use BEA WebLogic 5.1 and we also have terrible performance problems and we
don't know how to solve them. For example on windows with Apache Tomcat it
takes max. 2 minutes to generate an excel report with 3 records and on SUN
Solaris with BEA WLS 5.1 it takes aprox. 45 minutes!
As I see with 8.1 there are also performance problems!
We are desparate and we don't know how to solve this problem! I'm greatful for
any ehlp or hints!
Thanks
Uwe
[EMAIL PROTECTED] schrieb:

> Does anyone have experience with running Cocoon in Weblogic?  We are seeing
> terrible performance just accessing the hello.html in the cocoon sample
> (1-5 transactions per second).  On the same box using Jetty we can get
> close to 50.  This is with Weblogic Server 8.1.
>
> Ralph
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
Uwe Gerger_/_/_/   _/_/  _/_/
BMW AG, TG-53 IT-Technologie _/   _/  _/_/_/_/  _/_/
80788 Muenchen  _/_/_/   _/ _/ _/  _/ _/ _/
Tel: +49 89 382 35687  _/   _/  _/_/  _/_/_/_/
Fax: +49 89 382 49040 _/_/_/   _/_/  _/_/
mailto:[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: ing, but with shared sitemap?

2003-06-20 Thread Christian Haul
Dominic Chambers wrote:
Almost, but I need to switch based on host name. Perhaps if I could make
the result of the host name comparison a variable, like {1} is for
wildcard matches, that would work perfectly. I just tried this
experiemnt:
Try (Cocoon >= 2.0.4)

 
   
   
   
 
	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]


AW: ing, but with shared sitemap?

2003-06-20 Thread Michael Raffenberg
Hi, maybe this is what you are looking for:


  

  

  
  

  
  

  

  
 

Hope that helps,
Raffy

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Gesendet: Freitag, 20. Juni 2003 16:31
> An: [EMAIL PROTECTED]
> Betreff: Re: ing, but with shared sitemap?
> 
> 
> On Fri, 2003-06-20 at 16:25, Upayavira wrote:
> > > Yes. Exactly that. Is that possible?
> > 
> > Hmm. As I was writing that I was hoping you weren't going 
> to say yes!!
> > 
> > Anyway, I have built something similar recently, although I didn't 
> > have the two
> > sitemaps, I did it all with one.
> > 
> > I used stuff like:
> > 
> > 
> >   
> >   
> >   
> > 
> >   
> >   
> > 
> > 
> > There you have a site that'll work for the following structure:
> > 
> > root/
> >   sitemap.xmap
> >   skins/
> > foo/
> >   config.xml
> >   skin.xsl
> > bar/
> >   config.xml
> >   skin.xsl
> >   common/
> > prepare.xsl
> > 
> 
> Yes, that is very clever, I didn't think of that; that even 
> works if you need to match multiple pages by using two 
> wildcards, like "*/**.html". 
> but ...
> 
> > With a system like that, you can have some files accessed from your 
> > 'skins' directory
> > structure, and others from your common shared files, 
> depending upon whether you 
> > want them shared or separate.
> > 
> > Then you just need an error handling pipeline to catch those 
> > situations where the
> > URL doesn't match a valid skin.
> > 
> > Make sense? Does this do what you want?
> > 
> 
> Almost, but I need to switch based on host name. Perhaps if I 
> could make the result of the host name comparison a variable, 
> like {1} is for wildcard matches, that would work perfectly. 
> I just tried this
> experiemnt:
> 
> 
>   
> 
>   
> 
>   
> 
> 
> where host was a previously defined HostSelector. Of course 
> it didn't work!
> 
> Do you know of another way? I kind of need variables, 
> although I would probably think less highly of Cocoon if it 
> provided them: who wants to program in XML?
> 
> Thanks for your help!
> 
> > Regards, Upayavira
> > 
> > 
> > 
> -
> > 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: Modular database select -> session attributes won't fly

2003-06-20 Thread Christian Haul
Arthur Allen wrote:
Thanks Chris for the clarifications.
You wrote--
In  you need to configure
the output for the actions, for each one of the database actions
seperately. Add
session-attr

This would be the place to disable prepending table name or appending
row number to the parameter name. Again, see javadocs for DatabaseAction
Your syntax is correct according to the javadocs. I tried it (indeed 
already had
among many other things) and noted no change. I did use other directives
in that area to drop indices, which worked fine.
Arthur,
this is what I did to reproduce the problem:
a) fresh checkout from CVS (on 2003-06-20, nothing changed in this
particular area so this is not absolutely necessary, anyway, it
feels better to be able to refer to a version)
b) build.sh clean webapp
c) cocoon.sh servlet
d) edit build/webapp/samples/databases/mod-db/sitemap.xmap:
add session-attr to mod-db-add action:

   database.xml
   false
   session-attr

e) edit build/webapp/samples/databases/mod-db/user-list.xsp, add

  Session Attributes
  

  
{
   Enumeration e=request.getSession().getAttributeNames();
   while ( e.hasMoreElements() ) {
  String attribute = (String) e.nextElement();
  Object value = 
request.getSession().getAttribute(attribute);
  
attribute
="value"
  
   }
}
  

  

   near the end of the file, right after request parameters

f) fire up mozilla
http://localhost:/samples/databases/mod-db/user-list
and add a new group "guest"
result:
Session Attributes
org.apache.cocoon.components.modules.output.OutputModule:groups.gid[0]="1"
org.apache.cocoon.components.modules.output.OutputModule:groups.gname[0]="guest"
g) remove  in sitemap.xmap and add select action:

   
  database.xml
  false
  session-attr
   

   plus

  
 
 

 
  
   right after the 

h) add another group "staff"
i) add a new user "doe", "john", "jd", "staff"+"guest"
j) point browser to
http://localhost:/samples/databases/mod-db/user-list?sel-user=1&user.uid=0
   result:
Session Attributes
org.apache.cocoon.components.modules.output.OutputModule:groups.gid[0]="1"
org.apache.cocoon.components.modules.output.OutputModule:user.uname[0]="jd"
org.apache.cocoon.components.modules.output.OutputModule:user.name[0]="doe"
org.apache.cocoon.components.modules.output.OutputModule:user.uid[0]="0"
org.apache.cocoon.components.modules.output.OutputModule:groups.gname[0]="guest"
org.apache.cocoon.components.modules.output.OutputModule:user.firstname[0]="john"
which looks perfectly OK to me.

Now, you might not like the prefix "org...", to get rid of that, you 
need to configure "session-attr" in cocoon.xconf:

  

class="org.apache.cocoon.components.modules.output.SessionAttributeOutputModule" 
logger="core.modules.output" name="session-attr">
   

  

Mmmh, I'm afraid that this is not documented anywhere :-(

If you don't like the "[0]" etc., that *is* documented: add
   false
to the action's declaration like you did with .
I noted the output to the logger if that helps:
the modules log to Core

ComponentFactory creating new instance of 
org.apache.cocoon.acting.modular.DatabaseSelectAction.
Using cached configuration for content/xdocs/xbrl/dbDescriptor.xml

DatabaseAction: query: 
SELECT namespace, taxonomyid FROM loadedtaxonomies WHERE label= ?
Trying to set column loadedtaxonomies.label from session-attr using getAttribute method
Setting column loadedtaxonomies.label [0] usfr-gaap-ci
> row no. 0
Setting column loadedtaxonomies.label to usfr-gaap-ci
Setting column loadedtaxonomies.namespace to http://www.xbrl.org/taxonomy/us/fr/gaap/ci/2002-10-15
Setting column loadedtaxonomies.taxonomyid to 31
HTH

	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]


transform fucntion within XSLTProcessorImpl.java

2003-06-20 Thread Dave Dearman
Hi everyone,

I have been reading over the code for TraxTransformer.java and
XSLTProcessorImpl.java and I have a couple of questions concerning the
transform function.  It appears to me that the transform method takes in
both the complete XML document and XSLT document as source objects and
then conducts the transformation. Is this correct? And the result of the
transformation is stored within the results object? So essentailly this
transform method is called only once for each TraxTransformer within the
pipeline? Please correct me if I am wrong.

I am asking because I am a little confused over the flow of data using
the TraxTransformer, in particular where the transformation actually
takes place. 

Thanks :)
-dave



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



Re: How to get a request parameters as an xml tree?

2003-06-20 Thread Bruno PIERRE
here is my sitemap.xmap

  


  

  

  
  



  

In the XML generated by by the pattern "request" i have:

Hello
And so at each further step. but i want Hello without rebuilding it because the only way i see to do it (with my capabilities) is a recursives template XSL and i know it will be very hard. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: ing, but with shared sitemap?

2003-06-20 Thread Dominic Chambers
On Fri, 2003-06-20 at 16:25, Upayavira wrote:
> > Yes. Exactly that. Is that possible?
> 
> Hmm. As I was writing that I was hoping you weren't going to say yes!!
> 
> Anyway, I have built something similar recently, although I didn't have the two 
> sitemaps, I did it all with one.
> 
> I used stuff like:
> 
> 
>   
>   
>   
> 
>   
>   
> 
> 
> There you have a site that'll work for the following structure:
> 
> root/
>   sitemap.xmap
>   skins/
> foo/
>   config.xml
>   skin.xsl
> bar/
>   config.xml
>   skin.xsl
>   common/
> prepare.xsl
> 

Yes, that is very clever, I didn't think of that; that even works if you
need to match multiple pages by using two wildcards, like "*/**.html". 
but ...

> With a system like that, you can have some files accessed from your 'skins' 
> directory 
> structure, and others from your common shared files, depending upon whether you 
> want them shared or separate.
> 
> Then you just need an error handling pipeline to catch those situations where the 
> URL doesn't match a valid skin.
> 
> Make sense? Does this do what you want?
> 

Almost, but I need to switch based on host name. Perhaps if I could make
the result of the host name comparison a variable, like {1} is for
wildcard matches, that would work perfectly. I just tried this
experiemnt:


  

  

  


where host was a previously defined HostSelector. Of course it didn't
work!

Do you know of another way? I kind of need variables, although I would
probably think less highly of Cocoon if it provided them: who wants to
program in XML?

Thanks for your help!

> Regards, Upayavira
> 
> 
> -
> 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: ing, but with shared sitemap?

2003-06-20 Thread Upayavira

> > Presumably what you're saying is that you want to be able to mount
> > the common.xmap, but for that sitemap to be able to find out the
> > name of the directory that it was mounted to, so that it can be used
> > in locating other resources? Is that right?

> Yes. Exactly that. Is that possible?

Hmm. As I was writing that I was hoping you weren't going to say yes!!

Anyway, I have built something similar recently, although I didn't have the two 
sitemaps, I did it all with one.

I used stuff like:


  
  
  

  
  


There you have a site that'll work for the following structure:

root/
  sitemap.xmap
  skins/
foo/
  config.xml
  skin.xsl
bar/
  config.xml
  skin.xsl
  common/
prepare.xsl

With a system like that, you can have some files accessed from your 'skins' directory 
structure, and others from your common shared files, depending upon whether you 
want them shared or separate.

Then you just need an error handling pipeline to catch those situations where the 
URL doesn't match a valid skin.

Make sense? Does this do what you want?

Regards, Upayavira


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



Re: ing, but with shared sitemap?

2003-06-20 Thread Dominic Chambers
On Fri, 2003-06-20 at 15:36, Upayavira wrote:
> On 20 Jun 2003 at 15:17, Dominic Chambers wrote:
> 
> > The  tag allows sitemaps to be sub-divided, but it also allows
> > the request context (directory and url paths) to be changed. Is there
> > any way to get the cocoon to mount an application directory (i.e.
> > switch context), but still use a common sitemap file? 
> 
> Presumably what you're saying is that you want to be able to mount the 
> common.xmap, but for that sitemap to be able to find out the name of the directory 
> that it was mounted to, so that it can be used in locating other resources? Is that 
> right?
> 

Yes. Exactly that. Is that possible?

> Regards, Upayavira
> 
> 
> -
> 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: How to get a request parameters as an xml tree?

2003-06-20 Thread Lionel Crine
Can you tell some more ?

Is it from an xsp, or an xsl page ?

At 11:53 20/06/2003 +0200, you wrote:
Hello

when i send
xhtml = Hello
i receive

  
Hello
and i would like to get this as a node not as a string. Is there an easy way to do this? thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: ArrayIndexOutOfBoundsException when using copy-of to write into a new node

2003-06-20 Thread Lionel Crine
hi,
there is an error :
use
  
instead of
  
Also, $document is an  ?

About the error I don't know.
try to send this to the mulberrytech <[EMAIL PROTECTED]>.
Lionel

At 17:12 19/06/2003 +0200, you wrote:
hi!

I'm creating a website using the following software:
Tomcat:4.1.24
Cocoon: version 2.0.5-dev
Xalan: 2.5.1
Xerces: 2.4.0
What I'd like to do is the following:
Create a new tag in the result tree and copy a part of another xml-file in 
there.
Just like this:

  
 

 
  

This gives the following error which seems strange to me.

ERROR MESSAGE-

The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode 
notifies that org.apache.cocoon.ProcessingException says:

Exception during processing of 
file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/educeth/commondocs/structure.xml

More precisely:

org.apache.cocoon.ProcessingException: Exception during processing of 
file:/C:/Progra~1/jakarta-omcat-4.1.24/webapps/cocoon/docs/educeth/commondocs/structure.xml: 
java.lang.RuntimeException: Errors in XSLT transformation:
Fatal: File 
file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/educeth/stylesheets/assembly.xsl; 
Line 59; Column 81; java.lang.ArrayIndexOutOfBoundsException: -1

-END OF ERROR MESSAGE-

I get the same error if I use

  
 
 
 
  



Every other tag than  works as it should.

Below, I have attached the complete exception trace.

I would be very glad if someone could help me!
Thanks in advance!
Stefan
Original exception : java.lang.RuntimeException: Errors in XSLT 
transformation:
Fatal: File 
file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/educeth/stylesheets/assembly.xsl; 
Line 59; Column 81; java.lang.ArrayIndexOutOfBoundsException: -1

at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3364)
at 
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:427)
at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
at 
org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:589)
at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:302)
at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:321)
at 
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:197)
at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143)
at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:258)
at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:412)
at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:148)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:151)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:145)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:340)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:301)
at org.apache.cocoon.Cocoon.process(Cocoon.java:581)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1048)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.a

RE: wiki.cocoondev.org - is cocoon based?

2003-06-20 Thread Mato Mira, Fernando
> From: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]
>
> > i need something like this for documentation in our intranet
> > i want people here to be able to add update ar delete something
> 
> JSPWiki is IMO one of the best wiki implementations around.
> I think TWiki (http://twiki.org/) still beats it in features but it 
> doesn't look as nice out of the box.

There's also CLiki:

http://www.cliki.net/CLiki


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



Re: ing, but with shared sitemap?

2003-06-20 Thread Upayavira
On 20 Jun 2003 at 15:17, Dominic Chambers wrote:

> The  tag allows sitemaps to be sub-divided, but it also allows
> the request context (directory and url paths) to be changed. Is there
> any way to get the cocoon to mount an application directory (i.e.
> switch context), but still use a common sitemap file? I need a number
> of virtual hosts all running the same cocoon app, but with different
> content; like:
> 
> >base-dir
>   sitemap.xmap (a simple virtual host switcher)
>   common.xmap (the file to be mounted for each host-dir)
>   >host1-dir
>   >host2-dir

Presumably what you're saying is that you want to be able to mount the 
common.xmap, but for that sitemap to be able to find out the name of the directory 
that it was mounted to, so that it can be used in locating other resources? Is that 
right?

Regards, Upayavira


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



org.apache.log.Logger.fireEvent

2003-06-20 Thread Boris Althaus



Hallo Cocoonlist,
 
From an html-embeded editor i get html, which i 
have to clean with tidy(initialised in a xsp-page)
When i used this editor for about 20 or 30 times, 
cocoon dies with the following trace-message.
Does somebody has an idea what's going 
wrong?
 
I use 
cocoon-2.0.4/tomcat-4.1.12/Suse8.0(linux)
 

java.lang.NullPointerException
at org.apache.log.Logger.fireEvent(Logger.java:612)
at org.apache.log.Logger.output(Logger.java:587)
at org.apache.log.Logger.output(Logger.java:570)
at org.apache.log.Logger.fatalError(Logger.java:257)
at org.apache.cocoon.sitemap.Handler.checkSanity(Handler.java:256)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:219)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
at 
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152)
at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:256)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:361)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:563)
at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:535)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:638)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)









 
Boris


ing, but with shared sitemap?

2003-06-20 Thread Dominic Chambers
The  tag allows sitemaps to be sub-divided, but it also allows
the request context (directory and url paths) to be changed. Is there
any way to get the cocoon to mount an application directory (i.e. switch
context), but still use a common sitemap file? I need a number of
virtual hosts all running the same cocoon app, but with different
content; like:

>base-dir
  sitemap.xmap (a simple virtual host switcher)
  common.xmap (the file to be mounted for each host-dir)
  >host1-dir
  >host2-dir

I get this to work at the moment using symbolic links from the host-dir
to the base-dir, but that seems like a hack, and may come to haunt me
later - like when I try to deploy this stuff.

Any help would be much appreciated.



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



RE: [Error] Sendmail Logicsheet and Cinclude

2003-06-20 Thread Yan, Charlene
I saw a thread about attaching a file (possibly url) as an attachment.  Will that work 
for you?  I'm going to work on that next week.  Maybe we will be able to share some 
ideas.  My requirements are as follows:
1.  When user clicks on "Send Email" button.  I have an xml String sent to 
StreamGenerator, then transformed by xsl-fo and serialized by jfor to rtf and 
displayed on a screen.  
2.  The next step is to use sendMail to send the created rtf document as an attachment 
to an email address.

I haven't started to look into it yet.  I'm thinking about saving the created rtf in 
step 1 on the server and then sending it as an attachment.

Anyway, more later on this.

Charlene

-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 7:52 AM
To: [EMAIL PROTECTED]
Subject: Re: [Error] Sendmail Logicsheet and Cinclude


[EMAIL PROTECTED] wrote:
> I've been stumbling the past couple of days through the sendmail 
> logicsheet and sendmail actions in 2.1-M1.
> 
> Here's what I'm trying to do:
> 
> Include generated content (i.e. content produced by a pipeline) into the 
> body of an email sent by sendmail action or logicsheet.

This is possible only by using the util logicsheet.

> The sendmail action has been a deadend, so I've looked at the sendmail 
> logicsheet. Below is mail.xsp, my attempt to implement sending a message 

Both share the same code, so if one does not work, the other is unlikely 
to do better. However, mind sharing why the action didn't work out?

> body created by a pipeline. Please note that I have defined the 
> necessary namespaces in the xsp:page element:

>   The results of processing the pipeline triggered at 
>the uri: workPlanning/contents. are below.
>
>element="included" />
> 

This does not work as it adds the result of the inclusion to the SAX 
stream _directed_at_the_client_ while you need to have it as e.g. string 
to pass to sendmail.

The "correct" solution is to use  to pull in the generated content.
AFAIR you could as well do 

> I'd appreciate some assistance with this. Once I've found my way around 
> this problem, I'll write up a how-to for the cocoondev.org wiki.

Deal!

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]


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



woody date extension

2003-06-20 Thread Frank Taffelt
Hi,

i have a form which contains 2 fields with date entries (ex.:'17.06.2003
13:55'). What are the steps to get woody to:

* validate the values against a given dateformat ex. "dd.MM. HH:mm"
* to say in a assertion rule that date2 must be greater than date1
(date1,date2 are the formfields)

do i have to create a new Woody Datatype or a new ValidationRule for
Datatype String ?

thanks in advance
Frank



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



[OT] TWiki (was: wiki.cocoondev.org - is cocoon based?)

2003-06-20 Thread Bertrand Delacretaz
...Access control: Define groups and impose fine grained read and
write access restrictions based on groups and users
Can be very helpful in making Wikis accepted by reluctant people, even 
though you'd probably turn it off after a few weeks of use
;-)

...seem to be ones missing from JSPWiki but many of the others
are present...
 Another cool feature is the drawing applet 
(http://twiki.org/cgi-bin/view/TWiki/TWikiDrawPlugin)

...Is there a more detailed comparison of the two systems available
anywhere??...
I don't know.

-Bertrand

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


Re: wiki.cocoondev.org - is cocoon based?

2003-06-20 Thread Derek Hohls
Bertrand

You're right about TWiki - I originally picked JSPWiki in the
hope that (in the long-term at least) it could be perhaps
linked into Cocoon somehow ... perhaps generating XML
from the structured text? I also was not very attracted by
the cgi-bin/perl technology used in TWiki.

Browsing over to TWiki, I don't see that many features
that are lacking in JSPWiki - for example:

Structured content: Use TWiki Forms to classify and categorize 
unstructured web pages and to create simple workflow systems. 
Access control: Define groups and impose fine grained read and 
write access restrictions based on groups and users. 
Application platform: Developers use the TWiki platform to create 
web-based applications.  An example application is the XpTrackerPlugin
 which allows teams to track Extreme Programming (XP) projects.
Managing users: Web based user registration and change of password. 

seem to be ones missing from JSPWiki but many of the others
are present.  

Is there a more detailed comparison of the two systems available
anywhere??

Thanks
Derek

>>> [EMAIL PROTECTED] 20/06/2003 02:03:03 >>>
> 1. is it powered (served) by cocoon or  not

no, it is JSPWiki from http://www.jspwiki.org/ 

> 2. is it open source ?

yes

> i need something like this for documentation in our intranet
> i want people here to be able to add update ar delete something

JSPWiki is IMO one of the best wiki implementations around.
I think TWiki (http://twiki.org/) still beats it in features but it 
doesn't look as nice out of the box.

--
   Bertrand Delacretaz
   independent consultant, Lausanne, Switzerland
   http://cvs.apache.org/~bdelacretaz/ 


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



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Mailscanner thanks transtec Computers for their support.


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



Content Aggregation --> Wiki

2003-06-20 Thread Alexander Schatten
As I was asked by others, I put a little more concise description of the 
content-aggregation example to generate a table of content from a list 
of XML files to the Cocoon Wiki:

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

I hope this is o.k. and may help.



Alex

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


Re: wiki.cocoondev.org - is cocoon based?

2003-06-20 Thread Bertrand Delacretaz
1. is it powered (served) by cocoon or  not
no, it is JSPWiki from http://www.jspwiki.org/

2. is it open source ?
yes

i need something like this for documentation in our intranet
i want people here to be able to add update ar delete something
JSPWiki is IMO one of the best wiki implementations around.
I think TWiki (http://twiki.org/) still beats it in features but it 
doesn't look as nice out of the box.

--
  Bertrand Delacretaz
  independent consultant, Lausanne, Switzerland
  http://cvs.apache.org/~bdelacretaz/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [Error] Sendmail Logicsheet and Cinclude

2003-06-20 Thread Christian Haul
[EMAIL PROTECTED] wrote:
I've been stumbling the past couple of days through the sendmail 
logicsheet and sendmail actions in 2.1-M1.

Here's what I'm trying to do:

Include generated content (i.e. content produced by a pipeline) into the 
body of an email sent by sendmail action or logicsheet.
This is possible only by using the util logicsheet.

The sendmail action has been a deadend, so I've looked at the sendmail 
logicsheet. Below is mail.xsp, my attempt to implement sending a message 
Both share the same code, so if one does not work, the other is unlikely 
to do better. However, mind sharing why the action didn't work out?

body created by a pipeline. Please note that I have defined the 
necessary namespaces in the xsp:page element:

  The results of processing the pipeline triggered at 
   the uri: workPlanning/contents. are below.
   


This does not work as it adds the result of the inclusion to the SAX 
stream _directed_at_the_client_ while you need to have it as e.g. string 
to pass to sendmail.

The "correct" solution is to use  to pull in the generated content.
AFAIR you could as well do 

I'd appreciate some assistance with this. Once I've found my way around 
this problem, I'll write up a how-to for the cocoondev.org wiki.
Deal!

	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: Table of contents

2003-06-20 Thread Alexander Schatten
Albert Shih wrote:

Hi all

(sorry for my bad english)

I'm very newbie in cocoon. But before I very start in this nice framework. I want
need to known something. After I read the book (Cocoon developper's handbook Moscar & Aston) 
I think it's possible, but I need a confirmation.

 

alright: I send you my solution, maybe it is helpful.

(1) first of all the sitemap:

   
   
   
   
   
   
   
   
   
   
   
   
   
   

in the /user/xml/articles directory the XML files to be aggregated can 
be found.

(2) "article-cincludes.xsl" this file is responsible for the aggregation 
of the documents:



   xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
   xmlns:dir="http://apache.org/cocoon/directory/2.0";
   xmlns:ci="http://apache.org/cocoon/include/1.0";
>
   
   
   
   
   
   
   
   
   
   


(3) and then there is finally the "article-list.xsl" I will not post it 
here because it is rather long and not really interesting for you as it 
is very depending of the purpose of your documents.

however, if you modify the sitemap entry above to this:

   
   
   
   
   
   
   
   
   
   

open the page in the browser, then view the page source; then you see 
the generated aggregated XML document. It should be of no difficulty for 
you to write an appropriate XSL file for this result.

hope this helps.

Alex

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


Re: XML Parsing + SAX

2003-06-20 Thread Brian Delahunty
Thanks. That worked perfectly :-D


- Original Message - 
From: "Merenidis, Grigorios" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 18, 2003 4:13 PM
Subject: AW: XML Parsing + SAX


Hi!

try this:

XMLReader parser =
XMLReaderFactory.createXMLReader(org.apache.xerces.parsers.SAXParser);
ContentHandler c1 = new ContentHandler();
ErrorHandler e1 = new ErrorHandler();
parser.setContentHandler(c1);
parser.setErrorHandler(e1);
parser.parse(new InputSource(new StringReader("your special
String!!")));

cheers

gregori

-Ursprüngliche Nachricht-
Von: Brian Delahunty [mailto:[EMAIL PROTECTED]
Gesendet am: Mittwoch, 18. Juni 2003 17:11
An: [EMAIL PROTECTED]
Betreff: XML Parsing + SAX

Hey,

I have a String that contains an XML file [not a URL/URI that points to an
XML file but the actual XML itself].

I'm tying to use this string in a custom generator to produce sa exents. I'm
using this code so far:

XMLReader xmlr = XMLReaderFactory.createXMLReader();
xmlr.setContentHandler(this.contentHandler);
xmlr.parse(  );

I can't get parse to work with a String.

Any ideas?

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]



Re: XML Parsing + SAX

2003-06-20 Thread Brian Delahunty
I don't actually have a file [Wish I did!]. It's a String with the XML
inside it that I get as a return value from a static method of a different
class. The XML itself is within the String. I could save it to file and then
use that but thats not very extensible.

Any ideas?


- Original Message - 
From: "e nio" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 18, 2003 6:41 PM
Subject: RE: XML Parsing + SAX


>   I believe a File object can be converted to a URL, look at the
> toURL() method.
>
> --- "Carmona Perez, David" <[EMAIL PROTECTED]> wrote:
> > Why don't you use a java.io.StringBufferInputStream?
> >
> > 
> > David
> >
> > -Mensaje original-
> > De: Brian Delahunty [mailto:[EMAIL PROTECTED]
> > Enviado el: miércoles, 18 de junio de 2003 17:11
> > Para: [EMAIL PROTECTED]
> > Asunto: XML Parsing + SAX
> >
> > Hey,
> >
> > I have a String that contains an XML file [not a URL/URI that
> > points to an XML file but the actual XML itself].
> >
> > I'm tying to use this string in a custom generator to produce
> > sa exents. I'm using this code so far:
> >
> > XMLReader xmlr = XMLReaderFactory.createXMLReader();
> > xmlr.setContentHandler(this.contentHandler);
> > xmlr.parse(  );
> >
> > I can't get parse to work with a String.
> >
> > Any ideas?
> >
> > Brian
> >
> >
>
>
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
>
> -
> 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: need help on cocoon and XSP

2003-06-20 Thread ntic
Yes i've seen it but i don't see the trouble with the first error (Ligne 
272)
Thios is the code :

   String type_exp=request.getParameter("type");
   String[] val=request.getParameterValues("select_item[]");
   String chaine="";
   int longueur=val.length;
  
   // construction de la chaine des conditions requises

   for (int i=0;i ligne 272
   chaine+="[livre_tbl.id_livre=meta_"+type_exp+"_tbl.id_livre"+
   " AND meta_"+type_exp+"_tbl.id_"+type_exp+"='"+val[i]+"']";
   if (i<(longueur-1)) {
   chaine=chaine+" OR ";
   }
   };

and i think that the second error depends on the first...
i don't know why there is an illegal start of type on line 272...
If someone see...
thancks
Alex
leo leonid a écrit :

Did you already look at the generated java source?
([work-dir]/cocoon-files/org/apache/www/[projek-dirs]/ 
comp_rech_xsp.java)   
/leo

On Freitag, Juni 20, 2003, at 12:14  Uhr, ntic wrote:

   Hello,
I have some little trouble with this XSP script :
The aims of this one is to get some POST variables, to build a 
query,  compute it and show the result with XSLT stylesheet.
I use cocoon 2.0.4
j2sdk1.4.1_02

But cocoon says that to me :

org.apache.cocoon.ProcessingException: Language Exception:  
org.apache.cocoon.components.language.LanguageException: Error  
compiling comp_rech_xsp:
Line 272, column 8:  illegal start of type
Line 377, column 58:  method valueOf() not found in class  
java.lang.String
Line 0, column 0: 2 errors

The script :

http://apache.org/xsp"; 
xmlns:esql="http://apache.org/cocoon/SQL/v2";
   xmlns:xsl="http://www.w3c.org/1999/XSL/Transform";>

   java.net.*
   java.util.*
   javax.servlet.*
   javax.servlet.http.*

   
String type_exp=request.getParameter("type");
String[] val=request.getParameterValues("select_item[]");
String chaine="";
int longueur=val.length;

// construction de la chaine des conditions requises

for (int i=0;i

Re: need help on cocoon and XSP

2003-06-20 Thread Alex Keledjian
Yes i've seen it but i don't see the trouble with the first error (Ligne 
272)
This is the code :

  String type_exp=request.getParameter("type");
  String[] val=request.getParameterValues("select_item[]");
  String chaine="";
  int longueur=val.length;
// construction de la chaine des conditions requises
  for (int i=0;i ligne 272
  chaine+="[livre_tbl.id_livre=meta_"+type_exp+"_tbl.id_livre"+
  " AND meta_"+type_exp+"_tbl.id_"+type_exp+"='"+val[i]+"']";
  if (i<(longueur-1)) {
  chaine=chaine+" OR ";
  }
  };

and i think that the second error depends on the first...
i don't know why there is an illegal start of type on line 272...
If someone see...
thancks
Alex
leo leonid a écrit :

Did you already look at the generated java source?
([work-dir]/cocoon-files/org/apache/www/[projek-dirs]/ 
comp_rech_xsp.java)   /leo

On Freitag, Juni 20, 2003, at 12:14  Uhr, ntic wrote:

   Hello,
I have some little trouble with this XSP script :
The aims of this one is to get some POST variables, to build a 
query,  compute it and show the result with XSLT stylesheet.
I use cocoon 2.0.4
j2sdk1.4.1_02

But cocoon says that to me :

org.apache.cocoon.ProcessingException: Language Exception:  
org.apache.cocoon.components.language.LanguageException: Error  
compiling comp_rech_xsp:
Line 272, column 8:  illegal start of type
Line 377, column 58:  method valueOf() not found in class  
java.lang.String
Line 0, column 0: 2 errors

The script :

http://apache.org/xsp"; 
xmlns:esql="http://apache.org/cocoon/SQL/v2";
   xmlns:xsl="http://www.w3c.org/1999/XSL/Transform";>

   java.net.*
   java.util.*
   javax.servlet.*
   javax.servlet.http.*

   
String type_exp=request.getParameter("type");
String[] val=request.getParameterValues("select_item[]");
String chaine="";
int longueur=val.length;
// construction de la chaine des conditions requises
for (int i=0;i

Link Livesites: www.megabag.gr

2003-06-20 Thread Stavros Kounis

industrial add trading company of specialized polymer materials

lang: EN


cocoon 2.0.4 (apache at front with mod_proxy)
tomcat 4.1.24
redhat linux
jdk 1.4

--- stavros



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



Re: pipeline dependencies

2003-06-20 Thread Ali Mesbah
As quoted from Upayavira <[EMAIL PROTECTED]>:
> Ali,
> 
> Have you seen:
> 
> http://wiki.cocoondev.org/Wiki.jsp?page=MetaStylesheets
> 
> Maybe that'll help.

It works indeed. I see what I was doing wrong; 
In my Meta_output at some places I had something like:


  

  


This works if you save the output on filesystem and read it again but not using
it directly via Cocoon protocol. The trick is to create elements explicitely instead 
of using xsl:text:


  
path

  $root
 
  


Thanks Upayavira for helping out,

Ali

> Regards, Upayavira
> 
> On 20 Jun 2003 at 11:16, Ali Mesbah wrote:
> 
> > As quoted from Upayavira <[EMAIL PROTECTED]>:
> > > Another way you can do it is read your original content from disc,
> > > then transform it into something like:
> > > 
> > > 
> > >   
> > > Blah
> > >   
> > >   Blah
> > > 
> > > 
> > > This way you repeat your content twice, once to go into the SWT, and
> > > once to go on to the output. Your following transformer then just
> > > strips out any nodes in the SWT namespace.
> > > 
> > > Make sense?
> > > 
> > > Can you explain a little more _why_ you want to be writing to disk?
> > > That'll help me understand how best you can achieve your
> > > requirements.
> > 
> > The thing is I generate a stylesheet in B which is used in A (and in
> > other pipelines):
> > 
> > 
> >   
> >   
> >   
> > 
> > 
> > Note that the output of B is a stylesheet (say output.xsl).
> > 
> > Then the first thing that comes to mind is using the Cocoon protocol
> > to read this output.xsl as the src of the transformer in A:
> > 
> > 
> >   
> >   
> >   
> > 
> > 
> > But unfortunately this does not work. (I have posted messages on this
> > matter a few days ago). The output of A is not what it should be at
> > all. 
> > 
> > So I thought a workaround is to write the output.xsl to file and then
> > read it in A. But then I had the issue of dependencies
> > 
> > I hope i have been clear enough. By the way have you ever tried to use
> > cocoon:/ as the src of a Transformer?
> > 
> > Thanks,
> > Ali
> > 
> > > Regards, Upayavira
> > > 
> > > 
> > > 
> > >   
> > >   

How to get a request parameters as an xml tree?

2003-06-20 Thread Bruno PIERRE



Hello
 
when i send
xhtml = Hello
 
i receive
  
Hello
  and i would like to get this as a node not as a string. Is there an easy way to do this?   thanks.

RE: wiki.cocoondev.org - is cocoon based?

2003-06-20 Thread Reinhard Pötz
http://wiki.cocoondev.org/Wiki.jsp?page=SystemInfo

Reinhard

> -Original Message-
> From: Stavros Kounis [mailto:[EMAIL PROTECTED] 
> Sent: Friday, June 20, 2003 11:41 AM
> To: [EMAIL PROTECTED]
> Subject: wiki.cocoondev.org - is cocoon based?
> 
> 
> 
> hi people
> 
> i have 2 question about wiki in cocoondev
> 
> 1. is it powered (served) by cocoon or  not
> 2. is it open source ?
> 
> i need something like this for documentation in our intranet
> i want people here to be able to add update ar delete something
> 
> 
> 
> thnx
> 
> 
> stavros
> 
> 
> 
> -
> 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]



call webservices using cocoon

2003-06-20 Thread shankar
Hi,

How to call webservices from cocoon?
Any examples / links appreciated,
Thanks in Advance,
shankar


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


RE: wiki.cocoondev.org - is cocoon based?

2003-06-20 Thread Christopher Watson

> -Original Message-
> From: Stavros Kounis [mailto:[EMAIL PROTECTED] 
> Sent: 20 June 2003 10:41
> To: [EMAIL PROTECTED]
> Subject: wiki.cocoondev.org - is cocoon based?
> 
> 
> 
> hi people
> 
> i have 2 question about wiki in cocoondev
> 
> 1. is it powered (served) by cocoon or  not

It's JSP Wiki available at www.jspwiki.org 

So I guess thi is off-topic !

> 2. is it open source ?

Yes

> 
> i need something like this for documentation in our intranet

I've used it for exactly the same!

> i want people here to be able to add update ar delete something

You can use tomcat to add realm-based login security

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



wiki.cocoondev.org - is cocoon based?

2003-06-20 Thread Stavros Kounis

hi people

i have 2 question about wiki in cocoondev

1. is it powered (served) by cocoon or  not
2. is it open source ?

i need something like this for documentation in our intranet
i want people here to be able to add update ar delete something



thnx


stavros



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



Re: pipeline dependencies

2003-06-20 Thread Upayavira
Ali,

Have you seen:

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

Maybe that'll help.

Regards, Upayavira

On 20 Jun 2003 at 11:16, Ali Mesbah wrote:

> As quoted from Upayavira <[EMAIL PROTECTED]>:
> > Another way you can do it is read your original content from disc,
> > then transform it into something like:
> > 
> > 
> >   
> > Blah
> >   
> >   Blah
> > 
> > 
> > This way you repeat your content twice, once to go into the SWT, and
> > once to go on to the output. Your following transformer then just
> > strips out any nodes in the SWT namespace.
> > 
> > Make sense?
> > 
> > Can you explain a little more _why_ you want to be writing to disk?
> > That'll help me understand how best you can achieve your
> > requirements.
> 
> The thing is I generate a stylesheet in B which is used in A (and in
> other pipelines):
> 
> 
>   
>   
>   
> 
> 
> Note that the output of B is a stylesheet (say output.xsl).
> 
> Then the first thing that comes to mind is using the Cocoon protocol
> to read this output.xsl as the src of the transformer in A:
> 
> 
>   
>   
>   
> 
> 
> But unfortunately this does not work. (I have posted messages on this
> matter a few days ago). The output of A is not what it should be at
> all. 
> 
> So I thought a workaround is to write the output.xsl to file and then
> read it in A. But then I had the issue of dependencies
> 
> I hope i have been clear enough. By the way have you ever tried to use
> cocoon:/ as the src of a Transformer?
> 
> Thanks,
> Ali
> 
> > Regards, Upayavira
> > 
> > 
> > 
> >   
> >   

Re: pipeline dependencies

2003-06-20 Thread Upayavira
> The thing is I generate a stylesheet in B which is used in A (and in
> other pipelines):
> 
> 
>   
>   
>   
> 
> 
> Note that the output of B is a stylesheet (say output.xsl).
> 
> Then the first thing that comes to mind is using the Cocoon protocol
> to read this output.xsl as the src of the transformer in A:
> 
> 
>   
>   
>   
> 
> 
> But unfortunately this does not work. (I have posted messages on this
> matter a few days ago). The output of A is not what it should be at
> all. 
> 
> So I thought a workaround is to write the output.xsl to file and then
> read it in A. But then I had the issue of dependencies
> 
> I hope i have been clear enough. By the way have you ever tried to use
> cocoon:/ as the src of a Transformer?

Ah. Much clearer now. No you shouldn't use the SWT to do this - you should be able 
to rely upon Cocoon's caching to worry about that for you.

Yes, you can access stylesheets using the cocoon: protocol. No I haven't done it yet, 
but I will need to do so soon.

So, when you say you tried it and it doesn't work, what doesn't work? What happens?

Also, what version of Cocoon are you using?

Regards, Upayavira




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



Re: pipeline dependencies

2003-06-20 Thread Ali Mesbah
As quoted from Upayavira <[EMAIL PROTECTED]>:
> Another way you can do it is read your original content from disc, then transform it 
> into something like:
> 
> 
>   
> Blah
>   
>   Blah
> 
> 
> This way you repeat your content twice, once to go into the SWT, and once to go on 
> to the output. Your following transformer then just strips out any nodes in the SWT 
> namespace.
> 
> Make sense?
> 
> Can you explain a little more _why_ you want to be writing to disk? That'll help me 
> understand how best you can achieve your requirements.

The thing is I generate a stylesheet in B which is used in A (and in other
pipelines):


  
  
  


Note that the output of B is a stylesheet (say output.xsl).

Then the first thing that comes to mind is using the Cocoon protocol to read
this output.xsl as the src of the transformer in A:


  
  
  

  
But unfortunately this does not work. (I have posted messages on this matter a
few days ago). The output of A is not what it should be at all. 

So I thought a workaround is to write the output.xsl to file and then read it in
A. But then I had the issue of dependencies

I hope i have been clear enough. By the way have you ever tried to use cocoon:/
as the src of a Transformer?

Thanks,
Ali

> Regards, Upayavira
> 
> 
> 
>   
>   

Re: Cocoon in BEA Weblogic

2003-06-20 Thread Uwe Gerger
Hello Ralph,
we use BEA WebLogic 5.1 and we also have terrible performance problems and we
don't know how to solve them. For example on windows with Apache Tomcat it
takes max. 2 minutes to generate an excel report with 3 records and on SUN
Solaris with BEA WLS 5.1 it takes aprox. 45 minutes!
As I see with 8.1 there are also performance problems!


We are desparate and we don't know how to solve this problem! I'm greatful for
any ehlp or hints!

Thanks
Uwe

[EMAIL PROTECTED] schrieb:

> Does anyone have experience with running Cocoon in Weblogic?  We are seeing
> terrible performance just accessing the hello.html in the cocoon sample
> (1-5 transactions per second).  On the same box using Jetty we can get
> close to 50.  This is with Weblogic Server 8.1.
>
> Ralph
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

--
Uwe Gerger_/_/_/   _/_/  _/_/
BMW AG, TG-53 IT-Technologie _/   _/  _/_/_/_/  _/_/
80788 Muenchen  _/_/_/   _/ _/ _/  _/ _/ _/
Tel: +49 89 382 35687  _/   _/  _/_/  _/_/_/_/
Fax: +49 89 382 49040 _/_/_/   _/_/  _/_/
mailto:[EMAIL PROTECTED]




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



Re: pipeline dependencies

2003-06-20 Thread Upayavira
> > If you can get pipeline B to cache, then it will only write if the
> > source of that pipeline has changed.
> > 
> > Then, if necessary, you can ignore the aggregated output from
> > pipeline B, but it is just there to enforce the dependency.
> > 
> > All depends upon the caching of the SourceWritingTransformer. 

> Thanks Upayavira. 
> I think with the current implementation that is the only
> possible way of doing it. Although it's not efficient (you dont
> actually want to aggregate), it serves the purpose.

Another way you can do it is read your original content from disc, then transform it 
into something like:


  
Blah
  
  Blah


This way you repeat your content twice, once to go into the SWT, and once to go on 
to the output. Your following transformer then just strips out any nodes in the SWT 
namespace.

Make sense?

Can you explain a little more _why_ you want to be writing to disk? That'll help me 
understand how best you can achieve your requirements.

Regards, Upayavira



  
  

Re: Exception when using copy-of

2003-06-20 Thread Bruno PIERRE
you can use :


  






but their is a problem cocoon reindent automatically.
the tag xsl:output is ignored

and when building your variable $document be carefful not doing it with

  
  /
  


but with


-Mensaje original-
De: Stefan Hilzinger [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de junio de 2003 17:38
Para: [EMAIL PROTECTED]
Asunto: Exception when using copy-of

this message had been rejected because of its previous subject, so I send it
again. Sorry if you should receive twice as well!

hi!

I'm creating a website using the following software:
Tomcat:4.1.24
Cocoon: version 2.0.5-dev
Xalan: 2.5.1
Xerces: 2.4.0
jdk 1.4.1_02
os's: windows xpp / suse linux 8.0


What I'd like to do is the following:
Create a new tag in the result tree and copy a part of another xml-file in
there.
Just like this:

   
  
 
  
   

This gives the following error which seems strange to me.

ERROR MESSAGE-

The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies
that org.apache.cocoon.ProcessingException says:

Exception during processing of
file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/educeth/commondo
cs/structure.xml

More precisely:

org.apache.cocoon.ProcessingException: Exception during processing of
file:/C:/Progra~1/jakarta-omcat-4.1.24/webapps/cocoon/docs/educeth/commondoc
s/structure.xml:
java.lang.RuntimeException: Errors in XSLT transformation:
Fatal: File
file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/educeth/styleshe
ets/assembly.xsl;
Line 59; Column 81; java.lang.ArrayIndexOutOfBoundsException: -1

-END OF ERROR MESSAGE-


I get the same error if I use

   
  
  
  
   



Every other tag than  works as it should.


Below, I have attached the complete exception trace.


I would be very glad if someone could help me!
Thanks in advance!
Stefan


Original exception : java.lang.RuntimeException: Errors in XSLT
transformation:
Fatal: File
file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/educeth/styleshe
ets/assembly.xsl;
Line 59; Column 81; java.lang.ArrayIndexOutOfBoundsException: -1

at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3364)
at
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerH
andlerImpl.java:427)
at
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
at
org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer
.java:589)
at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatc
h(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:302)
at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:321)
at
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStrea
mSource.java:197)
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:258)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:412)
at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri
alizeNode.java:148)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:84)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:164)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:151)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:145)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:340)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:301)
at org.apache.cocoon.Cocoon.process(Cocoon.java:581)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServl

Re: pipeline dependencies

2003-06-20 Thread Ali Mesbah
As quoted from Upayavira <[EMAIL PROTECTED]>:
> > Is it possible to define pipeline dependencies in the sitemap? 
> > 
> > Imagine I have two pipelines A and B. 
> > Pipeline B has a SourceWritingTransformer and all it does is writing a
> > generated document on the filesystem. Pipeline A has its own generator
> > and transformer but it depends on the document written by B. So A
> > denpends on B. In other words when A is called B has to be called
> > first but the output of A sould be serialized to the browser (and not
> > the output of B).
> 
> You could try just including pipeline B in with pipeline A using cocoon:, e.g.
> 
> 
>   
>   
>   
> 
> 
> 
>   
> 
> 
>   
>   
>   
> 
> 
> If you can get pipeline B to cache, then it will only write if the source of that 
> pipeline 
> has changed.
> 
> Then, if necessary, you can ignore the aggregated output from pipeline B, but it is 
> just 
> there to enforce the dependency.
> 
> All depends upon the caching of the SourceWritingTransformer. 
> 

Thanks Upayavira. 
I think with the current implementation that is the only
possible way of doing it. Although it's not efficient (you dont actually want to
aggregate), it serves the purpose.



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

-- 
-- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600

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



RE: Exception when using copy-of

2003-06-20 Thread Upayavira
> I haven't seen in http://www.apache.org/dist/cocoon/ the existence of
> Cocoon 2.0.5!!!
> 
> Does it really exist? What's new?

It is the current development version of the 2.0 branch, and can only be got directly 
from CVS. There'll probably be a status.xml file in with it that'll tell you what's 
new.

Regards, Upayavira


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



RE: Exception when using copy-of

2003-06-20 Thread Reinhard Pötz
Cocoon 2.0.5 has not been released yet. It is the version in the CVS
repository. AFAIK only bug fixes are included but no enhancements. Those
are only part of 2.1 which has not been released too.

Reinhard

> -Original Message-
> From: Carmona Perez, David [mailto:[EMAIL PROTECTED] 
> Sent: Friday, June 20, 2003 10:20 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Exception when using copy-of
> 
> 
> I haven't seen in http://www.apache.org/dist/cocoon/ the 
> existence of Cocoon 2.0.5!!!
> 
> Does it really exist? What's new?
> 
> 
> 
> David
> 
> -Mensaje original-
> De: Stefan Hilzinger [mailto:[EMAIL PROTECTED]
> Enviado el: jueves, 19 de junio de 2003 17:38
> Para: [EMAIL PROTECTED]
> Asunto: Exception when using copy-of
> 
> this message had been rejected because of its previous 
> subject, so I send it again. Sorry if you should receive 
> twice as well!
> 
> hi!
> 
> I'm creating a website using the following software: Tomcat:4.1.24
> Cocoon: version 2.0.5-dev
> Xalan: 2.5.1
> Xerces: 2.4.0
> jdk 1.4.1_02
> os's: windows xpp / suse linux 8.0
> 
> 
> What I'd like to do is the following:
> Create a new tag in the result tree and copy a part of 
> another xml-file in there. Just like this:
> 
>
>   
>  
>   
>
> 
> This gives the following error which seems strange to me.
> 
> ERROR MESSAGE-
> 
> The 
> org.apache.cocoon.components.treeprocessor.sitemap.PipelineNod
> e notifies that org.apache.cocoon.ProcessingException says:
> 
> Exception during processing of 
> file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/ed
> uceth/commondocs/structure.xml
> 
> More precisely:
> 
> org.apache.cocoon.ProcessingException: Exception during processing of
> file:/C:/Progra~1/jakarta-omcat-4.1.24/webapps/cocoon/docs/edu
> ceth/commondocs/structure.xml:
> java.lang.RuntimeException: Errors in XSLT transformation:
> Fatal: File
> file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/ed
> uceth/stylesheets/assembly.xsl;
> Line 59; Column 81; java.lang.ArrayIndexOutOfBoundsException: -1
> 
> -END OF ERROR MESSAGE-
> 
> 
> I get the same error if I use
> 
>
>   
>   
>   
>
> 
> 
> 
> Every other tag than  works as it should.
> 
> 
> Below, I have attached the complete exception trace.
> 
> 
> I would be very glad if someone could help me!
> Thanks in advance!
> Stefan
> 
> 
> Original exception : java.lang.RuntimeException: Errors in XSLT
> transformation:
> Fatal: File
> file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/ed
> uceth/stylesheets/assembly.xsl;
> Line 59; Column 81; java.lang.ArrayIndexOutOfBoundsException: -1
> 
> at
> org.apache.xalan.transformer.TransformerImpl.run(TransformerIm
> pl.java:3364)
> at
> org.apache.xalan.transformer.TransformerHandlerImpl.endDocumen
> t(TransformerHandlerImpl.java:427)
> at
> org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLP
> ipe.java:91)
> at
> org.apache.cocoon.transformation.TraxTransformer.endDocument(T
raxTransformer.java:589)
> at 
> org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknow
> n Source) at 
> org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknow
> n Source) at 
> org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown 
> Source) at 
> org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) 
> at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown 
> Source) at 
> org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDisp
> atcher.dispatch(Unknown
> Source)
> at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocu
> ment(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
> Source) at 
> org.apache.xerces.parsers.DTDConfiguration.parse(Unknown 
> Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown 
> Source) at 
> org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
> Source) at 
> org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:302)
> at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:321)
> at
> org.apache.cocoon.components.source.AbstractStreamSource.toSAX
> (AbstractStreamSource.java:197)
> at
> org.apache.cocoon.generation.FileGenerator.generate(FileGenera
> tor.java:143)
> at
> org.apache.cocoon.components.pipeline.CachingEventPipeline.pro
> cess(CachingEventPipeline.java:258)
> at
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.pr
> ocess(CachingStreamPipeline.java:412)
> at
> org.apache.cocoon.components.treeprocessor.sitemap.SerializeNo
> de.invoke(SerializeNode.java:148)
> at
> org.apache.cocoon.components.treeprocessor.AbstractParentProce
> ssingNode.invokeNodes(AbstractParentProcessingNode.java:84)
> at
> org.apache.cocoon.components.treeprocessor.sitemap.PreparableM
> atchNode.invoke(PreparableMatchNode.java:164)
> at
> org.apache.cocoon.components.treeprocessor.AbstractParentProce
> ssingNode.invoke

Re: pipeline dependencies

2003-06-20 Thread Ali Mesbah
As quoted from "Carmona Perez, David" <[EMAIL PROTECTED]>:
> Create a simple selector to check if the file exists, and if it doesn't call 
> pipeline A.

Well it is not that simple. Checking to see if the file exists is not enough
because the file made by B is dynamic and it has to be re-made if A is
called.

Ali

> 
> David
> 
> -Mensaje original-
> De: Ali Mesbah [mailto:[EMAIL PROTECTED]
> Enviado el: jueves, 19 de junio de 2003 14:10
> Para: [EMAIL PROTECTED]
> Asunto: pipeline dependencies
> 
> Hi,
> Is it possible to define pipeline dependencies in the sitemap?
> 
> Imagine I have two pipelines A and B.
> Pipeline B has a SourceWritingTransformer and all it does is writing a generated
> document on the filesystem.
> Pipeline A has its own generator and transformer but it depends on the document
> written by B. So A denpends on B. In other words when A is called B has to be
> called first but the output of A sould be serialized to the browser (and not the
> output of B).
> 
> 
> Thanks,
> Ali
> 
> 
> --
> -- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600
> 
> -
> 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]
> 

-- 
-- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600

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



RE: Upgrading Java

2003-06-20 Thread Carmona Perez, David
It's possible, the only different jars are excalibur-database, fop, cocoon and 
cocoon-scratchpad.

I'm even switching JVM by replacing these files, because I work under Unix (latest JVM 
is 1.3.1) and Windows (latest JVM is 1.4.1 and supports hot code replacement, very 
useful for debugging).


David

-Mensaje original-
De: Upayavira [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 20 de junio de 2003 9:38
Para: [EMAIL PROTECTED]
Asunto: Re: Upgrading Java

AFAIK the only areas where you are likely to have problems are:

1) XML/Xalan/Xerces files that are also in Java 1.4 (see 'endorsed libs problem' on
Wiki)
2) JDBC changed from 1.3 to 1.4, so I think there are changes in terms of how that is
handled. But you can probably work around that by replacing the excalibur-
datasource jar with the new one.

You shouldn't need to recompile anything.

That _should_ be it. Others may choose to correct me.

I suggest you take a copy of your Cocoon installation and give it a go. (I'm regularly
switching between 1.3 and 1.4 on the HEAD branch, and don't have 'too much'
trouble with it).

Regards, Upayavira

On 20 Jun 2003 at 8:13, Derek Hohls wrote:

> I am wanting to upgrade my Java version from 1.3 to 1.4
> in order to keep pace with new software that needs it
> - however, I have the '1.3 compatible' version of Cocoon
> installed.  Are then any "issues" in putting in the 1.4 version
> of Cocoon... can I just overwrite all the jars in the library
> and restart Tomcat - or is there some obscure and mystical
> procedure one has to follow?
>
> (I dont want to just overwrite my complete Cocoon installation
> as I have modified files in various places.)
>
> Thanks.
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> Mailscanner thanks transtec Computers for their support.
>
>
> -
> 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: Exception when using copy-of

2003-06-20 Thread Carmona Perez, David
I haven't seen in http://www.apache.org/dist/cocoon/ the existence of Cocoon 2.0.5!!!

Does it really exist? What's new?



David

-Mensaje original-
De: Stefan Hilzinger [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de junio de 2003 17:38
Para: [EMAIL PROTECTED]
Asunto: Exception when using copy-of

this message had been rejected because of its previous subject, so I send it
again. Sorry if you should receive twice as well!

hi!

I'm creating a website using the following software:
Tomcat:4.1.24
Cocoon: version 2.0.5-dev
Xalan: 2.5.1
Xerces: 2.4.0
jdk 1.4.1_02
os's: windows xpp / suse linux 8.0


What I'd like to do is the following:
Create a new tag in the result tree and copy a part of another xml-file in
there.
Just like this:

   
  
 
  
   

This gives the following error which seems strange to me.

ERROR MESSAGE-

The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies
that org.apache.cocoon.ProcessingException says:

Exception during processing of
file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/educeth/commondocs/structure.xml

More precisely:

org.apache.cocoon.ProcessingException: Exception during processing of
file:/C:/Progra~1/jakarta-omcat-4.1.24/webapps/cocoon/docs/educeth/commondocs/structure.xml:
java.lang.RuntimeException: Errors in XSLT transformation:
Fatal: File
file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/educeth/stylesheets/assembly.xsl;
Line 59; Column 81; java.lang.ArrayIndexOutOfBoundsException: -1

-END OF ERROR MESSAGE-


I get the same error if I use

   
  
  
  
   



Every other tag than  works as it should.


Below, I have attached the complete exception trace.


I would be very glad if someone could help me!
Thanks in advance!
Stefan


Original exception : java.lang.RuntimeException: Errors in XSLT
transformation:
Fatal: File
file:/C:/Progra~1/jakarta-tomcat-4.1.24/webapps/cocoon/docs/educeth/stylesheets/assembly.xsl;
Line 59; Column 81; java.lang.ArrayIndexOutOfBoundsException: -1

at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3364)
at
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:427)
at
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
at
org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:589)
at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:302)
at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:321)
at
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:197)
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:258)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:412)
at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:148)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:151)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:145)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:340)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:301)
at org.apache.cocoon.Cocoon.process(Cocoon.java:581)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1048)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apach

RE: pipeline dependencies

2003-06-20 Thread Carmona Perez, David
Create a simple selector to check if the file exists, and if it doesn't call pipeline 
A.


David

-Mensaje original-
De: Ali Mesbah [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de junio de 2003 14:10
Para: [EMAIL PROTECTED]
Asunto: pipeline dependencies

Hi,
Is it possible to define pipeline dependencies in the sitemap?

Imagine I have two pipelines A and B.
Pipeline B has a SourceWritingTransformer and all it does is writing a generated
document on the filesystem.
Pipeline A has its own generator and transformer but it depends on the document
written by B. So A denpends on B. In other words when A is called B has to be
called first but the output of A sould be serialized to the browser (and not the
output of B).


Thanks,
Ali


--
-- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600

-
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: Table of contents

2003-06-20 Thread Upayavira
> I'm very newbie in cocoon. But before I very start in this nice
> framework. I want need to known something. After I read the book
> (Cocoon developper's handbook Moscar & Aston) I think it's possible,
> but I need a confirmation.
> 
> I have many files in a directory :
> 
>   News:
>news1.xml
>news2.xml
>.  
>news100.xml
> 

There are two ways you can do this:

1) Use a directory generator, which identifies the files in the directory. Use XSLT to 
prepare this into a form usable by either a CInclude or XInclude transformer, which 
will include the content from these files. Then use XSLT to strip out only the content 
you want.

2) Use the XPathDirectoryGenerator, which allows you to get specific XPath nodes 
out of the files in the directory. I'm not sure if the XPathDirectoryGenerator is 
available in 2.0.4, or just in 2.1 - I've never actually used it, but if you can find 
it, it 
would be your best approach.

If you need more explanation, please let me know.

Regards, Upayavira


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



Re: need help on cocoon and XSP

2003-06-20 Thread leo leonid
Did you already look at the generated java source?
([work-dir]/cocoon-files/org/apache/www/[projek-dirs]/ 
comp_rech_xsp.java)			
/leo

On Freitag, Juni 20, 2003, at 12:14  Uhr, ntic wrote:

   Hello,
I have some little trouble with this XSP script :
The aims of this one is to get some POST variables, to build a query,  
compute it and show the result with XSLT stylesheet.
I use cocoon 2.0.4
j2sdk1.4.1_02

But cocoon says that to me :

org.apache.cocoon.ProcessingException: Language Exception:  
org.apache.cocoon.components.language.LanguageException: Error  
compiling comp_rech_xsp:
Line 272, column 8:  illegal start of type
Line 377, column 58:  method valueOf() not found in class  
java.lang.String
Line 0, column 0: 2 errors

The script :

http://apache.org/xsp"; 
xmlns:esql="http://apache.org/cocoon/SQL/v2";
   xmlns:xsl="http://www.w3c.org/1999/XSL/Transform";>

   java.net.*
   java.util.*
   javax.servlet.*
   javax.servlet.http.*

   
	String type_exp=request.getParameter("type");
	String[] val=request.getParameterValues("select_item[]");
	String chaine="";
	int longueur=val.length;
	
	// construction de la chaine des conditions requises
	
	for (int i=0;i

Table of contents

2003-06-20 Thread Albert Shih

Hi all

(sorry for my bad english)

I'm very newbie in cocoon. But before I very start in this nice framework. I want
need to known something. After I read the book (Cocoon developper's handbook Moscar & 
Aston) 
I think it's possible, but I need a confirmation.

I have many files in a directory :

News:
news1.xml
news2.xml
.   
news100.xml

and I want to make a table of content of this directory in html

Abstract_extract_from_news1.xml
Abstract..news2.xml
..
Abstract_extract_from_news100.xml

For this I think to use aggregation and a xsl style.

But I need in the aggregation in a parameter (for xslt) the name of the file.

It's possible ?

And it's possible to aggregate all file in a directory when it's impossible to known
how many files there are in this directory ? Something like use a reg-exp
news[0-9]*.xml ?

Thanks for adavanced



--
Albert SHIH
Universite de Paris 7 (Denis DIDEROT)
U.F.R. de Mathematiques.
Heure local/Local time:
Fri Jun 20 09:51:42 CEST 2003

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



Re: Upgrading Java

2003-06-20 Thread Upayavira
AFAIK the only areas where you are likely to have problems are:

1) XML/Xalan/Xerces files that are also in Java 1.4 (see 'endorsed libs problem' on 
Wiki)
2) JDBC changed from 1.3 to 1.4, so I think there are changes in terms of how that is 
handled. But you can probably work around that by replacing the excalibur-
datasource jar with the new one.

You shouldn't need to recompile anything. 

That _should_ be it. Others may choose to correct me.

I suggest you take a copy of your Cocoon installation and give it a go. (I'm regularly 
switching between 1.3 and 1.4 on the HEAD branch, and don't have 'too much' 
trouble with it).

Regards, Upayavira

On 20 Jun 2003 at 8:13, Derek Hohls wrote:

> I am wanting to upgrade my Java version from 1.3 to 1.4 
> in order to keep pace with new software that needs it
> - however, I have the '1.3 compatible' version of Cocoon
> installed.  Are then any "issues" in putting in the 1.4 version
> of Cocoon... can I just overwrite all the jars in the library
> and restart Tomcat - or is there some obscure and mystical
> procedure one has to follow?
> 
> (I dont want to just overwrite my complete Cocoon installation
> as I have modified files in various places.)
> 
> Thanks.
> 
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> Mailscanner thanks transtec Computers for their support.
> 
> 
> -
> 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: [Flow] Acquiring Flow Information from another Pipeline

2003-06-20 Thread Frank Taffelt
> 
> Thus, it is not clear to me how one would implement a system where a  
> user fills out a form, the form's contents are processed and sent to a  

you cann call your sendmailaction from the flow :

 var ret = act("sendmailaction","",{'from':from ...});

hth,
Frank 

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



need help on cocoon and XSP

2003-06-20 Thread ntic
   Hello,
I have some little trouble with this XSP script :
The aims of this one is to get some POST variables, to build a query, 
compute it and show the result with XSLT stylesheet.
I use cocoon 2.0.4
j2sdk1.4.1_02

But cocoon says that to me :

org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling comp_rech_xsp:
Line 272, column 8:  illegal start of type
Line 377, column 58:  method valueOf() not found in class java.lang.String
Line 0, column 0: 
2 errors

The script :

http://apache.org/xsp"; 
   xmlns:esql="http://apache.org/cocoon/SQL/v2";
   xmlns:xsl="http://www.w3c.org/1999/XSL/Transform";>

   java.net.*
   java.util.*
   javax.servlet.*
   javax.servlet.http.*

   
	String type_exp=request.getParameter("type");
	String[] val=request.getParameterValues("select_item[]");
	String chaine="";
	int longueur=val.length;
	
	// construction de la chaine des conditions requises
	
	for (int i=0;i

[Flow] Acquiring Flow Information from another Pipeline

2003-06-20 Thread Bill Humphries
Now a question for people knowledgeable about Flow:

We have a flow script:

cocoon.load("resource://org/apache/cocoon/components/flow/javascript/ 
xmlForm.js");

function genericFlowScript(xform)
{
var bean =
{
memberOne: "default value",
memberTwo: "more default values"
}
	xform.setModel (bean);

xform.sendView ("collectInfo","collect.xml",
function (xform) { var bean = xform.getModel(); });
	xform.sendView ("confirm","verify.xml");

xform.finish ("mail","mailAction");
}
The URI mailAction is matched by a pipeline separate from the  
flowscript pipeline, since it's dispatched by an XSP rather than an  
XForm transformer.

Unfortunately, I don't see a clear way to hand this off since by  
breaking out of the flowscript  pipeline, I've lost context.

Thus, it is not clear to me how one would implement a system where a  
user fills out a form, the form's contents are processed and sent to a  
receiver*. I suppose one could call out to Java mail jar from inside  
the flowscript, but that seems inelegant to me.


Bill Humphries
http://www.whump.com/moreLikeThis/
* Any flames about open relays and spam-hazards from the sendmail  
logicsheet will be cheerfuly deleted as I am aware of the issue.

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