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]



Logger category control

2003-02-02 Thread Christopher Watson
Hi All,

I'd like to control the target/catgory of some logging at the level of a
map:match, 
or alternatively, change the target/catgory within a bit of xsp.

The most 'atomic' I've managed to control the target it is at
map:generator level for the whole (sub)sitemap.

I've tried changing logger with  but looking at the
logicsheet log.xsl, if there's a logger already, then it won't
'override' it.

Can anyone offer any advice?

Thanks,

Christopher


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: Microsoft SQLserver with cocoon

2002-12-02 Thread Christopher Watson
John, I'd be delighted,
Please tell me more, e.g. what form it should take, what it should
include, etc

Contact me off-list if you wish,

Christopher

-Original Message-
From: Morrison, John [mailto:[EMAIL PROTECTED]] 
Sent: 02 December 2002 11:42
To: '[EMAIL PROTECTED]'
Subject: RE: Microsoft SQLserver with cocoon


Christopher,

Would you consider putting this information into some form
of documentation we could include with the code?

Thanks,

J.



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: Microsoft SQLserver with cocoon

2002-12-02 Thread Christopher Watson
Maxime


1)

When I last got the drivers there were 3 jars, namely
msbase.jar
mssqlserver.jar
msutil.jar

Try putting all 3 jars into cocoon's WEB-INF/lib

2)

For mssql add following lines (between ... ...) to in WEB-INF/web.xml
within

  load-class
  

...

com.microsoft.jdbc.sqlserver.SQLServerDriver
...

3)

Add following jdbc element within  in cocoon.xconf


  
 
jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=mydatabase

  sa
  mypassword


assuming database on 
Server: localhost
Port:   1433
Database:   mydatabase
and user and password as specified
please edit as necessary

4)

You can now (after restarting servlet engine) do something like 


http://apache.org/xsp";
  xmlns:esql="http://apache.org/cocoon/SQL/v2";
>

   
 my_sql2000_cocoon_datasource
   
 
   
 select fld1 as myfield1, fld1 as myfield2 from mytable
 
 
   
 
   
   
 
   
 
 
   no-results
 
   
   
 



Where 


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: 02 December 2002 10:10
To: [EMAIL PROTECTED]
Subject: Microsoft SQLserver with cocoon


Hi
I want to use a microsoft sql server with cocoon, so I downloaded
Microsoft JDBC drivers for MS Sql server, and put the lib (JAR) into
cocoon's library dir, restarted cocoon. 
Now, do I have to modify the cocoon.xconf? Can anybody tell me the way
to make a connection and get data?

Thanks

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Another XSP - and no mention of Cocoon

2002-11-11 Thread Christopher Watson
Someone else is using the name XSP and XML Server Pages,
and as far as I can tell gives no mention of Apache or Cocoon
I'm not sure from what I've seen whether it's the same technology ...

Thought we all should know

Look at http://xsp.triloggroup.com/flowbuilder/site/f5_1_Tech_XSP.xsp

or http://www.flowbuilder.com/xsp as mentioned on p59 of Java Developer's
Journal Oct 2002 Vol 7 No 10

Christopher


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: Cocoon 2.0.3 Tomcat 4.1.10 sub sitemap problem - failed sitemap 'inheritance' - anyone seen this and have any ideas?

2002-10-01 Thread Christopher Watson

Thanks, again

> -Original Message-
> From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Sent: 30 September 2002 19:24
> To: [EMAIL PROTECTED]
> Subject: Re: Cocoon 2.0.3 Tomcat 4.1.10 sub sitemap problem - failed
> sitemap 'inheritance' - anyone seen this and have any ideas?
>
>
> Christopher Watson wrote:
> ...
>
> >>These were fixed later on, in 2.0.4-dev.
> >>
> >>
> >
> >I'd rather use the interpreted sitemap. It seems to improve reload
> >dramatically!
> >
> >Could you tell me what files I would have to update, and how to get them?
> >I looked at http://cvs.apache.org/viewcvs.cgi but don't see a 2.0.4-dev
> >branch ...
> >How would I get 2.0.4-dev ?
> >
>
> It's in cocoon_2_0_3_branch
>
> Vadim
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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




RE: Cocoon 2.0.3 Tomcat 4.1.10 sub sitemap problem - failed sitemap 'inheritance' - anyone seen this and have any ideas?

2002-09-30 Thread Christopher Watson

Lajos, Many thanks. I'll give it a go.

> -Original Message-
> From: Lajos Moczar [mailto:[EMAIL PROTECTED]]
> Sent: 30 September 2002 15:04
> To: [EMAIL PROTECTED]
> Subject: Re: Cocoon 2.0.3 Tomcat 4.1.10 sub sitemap problem - failed
> sitemap 'inheritance' - anyone seen this and have any ideas?
> 
> 
> Which is a matter of editing 
> src/java/org/apache/cocoon/components/ExtendedComponentSelector.java, 
> adding the following method at the end of the file and rebuilding Cocoon.
> 
> public boolean hasComponent(Object hint) {
>  boolean exists = super.hasComponent( hint );
>  if ( !exists && this.parentSelector != null ) {
>  exists = this.parentSelector.hasComponent( hint );
>  }
>  return exists;
> }
> 
> Lajos
> 
> 
> Vadim Gritsenko wrote:
> 
> > Christopher Watson wrote:
> > 
> >> Hello
> >>
> >> I'm having problems with a sub-sitemap
> >>
> >> I'm on 2.0.3 release. It works on tomcat 4.0.1 and 4.0.4 but 
> doesn't with
> >> 4.1.10 or 4.1.12
> >>
> >> The example subsitemap http://10.1.1.2:8080/cocoon203/sub/ 
> shows the same
> >> problem.
> >> It's a problem of sitemap 'inheritance' as far as I can tell.
> >>
> >> The error I get from the example URL above is as follows ..
> >>
> >> 
> Description:org.apache.avalon.framework.configuration.Configuratio
> nException 
> >>
> >> : Type 'wildcard' is not defined for 'match' at
> >> file:/F:/jakarta-tomcat/webapps/cocoon203/sub/sitemap.xmap:21:26
> >>
> >> True, the wildcard matcher component is not declared in the 
> >> subsitemap, but
> >> used to 'inherit' it from the 'root' sitemap
> >> at file:/F:/jakarta-tomcat/webapps/cocoon203/sitemap.xmap in the above
> >> example.
> >>
> >> If I declare the lost wildcard matcher component in the subsitemap 
> >> then it
> >> works, or at least, I get the next error caused by the failed 
> >> 'inheritance'
> >>
> >> So I guess I have a workaround in declaring everything in the 
> subsitemap,
> >> but this kind of defeats the object !?
> >>
> >> I've just done a clean install on tomcat 4.0.1 (works) and 4.1.10 
> >> (doesn't)
> >> to check my sanity on this!
> >> It's weird that the version of Tomcat should create this different
> >> behaviour.
> >> Does anyone have any idea what's going on?
> >>
> > 
> > Seems you have switched to interpreted sitemap which (IIRC) in 2.0.3 
> > release had some bugs. These were fixed later on, in 2.0.4-dev.
> > 
> > Vadim
> > 
> > 
> >> Christopher
> >>  
> >>
> > 
> > 
> > 
> > 
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> > 
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> > 
> > 
> 
> 
> -- 
> galatea.com
> Cocoon training, consulting & support
> 
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 
> 

-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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




RE: Cocoon 2.0.3 Tomcat 4.1.10 sub sitemap problem - failed sitemap 'inheritance' - anyone seen this and have any ideas?

2002-09-30 Thread Christopher Watson

> -Original Message-
> From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Sent: 30 September 2002 14:51
> To: [EMAIL PROTECTED]
> Subject: Re: Cocoon 2.0.3 Tomcat 4.1.10 sub sitemap problem - failed
> sitemap 'inheritance' - anyone seen this and have any ideas?
>
>
> Christopher Watson wrote:
>
> >Hello
> >
> >I'm having problems with a sub-sitemap
> >
> >I'm on 2.0.3 release. It works on tomcat 4.0.1 and 4.0.4 but doesn't with
> >4.1.10 or 4.1.12
> >
> >The example subsitemap http://10.1.1.2:8080/cocoon203/sub/ shows the same
> >problem.
> >It's a problem of sitemap 'inheritance' as far as I can tell.
> >
> >The error I get from the example URL above is as follows ..
> >
> >Description:org.apache.avalon.framework.configuration.Configurati
> onException
> >: Type 'wildcard' is not defined for 'match' at
> >file:/F:/jakarta-tomcat/webapps/cocoon203/sub/sitemap.xmap:21:26
> >
> >True, the wildcard matcher component is not declared in the
> subsitemap, but
> >used to 'inherit' it from the 'root' sitemap
> >at file:/F:/jakarta-tomcat/webapps/cocoon203/sitemap.xmap in the above
> >example.
> >
> >If I declare the lost wildcard matcher component in the
> subsitemap then it
> >works, or at least, I get the next error caused by the failed
> 'inheritance'
> >
> >So I guess I have a workaround in declaring everything in the subsitemap,
> >but this kind of defeats the object !?
> >
> >I've just done a clean install on tomcat 4.0.1 (works) and
> 4.1.10 (doesn't)
> >to check my sanity on this!
> >It's weird that the version of Tomcat should create this different
> >behaviour.
> >Does anyone have any idea what's going on?
> >
>
> Seems you have switched to interpreted sitemap which (IIRC) in 2.0.3
> release had some bugs.

Vadim, well spotted !
You are as ever, a brick!
I reset the compiled sitemap and it worked
... and I thought I'd eliminated that from my enquiries. I had too many
machines and versions hanging around ...

> These were fixed later on, in 2.0.4-dev.

I'd rather use the interpreted sitemap. It seems to improve reload
dramatically!

Could you tell me what files I would have to update, and how to get them?
I looked at http://cvs.apache.org/viewcvs.cgi but don't see a 2.0.4-dev
branch ...
How would I get 2.0.4-dev ?

Thanks Again

Christopher

>
> Vadim
>
>
> >Christopher
> >
> >
>
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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




Cocoon 2.0.3 Tomcat 4.1.10 sub sitemap problem - failed sitemap 'inheritance' - anyone seen this and have any ideas?

2002-09-30 Thread Christopher Watson

Hello

I'm having problems with a sub-sitemap

I'm on 2.0.3 release. It works on tomcat 4.0.1 and 4.0.4 but doesn't with
4.1.10 or 4.1.12

The example subsitemap http://10.1.1.2:8080/cocoon203/sub/ shows the same
problem.
It's a problem of sitemap 'inheritance' as far as I can tell.

The error I get from the example URL above is as follows ..

Description:org.apache.avalon.framework.configuration.ConfigurationException
: Type 'wildcard' is not defined for 'match' at
file:/F:/jakarta-tomcat/webapps/cocoon203/sub/sitemap.xmap:21:26

True, the wildcard matcher component is not declared in the subsitemap, but
used to 'inherit' it from the 'root' sitemap
at file:/F:/jakarta-tomcat/webapps/cocoon203/sitemap.xmap in the above
example.

If I declare the lost wildcard matcher component in the subsitemap then it
works, or at least, I get the next error caused by the failed 'inheritance'

So I guess I have a workaround in declaring everything in the subsitemap,
but this kind of defeats the object !?

I've just done a clean install on tomcat 4.0.1 (works) and 4.1.10 (doesn't)
to check my sanity on this!
It's weird that the version of Tomcat should create this different
behaviour.
Does anyone have any idea what's going on?

Christopher


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: Connecting to MS SQL Server

2002-09-10 Thread Christopher Watson

Lars

Best is to buy/beg/steal/borrow the book
Cocoon: Building XML Applications by Carsten Ziegeler, Matthew Langham
http://www.amazon.com/exec/obidos/ASIN/0735712352/

http://www.newriders.com/books/product.asp?session_id={64B81A3A-2F82-408F-9C
DB-DF29BD5567CE}&product_id={C3C05052-BE3B-4E06-A60A-13FB40AF58F6}

Failing that you can try the online docs,
ESQL is part of XSP, so I'd start at

http://xml.apache.org/cocoon/userdocs/xsp/index.html
or on your installation at
http://localhost:8080/cocoon/documents/userdocs/xsp/index.html

to get started with XSP. Then try the EQL link

http://xml.apache.org/cocoon/userdocs/xsp/esql.html
or on your installation at
http://localhost:8080/cocoon/documents/userdocs/xsp/esql.html

--- OR ---

You could use an SQL transformer to get at SQL. See
http://xml.apache.org/cocoon/userdocs/transformers/sql-transformer.html
or on your installation at
http://localhost:8080/cocoon/documents/userdocs/transformers/sql-transformer
.html

Christopher

> -Original Message-
> From: Lars Martinsen [mailto:[EMAIL PROTECTED]]
> Sent: 10 September 2002 09:02
> To: '[EMAIL PROTECTED]'; 'Christopher Watson'
> Subject: RE: Connecting to MS SQL Server
>
>
> Thanks a lot Christopher..
>
> In your mail, you mention esql. Do you know any resources on this subject?
> How would I write SQL statements with esql, when I've used the
> 
> tags that you indicated?
>
> Thanks again,
>
> .lars martinsen


-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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




RE: Connecting to MS SQL Server

2002-09-09 Thread Christopher Watson

Lars

Assuming you're using the Microsoft 2000 JDBC driver,

1   Copy the three libraries from the unpacked distribution

msbase.jar
mssqlserver.jar
msutil.jar

to WEB-INF/lib

2   Add com.microsoft.jdbc.sqlserver.SQLServerDriver
to init-param in WEB-INF/web.xml, ending up with someting like ...


  load-class
  


com.mysql.jdbc.Driver


com.microsoft.jdbc.sqlserver.SQLServerDriver


  


3   Declare the datasource in cocoon.xconf, thus



jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=mydb
myuser
mypassword


By the way, as far as I can gather, you CAN'T use windows authentication
with the JDBC driver,
so you must set the server to use mixed security. That might cause your
sysadmin to flutter!

Now you can use mypool as a pooled connection name, e.g. in esql as
  mypool

As for what you can do with esql, that's another story !

Christopher

> -Original Message-
> From: Lars Martinsen [mailto:[EMAIL PROTECTED]]
> Sent: 09 September 2002 11:02
> To: '[EMAIL PROTECTED]'
> Subject: Connecting to MS SQL Server
>
>
> Does anyone have a step-by-step on how to connect to a MS SQL
> Server and do
> SQL commands on it? I have tried to do it by reading all the help and
> how-tos that is bundeled with Cocoon, but I didn't manage.
>
> .lars martinsen
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: simple connection to MySQL

2002-09-07 Thread Christopher Watson

Vaskin

I'm guessing (from the class name in your web.xml) you've just downloaded
the new Connector/J from www.mysql.com ??
In which case ...

See my annotations below

> -Original Message-
> From: Vaskin Kissoyan [mailto:[EMAIL PROTECTED]]
> Sent: 06 September 2002 16:22
> To: [EMAIL PROTECTED]
> Subject: simple connection to MySQL
>
>
> I've tried to follow the how-to's and tutorials on the net and in the
> docs. Someone plase let me know what step I'm missing:
>
> 0)
> * Built 2.0.3 with all the samples and libs, installed war file under
> Tomcat 4.04, under JDK 1.4
> * Built same tables with given sql file in mysql on a default install of
> 3.23.51 on same machine (localhost), database is cocoon
>
>
> 1) Dropped the zip file into appropriate place:
> * tried both as zip and renamed to jar
> * tried in server\lib and also cocoon\WEB-INF\lib

The file you need to take out of the zip and put in cocoon\WEB-INF\lib is
mysql-connector-java-2.0.14-bin.jar

>
> 2) Added the following to cocoon.xconf inside  under the
> default built in element 
>  
>   
>   jdbc:mysql://localhost/cocoon
>   root
>   
>  
>

Try   jdbc:mysql://localhost:3306/cocoon
where cocoon is whatever you've called your mysql database
3306 is the port number used by mysql, and I don't think the driver defaults
to use 3306 - you have to tell it

> 4) Added the load-class in cocoon's web.xml as follows
>  
>load-class
>
>  
>
>  
>  org.hsqldb.jdbcDriver
>   com.mysql.jdbc.Driver

That's right for the new Connector/J

(The old Mark Matthews JDBC library - from wich Connector/J was derived -
used a class name org.gjt.mm.mysql.Driver, which is what some other people
who've replied to you are referring to.)

>
>  
>
>  
>
> 4) Getting the following error:
> org.apache.cocoon.ProcessingException: Exception in
> ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not
> get the datasource java.sql.SQLException: No suitable driver
>
> When I try to pull up the ESQL sample

Have you changed the ESQL sample to use YOUR pool, which, from the above,
you've called "mypool" ?
You'll also need to have populated your mysql database, which, from the
above, you've called cocoon ...

>
> Any help would be appreciated.
>

I've tried. Hope it works!

Christopher Watson

>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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




RE: simple connection to MySQL

2002-09-07 Thread Christopher Watson

Vaskin

I'm guessing (from the class name in your web.xml) you've just downloaded
the new Connector/J from www.mysql.com ??
In which case ...

See my annotations below

> -Original Message-
> From: Vaskin Kissoyan [mailto:[EMAIL PROTECTED]]
> Sent: 06 September 2002 16:22
> To: [EMAIL PROTECTED]
> Subject: simple connection to MySQL
>
>
> I've tried to follow the how-to's and tutorials on the net and in the
> docs. Someone plase let me know what step I'm missing:
>
> 0)
> * Built 2.0.3 with all the samples and libs, installed war file under
> Tomcat 4.04, under JDK 1.4
> * Built same tables with given sql file in mysql on a default install of
> 3.23.51 on same machine (localhost), database is cocoon
>
>
> 1) Dropped the zip file into appropriate place:
> * tried both as zip and renamed to jar
> * tried in server\lib and also cocoon\WEB-INF\lib

The file you need to take out of the zip and put in cocoon\WEB-INF\lib is
mysql-connector-java-2.0.14-bin.jar

>
> 2) Added the following to cocoon.xconf inside  under the
> default built in element 
>  
>   
>   jdbc:mysql://localhost/cocoon
>   root
>   
>  
>

Try   jdbc:mysql://localhost:3306/cocoon
where cocoon is whatever you've called your mysql database
3306 is the port number used by mysql, and I don't think the driver defaults
to use 3306 - you have to tell it

> 4) Added the load-class in cocoon's web.xml as follows
>  
>load-class
>
>  
>
>  
>  org.hsqldb.jdbcDriver
>   com.mysql.jdbc.Driver

That's right for the new Connector/J

(The old Mark Matthews JDBC library - from wich Connector/J was derived -
used a class name org.gjt.mm.mysql.Driver, which is what some other people
who've replied to you are referring to.)

>
>  
>
>  
>
> 4) Getting the following error:
> org.apache.cocoon.ProcessingException: Exception in
> ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not
> get the datasource java.sql.SQLException: No suitable driver
>
> When I try to pull up the ESQL sample

Have you changed the ESQL sample to use YOUR pool, which, from the above,
you've called "mypool" ?
You'll also need to have populated your mysql database, which, from the
above, you've called cocoon ...

>
> Any help would be appreciated.
>

I've tried. Hope it works!

Christopher Watson

>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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




RE: Anyone seen this cache problem?: - java.lang.ClassCastException: org.apache.cocoon.caching.CachedEventObject

2002-08-20 Thread Christopher Watson

Carsten.

I think it's not the same problem, since I'm just doing a map:read to get
the .gif :-(
(The bug you mentioned below seemed to be resolved by a patch to batik, so I
guess it was a generated svgjpeg image in their case)

I'm just going to look at something Vadim has suggested ...

Christopher

PS I've just bought yours and Matthew's book.
It's VERY helpful, delightfully systematically presented. Wish it had been
out there a year ago!
Thank you

> -Original Message-
> From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
> Sent: 20 August 2002 13:59
> To: [EMAIL PROTECTED]
> Subject: RE: Anyone seen this cache problem?: -
> java.lang.ClassCastException:
> org.apache.cocoon.caching.CachedEventObject
>
>
> Perhaps this is the same bug as described here:
>
> http://marc.theaimsgroup.com/?t=10293301812&r=1&w=2
>
> Carsten
>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Anyone seen this cache problem?: - java.lang.ClassCastException: org.apache.cocoon.caching.CachedEventObject

2002-08-20 Thread Christopher Watson

Could anyone help with this cache problem ...

I seem to get these errors creep into existence for certain static document
(e. g. images).
Everything is fine for a couple of days, then I start getting cache errors
on access to some static files.
Once a certain URI starts failing, it keeps failing, then gradually others
join in.
To restore access to them, I have to stop tomcat, delete the work directory
(which includes the cache of course!) and restart tomcat.
Then everything is fine for a couple of days again.

I've checked the recommendations for heapsize and freememory as far as I
understand them.

I've done a search of the mailing list, but have not managed to find
anything specific to this error.

System is Windows 2000 IIS5 using ISAPI to tomcat 4.0.1 to cocoon 2.0.1
jdk1.3.1

Here's the error I get.


(By the way, /main/ is the name of my cocoon context and directory)
ERROR   (2002-08-20) 03:05.26:671   [access]
(/main/images/banners/Sep02_Kozena.gif)
Ajp13Processor[8009][20]/CocoonServlet: Problem with servlet
org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
java.lang.ClassCastException: org.apache.cocoon.caching.CachedEventObject
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.processReader(Ca
chingStreamPipeline.java:234)
at
org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process(Abstrac
tStreamPipeline.java:125)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:249)
at org.apache.cocoon.www.sitemap_xmap.matchN10A3F(sitemap_xmap.java:10143)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:3022)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2481)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:180)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127)
at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:144)
at org.apache.cocoon.Cocoon.process(Cocoon.java:582)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:795)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:371)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424)
at java.lang.Thread.run(Thread.java:484)
java.lang.ClassCastException: org.apache.cocoon.caching.CachedEventObject
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.processReader(Ca
chingStreamPipeline.java:154)
at
org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process(Abstrac
tStreamPipeline.java:125)
at
org.apach

RE: Getting XML from request

2002-06-06 Thread Christopher Watson

Deepak

I suspect you need

  xmlns:xsp-request="http://apache.org/xsp/request/2.0";
in your opening xsp:page tag
along with
  xmlns:util="http://apache.org/xsp/util/2.0";
and the like

otherwise the xsp-request: stuff doesn't get translated

Christopher
-Original Message-
From: Deepak Mehta [mailto:[EMAIL PROTECTED]]
Sent: 06 June 2002 09:05
To: [EMAIL PROTECTED]; Mike Ash
Subject: Re: Getting XML from request


Mike,

I had the same problem...


Deepak, I suspect you've got something like
myStringVariable

try replacing this with
myStringVariable

Also, to use the util: logicsheet, you'll need to add

  xmlns:util="http://apache.org/xsp/util/2.0";

to your opening xsp:page tag


Regards
Dp

On 5/6/02 18:24, "Mike Ash" <[EMAIL PROTECTED]> wrote:


Sorry about not using plain text.

What I would like to end up with is nodes from the xsp page that contain the
nodes from the object i put in the request.











What I am getting now is
















-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 11:10 AM
To: [EMAIL PROTECTED]
Subject: RE: Getting XML from request


> I need that object back as xml in an xsp page, when I try this
> xsp:request:get-attribute name="xmlData" as="xml"

Correct syntax is:


Result will be (IIRC):
value of
attribute


For:


Result will be:
value of attribute


For:
Object o = ;

Result will be assigned to object 'o'.


> The question is then how do I get the data into the xsp as
> real xml nodes that I can use in a transformation step with xsl?

What do you mean?

PS PLEASE SEND PLAIN TEXT EMAILS

Vadim


-Original Message-
From: Mike Ash [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 11:25 AM
To: '[EMAIL PROTECTED]'
Subject: Getting XML from request

I am storing xml data in the request object by using
request.setAttribute("xmlData", someObject);
I need that object back as xml in an xsp page, when I try this
xsp:request:get-attribute name="xmlData" as="xml"
it returns the "xml" as a node value instead of individual nodes.
The question is then how do I get the data into the xsp as real xml
nodes that I can use in a transformation step with xsl?


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




--
---
Deepak 'Deep' Mehta
E-mail: [EMAIL PROTECTED]
URL: http://www.dp.com/

PGP Fingerprint: 837E B8E6 6AF4 6675 2730  0848 7731 09F5 3445 00A5

Money-making is a wonderful thing (Maxin & Skin in Carmen Queasy)
---


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: XML generation

2002-06-04 Thread Christopher Watson

The EJB bit is beyond me, I guess yes if it's in the same JVM ...?

You can actually use request.getParameter within a bit of 
rather than the request logicsheet, though the latter is an option.

Good Luck
Christopher
> -Original Message-
> From: Deepak Mehta [mailto:[EMAIL PROTECTED]]
> Sent: 04 June 2002 15:32
> To: [EMAIL PROTECTED]
> Subject: Re: XML generation
> 
> 
> Thanks,
> 
> This worked! Now I have the output part working, now I need to work on a
> form that creates a record in an entity EJB. I assume I use the request
> logicsheet to get the parameters from the form post and then 
> invoke a method
> on my singleton to invoke a create on the EJB... Could it be so simple?
> 
> Regards
> Dp
> 
> On 4/6/02 16:27, "Christopher Watson" <[EMAIL PROTECTED]> wrote:
> 
> > 
> >> -Original Message-
> >> From: Deepak Mehta [mailto:[EMAIL PROTECTED]]
> >> Sent: 04 June 2002 10:53
> >> To: [EMAIL PROTECTED]
> >> Subject: XML generation
> >> 
> >> 
> >> Hi All,
> >> 
> >> Here is some info on the specs of my setup before I explain 
> the problem:
> >> 
> >> -CPU: MacOSX 10.1.4 running JDK 1.3.1
> >> -EJB: Jonas 2.4.4 with embedded tomcat 3.3.1 and cocoon 2.0.2
> >> -DB: PostgreSQL 7.1.2 with standard JDBC drivers
> >> 
> >> Setup: Jonas runs EJBs and Tomcat has a singleton servlet that 
> connects to
> >> the EJB and has methods for the XSP pages to generate dynamic XML.
> >> 
> >> Problem: if I let the singleton generate a String containing the
> >> final XML,
> >> which is easy, since I do not need to throw a lot of things 
> Cocoon's way,
> >> then the problem is that Cocoon converts the '<' and '>' to >
> >> and <...
> > 
> > Deepak, I suspect you've got something like
> > myStringVariable
> > 
> > try replacing this with
> > 
> myStringVariable > > pr>
> > 
> > Also, to use the util: logicsheet, you'll need to add
> > 
> >  xmlns:util="http://apache.org/xsp/util/2.0";
> > 
> > to your opening xsp:page tag
> > 
> >> Is there a way to stop Cocoon from messing with the String 
> data in an xsp
> >> page?
> >> 
> >> Thanks
> >> Dp
> >> 
> >> --
> >> --
> >> -
> >> Deepak 'Deep' Mehta
> >> E-mail: [EMAIL PROTECTED]
> >> URL: http://www.dp.com/
> >> 
> >> PGP Fingerprint: 837E B8E6 6AF4 6675 2730  0848 7731 09F5 3445 00A5
> >> 
> >> Money-making is a wonderful thing (Maxin & Skin in Carmen Queasy)
> >> --
> >> -
> >> 
> >> 
> >> -
> >> Please check that your question has not already been answered in the
> >> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >> 
> >> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> >> For additional commands, e-mail: <[EMAIL PROTECTED]>
> >> 
> >> 
> > 
> > 
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> > 
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> -- 
> --
> -
> Deepak 'Deep' Mehta
> E-mail: [EMAIL PROTECTED]
> URL: http://www.dp.com/
> 
> PGP Fingerprint: 837E B8E6 6AF4 6675 2730  0848 7731 09F5 3445 00A5
> 
> Money-making is a wonderful thing (Maxin & Skin in Carmen Queasy)
> --
> -
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> 

-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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




RE: How to upload a file???

2002-06-04 Thread Christopher Watson

Manish

> -Original Message-
> From: manish [mailto:[EMAIL PROTECTED]]
> Sent: 04 June 2002 10:08
> To: [EMAIL PROTECTED]
> Subject: How to upload a file???
>
>
> Hello All,
> How can I upload a file from browser to server using cocoon.
> I am using the following syntax...
> 

There's an example bundled with cocoon, on my tomcat installation it's at
http://localhost:8080/cocoon/xsp/upload
(cocoon version 2.0.1)

It uses an xsp page which follows. NB, the bit where it 'contextualizes' is
basically to get the upload directory name from web.xml - you may not need
this,
nor may you need the logging it does, but it's there to show you how .

=


http://apache.org/xsp";
  xmlns:xsp-request="http://apache.org/xsp/request/2.0";
  xmlns:xsp-response="http://apache.org/xsp/response/2.0";
  xmlns:log="http://apache.org/xsp/log/2.0";
>
  

org.apache.cocoon.components.language.markup.xsp.XSPUtil

org.apache.avalon.framework.context.ContextException
  

  
  File uploadDir = null;
  /** Contextualize this class */
  public void contextualize(Context context) throws ContextException {
uploadDir = (File) context.get(Constants.CONTEXT_UPLOAD_DIR);
  }
  

  
   This form allows you upload files
   
 
   
 File:  
 
   
 
 
 
   
getLogger().debug("Dir=" + uploadDir);
 String[] filelist = uploadDir.list();
 
   
 filelist[i]
   
 
   
 
 
 Brought to you by Cocoon at new
Date().

   
  

=

>
> please let me know how to include this tag on cocoon side to accept file
> type data
>
> from
> anurag
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: XML generation

2002-06-04 Thread Christopher Watson


> -Original Message-
> From: Deepak Mehta [mailto:[EMAIL PROTECTED]]
> Sent: 04 June 2002 10:53
> To: [EMAIL PROTECTED]
> Subject: XML generation
>
>
> Hi All,
>
> Here is some info on the specs of my setup before I explain the problem:
>
> -CPU: MacOSX 10.1.4 running JDK 1.3.1
> -EJB: Jonas 2.4.4 with embedded tomcat 3.3.1 and cocoon 2.0.2
> -DB: PostgreSQL 7.1.2 with standard JDBC drivers
>
> Setup: Jonas runs EJBs and Tomcat has a singleton servlet that connects to
> the EJB and has methods for the XSP pages to generate dynamic XML.
>
> Problem: if I let the singleton generate a String containing the
> final XML,
> which is easy, since I do not need to throw a lot of things Cocoon's way,
> then the problem is that Cocoon converts the '<' and '>' to >
> and <...

Deepak, I suspect you've got something like
myStringVariable

try replacing this with
myStringVariable

Also, to use the util: logicsheet, you'll need to add

  xmlns:util="http://apache.org/xsp/util/2.0";

to your opening xsp:page tag

> Is there a way to stop Cocoon from messing with the String data in an xsp
> page?
>
> Thanks
> Dp
>
> --
> --
> -
> Deepak 'Deep' Mehta
> E-mail: [EMAIL PROTECTED]
> URL: http://www.dp.com/
>
> PGP Fingerprint: 837E B8E6 6AF4 6675 2730  0848 7731 09F5 3445 00A5
>
> Money-making is a wonderful thing (Maxin & Skin in Carmen Queasy)
> --
> -
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: Cocoon 2 + Access

2002-05-16 Thread Christopher Watson

Cyril,

If you MUST use access (I do while testing !) ...

looking at your example ...

http://apache.org/xsp";>
  xmlns:esql="http://apache.org/cocoon/SQL/v2";>

you've got an extra > after the xmlns:xsp="http://apache.org/xsp";
it should be

http://apache.org/xsp";
  xmlns:esql="http://apache.org/cocoon/SQL/v2";>

===
Don't expect to see much until you do something like the following.
I wouldn't know how to use column numbers with esql; I always use names


http://apache.org/xsp";
  xmlns:esql="http://apache.org/cocoon/SQL/v2";>


   
 pool

 
  
  select userid, sessionid, visitdate, referrer, page from visit
  

  
   


 
 
 
 
 


   
  

 

   



BUT I agree with others, you're probably safer using MySQL. It's free too!
There's even an ODBC driver for it, so you could set an ODNC datasource and
look at it through access.

-Original Message-
From: cyril vidal [mailto:[EMAIL PROTECTED]]
Sent: 16 May 2002 00:20
To: [EMAIL PROTECTED]
Subject: Re: Cocoon 2 + Access


Hi Perry,

I've tried with // instead  of / ,it isn't better...
Anyway, I've configurated with esql and pool.
the cocoon.xconf looks like this:


jdbc:odbc:logs  (with odbc, we don't need to write the
complete url, right??)



and I didn't forget to load the driver in web.xml...

My file base1.xsp is this one, as simple as possible, just to test the
connection

http://apache.org/xsp";>
  xmlns:esql="http://apache.org/cocoon/SQL/v2";>

   
 pool
   




To my great surprise, when I execute this file, I obtain:
http://apache.org/xsp";>



pool



I think, it's not normal...I should not see the connection element...  I
think I have to change the line jdbc:odbc:logs but I don't
know really how to do...
regards,
Cyril.

- Original Message -
From: Faulkner, Perry
To: '[EMAIL PROTECTED]'
Sent: Thursday, May 16, 2002 12:47 AM
Subject: RE: Cocoon 2 + Access


Hi Cyril,

In theory it should work, as it's just some Java code, similar to that
produced by ESQL. The disadvantage, is that you don't have any error
checking or logging to fall back on when situations like this occur, and
ESQL would provide that.

Anyway, the only obvious thing that I can see, is to put \\'s in your
connection string, e.g:

("jdbc:odbc:localhost:8080/c:\\Mes_documents\\JAVA\\JDBC\\logs");

Also turn on ODBC tracing and see if any other information is logged, to
help you resolve the problem.

Perry

-Original Message-
From: cyril vidal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 16 May 2002 8:18
To: [EMAIL PROTECTED]
Subject: Cocoon 2 + Access


Hy!

I would like to know  if it is an obligation to use ESQL and the connection
pool provided by Cocoon2 to connect to a database.
By example, isn't it possible just to write the following code, by which a
simply connection should be executed with the 'logs' database?
I've tried it and it doesn't work but I don't know if there's an error on
the code or if anyway, it could never run.
Some of you can help me, please?
Thanks in advance,
Cyril.


http://apache.org/xsp";>


java.sql*





Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn =
DriverManager.getConnection("jdbc:odbc:localhost:8080/c:\Mes_documents\JAVA\
JDBC\logs");
Statement stmt = conn.createStatement();
ResultSet resultat = stmt.executeQuery("select * from visit where
userid='cyril'");


Nous proposons une réduction de 25%, restreinte à la période de
Septembre 20001 à OCtobre 20001


resultat.getString (1)
resultat.getString (2)
resultat.getString (3)
resultat.getString (4)
resultat.getString (5)






-
Please check that your question has not already been answered in the
FAQ before posting. 

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




jdk1.4 revisited . What CVS branch? How is 2.0.3?

2002-05-10 Thread Christopher Watson

Can someone recommend..

I'm about to have another go at getting jdk1.4 and cocoon working together.
I've tried 2.0.2 release with failures on
1)  ESQL, specifically with connection pooling, once I'd patched
EsqlConnection ;->
2)  the bug in AbstractValidatorAction.java (Thanks Vadim for helping me with
this bit! )

I'm a bit nervous about using CVS HEAD since it's alpha-quality? Should I be
nervous?

Could someone inform ..
What is the status of 2.0.3?
Is there still a release of this planned?
If so, are there still things to be fixed, and what are they?

NAG NAG NAG

Christopher

> -Original Message-
> From: David Crossley [mailto:[EMAIL PROTECTED]]
> Sent: 10 May 2002 08:22
> To: [EMAIL PROTECTED]
> Subject: Re: clarification of CVS branches
>
>
> Carsten Ziegeler wrote:
> > > David Crossley wrote:
> > >
> > > Would someone please clarify what needs to happen
> > > with documentation in regard to the CVS branches.
> > >
> > > I have been updating some documents and adding some
> > > new ones. I have been adding this only to the HEAD of
> > > CVS and not into the 2.0.3 branch.
> > >
> > > I gather that only code bugfixes need to go into the
> > > 2.0.3 branch. Is that correct? I am trying to minimise work.
> > > --David
> >
> > The 2.0.3 branch is a "bugfixes only" branch, this means no
> > new or experimental code should go in there.
> > I think if the documentation is valid for 2.0.3 as well
> > it should go there, too. Because if we do a 2.0.3 release
> > all will benefit from this new docs asap.
>
> Ah thanks. Yes it is important to get some new docs out
> with the next release. I had forgotten about that aspect.
> --David
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: Cocoon 2.0.2 JDK1.4 Tomcat 4.0.4b1 JDBC Connection PoolingDoesn't Work (for me) - any ideas

2002-05-06 Thread Christopher Watson

Dear Spinnerettes,

Every so often I get a reply to my (much earlier) list message about this
subject.

Later follows my reply to the latest one, which someone may want to correct
or complement ...
but it has prompted me to ask again ..

I want to get JDK1.4 and connection pooling working.

1)  Can I?

2)  What CVS (HEAD or 2.0.3) do I need?

3)  Is a 2.0.3 or other dist where this works forthcoming?

Sorry to be a nag.

For completeness, I think Cocoon is marvellous!


My reply .
==

I kind of gave up and went back to Cocoon 2.0.1 , Tomcat 4.0.1 and jdk 1.3,
since I've no pressing need to get to jdk1.4 !

There was a recent 'howto jdk1.4' in the users mailing list, in response to
which I asked if connection pooling worked with it but got no response.

Last I saw on the developers list was talk of a forthcoming 2.0.3 release.
There's a branch ready for this on the CVS, but it's not been put into the
dist

You MAY find that the latest (HEAD) CVS works, albeit with perhaps a bit of
judicious editing of EsqlConnection.java to get it co compile.
(I.E. Just take the /* */ to uncomment the JDBC3 specific stuff)

Also, in 2.0.2 there was a bug in AbstractValidatorAction.java (Thanks Vadim
for helping me with this bit! ) so get that from the CVS -

Frankly, I can't completely remember how my last try with jdk1.4 worked. I
think ESQL Connection Pooling was OK !
But going to whatever the CVS version I last tried had unconnected
side-effects for what I had done, which, although probably more correct,
would have meant me changing what I had done ...

(Aggregation on 2.0.1 with a missing map:part URI would just leave the
missing part out of the aggregate,
on whatever CVS it was I tried with jdk1.4, it did a 404 resource not found)

I'm going to forward this to the user and dev lists since there's been
nothing about progress on this for a while.

I'll change your name in case you don't want it

Sorry I can't be of more immediate help

Christopher


Original Message read :

> I recently downloaded the cocoon 2.0.2 from the apache web site. I have
the same problem of all the people trying to build Cocoon on the Java 1.4.
The only diference: I am using Tomcat 4.0.3

> I saw also some comments about remove the Esql files. But I will need SQL
connection to Firebird or PostgreSQL.

> I review also all the mailing list and it appears nobody had resolved this
problem.

> Please tell me if we can do something to get working Cocoon2.



-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: HOWTO install cocoon under JDK 1.4

2002-05-03 Thread Christopher Watson

Robert,

Well done getting it to compile.

Now that it has, do you know if Connection Pooling works for ESQL etc?

By the way, when I've tried jdk1.4 before, with Michael Enke's help I
believe,
the _first_ time I used a pooled connection it was OK,
but if I tried it _again_ then it failed?

If you get a chance to test it, please let us know.

Christopher

> -Original Message-
> From: Robert J. Lebowitz [mailto:[EMAIL PROTECTED]]
> Sent: 02 May 2002 21:50
> To: [EMAIL PROTECTED]
> Subject: Re: HOWTO install cocoon under JDK 1.4
>
>
> Of course, I forgot one small detail that I culled from earlier messages.
>
> When compiling the cocoon sources for release 2.02, several errors will
> appear in conjunction with the ESQLConnection.java class.
>
> Towards the bottom of the file are a number of methods that are commented
> out in order to make the source compile under JDK 1.3.1.  You'll have to
> uncomment these to get it to compile under JDK 1.4.
>
> Rob
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: newbe database question

2002-04-29 Thread Christopher Watson

Edgar

The documentation is out of date. Someone helped me with this earlier.
It needs some different Avalon type stuff
Try this example xsp page which gets the URL from the metadata (or the
Exception) as a check
For XSP at least, it NEEDS to be in a try block or it won't compile.


http://apache.org/xsp";
>
 

String fish="flounder";
try {
ComponentSelector mySelector = (ComponentSelector)
manager.lookup(DataSourceComponent.ROLE + "Selector");
// edit following line as necessary
DataSourceComponent myDatasource =
(DataSourceComponent)mySelector.select("myCocoonXconfEntry");
  java.sql.Connection myConnection = myDatasource.getConnection();
  java.sql.DatabaseMetaData dbmd = myConnection.getMetaData();
  fish = dbmd.getURL();
} catch (Exception esqlFail) {
fish="" + esqlFail;
}
fish




Which is adapted from looking at the file generated from an esql xsp.

I think the point in the docs about leaving the connection open still
stands,
I imagine the pooling delas with this
though perhaps someone more knowing could comment?

Christopher Watson


-Original Message-
From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
Sent: 29 April 2002 08:18
To: '[EMAIL PROTECTED]'
Subject: RE: newbe database question


I can't find roles in the cocoon jar either. But it is in j2ee.jar (maybe
you have to get it from Sun first). Maybe it is not the one you search for,
but then again I have never tried to make a database connection like this.
(by the way: com.sun.enterprise.deployment.Roles)
www.cocooncenter.de may offer some help.

http://www.cocooncenter.de/cc/documents/resources/db-app/index.html

Regards,

Edgar
-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Verzonden: zondag 28 april 2002 0:09
Aan: [EMAIL PROTECTED]
Onderwerp: newbe database question


I just started developing with cocoon and I have a basic question (I think).

I'm trying to use the datasource pooled connection like what is detailed in
the cocoon user guide but I'm having trouble location the
org.apache.cocoon.Roles class. I have the web.xml files and the cocoon.xconf
files configured correctly because I can see the connections being created
when I start cocoon. But my import statement fails when I try to compile my
class that implements Avalon Composable ifc because it can't find the
Roles.class file in any of the jars.

Can someone please let me know where I can find it.

Thanks in advance.

matt


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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




RE: Cocoon installation on JDK 1.4

2002-04-27 Thread Christopher Watson

Leszek,

I gave up too.

Anyone have any news on rumoured 2.0.3 release which would fix this for us
non-CVS folks ?

Christopher Watson


> -Original Message-
> From: Leszek Gawron [mailto:[EMAIL PROTECTED]]
> Sent: 27 April 2002 17:24
> To: [EMAIL PROTECTED]
> Subject: Cocoon installation on JDK 1.4
>
>
> has anyone succeeded in this one (on Win32) ?
> I've spent almost a week digging mailing archives, cocoon website,
> Even when I succeed to compile and install war file in
> Tomcat/webapps dir a
> lot of examples do not work at all.
> I'm downloading CVS snapshots every day but the effect is quite
> the same. The
> latest stable platform I managed to install was Cocoon 2.0.1, JDK 1.3.1_02
> and Tomcat 4.0.3, anything higher makes some features unusable
>
>   ouzo
> --
> -- [EMAIL PROTECTED]
> Leszek GawronICQ# 19681190
> Software development & SE consulting Mobile +48 (608) 23 74 55
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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




Does xsl:strip-space work ?

2002-04-25 Thread Christopher Watson

Hi, can anyone help
I want to rid my html of whitespace.

According to the XSLT spec, if a text node contains just whitespace - tab,
space, CR, LF
it will be stripped,

Also I'm trying belt abd braces, but still I'm getting the whitespace from
my XML throuhg into the HTML,
using a stylesheet like this ...



http://www.w3.org/1999/XSL/Transform";
  version="1.0"
>



  

  My Page


...

The  makes no difference

Anything else I need to do?
Do I somehow need to persuade xalan to take notice?
Does it take notice?

Christopher Watson


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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




RE: sendmail xsl problem - singleton mail session?

2002-04-23 Thread Christopher Watson

Hello,

I've played with sendmail.xsl a bit recently.
I notice that it uses
javax.mail.Session.getDefaultInstance

I had trouble getting this one to change mail hosts via the parameter:
subsequent messages continued to use the host I'd used in the first message

I haven't delved into javax.mail far enough to be sure,
but my guess from the behaviour is that getDefaultInstance sets up a
Singleton session.

To get round the not-changing-mailhosts problem
I did myself a clone of sendmail.xsl but using
javax.mail.Session.getInstance instead of
javax.mail.Session.getDefaultInstance
and whacked into
\WEB-INF\classes\org\apache\cocoon\components\language\markup\xsp\java

and now I can use different hosts at will

I'm wondering whether it might be a useful improvement to have a parameter
to decide between

javax.mail.Session.getDefaultInstance and javax.mail.Session.getInstance

Hope this is of use to someone

Christopher Watson
> -Original Message-
> From: Christian Haul [mailto:[EMAIL PROTECTED]]
> Sent: 23 April 2002 12:07
> To: [EMAIL PROTECTED]
> Subject: Re: sendmail xsl problem
>
>
> On 17.Apr.2002 -- 10:38 AM, Perry Molendijk wrote:
> > Hello,
> >
> > When I run the sendmail logicsheet I get a problem with the
> > transformation of sendmail.xsl.
> >
> > Somewhere in the process the values of ,
> 
> > and  are not added to the generated java code.
>
> I've just checked a version into CVS that works for me (while the
> previous showed the errors you see). Please check with CVS version.
>
>   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
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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




RE: Problem with 'large' STATIC pdf files

2002-04-22 Thread Christopher Watson

Mike

Using the CVS version made it 'better' ...
wget seemed to reliably get all the file.
But I was still having intermittent problems when using a browser.
The browser problems seemed to go away if I put a dummy query string on the
end of the URL, e.g.
http://server/something.pdf?a=a
That's with IE6, haven't tried it elsewhere

Sorry about the use of the word seemed , but then it's an intermittent
problem :-?

However, other bits of the CVS version functioned differently from release
2.0.1, (see my separate message)
so I had to abandon it for now for my own purposes.

I ended up defining a new tomcat context (in config/server.xml) to serve the
pdf files, which seems (there's that word again) fine.

Christopher Watson
> -Original Message-
> From: Mike Dewar [mailto:[EMAIL PROTECTED]]
> Sent: 22 April 2002 10:22
> To: [EMAIL PROTECTED]
> Subject: Re: Problem with 'large' STATIC pdf files
>
>
> I have exactly this problem, which I reported to this list last week.  I
> also tried wget and was surprised to see that it reported the size of
> the file to be the truncated length, rather than the true length.
> Looking in core.log I see the content-size reported as -1.
>
> Its an intermitant problem - if you can get the whole file cached then
> everything appears to work normally.
>
> Let me know if you find a solution.
>
> Mike.
>
> On Sat, Apr 20, 2002 at 07:10:51PM +0100, Christopher Watson wrote:
> > Vadim, the plot thickens.
> >
> > I've unearthed cygwin's wget.
> > On the 2.0.2 release build it gets all 175958 bytes !
> > Shame my browsers don't :-<
> >
> > BUT On the current CVS (HEAD branch) it only gets 32768 bytes.
> >
> > The opposite of what I would have expected/hoped
> >
> > Christopher
> >
> > > -Original Message-
> > > From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> > > Sent: 20 April 2002 16:44
> > > To: [EMAIL PROTECTED]; 'Christopher Watson'
> > > Subject: RE: Problem with 'large' STATIC pdf files
> > >
> > >
> > > > From: Christopher Watson [mailto:[EMAIL PROTECTED]]
> > > >
> > > > Can anyone help - from the archives I think there've been a
> few people
> > > down
> > > > this road, but I haven't see anything very hopeful.
> > > >
> > > > I'm trying to serve up static PDF files using
> > > >
> > > >
> > > > 
> > > >
> > > >
> > > > These are simply exposed as download/viewable files by  > > > href="pdf/something.pdf">
> > > >
> > > > If I right click and download, I only get the first 32768 bytes.
> > > > The .pdf file file is 115Kb.
> > > >
> > > > Bizarrely, I can download all of an 82KB one with no problem
> > > >
> > > >
> > > > I did a sanity check with a large (300kb) image file
> > > > served by
> > > >
> > > >
> > > > 
> > > >
> > > >
> > > > which I could right-click and save OK.
> > > >
> > > >
> > > > What am I doing wrong?
> > > > Why the different behaviour?
> > >
> > > Should not be. Reader processes all file types similarly.
> > >
> > >
> > > > Is there anywhere where a max file size is set for static .pdf's or
> > > other
> > > > file types?
> > >
> > > I don't think so.
> > >
> > >
> > > > PS I can serve the pdf through another tomcat servlet OK
> > > >
> > > > Same behaviour in ie6, opera 6.0.1, ns 4.73
> > >
> > > Try with "wget -S".
> > >
> > > > Tomcat 4.0.1 Cocoon 2.0.1 WinNT4 jdk1.3.1
> > >
> > > Try Cocoon CVS version (or today's snapshot).
> > >
> > > Vadim
> > >
> > >
> > >
> > > -
> > > Please check that your question has not already been answered in the
> > > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> > >
> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > > For additional commands, e-mail: <[EMAIL PROTECTED]>
> > >
> > >
> >
> > -
> > Please check that your question has not already been answered in the
> > F

FW: Problem with 'large' STATIC pdf files - appears FIXED

2002-04-20 Thread Christopher Watson

Err.. Vadim,

Don't know WHAT I did exactly, but when I tried the CVS version again it
WORKED.
Both with wget AND the browsers !

So, Thanks !

Sorry to trouble you unnecessarily.

Christopher

> -Original Message-
> From: Christopher Watson [mailto:[EMAIL PROTECTED]]
> Sent: 20 April 2002 19:11
> To: [EMAIL PROTECTED]
> Subject: RE: Problem with 'large' STATIC pdf files
>
>
> Vadim, the plot thickens.
>
> I've unearthed cygwin's wget.
> On the 2.0.2 release build it gets all 175958 bytes !
> Shame my browsers don't :-<
>
> BUT On the current CVS (HEAD branch) it only gets 32768 bytes.
>
> The opposite of what I would have expected/hoped
>
> Christopher
>
> > -Original Message-
> > From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> > Sent: 20 April 2002 16:44
> > To: [EMAIL PROTECTED]; 'Christopher Watson'
> > Subject: RE: Problem with 'large' STATIC pdf files
> >
> >
> > > From: Christopher Watson [mailto:[EMAIL PROTECTED]]
> > >
> > > Can anyone help - from the archives I think there've been a few people
> > down
> > > this road, but I haven't see anything very hopeful.
> > >
> > > I'm trying to serve up static PDF files using
> > >
> > >
> > > 
> > >
> > >
> > > These are simply exposed as download/viewable files by  > > href="pdf/something.pdf">
> > >
> > > If I right click and download, I only get the first 32768 bytes.
> > > The .pdf file file is 115Kb.
> > >
> > > Bizarrely, I can download all of an 82KB one with no problem
> > >
> > >
> > > I did a sanity check with a large (300kb) image file
> > > served by
> > >
> > >
> > > 
> > >
> > >
> > > which I could right-click and save OK.
> > >
> > >
> > > What am I doing wrong?
> > > Why the different behaviour?
> >
> > Should not be. Reader processes all file types similarly.
> >
> >
> > > Is there anywhere where a max file size is set for static .pdf's or
> > other
> > > file types?
> >
> > I don't think so.
> >
> >
> > > PS I can serve the pdf through another tomcat servlet OK
> > >
> > > Same behaviour in ie6, opera 6.0.1, ns 4.73
> >
> > Try with "wget -S".
> >
> > > Tomcat 4.0.1 Cocoon 2.0.1 WinNT4 jdk1.3.1
> >
> > Try Cocoon CVS version (or today's snapshot).
> >
> > Vadim
> >
> >
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> >
> >


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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




RE: Problem with 'large' STATIC pdf files

2002-04-20 Thread Christopher Watson

Vadim, the plot thickens.

I've unearthed cygwin's wget. 
On the 2.0.2 release build it gets all 175958 bytes !
Shame my browsers don't :-<

BUT On the current CVS (HEAD branch) it only gets 32768 bytes.

The opposite of what I would have expected/hoped

Christopher

> -Original Message-
> From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Sent: 20 April 2002 16:44
> To: [EMAIL PROTECTED]; 'Christopher Watson'
> Subject: RE: Problem with 'large' STATIC pdf files
> 
> 
> > From: Christopher Watson [mailto:[EMAIL PROTECTED]]
> > 
> > Can anyone help - from the archives I think there've been a few people
> down
> > this road, but I haven't see anything very hopeful.
> > 
> > I'm trying to serve up static PDF files using
> > 
> >
> > 
> >
> > 
> > These are simply exposed as download/viewable files by  > href="pdf/something.pdf">
> > 
> > If I right click and download, I only get the first 32768 bytes.
> > The .pdf file file is 115Kb.
> > 
> > Bizarrely, I can download all of an 82KB one with no problem
> > 
> > 
> > I did a sanity check with a large (300kb) image file
> > served by
> > 
> >
> > 
> >
> > 
> > which I could right-click and save OK.
> > 
> > 
> > What am I doing wrong?
> > Why the different behaviour?
> 
> Should not be. Reader processes all file types similarly.
> 
> 
> > Is there anywhere where a max file size is set for static .pdf's or
> other
> > file types?
> 
> I don't think so.
> 
> 
> > PS I can serve the pdf through another tomcat servlet OK
> > 
> > Same behaviour in ie6, opera 6.0.1, ns 4.73
> 
> Try with "wget -S".
>  
> > Tomcat 4.0.1 Cocoon 2.0.1 WinNT4 jdk1.3.1
> 
> Try Cocoon CVS version (or today's snapshot).
> 
> Vadim
>  
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> 

-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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




RE: Problem with 'large' STATIC pdf files

2002-04-20 Thread Christopher Watson

Thanks for this Vadim,

could you tell me what 
Try with "wget -S".
means? Some unix thing?

I'm on winnt4, I'm going to try and delve into CygWIN...

Meanwhile I'll get the latest CVS

Christopher

PS Any news on a 2.0.3 release?

> -Original Message-
> From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Sent: 20 April 2002 16:44
> To: [EMAIL PROTECTED]; 'Christopher Watson'
> Subject: RE: Problem with 'large' STATIC pdf files
> 
> 
> > From: Christopher Watson [mailto:[EMAIL PROTECTED]]
> > 
> > Can anyone help - from the archives I think there've been a few people
> down
> > this road, but I haven't see anything very hopeful.
> > 
> > I'm trying to serve up static PDF files using
> > 
> >
> > 
> >
> > 
> > These are simply exposed as download/viewable files by  > href="pdf/something.pdf">
> > 
> > If I right click and download, I only get the first 32768 bytes.
> > The .pdf file file is 115Kb.
> > 
> > Bizarrely, I can download all of an 82KB one with no problem
> > 
> > 
> > I did a sanity check with a large (300kb) image file
> > served by
> > 
> >
> > 
> >
> > 
> > which I could right-click and save OK.
> > 
> > 
> > What am I doing wrong?
> > Why the different behaviour?
> 
> Should not be. Reader processes all file types similarly.
> 
> 
> > Is there anywhere where a max file size is set for static .pdf's or
> other
> > file types?
> 
> I don't think so.
> 
> 
> > PS I can serve the pdf through another tomcat servlet OK
> > 
> > Same behaviour in ie6, opera 6.0.1, ns 4.73
> 
> Try with "wget -S".
>  
> > Tomcat 4.0.1 Cocoon 2.0.1 WinNT4 jdk1.3.1
> 
> Try Cocoon CVS version (or today's snapshot).
> 
> Vadim
>  
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> 

-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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




Problem with 'large' STATIC pdf files

2002-04-20 Thread Christopher Watson

Can anyone help - from the archives I think there've been a few people down
this road, but I haven't see anything very hopeful.

I'm trying to serve up static PDF files using

   

   

These are simply exposed as download/viewable files by 

If I right click and download, I only get the first 32768 bytes.
The .pdf file file is 115Kb.

Bizarrely, I can download all of an 82KB one with no problem


I did a sanity check with a large (300kb) image file
served by

   

   

which I could right-click and save OK.


What am I doing wrong?
Why the different behaviour?
Is there anywhere where a max file size is set for static .pdf's or other
file types?

PS I can serve the pdf through another tomcat servlet OK

Same behaviour in ie6, opera 6.0.1, ns 4.73

Tomcat 4.0.1 Cocoon 2.0.1 WinNT4 jdk1.3.1



-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Problem with 'large' STATIC pdf files

2002-04-20 Thread Christopher Watson

I'm trying to serve up static PDF files using

   

   

These are simply exposed as download/viewable files by 

If I right click and download, I only get the first 32768 bytes.
The .pdf file file is 115Kb.

Bizarrely, I can download all of an 82KB one with no problem


I did a sanity check with a large (300kb) image file
served by

   

   

which I could right-click and save OK.


What am I doing wrong?
Why the different behaviour?
Is there anywhere where a max file size is set for static .pdf's or other
file types?

Hope somebody can help.

Regards,
Christopher

PS I can serve the pdf through another tomcat servlet OK
Same behaviour in ie6, opera 6.0.1, ns 4.73
Tomcat 4.0.1 Cocoon 2.0.1 WinNT4 jdk1.3.1


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: 2.0.2 protected area - no longer works out of the box

2002-03-31 Thread Christopher Watson

Vadim
I just popped the CVS AbstractValidatorAction.java into the 2.0.2 dist
source and rebuild it (installscratchpadwar, jdk1.3.1, tomcat 4.0.1, winNT)
That appears to have fixed it
Many Thanks
Christopher Watson
> -Original Message-
> From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Sent: 30 March 2002 17:01
> To: [EMAIL PROTECTED]
> Subject: RE: 2.0.2 protected area - no longer works out of the box
>
>
> It could be because of bug in validator action
> (AbstractValidatorAction.java) which was introduced in 2.0.2 and fixed
> recently. On latest CVS, protected area works Ok.
>
> Vadim
>
> > From: Christopher Watson [mailto:[EMAIL PROTECTED]]
> >
> > Could someone confirm, and even better explain why
> >
> > Tomcat 4.0.1 jdk1.3 (I gave up on jdk1.4) Cocoon 2.0.2
> >
> > The 'protected area' example does NOT log in using Donald Ball :-(
> >
> > Anyone know why not? What has changed?
> >
> > (the sunspot authentication works just fine, and there is
> an employee
> named
> > Donald Ball in the personnel datasource)
> >
> > I've just checked that the 'protected area' does work with
> 2.0.1 with
> 4.0.1
> > and jdk1.3
> >
> >
> >
> >
> -
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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




2.0.2 protected area - no longer works out of the box

2002-03-29 Thread Christopher Watson

Could someone confirm, and even better explain why

Tomcat 4.0.1 jdk1.3 (I gave up on jdk1.4) Cocoon 2.0.2

The 'protected area' example does NOT log in using Donald Ball :-(

Anyone know why not? What has changed?

(the sunspot authentication works just fine, and there is an employee named
Donald Ball in the personnel datasource)

I've just checked that the 'protected area' does work with 2.0.1 with 4.0.1
and jdk1.3



-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: Cocoon 2.0.2 JDK1.4 Tomcat 4.0.4b1 JDBC Connection Pooling Doesn't Work (for me) - any ideas

2002-03-28 Thread Christopher Watson
Title: RE: Cocoon 2.0.2 JDK1.4 Tomcat 4.0.4b1 JDBC Connection Pooling Doesn't Work (for me) - any ideas



Thanks, Tom
 
I 
suspect the problems are not only with cocoon, but excalibur too 
!
 
COCOON
===
The comment lines in the CVS EsqlConnection have 
@JDBC3_START@ and @JDBC3_END@which the ant task comments out if it FAILS to 
detect jdbc3 present.
 
In the 
cocoon dist version, these lines are commented out by /* and */  (it's 
the same in both the src.tar.gz and the src.zip) - so you have to remove them 
manually to get a clean jdk1.4 compile
 
EXCALIBUR
=
I 
noticed one Michael Enke on cocoon-dev asking about recompiling excalibur under 
jdk1.4 ...
 
There 
are similar @JDBC3_START@ lines in JdbcConnection and AbstractJdbcConnection in 
org.apache.avalon.excalibur.datasource
 
I 
tried myself recompiling the latest excalibur source dist (excluding the 
scratchpad stuff), 
having 
corrected a couple of typos in the parameter resulSetType 
[sic]
on 
lines 237, 251, 265 of
Jdbc3Connection.java
 
but 
even with that library,  http://localhost:8080/cocoon/xsp/esql still 
doesn't work
 
I now 
get
org.apache.cocoon.ProcessingException: Exception in 
ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the 
datasource 
org.apache.avalon.excalibur.datasource.NoAvailableConnectionException: 
org.apache.avalon.excalibur.datasource.Jdbc3Connection at 
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenerator.java:272) 
at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:251) 
at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399) 
at 
org.apache.cocoon.www.sitemap_xmap.matchN400552(X:\jakarta-tomcat-4.0.4b1\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:6975) 
at 
org.apache.cocoon.www.sitemap_xmap.process(X:\jakarta-tomcat-4.0.4b1\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3003) 
at 
org.apache.cocoon.www.sitemap_xmap.process(X:\jakarta-tomcat-4.0.4b1\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:2489) 
at org.apache.cocoon.sitemap.Handler.process(Handler.java:222) at 
org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at 
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154) at 
org.apache.cocoon.Cocoon.process(Cocoon.java:575) at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 

--
 
 
Whereas if I use  etc instead of  
everything works OK as before
 
Interestingly enough, my firewall monitor show port numbers open 
corresponding to what I would expect 
if the jdbc connections I've set in cocoon.xconf were active - 
cocoon just can't seem to get hold of the correct connection objects 
?!
 
COCOON-DEV GUYS

I'm perhaps cheekily putting this out to cocoon-dev also 
- sorry to trouble you guys.
 
Am I right in thinking that jdk1.4 ESQL 
compatibility will be a while yet?
 
Any ideas how long ?
 
I was encouraged to try jdk1.4 by reading the installing/index.html document which seemed 
optimistic about jdk1.4 and 
tomcat4.0.4b1.
Having 
already been to jdk1.4, then back to jdk1.3 and now jdk1.4 again, with all the 
other hoop-jumping that involves, I'm inclined to stay here - fortunately I have 
another machine with jdk1.3 !
 
Yours, 
hopefully
 
Christopher Watson
 
 -Original Message-From: 
von Schwerdtner, Thomas (GXS, FPI) 
[mailto:[EMAIL PROTECTED]]Sent: 27 March 2002 
18:45To: '[EMAIL PROTECTED]'Subject: RE: Cocoon 
2.0.2 JDK1.4 Tomcat 4.0.4b1 JDBC Connection Pooling Doesn't Work (for me) - any 
ideas

  I don't know about your compile problems, but I do know that 
  JDBC connections are fairly problematic with jdk1.4 since they changed some 
  things.  I had no problems building the CVS a few weeks ago, but the ESQL 
  samples didnt work for me and I could not get the PostgreSQL jdbc driver to 
  work either (despite comments that it would work with 1.4).  I had to 
  switch back to 1.3 to get everything I needed to work.
  HTH, -Tom 
  > -Original Message- > 
  From: Christopher Watson [mailto:[EMAIL PROTECTED]] 
  > Sent: Wednesday, March 27, 2002 11:46 AM 
  > To: Cocoon-Users (E-mail) > 
  Subject: Cocoon 2.0.2 JDK1.4 Tomcat 4.0.4b1 JDBC Connection Pooling 
  > Doesn't Work (for me) - any ideas > > > 
  Hopefully someone can help me ? > > Followed the advice in cocoon-2.0.2\docs\installing\index.html, 
  i.e. > created the endorsed directory, copied 
  xerces xalan and xml-apis > > Build clean then build installwar > 
  > Compile falls over EsqlConnection, saying it 
  should be > declared abstract due > to missing methods. > Discovered some 
  commented-out methods which se

Cocoon 2.0.2 JDK1.4 Tomcat 4.0.4b1 JDBC Connection Pooling Doesn't Work (for me) - any ideas

2002-03-27 Thread Christopher Watson

Hopefully someone can help me ?

Followed the advice in cocoon-2.0.2\docs\installing\index.html, i.e.
created the endorsed directory, copied xerces xalan and xml-apis

Build clean then build installwar

Compile falls over EsqlConnection, saying it should be declared abstract due
to missing methods.
Discovered some commented-out methods which seem to implement the missing
methods - e.g. setSavePoint, setHoldability
Uncommented those lines
Also noticed a line which read /*  */ between setLimitMetod and
createStatement - wondered about this, whether I should comment out some
lines as well as uncommenting those I just mentioned, but could see clearly
what I should do so I left it ??!!

Build installwar now worked
Tomcat now runs cocoon mostly OK, but ESQL example doesn't work.

Specifically it's POOLING that doesn't work !

http://localhost:8080/cocoon/xsp/esql results in

java.lang.RuntimeException: Could not get the datasource
org.apache.avalon.excalibur.datasource.NoValidConnectionException: No valid
JdbcConnection class available
at
org.apache.cocoon.www.file_.X_.jakarta_tomcat_4_0_4b1.webapps.cocoon.docs.sa
mples.xsp.esql_xsp.generate(X:\jakarta-tomcat-4.0.4b1\work\localhost\cocoon\
cocoon-files\org/apache/cocoon/www/file_/X_/jakarta_tomcat_4_0_4b1/webapps/c
ocoon/docs/samples/xsp\esql_xsp.java:341)
at
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera
tor.java:260)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:251)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:399)
at
org.apache.cocoon.www.file_.X_.jakarta_tomcat_4_0_4b1.webapps.cocoon.sitemap
_xmap.matchN400552(X:\jakarta-tomcat-4.0.4b1\work\localhost\cocoon\cocoon-fi
les\org/apache/cocoon/www/file_/X_/jakarta_tomcat_4_0_4b1/webapps/cocoon\sit
emap_xmap.java:6975)
at
org.apache.cocoon.www.file_.X_.jakarta_tomcat_4_0_4b1.webapps.cocoon.sitemap
_xmap.process(X:\jakarta-tomcat-4.0.4b1\work\localhost\cocoon\cocoon-files\o
rg/apache/cocoon/www/file_/X_/jakarta_tomcat_4_0_4b1/webapps/cocoon\sitemap_
xmap.java:3003)
at
org.apache.cocoon.www.file_.X_.jakarta_tomcat_4_0_4b1.webapps.cocoon.sitemap
_xmap.process(X:\jakarta-tomcat-4.0.4b1\work\localhost\cocoon\cocoon-files\o
rg/apache/cocoon/www/file_/X_/jakarta_tomcat_4_0_4b1/webapps/cocoon\sitemap_
xmap.java:2489)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

etc

If I replace the  with ...


org.hsqldb.jdbcDriver
jdbc:hsqldb:hsql://localhost:9002
sa


... then the example works.

Can anyone help me to get pooing to work ?

Is it something I did/didn't do to EsqlConnection.java ?? Something to do
with the limitMethod stuff ??

Thanks,

Christopher


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Namespace problem in cocoon-2.0, IE5,6

2002-02-01 Thread Christopher Watson

Dear 'spinners'

I'm forwarding the message below, since, as you will read, the fix it
mentions wasn't incorporated.
It seems to have helped someone, and may be of use to others.

I also refer to Marty McClelland [[EMAIL PROTECTED]] 's fix
in the message with Subject: "RE: Viewing XSP output with IE5.5"

Generate a PI for the root element something like:


type="text/xml"

.
.
.


(which is more of a workaround than a fix)

I also repeat the question ...

Is IE5.5 right to say <> ?

Christopher
-Original Message-
From: Barbara (further details withheld for privacy, hope that's ok)
Sent: 31 January 2002 21:30
To: [EMAIL PROTECTED]
Subject: Namespace problem in cocoon-2.0


Christopher

I had a big problem with namespaces when I moved from cocoon-2.0rc2 to
cocoon-2.0.
I found your fix in the archives. I changed source and rebuilt cocoon, just
as you did, and it all worked very well.

Now there is cocoon-2.0.1 available. I tried it to see if your fix was
included in this version but it does not seem to be there. Do you know if it
will be included in the future?

This is your fix that I am talking about:


Dear All

I've fixed my own problem, but only by changing source and rebuilding
cocoon, namely file
org.apache.cocoon.components.language.markup.xsp.java.xsp.xsl

lines 131 ... changed line 133

added filtering out of "xmlns:xml" namespace  in addition to the one
mentioned in the comment, thus -



  this.contentHandler.startPrefixMapping(
"",
""
  );
  

ALSO changed line 148 (the endPrefixMapping call) to follow suite !!!

Now I can once more use that lovely IE5.5 pretty-printing to see what my
xsp's are doing ;>

BUT ...

Have I just fixed a bug? Or is the bug in IE5.5?

Any Answers ?


Regards

Barbara


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




How do I use pooled datasource in an external java class?

2002-01-28 Thread Christopher Watson

Hello 'spinners'

I would like to pass a connection from the pool to a java class

The documentation at
http://xml.apache.org/cocoon/developing/datasources.html is out of date I
think.

It suggests I do 

import org.apache.avalon.framework.component.ComponentManager;
import org.apache.avalon.framework.component.ComponentSelector;
import org.apache.cocoon.Roles;
import org.apache.avalon.excalibur.datasource.DataSourceComponent;

import java.sql.Connection;

//  Skip a lot of lines until we are in the method you use
//  to initialize the DataSourceComponent 

private DataSourceComponent datasource;

public void compose(ComponentManager manager) {
ComponentSelector selector =
(ComponentSelector) manager.lookup(Roles.DB_CONNECTION);
this.datasource = (DataSourceComponent)
selector.select("MyConnectionName");
}

//  Skip more lines until we actually need to use the datasource

private void meMethod() {
Connection myConnection = this.datasource.getConnection();

//  perform SQL code here

myConnection.close();
}

...

but there's no longer an org.apache.cocoon.Roles class in the classpath

can anyone help?

Thanks


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




How do I use request parameter in sitemap redirect ?

2001-12-14 Thread Christopher Watson

Can anyone help?

I'd like to use a redirect (yes I know it's probably bad design that's led
me here ! :)
to a page which uses a request parameter.

in other words I'm trying to do something like

  

   


   

   
("myParameter");

  


I'd like to pass the existing request paremeter on to the page being
redirected to.
Could anyone tell me how to do this, or has any other suggestions.

Thanks

Christopher


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: How best to incorporate xml from a string into XSP

2001-12-11 Thread Christopher Watson

Marvellous. I hoped it would be that easy!

-Original Message-
From: David Rosenstrauch [mailto:[EMAIL PROTECTED]]
Sent: 11 December 2001 02:52
To: [EMAIL PROTECTED]
Subject: Re: How best to incorporate xml from a string into XSP


Someone else had this same problem recently.

Use .  It will parse the text that you pass in to it, and
generate SAX calls from it (as opposed to writing the text straight to the
output - after escaping all the control chars - like it's doing now).

1) Include the namespace xmlns:util="http://apache.org/xsp/util/2.0"; in your
XSP or the  won't get called properly.

2) the call you need to make this work:
myString

myString takes the value of String  myString, which is
then passed in to .


DR


At 11:01 PM 12/10/01 +, you wrote:
>Could someone help
>
>I have a method on an object that produces XML as a string.
>I wish to incorporate it into an XSP page.
>
>myString
>doesn't work, since it kindly changes < into < etc.
>
>I have tried various approaches, each with various unwanted side effects.
>
>Could someone tell me what is the BEST way to achieve this?
>
>i.e.
>
>Parse it?
>DOM vs SAX?
>use this.contentHandler?
>use myStringAsANode?
>
>some other Cocoon technique/ generator/transformer etc
>
>Christopher
>
>
>
>-
>Please check that your question has not already been answered in the
>FAQ before posting. 
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional commands, e-mail: <[EMAIL PROTECTED]>


-
Please check that your question has not already been answered in the
FAQ before posting. 

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


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




How best to incorporate xml from a string into XSP

2001-12-10 Thread Christopher Watson

Could someone help

I have a method on an object that produces XML as a string.
I wish to incorporate it into an XSP page.

myString 
doesn't work, since it kindly changes < into < etc.

I have tried various approaches, each with various unwanted side effects.

Could someone tell me what is the BEST way to achieve this?

i.e.

Parse it? 
DOM vs SAX? 
use this.contentHandler?
use myStringAsANode?

some other Cocoon technique/ generator/transformer etc

Christopher



-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: Cocoon 2.0 release, IE5.5, XML NAMESPACE

2001-12-03 Thread Christopher Watson

Dear All

I've fixed my own problem, but only by changing source and rebuilding
cocoon, namely file
org.apache.cocoon.components.language.markup.xsp.java.xsp.xsl

lines 131 ... changed line 133

added filtering out of "xmlns:xml" namespace  in addition to the one
mentioned in the comment, thus -



  this.contentHandler.startPrefixMapping(
"",
""
  );
  

ALSO changed line 148 (the endPrefixMapping call) to follow suite !!!

Now I can once more use that lovely IE5.5 pretty-printing to see what my
xsp's are doing ;>

BUT ...

Have I just fixed a bug? Or is the bug in IE5.5?

Any Answers ?

-----Original Message-
From: Christopher Watson [mailto:[EMAIL PROTECTED]]
Sent: 01 December 2001 16:05
To: Cocoon-Users (E-mail)
Subject: Cocoon 2.0 release, IE5.5, XML NAMESPACE


Dear Group

I've just started looking at Release 2.0

Looking at the output of xsp pages, they now include the namespace for xml,
i.e.
xmlns:xml="http://www.w3.org/XML/1998/namespace";

This results in the following behaviour in IE5.5 ...

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and
then click the Refresh button, or try again later.





The namespace prefix is not allowed to start with the reserved string "xml".
Line 2, Position 7


http://www.w3.org/XML/1998/namespace";

... whereas before - event with c2rc2 there appeared the helpful nested tree
structure.

To replicate, try adding

   


   
after
   


   

in the sitemap
and try http://localhost:8080/cocoon/xsp-plain-xml/simple


A few questions ...

Is IE5.5 right to say <> ?

Does IE6 or another browser allow xml with this namespace decl to be
displayed in a tree structure ?

Is there a way of supressing this namespace decl in release 2.0 ?

Any thanks gratefully received

Christopher


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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




Cocoon 2.0 release, IE5.5, XML NAMESPACE

2001-12-01 Thread Christopher Watson

Dear Group

I've just started looking at Release 2.0

Looking at the output of xsp pages, they now include the namespace for xml,
i.e.
xmlns:xml="http://www.w3.org/XML/1998/namespace";

This results in the following behaviour in IE5.5 ...

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and
then click the Refresh button, or try again later.





The namespace prefix is not allowed to start with the reserved string "xml".
Line 2, Position 7


http://www.w3.org/XML/1998/namespace";

... whereas before - event with c2rc2 there appeared the helpful nested tree
structure.

To replicate, try adding

   


   
after
   


   

in the sitemap
and try http://localhost:8080/cocoon/xsp-plain-xml/simple


A few questions ...

Is IE5.5 right to say <> ?

Does IE6 or another browser allow xml with this namespace decl to be
displayed in a tree structure ?

Is there a way of supressing this namespace decl in release 2.0 ?

Any thanks gratefully received

Christopher


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: How do I use logicsheets parameters

2001-11-30 Thread Christopher Watson

Christopher,

Many thanks for a model answer,

The missing penny has dropped because of your comment

"remember that a logicsheet is just an XSL stylesheet that gets applied to
your XSP document to transform it into another XSP document."

I had forgotten-cum-misunderstood!

For your info C2 does things rather differently than C1, namely, instead of
using cocoon processing instructions,
you define "pipelines" in a sitemap.xmap file (an xml file that takes over a
lot of what was cocoon.properties),
which says how the xml file is generated (xsp, jsp, Tidied html, etc)
then how it is transformed (generally xslt, but there are also transformers
for log, sql, xinclude etc)
then how it is serialized (html, xml, wap, svg2png, etc)

That was for me the biggest change from the way C1 worked and it took a
while to get the hang of, though "I sense it has more power"
but the same thing can be achieved as you suggested from C1.

Christopher

-Original Message-
From: Christopher Painter-Wakefield [mailto:[EMAIL PROTECTED]]
Sent: 29 November 2001 21:55
To: [EMAIL PROTECTED]
Subject: Re: How do I use logicsheets parameters



Christopher,

first, may I suggest some general strategies for developing logicsheets?
- start simple and extend by small increments, e.g., instead of trying to
get this working by passing either an attribute or a child element, get it
working one way, then get it working *seperately* the other way, then put
them together.  On another dimension, get it working first using a plain
text element, then get it working with a Java variable.

- remember that a logicsheet is just an XSL stylesheet that gets applied to
your XSP document to transform it into another XSP document.  You can take
advantage of this for debugging by simply changing your processing
instructions to pass your XSP through your logicsheet using the XSLT
processor only, then viewing the output.  (Some XML editors will also let
you do this pretty easily.)  This will give you insight into what the
"final" XSP code looks like before conversion to Java.  (This is easy to do
in C1; I assume you can do it in C2.)

- in addition to the above, write a plain XSP first, without using a
logicsheet, that produces the expected output.  In other words, write and
debug an XSP that looks like the XSP you want after your logicsheet is
applied.  This will help you develop your logicsheet.

Okay, so here's what I think you need to do what you are trying to do:

<  XSP - Calling page  >>>



http://apache.org/xsp";
  xmlns:mytags="http://dummy.org/mytags";
>

  
String bag="56891";
  
  
 
   bag
   
 
   bag
 
   
   




  
  

  

  


<< Logicsheet >


http://apache.org/xsp";
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
  xmlns:mytags="http://dummy.org/mytags";
  version="1.0">


  


  

  



  


  

  

  



  
  

  

""
  



  




<< Results >>


 
   
 
   
   

  
  

  

  

Hope this helps.

Note that I did this all in C1, which has some different processing
instructions and namespaces and so forth to use logicsheets.  I've tried to
return everything to a form that looks like what you had originally, but be
warned I may have missed something.

-Christopher




Please respond to [EMAIL PROTECTED]

To:   "Cocoon-Users \(E-mail\)" <[EMAIL PROTECTED]>
cc:

Subject:  How do I use logicsheets parameters


Could someone help me? I could benefit from a "logicsheet parameters 101"

I want to use my own logicsheet and pass in runtime parameter(s)

I have set up a logicsheet with the namespace mytags and a "function"
get_my_param,
to which I want to pass an xsp/java variable. In the following xsp I have
three goes at passing
a String variable called bag - with the value "56891" - but with no
success.

(The logicsheet is based on guesses from what I found in session.xsl,
util.xsl etc.)

  the results, and the logicsheet follow the listing of the page

Note that the bag gets 'resolved' in the calling page,
but its value does not get passed into the logicsheet
The  element shows that a literal value gets passed OK

I guess it's to do with the order in which xsp: and mytags: are
'processed',
but I don't know how to control this - any answers?

 XSP - 'Calling' page 


http://apache.org/cocoon/SQL/v2";
xmlns:xsp="http://apache.org/xsp";
 xmlns:xsp-request="http://apache.org/xsp/request/2.0";
 xmlns:mytags="http://dummy.org/mytags";
>


String bag="56891";



bag

 
 bag
 


 
 23
 


 







 Results 


http://apache.org/xsp";
xmlns:xspdoc="http://apache.org/cocoon/XSPDoc/v1";
xmlns:esql="http://apache.org/cocoon/SQL/v2";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:mytags="http://dummy.org/myt

How do I use logicsheets parameters

2001-11-29 Thread Christopher Watson

Could someone help me? I could benefit from a "logicsheet parameters 101"

I want to use my own logicsheet and pass in runtime parameter(s)

I have set up a logicsheet with the namespace mytags and a "function"
get_my_param,
to which I want to pass an xsp/java variable. In the following xsp I have
three goes at passing
a String variable called bag - with the value "56891" - but with no success.

(The logicsheet is based on guesses from what I found in session.xsl,
util.xsl etc.)

  the results, and the logicsheet follow the listing of the page

Note that the bag gets 'resolved' in the calling page,
but its value does not get passed into the logicsheet
The  element shows that a literal value gets passed OK

I guess it's to do with the order in which xsp: and mytags: are 'processed',
but I don't know how to control this - any answers?

 XSP - 'Calling' page 


http://apache.org/cocoon/SQL/v2";
xmlns:xsp="http://apache.org/xsp";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:mytags="http://dummy.org/mytags";
>


String bag="56891";



bag


bag




23











 Results 


http://apache.org/xsp";
xmlns:xspdoc="http://apache.org/cocoon/XSPDoc/v1";
xmlns:esql="http://apache.org/cocoon/SQL/v2";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:mytags="http://dummy.org/mytags";>















 Results try #2 

If I chaneg the priority of the "copy over" template in the logicsheet
(quoted below), thus:
  
then I get ...


http://apache.org/xsp";
xmlns:xspdoc="http://apache.org/cocoon/XSPDoc/v1";
xmlns:esql="http://apache.org/cocoon/SQL/v2";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:mytags="http://dummy.org/mytags";>




56891














... which is quite different, but still not what I want !!


 Logicsheet 


http://apache.org/cocoon/SQL/v2";
xmlns:xsp="http://apache.org/xsp";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:mytags="http://dummy.org/mytags";
  version="1.0">




  



  





  

  
  

  

  

  

  


  

  
  ""

  

  

  

  







-
Please check that your question has not already been answered in the
FAQ before posting. 

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