Microsoft SQLserver with cocoon

2002-12-02 Thread Maxime.Gheysen
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. http://xml.apache.org/cocoon/faq/index.html

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




Re: with Cocoon 2.0.3 include-expr does'nt work

2002-12-02 Thread Ludovic de Beaurepaire
Hi Philippe,

- try to have your 3 tags on one line only (!)
- or insert the java generated code directly :
 XSPUtil.includeString(SortieXML,this.manager, this.contentHandler);

Ludovic

- Original Message -
From: LEBRETON Philippe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 02, 2002 11:09 AM
Subject: Re: with Cocoon 2.0.3 include-expr does'nt work


 Christian Haul wrote:

  On 29.Nov.2002 -- 01:50 PM, LEBRETON Philippe wrote:
   With cocoon 2.0.2, i use include-expr to include string with XML
data
   in my XML:
  
util:include-exprutil:exprSortieXML/util:expr/util:include-expr
   and it work.
 
  Although the error message does not fit the diagnosis, please add
  xsp:expr/ around SortieXML.

 Ok i add xsp:exprlike this :
 util:include-expr
util:expr
 xsp:expr
  SortieXML
 /xsp:expr
/util:expr
   /util:include-expr

 and it does'nt work

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





-
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: with Cocoon 2.0.3 include-expr does'nt work

2002-12-02 Thread LEBRETON Philippe
Ludovic de Beaurepaire wrote:

 Hi Philippe,

 - try to have your 3 tags on one line only (!)
 - or insert the java generated code directly :
  XSPUtil.includeString(SortieXML,this.manager, this.contentHandler);

I try tis two method and i have the same problem.
I think it is a bug

Philippe



 Ludovic

 - Original Message -
 From: LEBRETON Philippe [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, December 02, 2002 11:09 AM
 Subject: Re: with Cocoon 2.0.3 include-expr does'nt work

  Christian Haul wrote:
 
   On 29.Nov.2002 -- 01:50 PM, LEBRETON Philippe wrote:
With cocoon 2.0.2, i use include-expr to include string with XML
 data
in my XML:
   
 util:include-exprutil:exprSortieXML/util:expr/util:include-expr
and it work.
  
   Although the error message does not fit the diagnosis, please add
   xsp:expr/ around SortieXML.
 
  Ok i add xsp:exprlike this :
  util:include-expr
 util:expr
  xsp:expr
   SortieXML
  /xsp:expr
 /util:expr
/util:include-expr
 
  and it does'nt work
 
  
  
   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/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]
 
 
 

 -
 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: Including static images into SVG files

2002-12-02 Thread Upayavira
My approach is to pass the path from the sitemap to the XSL stylesheet that produces 
the SVG as a parameter. The advantage of that is to keep all references to filesystems 
in the sitemap, rather than in stylesheets. Also, make full use of localhost where 
appropriate.

Hope this helps, Upayavira


 Unfortunately this requires an absolute URL 
 address - if I drop the http://myserver/
 then it simply does not work - is there a 
 Cocoon substitute (protocol?) I can use
 to get the image processed correctly, *regardless* 
 of what machine the app. is loaded on??


-
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: Including static images into SVG files

2002-12-02 Thread Derek Hohls



Thanks for this suggestion.

I think its a "toss up" as to where this info comes from or is 
stored.

I am not sure I prefer using the sitemap to dothis as it:
(a) makes the sitemap more complex and
(b) means I have to maintain two different versions
 (development / production)

whereas a single "included" stylesheet is a relatively simple
approach.

Of course, everyone has their own taste and 
preferences! [EMAIL PROTECTED] 02/12/2002 01:15:31 
My approach is to pass the path from the sitemap to the XSL 
stylesheet that produces the SVG as a parameter. The advantage of that is to 
keep all references to filesystems in the sitemap, rather than in 
stylesheets. Also, make full use of localhost where appropriate.Hope 
this helps, Upayavira Unfortunately this requires an 
absolute URL  address - if I drop the http://myserver/ then it simply does not 
work - is there a  Cocoon "substitute" (protocol?) I can use 
to get the image processed correctly, *regardless*  of what 
machine the app. is loaded 
on??-Please 
check that your question has not already been answered in theFAQ 
before posting. http://xml.apache.org/cocoon/faq/index.htmlTo 
unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, 
e-mail: 
[EMAIL PROTECTED]


Re: with Cocoon 2.0.3 include-expr does'nt work

2002-12-02 Thread Sylvain Wallez
LEBRETON Philippe wrote:


Ludovic de Beaurepaire wrote:

 

Hi Philippe,

- try to have your 3 tags on one line only (!)
- or insert the java generated code directly :
XSPUtil.includeString(SortieXML,this.manager, this.contentHandler);
   


I try tis two method and i have the same problem.
I think it is a bug
 


Is the content of SortieXML a syntactically correct XML document ?

You have to be aware that, even if included, this cannot be an XML 
fragment but must be a _full_ XML document, i.e. with one root element 
and no text outside that root element. The error message seems to reveal 
some text outside the root element.

Sylvain

--
Sylvain Wallez  Anyware Technologies
http://www.apache.org/~sylvain   http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }



-
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: 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
init-param
  param-nameload-class/param-name
  param-value

...
!-- For mssql2000 Driver: --
com.microsoft.jdbc.sqlserver.SQLServerDriver
...

3)

Add following jdbc element within datasources/ in cocoon.xconf

jdbc name=my_sql2000_cocoon_datasource
  pool-controller min=5 max=10/
 
dburljdbc:microsoft:sqlserver://localhost:1433;DatabaseName=mydatabase
/dburl
  usersa/user
  passwordmypassword/password
/jdbc

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 

?xml version=1.0?
xsp:page language=java
  xmlns:xsp=http://apache.org/xsp;
  xmlns:esql=http://apache.org/cocoon/SQL/v2;

page
   esql:connection
 esql:poolmy_sql2000_cocoon_datasource/esql:pool
   my_table_element
 esql:execute-query
   esql:query
 select fld1 as myfield1, fld1 as myfield2 from mytable
 /esql:query
 esql:results
   esql:row-results
 my_row_element
   my_column_one_elementesql:get-string
column=myfield1//my_column_one_element
   my_column_two_elementesql:get-string
column=myfield2//my_column_two_element
 /my_row_element
   /esql:row-results
 /esql:results
 esql:no-results
   no-resultsno-results/no-results
 /esql:no-results
   /esql:execute-query
   /my_table_element
 /esql:connection
/page
/xsp:page

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. 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: Microsoft SQLserver with cocoon

2002-12-02 Thread Morrison, John
Christopher,

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

Thanks,

J.

 -Original Message-
 From: Christopher Watson [mailto:[EMAIL PROTECTED]]
 Sent: Monday, 2 December 2002 11:37 am
 To: [EMAIL PROTECTED]
 Subject: RE: Microsoft SQLserver with cocoon
 
 
 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
 init-param
   param-nameload-class/param-name
   param-value
 
 ...
 !-- For mssql2000 Driver: --
 com.microsoft.jdbc.sqlserver.SQLServerDriver
 ...
 
 3)
 
 Add following jdbc element within datasources/ in cocoon.xconf
 
 jdbc name=my_sql2000_cocoon_datasource
   pool-controller min=5 max=10/
  
 dburljdbc:microsoft:sqlserver://localhost:1433;DatabaseName=
 mydatabase
 /dburl
   usersa/user
   passwordmypassword/password
 /jdbc
 
 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 
 
 ?xml version=1.0?
 xsp:page language=java
   xmlns:xsp=http://apache.org/xsp;
 xmlns:esql=http://apache.org/cocoon/SQL/v2;
 
 page
esql:connection
  esql:poolmy_sql2000_cocoon_datasource/esql:pool
my_table_element
  esql:execute-query
esql:query
  select fld1 as myfield1, fld1 as myfield2 from mytable
  /esql:query
  esql:results
esql:row-results
  my_row_element
  my_column_one_elementesql:get-string
 column=myfield1//my_column_one_element
  my_column_two_elementesql:get-string
 column=myfield2//my_column_two_element
  /my_row_element
/esql:row-results
  /esql:results
  esql:no-results
no-resultsno-results/no-results
  /esql:no-results
/esql:execute-query
/my_table_element
  /esql:connection
 /page
 /xsp:page
 
 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. 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]


===
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

-
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: xsp Schema

2002-12-02 Thread Emmanuil Batsis (Manos)
Bre kalws ton patrioti :-)

Check out [1] for information on the XSP DTD. I think that an XML Schema 
is under development but I can't really confirm that.

[1] http://xml.apache.org/cocoon1/wd-xsp.html

Manos

Cocoon User wrote:

is there any official or not

xsd schema for xsp?

is there any other way to validate .xsp files using a
xml editor i use xmlspy5 home  edition


thanks
Stavros Kounis



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




Tom Shepherd is out of the office.

2002-12-02 Thread Tom Shepherd
I will be out of the office starting  02/12/2002 and will not return until 03/12/2002.

For GCIS issues contact Wojtek Swistak.
For Mosaic issues contact Stephen Cheal.


--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



-
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: xsp !!!

2002-12-02 Thread Cocoon User
i use to include common xsp files using entities





On Wed, 27 Nov 2002, Hong Gia Dinh wrote:

 Hi all
 I got a problem and tried to solve it!
 i want to have a common 'common.xsp' file containing all the common values
 and i have other personal files that uses all the common values!
 so how can i use it ?? can i include/import a xsp file in oter xsp file?
 i tried to use aggregate but it doesn't work!

 can u all show me?
 Cheers




-
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: 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. http://xml.apache.org/cocoon/faq/index.html

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




AW: Cocoon deploy in JBoss 3.0.4

2002-12-02 Thread Sascha Kulawik
Hello,

I've a lot of problems deploying Cocoon in Jboss+Jetty+JDK1.4.
The Problem could be, that Cocoon is still not really 1.4 compatible - and
if i hotfix my 1.4 Installation with Xalan and Xerces in the endorsed-Dir,
Jboss can't run because of many JDBC Errors.

Any suggestions ?


-Ursprüngliche Nachricht-
Von: Jordi Valldaura i Riqué [mailto:[EMAIL PROTECTED]] 
Gesendet: Montag, 2. Dezember 2002 10:31
An: [EMAIL PROTECTED]
Betreff: Re: Cocoon deploy in JBoss 3.0.4


Hello,

I've got cocoon 2.0.3 working on a jboss 3.0.4, the only thing I've done 
is deploying cocoon.war in the deploy dir. Nothing else.


attachment: winmail.dat-
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: Cannot find CatalogManager.properties

2002-12-02 Thread Mauro Daniel Ardolino
Help! please!

On Fri, 29 Nov 2002, Mauro Daniel Ardolino wrote:

 Hi all! I'm having an strange message since yesterday and I'm not sure
 why.
 
 The message is an OUTPUT to the console while browsing my site (that is
 using cocoon).  The message is: Cannot find CatalogManager.properties.
 
 I've searched the web and it says that I'm not having this file in the
 classpath.  The strange about this messages is that was not apearing
 before yesterday and I'm NOT USING catalog (by the way, I do not know what
 are they for yet).
 
 The fact is that this message is not innofensive because my page is not
 loaded correctly.  Every time I try to load the page I receive a different
 result, sometimes a NullPointerException, sometimes there are missing some
 images, sometimes the fonts are changed.  I'm getting mad!
 
 I'm using Cocoon 2.0 on on tomcat 4.1.12 on linux redhat 7.3.
 
 Any ideas?
 
 Thanks in advance.
 
 -- Mauro
 
 
 

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar


-
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: AW: Cocoon deploy in JBoss 3.0.4

2002-12-02 Thread Jordi Valldaura i Riqué
Hello,

there is a especial cocoon download for jdk1.4, look at the downloads 
section.

--

Jordi Valldaura i Riqué
CSI - Centre de Serveis Informàtics
Enginyeria i Arquitectura La Salle
Universitat Ramón Llull




Sascha Kulawik wrote:
Hello,

I've a lot of problems deploying Cocoon in Jboss+Jetty+JDK1.4.
The Problem could be, that Cocoon is still not really 1.4 compatible - and
if i hotfix my 1.4 Installation with Xalan and Xerces in the endorsed-Dir,
Jboss can't run because of many JDBC Errors.

Any suggestions ?


-Ursprüngliche Nachricht-
Von: Jordi Valldaura i Riqué [mailto:[EMAIL PROTECTED]] 
Gesendet: Montag, 2. Dezember 2002 10:31
An: [EMAIL PROTECTED]
Betreff: Re: Cocoon deploy in JBoss 3.0.4


Hello,

I've got cocoon 2.0.3 working on a jboss 3.0.4, the only thing I've done 
is deploying cocoon.war in the deploy dir. Nothing else.





-
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: AW: Cocoon deploy in JBoss 3.0.4

2002-12-02 Thread Joerg Heinicke
Here also everything works fine with Jboss 3.0.3 + Tomcat 4.0.6 + Cocoon 
2.0.3 + JDK 1.4.0_01. So it can not be an incompatibility with JDK 1.4.0

Joerg

Sascha Kulawik wrote:
Hello,

I've a lot of problems deploying Cocoon in Jboss+Jetty+JDK1.4.
The Problem could be, that Cocoon is still not really 1.4 compatible - and
if i hotfix my 1.4 Installation with Xalan and Xerces in the endorsed-Dir,
Jboss can't run because of many JDBC Errors.

Any suggestions ?


-Ursprüngliche Nachricht-
Von: Jordi Valldaura i Riqué [mailto:[EMAIL PROTECTED]] 
Gesendet: Montag, 2. Dezember 2002 10:31
An: [EMAIL PROTECTED]
Betreff: Re: Cocoon deploy in JBoss 3.0.4


Hello,

I've got cocoon 2.0.3 working on a jboss 3.0.4, the only thing I've done 
is deploying cocoon.war in the deploy dir. Nothing else.


--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de


-
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: Microsoft SQLserver with cocoon

2002-12-02 Thread Bertrand Delacretaz
On Monday 02 December 2002 13:07, Christopher Watson wrote:
 Please tell me more, e.g. what form it should take, what it should
 include, etc

A good place to put database-specific connection information is at the 
Cocooon DocoWiki:

From this page
http://outerthought.net/wiki/Wiki.jsp?page=SpecificDatabaseConnection
create a new page similar to the existing examples.

See the main Wiki page at
http://outerthought.net/wiki/Wiki.jsp?page=Main
If you're unsure about how to do this (but it is really easy).

-Bertrand

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




Sendmail serial email

2002-12-02 Thread Scherler, Thorsten
Hello group,

I am still trying to send a serial email with cocoon ... and I am stucked big time

I got the sendmail logic sheet runnig (without the possiblity to attach a file or a 
URL).

I have my query (with esql) running.

Now I want to do the following:
The query looks for the date on which information has to be send (info.xsp:)
xsp:page language=java xmlns:xsp=http://apache.org/xsp; 
xmlns:esql=http://apache.org/cocoon/SQL/v2; 
xmlns:xsp-request=http://apache.org/xsp/request/2.0;
dataset
esql:connection
esql:poolIDC2/esql:pool
esql:execute-query
esql:query
select * from info where Info_datum = #xsp-request:get-parameter name=date/# 
address
bname1
esql:get-string column=business_name/
/bname1
bname2
esql:get-string column=business_name_2/
/bname2
bname3
esql:get-string column=business_name_3/
/bname3
street
esql:get-string column=address/
/street
ZIP
esql:get-string column=zip_code/
/ZIP
City
esql:get-string column=city/
/City
country
esql:get-string column=country/
/country
telephone_number
esql:get-string column=telephone_number/
/telephone_number
/address
aktion
Info_datum
esql:get-date column=Info_datum/
/Info_datum
/aktion
WD
district
esql:get-string column=district/
/district
ADM
name
esql:get-string column=ADM/
/name
email
esql:get-string column=ADM_email/
/email
/ADM
/WD
/client
/esql:row-results
/esql:results
esql:no-results/
esql:error-results/
/esql:execute-query
/esql:connection
/dataset
/xsp:page

Now I want to send each ADM an eMail. 
I have the following sendmail.xsp. I have to replace empfaenger with the 
emailesql:get-string column=ADM_email//email :

?xml version=1.0 encoding=UTF-8?
xsp:page language=java xmlns:xsp=http://apache.org/xsp; 
xmlns:xsp-request=http://apache.org/xsp/request/2.0; 
xmlns:sendmail=http://apache.org/cocoon/sendmail/1.0;
page
xsp:expr
xsp-request:get-parameter name=./ADM/email/
/xsp:expr
xsp:logic   
   String empfaenger = 
   [EMAIL PROTECTED]\n;
  /xsp:logic
xsp:logic
   String text =
   \n+
   something\n+
   \n+
   more:\n+
   empfaenger;
   /xsp:logic
xsp-request:get-parameter name=date/
sendmail:send-mail
sendmail:charsetISO-8859-1/sendmail:charset
sendmail:from[EMAIL PROTECTED]/sendmail:from
sendmail:to
xsp:exprempfaenger/xsp:expr
/sendmail:to
sendmail:cc
xsp:exprempfaenger/xsp:expr
/sendmail:cc
sendmail:subjectD 200203 V/sendmail:subject
!-- Modify the next line to point to your mail server --
sendmail:smtphostmail.weidmueller.com/sendmail:smtphost
sendmail:body
xsp:exprtext/xsp:expr
xsp-request:get-parameter name=date/
/sendmail:body
/sendmail:send-mail
sendok/send
/page
/xsp:page

How can I do that?

Write a xsl with Processing instruction to build the sendmail file on the fly?

I would rather like not to have to do that!

Any ideas?

 Mit freundlichem Gruss,
 
 Thorsten Scherler
 Marketing / Telefonmarketing
 
 Weidmüller GmbH  Co.
 P.O. Box 2807
 33058 Paderborn
 Tel.:+ 49 - 5252-960-350
 Fax:+ 49 - 5252-960-116
 eMail: [EMAIL PROTECTED]
 http://www.weidmueller.de
 
 

-
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/tomcat memory usage

2002-12-02 Thread Lenz, Evan
I'm trying to further utilize the memory resources of our Linux server for
Cocoon by increasing the StoreJanitor heapsize and Java -Xmx parameters. My
current settings are as follows:

In tomcat4.conf:
 JAVACMD=$JAVA_HOME/bin/java -Xmx360m

In cocoon.xconf (inside the store-janitor element):
 parameter name=freememory value=2000/
 parameter name=heapsize value=33600/

Performance has visibly improved as a result. However, actual memory usage
(per top output) seems to peak at 111-112M, no matter what I throw at the
server.

How do I make the JVM and Tomcat/Cocoon utilize more of my machine's memory
(thereby further improving performance hopefully)?

Thanks,
Evan Lenz

-
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 memory usage problems: Windows vs UNIX

2002-12-02 Thread Derek Hohls
Hi
 
I am struggling to get Cocoon running properly on our UNIX server 
(production) machine.  
 
On my local machine, running Windows 2000, I am able to monitor
the performance of Tomcat, and watch the memory usage climb -
typically
from about 30MB when loading up, up to about 120MB when running Cocoon
(using the samples from the main sitemap).
 
On the production machine, its a bit harder to figure, as there is only
a 
single process called Java; but total memory can ramp up to over
220MB 
after doing the equivalent to the above.
 
This memory hogging, along with the other typical memory activiities
on
the server, pushes the memory within a few megabytes of full and
causes
some strange behavior such as pages only loading partially or, even
worse,
the dreaded out of memory error (and this is *before* I start
working with
graphics which I *know* are memory intensive!)

Has anyone any ideas or suggestions on how to obtain better memory
consumption on a UNIX (more comparable with Windows?)

Thanks
Derek
  
System specs:-
 
Development:  Windows 2000; 256MB
Production : UNIX - Solaris; 512MB

Both machines running Cocoon 2.03 and Tomcat 4 and Java 1.31

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




AW: Sendmail serial email

2002-12-02 Thread Scherler, Thorsten
Hello group,

I don't know why I don't get any answers on that topic, but it is quit frustrating.

http://www.javaworld.com/javaworld/jw-09-2002/jw-0920-cocoon-p2.html#sidebar1

There you can find how to nested a esql with sendmail.

It is working!

Now I just suffering how to attach a pdf.

...but I don't think I will get any answers on that,or?

:-(

-Ursprüngliche Nachricht-
Von: Scherler, Thorsten 
Gesendet: Montag, 2. Dezember 2002 13:58
An: Cocoon-Dev (E-Mail); Cocoon-Users (E-Mail)
Betreff: Sendmail serial email


Hello group,

I am still trying to send a serial email with cocoon ... and I am stucked big time

I got the sendmail logic sheet runnig (without the possiblity to attach a file or a 
URL).

I have my query (with esql) running.

Now I want to do the following:
The query looks for the date on which information has to be send (info.xsp:)
xsp:page language=java xmlns:xsp=http://apache.org/xsp; 
xmlns:esql=http://apache.org/cocoon/SQL/v2; 
xmlns:xsp-request=http://apache.org/xsp/request/2.0;
dataset
esql:connection
esql:poolIDC2/esql:pool
esql:execute-query
esql:query
select * from info where Info_datum = #xsp-request:get-parameter name=date/# 
address
bname1
esql:get-string column=business_name/
/bname1
bname2
esql:get-string column=business_name_2/
/bname2
bname3
esql:get-string column=business_name_3/
/bname3
street
esql:get-string column=address/
/street
ZIP
esql:get-string column=zip_code/
/ZIP
City
esql:get-string column=city/
/City
country
esql:get-string column=country/
/country
telephone_number
esql:get-string column=telephone_number/
/telephone_number
/address
aktion
Info_datum
esql:get-date column=Info_datum/
/Info_datum
/aktion
WD
district
esql:get-string column=district/
/district
ADM
name
esql:get-string column=ADM/
/name
email
esql:get-string column=ADM_email/
/email
/ADM
/WD
/client
/esql:row-results
/esql:results
esql:no-results/
esql:error-results/
/esql:execute-query
/esql:connection
/dataset
/xsp:page

Now I want to send each ADM an eMail. 
I have the following sendmail.xsp. I have to replace empfaenger with the 
emailesql:get-string column=ADM_email//email :

?xml version=1.0 encoding=UTF-8?
xsp:page language=java xmlns:xsp=http://apache.org/xsp; 
xmlns:xsp-request=http://apache.org/xsp/request/2.0; 
xmlns:sendmail=http://apache.org/cocoon/sendmail/1.0;
page
xsp:expr
xsp-request:get-parameter name=./ADM/email/
/xsp:expr
xsp:logic   
   String empfaenger = 
   [EMAIL PROTECTED]\n;
  /xsp:logic
xsp:logic
   String text =
   \n+
   something\n+
   \n+
   more:\n+
   empfaenger;
   /xsp:logic
xsp-request:get-parameter name=date/
sendmail:send-mail
sendmail:charsetISO-8859-1/sendmail:charset
sendmail:from[EMAIL PROTECTED]/sendmail:from
sendmail:to
xsp:exprempfaenger/xsp:expr
/sendmail:to
sendmail:cc
xsp:exprempfaenger/xsp:expr
/sendmail:cc
sendmail:subjectD 200203 V/sendmail:subject
!-- Modify the next line to point to your mail server --
sendmail:smtphostmail.weidmueller.com/sendmail:smtphost
sendmail:body
xsp:exprtext/xsp:expr
xsp-request:get-parameter name=date/
/sendmail:body
/sendmail:send-mail
sendok/send
/page
/xsp:page

How can I do that?

Write a xsl with Processing instruction to build the sendmail file on the fly?

I would rather like not to have to do that!

Any ideas?

 Mit freundlichem Gruss,
 
 Thorsten Scherler
 Marketing / Telefonmarketing
 
 Weidmüller GmbH  Co.
 P.O. Box 2807
 33058 Paderborn
 Tel.:+ 49 - 5252-960-350
 Fax:+ 49 - 5252-960-116
 eMail: [EMAIL PROTECTED]
 http://www.weidmueller.de
 
 

-
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/tomcat memory usage

2002-12-02 Thread Christoph Gaffga
Hi,
you can change some more in the cocoon.xconf. Try the number of cached
objects (MRUMemoryStore, parameter name=maxobjects value=1/).
I reach a memory usage of cocoon by around 1,5GB by playing around with
these values.

yours
Christoph Gaffga
[EMAIL PROTECTED]


- Original Message -
From: Lenz, Evan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 02, 2002 3:14 PM
Subject: Cocoon/tomcat memory usage


 I'm trying to further utilize the memory resources of our Linux server for
 Cocoon by increasing the StoreJanitor heapsize and Java -Xmx parameters.
My
 current settings are as follows:

 In tomcat4.conf:
  JAVACMD=$JAVA_HOME/bin/java -Xmx360m

 In cocoon.xconf (inside the store-janitor element):
  parameter name=freememory value=2000/
  parameter name=heapsize value=33600/

 Performance has visibly improved as a result. However, actual memory usage
 (per top output) seems to peak at 111-112M, no matter what I throw at the
 server.

 How do I make the JVM and Tomcat/Cocoon utilize more of my machine's
memory
 (thereby further improving performance hopefully)?

 Thanks,
 Evan Lenz

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




Handling servlet exceptions in sitemap

2002-12-02 Thread Jordi Valldaura i Riqué
Hello,

I'm trying to call a servlet from my sitemap, but I'm not able to handle 
the servlet's exceptions through handle-errors. Is there anyway to do it.

map:pipeline
	map:match pattern=greet
		map:redirect-to url=greeting type=servlet/
	/map:match
	map:match pattern=*.*
		map:generate src={1}.{2} type=serverpages/
		map:transform src=stylesheets/page2html.xsl /
		map:serialize/
	/map:match
   map:handle-errors
map:transform src=stylesheets/error2html.xsl/
map:serialize status-code=500/
   /map:handle-errors
/map:pipeline

Thanks in advance


-
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: with Cocoon 2.0.3 include-expr does'nt work

2002-12-02 Thread LEBRETON Philippe
Sylvain Wallez wrote:

 LEBRETON Philippe wrote:

 Ludovic de Beaurepaire wrote:
 
 
 
 Hi Philippe,
 
 - try to have your 3 tags on one line only (!)
 - or insert the java generated code directly :
  XSPUtil.includeString(SortieXML,this.manager, this.contentHandler);
 
 
 
 I try tis two method and i have the same problem.
 I think it is a bug
 
 

 Is the content of SortieXML a syntactically correct XML document ?

No, my XML data string content data without root element.
thanks

Philippe



 You have to be aware that, even if included, this cannot be an XML
 fragment but must be a _full_ XML document, i.e. with one root element
 and no text outside that root element. The error message seems to reveal
 some text outside the root element.

 Sylvain

 --
 Sylvain Wallez  Anyware Technologies
 http://www.apache.org/~sylvain   http://www.anyware-tech.com
 { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }

 -
 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: Where does Cocoon store state between Tomcat restarts?

2002-12-02 Thread Christoph Gaffga
Hi ,
for me it always works when I do
rm -Rf /var/tomcat4/work/*
I think, then you have them all.

yours
Christoph
[EMAIL PROTECTED]

- Original Message -
From: Lenz, Evan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 02, 2002 6:10 PM
Subject: Where does Cocoon store state between Tomcat restarts?


 Tomcat/Cocoon on our production server has somehow reached a bad state
after
 attempting to launch our Web site. Tomcat restarts but does not respond to
 any requests. The machine is currently closed off from the outside world,
so
 it can't be a question of load, I think. I've deleted the files in the two
 directories I see named cache-dir:

 /var/tomcat4/work/Standalone/localhost/cocoon/cocoon-files/cache-dir
 /var/tomcat4/work/Standalone/localhost/_/cocoon-files/cache-dir

 But I'm assuming that there are other files somewhere else that could be
 maintaining this bad state. Basically, I just need an enumeration of where
 Cocoon stores state between Tomcat restarts, if that is possible.

 Thanks much,
 Evan

 -
 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: Where does Cocoon store state between Tomcat restarts?

2002-12-02 Thread Ludovic de Beaurepaire
Hi,

Perhaps there is another place, because when i delete the work dir under
windows and re-start tomcat, i have noticed the last accessed time is not
changed for XSL files when they are not modified. But i don't know where :-(

Ludovic
- Original Message -
From: Christoph Gaffga [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, December 02, 2002 6:40 PM
Subject: Re: Where does Cocoon store state between Tomcat restarts?


 Hi ,
 for me it always works when I do
 rm -Rf /var/tomcat4/work/*
 I think, then you have them all.

 yours
 Christoph
 [EMAIL PROTECTED]

 - Original Message -
 From: Lenz, Evan [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, December 02, 2002 6:10 PM
 Subject: Where does Cocoon store state between Tomcat restarts?


  Tomcat/Cocoon on our production server has somehow reached a bad state
 after
  attempting to launch our Web site. Tomcat restarts but does not respond
to
  any requests. The machine is currently closed off from the outside
world,
 so
  it can't be a question of load, I think. I've deleted the files in the
two
  directories I see named cache-dir:
 
  /var/tomcat4/work/Standalone/localhost/cocoon/cocoon-files/cache-dir
  /var/tomcat4/work/Standalone/localhost/_/cocoon-files/cache-dir
 
  But I'm assuming that there are other files somewhere else that could be
  maintaining this bad state. Basically, I just need an enumeration of
where
  Cocoon stores state between Tomcat restarts, if that is possible.
 
  Thanks much,
  Evan
 
  -
  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]





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




AW: AW: Cocoon deploy in JBoss 3.0.4

2002-12-02 Thread Sascha Kulawik
I'm using Jetty instead of the Tomcat Bundle.
Anyway, I will get a Exception at the first (or maybe the third) visit of
the Cocoon Page:
No more DTMID's aviable.
Also sometimes Cocoon can't compile the Sitemap :( Maybe an incompatibility
between Cocoon and Tomcat ? 
The Jetty + Jboss Solution is much faster then Tomcat, so I won't use Tomcat
instead. Or any other experiences ?

Regards,
Sascha


-Ursprüngliche Nachricht-
Von: Joerg Heinicke [mailto:[EMAIL PROTECTED]] 
Gesendet: Montag, 2. Dezember 2002 13:55
An: [EMAIL PROTECTED]
Betreff: Re: AW: Cocoon deploy in JBoss 3.0.4


Here also everything works fine with Jboss 3.0.3 + Tomcat 4.0.6 + Cocoon 
2.0.3 + JDK 1.4.0_01. So it can not be an incompatibility with JDK 1.4.0

Joerg

Sascha Kulawik wrote:
 Hello,
 
 I've a lot of problems deploying Cocoon in Jboss+Jetty+JDK1.4. The 
 Problem could be, that Cocoon is still not really 1.4 compatible - and 
 if i hotfix my 1.4 Installation with Xalan and Xerces in the 
 endorsed-Dir, Jboss can't run because of many JDBC Errors.
 
 Any suggestions ?
 
 
 -Ursprüngliche Nachricht-
 Von: Jordi Valldaura i Riqué [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 2. Dezember 2002 10:31
 An: [EMAIL PROTECTED]
 Betreff: Re: Cocoon deploy in JBoss 3.0.4
 
 
 Hello,
 
 I've got cocoon 2.0.3 working on a jboss 3.0.4, the only thing I've 
 done
 is deploying cocoon.war in the deploy dir. Nothing else.


-- 

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de


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


attachment: winmail.dat-
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: Transformer

2002-12-02 Thread Lautaro Brasseur
First I think in merge all XSLs into one single. But they are about 1150,
and I think that would be very heavy for the server.

I solved the problem by using a session attribute. I put the transaction
name (the value that determines the XSL to use) in the session (in the setup
method of the generator) and take it in the setup method of the transformer.
It isn't elgant, but it works.

Thanks

Lautaro


- Original Message -
From: Joerg Heinicke [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, December 01, 2002 6:57 PM
Subject: Re: Transformer


 Does this mean, that you want to select another XSL file used for
 transformation depending on the input document? Why don't you use an
 XSL, which includes the other XSL files and so the different matching
 templates? Or use modes in the stylesheets like J. Pietschmann provided
 at
 http://www.mail-archive.com/cocoon-users@xml.apache.org/msg21224.html.
 Otherwise you must use an action, which chooses the
 correct transformer.

 Joerg

 [EMAIL PROTECTED] wrote:
   I want to change the XSL file of a transformer according a element of
the
   input XML. There is any way to do this?
  
   Thanks
  
   Lautaro



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


 --
 www.Argentina.com
 E-mail Profesional y Acceso a Internet UltraVeloz totalmente GRATIS en
 Buenos Aires, Rosario, Cordoba, Mendoza, Mar del Plata, Moreno, Merlo,
 La Plata, Pilar, Escobar, Campana y Zárate



-
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: Including static images into SVG files

2002-12-02 Thread Conal Tuohy
Can you capture the name and port of the localhost from the host request
parameter, and pass it to the stylesheet?

-Original Message-
From: Derek Hohls [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 3 December 2002 00:21
To: [EMAIL PROTECTED]
Subject: RE: Including static images into SVG files


Thanks for this suggestion.

I think its a toss up as to where this info comes from or is stored.

I am not sure I prefer using the sitemap to do this as it:
(a) makes the sitemap more complex and
(b) means I have to maintain two different versions
   (development / production)

whereas a single included stylesheet is a relatively simple
approach.

Of course, everyone has their own taste and preferences!

 [EMAIL PROTECTED] 02/12/2002 01:15:31 
My approach is to pass the path from the sitemap to the XSL stylesheet that
produces
the SVG as a parameter. The advantage of that is to keep all references to
filesystems
in the sitemap, rather than in stylesheets. Also, make full use of localhost
where
appropriate.

Hope this helps, Upayavira


 Unfortunately this requires an absolute URL
 address - if I drop the http://myserver/
 then it simply does not work - is there a
 Cocoon substitute (protocol?) I can use
 to get the image processed correctly, *regardless*
 of what machine the app. is loaded on??


-
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: AW: Sendmail serial email

2002-12-02 Thread Frank Ridderbusch
Scherler, Thorsten wrote:

 Hello group,
 
 I don't know why I don't get any answers on that topic, but it is quit
 frustrating.
 
 
http://www.javaworld.com/javaworld/jw-09-2002/jw-0920-cocoon-p2.html#sidebar1
 
 There you can find how to nested a esql with sendmail.
 
 It is working!
 
 Now I just suffering how to attach a pdf.
 
 ...but I don't think I will get any answers on that,or?
 
 :-(

Well, here is someone, who will answer, but I guess it is not quite the
expected answer. 

It does not appear, that you have looked at source of sendmail.xsp 
logisheet (to be found at the location 

src/java/org/apache/cocoon/components/language/markup/xsp/java/sendmail.xsl

If you do, then you realize, that sendmail.xsp ist basically a XSL
stylesheet, that generates Java code, which in turn send an email
though the Java Mail API. You're also see, that only a hand full of
tags are implemented and sendmail:attach is not one of them.
Apparently until now there wasn't anybody who felt the need to 
to attach a file in a sendmail.xsp logisheet. I guess, the current
sendmail.xsp is more of a prove of concept and this is probably
also the reason, that it not configured by default in the main sitemap.

I guess, you're on your own. You might want to look at the report
I filed with bugzilla:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15005

This might give you an idea, how to proceed. 
-- 
MfG / Regards

Frank Ridderbusch




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




source:write with empty path

2002-12-02 Thread Geoff Howard
Can someone with a cvs checkout of 2.1 dev checked out
since 9/27 confirm that source:write fails with no
path 

specified?  I'm trying to confirm a problem before
submitting a bug report but have frozen my local cvs
until a launch 

later this week.

try the following to isolate the problem: 

1) create an xml file foo.xml in the same directory
with any sitemap.  The contents of foo.xml can be
simply: 

footest this/foo

2) create a second file write.xml containing:

source:write create=true
xmlns:source=http://apache.org/cocoon/source/1.0;
  source:sourcefoo.xml/source:source
  source:path/source:path
  source:fragmentfoo
newFooWe changed it/newFoo
othernodewell what do you know/othernode
/foo/source:fragment
/source:write

2) in that or a prior mounting sitemap define the
source writing transformer (if it isn't already). 
Inside 

map:components/map:transformers add:

 map:transformer name=tofile
src=org.apache.cocoon.transformation.SourceWritingTransformer
 map:parameter name=serializer value=xml/
 /map:transformer

3) Add the following pipeline fragment somewhere high
enough to override 
any more generic matchers like *.xml or **.xml you may
have:

map:match pattern=testWrite.xml
  map:generate src=write.xml/
  map:transform type=tofile/
  map:serialize type=xml/
/map:match

4) Access http://localhost:8080/testWrite.xml (adjust
accordingly if you've done all this in a sub sitemap)

You should get an org.w3c.dom.DOMException related to
Hierarchy (if this is in fact a bug).

Thank you,

Geoff

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-
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: XMLForm and Table output

2002-12-02 Thread Ivelin Ivanov
I am not sure what exactly the problem is,
but I guess you might be actually looking for a file reader instead of
generator.

I have not really used Cocoon for printing.

Ivelin


- Original Message -
From: Kirchhoff, Lars [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 02, 2002 12:15 AM
Subject: AW: XMLForm and Table output


thanks Ivelin,

but now I'm right in front of a new problem, how to print out the document
using
cocoon? I couldn't find a generator that gets the input right from a stream?
Do I have to write my own generator? If yes, can you point me to some
documentation
about this, because I couldn't found it.

thanks Lars

 -Ursprüngliche Nachricht-
 Von: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
 Gesendet: Sonntag, 1. Dezember 2002 00:03
 An: [EMAIL PROTECTED]
 Betreff: Re: XMLForm and Table output


 Yes. You are on the right track.
 Why don't you print the XML document once it is created to see what it
 actually contains.
 I suspect this might be a simple mistake due to misuse of the
 API. It is not
 very convenient.
 Actually if you plan writing a lot of DOM code, you may want
 to look at JDOM
 or some of the O/R mapping frameworks.


 Ivelin



 - Original Message -
 From: Kirchhoff, Lars [EMAIL PROTECTED]
 To: Cocoon-Users (E-Mail) [EMAIL PROTECTED]
 Sent: Thursday, November 28, 2002 4:49 AM
 Subject: XMLForm and Table output


  Hi,
 
  it's me again and I hope I'm still getting answers and not
 starting to
  bother you all
  with all my questions.
  I've tried to create an application which simple should get
 some user data
  from a
  database, by simply enter the name. So my first form is
 just a text field
  where the name
  can be inserted. If the name is found all data will be
 shown. so far so
  good. But now
  I would like to built something more. Because I do not look
 at the exact
  name in the
  database it could be possible to get more then one entry. I
 now want to
  create a page,
  where all possible names are shown and some more additional
 information
  about them.
  So what I would like to have should be looking like this:
--
| name   | address   | city | zip|
--
| name1  | address1  | city1| zip1   |
| name2  | address2  | city2| zip2   |
| name3  | address3  | city3| zip3   |
| ...| ...   | ...  | ...|
 
  where the user has the possibility to click on the a name
 to get the full
  detail.
  So what I thought is to write a method which get me the
 data from the
  database and
  put this in a DOM Nodes. I thought this would enable me to
 use them in the
  xf:repeat
  statement, but unfortunately it didn't worked out so far.
 
  Here is the code I used to create the DOM Nodes:
 
 --
 
 --
  ---
 // 
 // Use DOM nodes to store values
 // 
 DOMImplementation impl;
 
 try {
  DocumentBuilderFactory factory =
  DocumentBuilderFactory.newInstance();
  factory.setNamespaceAware( false );
  factory.setValidating( false );
  DocumentBuilder builder = factory.newDocumentBuilder();
  impl = builder.getDOMImplementation();
 }
 catch ( Exception e ) {
  throw new RuntimeException( Failed to initialize DOM factory. Root
  cause: \n + e );
 }
 
 // 
 // Use DOM nodes to store values
 // 
Document doc = impl.createDocument( null, Users, null );
Node root = doc.getDocumentElement();
Node custname = null;
Node address = null;
Node zip = null;
Node city = null;
Node user = null;
  Text text;
 
  try {
  Class.forName( org.postgresql.Driver );
  Connection con =
  DriverManager.getConnection( DB_URL, DB_USER, DB_PASS );
  Statement stmt = con.createStatement();
  String update = select custname, busname,
  address, city, state, zip, pobox, pocode from customer
 where custname like
  '% + name + %';
  ResultSet rs = stmt.executeQuery( update
  );
 
  while ( rs.next() ) {
  user = doc.createElement( user );
  root.appendChild( user );
 
  custname = doc.createElement( custname );
 
  text = doc.createTextNode( rs.getString(
  custname ) );
  custname.appendChild( text );
  user.appendChild( custname );
 
  address = doc.createElement( address );
 
  text = doc.createTextNode( rs.getString(
  address ) );
  address.appendChild( text );
  user.appendChild( address );
 
  zip = doc.createElement( zip );
 
  text = doc.createTextNode( rs.getString( zip )
  );
  zip.appendChild( text );
  user.appendChild( zip );
 
  city = doc.createElement( city );
 
  text = doc.createTextNode( 

[Help] Session manager errors.

2002-12-02 Thread Antonio Gallardo
Hi.

I am still having problem in a production environment with the session
manager. There are 35 registered users. Of course the users sometimes does
not close sessions.

All the day everything works fine. But at the end of the day I was
starting to get the following errors:

1-Message: Handler information not found
  Description: org.apache.cocoon.ProcessingException: Handler information
not found.

2-Message: Exception in ServerPagesGenerator.generate()
  Description: org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.IllegalArgument:
SessionManager.getContextFragment Context 'authentication' not found.

3-Also I saw after that another error related with the ComponentManager
lookup.


Currently I was updated in the cocoon.xconf to:

session-manager logger=core.session-manager pool-grow=4
pool-max=100 pool-min=8/

authentication-manager logger=core.authentication-manager pool-grow=4
pool-max=100 pool-min=8
mediatypes default=html
media name=wap useragent=Nokia/
media name=wap useragent=UP/
media name=wap useragent=Wapalizer/
/mediatypes
/authentication-manager

Please note that I changed the value of attribute pool-max from 32 to
100 in both elements:

session-manager
authentication-manager

I will try tomorrow what will happends with this new config of cocoon.xconf

Please note that the Squid proxy is now turned off. This let users'request
go directly to the Cocoon server.

Another problem is that still there are some problems with the session
mixing. If I request a page from one user

I forgotted: I am using Tomcat 4.1.12, Java 1.4.1_01, Cocoon 2.1 from
25-Nov-2002 on Red Hat Linux 8.0.

The computer is a PIII 600 with 384 MB of RAM.

Please helpme.

Antonio Gallardo






-
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: XMLForm and Table output

2002-12-02 Thread Ivelin Ivanov
Did you try setting your form model as a DocumentContainer which contains
the DOM object?

http://jakarta.apache.org/commons/jxpath/users-guide.html#Containers




- Original Message -
From: Kirchhoff, Lars [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 02, 2002 8:35 PM
Subject: AW: XMLForm and Table output


maybe I was a bit unprecise. I already could see that the xml output is
correct.
the only thing I'm still not sure is how to reference the dom in the xml
page.
I tried the following:
xf:repeat nodeset=/Users/user id=myUsers
xf:textbox ref=custname class=info/xf:textbox
xf:textbox ref=address class=info/xf:textbox
xf:textbox ref=city class=info/xf:textbox
xf:textbox ref=zip class=info/xf:textbox
/xf:repeat

and

xf:selectMany ref=/ selectUIType=checkbox
  xf:captionUsernames:/xf:caption
  xf:itemset nodeset=/Users/user
xf:caption ref=custname/
xf:caption ref=address/
xf:caption ref=city/
xf:caption ref=zip/
  /xf:itemset
/xf:selectMany

and several others ... (but this seemed to be the most logical ones
after reading the xmlform specs from w3c)

but it's not working. Now my guess is that probably the data is not
return probaply to the xml page or better the pipeline. In the action
java file I have this getForm().getModel(); statement and am now
wondering if this returns all Data, not only the bean data?

maybe you can help finding the light out of this...

ciao Lars

 -Ursprüngliche Nachricht-
 Von: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 3. Dezember 2002 10:00
 An: [EMAIL PROTECTED]
 Betreff: Re: XMLForm and Table output


 I am not sure what exactly the problem is,
 but I guess you might be actually looking for a file reader instead of
 generator.

 I have not really used Cocoon for printing.

 Ivelin


 - Original Message -
 From: Kirchhoff, Lars [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, December 02, 2002 12:15 AM
 Subject: AW: XMLForm and Table output


 thanks Ivelin,

 but now I'm right in front of a new problem, how to print out
 the document
 using
 cocoon? I couldn't find a generator that gets the input right
 from a stream?
 Do I have to write my own generator? If yes, can you point me to some
 documentation
 about this, because I couldn't found it.

 thanks Lars

  -Ursprüngliche Nachricht-
  Von: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
  Gesendet: Sonntag, 1. Dezember 2002 00:03
  An: [EMAIL PROTECTED]
  Betreff: Re: XMLForm and Table output
 
 
  Yes. You are on the right track.
  Why don't you print the XML document once it is created to
 see what it
  actually contains.
  I suspect this might be a simple mistake due to misuse of the
  API. It is not
  very convenient.
  Actually if you plan writing a lot of DOM code, you may want
  to look at JDOM
  or some of the O/R mapping frameworks.
 
 
  Ivelin
 
 
 
  - Original Message -
  From: Kirchhoff, Lars [EMAIL PROTECTED]
  To: Cocoon-Users (E-Mail) [EMAIL PROTECTED]
  Sent: Thursday, November 28, 2002 4:49 AM
  Subject: XMLForm and Table output
 
 
   Hi,
  
   it's me again and I hope I'm still getting answers and not
  starting to
   bother you all
   with all my questions.
   I've tried to create an application which simple should get
  some user data
   from a
   database, by simply enter the name. So my first form is
  just a text field
   where the name
   can be inserted. If the name is found all data will be
  shown. so far so
   good. But now
   I would like to built something more. Because I do not look
  at the exact
   name in the
   database it could be possible to get more then one entry. I
  now want to
   create a page,
   where all possible names are shown and some more additional
  information
   about them.
   So what I would like to have should be looking like this:
 --
 | name   | address   | city | zip|
 --
 | name1  | address1  | city1| zip1   |
 | name2  | address2  | city2| zip2   |
 | name3  | address3  | city3| zip3   |
 | ...| ...   | ...  | ...|
  
   where the user has the possibility to click on the a name
  to get the full
   detail.
   So what I thought is to write a method which get me the
  data from the
   database and
   put this in a DOM Nodes. I thought this would enable me to
  use them in the
   xf:repeat
   statement, but unfortunately it didn't worked out so far.
  
   Here is the code I used to create the DOM Nodes:
  
  --
  
  --
   ---
  // 
  // Use DOM nodes to store values
  // 
  DOMImplementation impl;
  
  try {
   DocumentBuilderFactory 

AW: XMLForm and Table output

2002-12-02 Thread Kirchhoff, Lars
no I didn't, but I forget to set the get and set method in the JavaBean.
No I can access the dom   with the following:

xf:selectMany ref=/system selectUIType=checkbox
  xf:captionUsername:/xf:caption
xf:itemset nodeset=/system
xf:caption ref=user/custname/
/xf:itemset
/xf:selectMany

xf:captionUserlist:/xf:caption
xf:repeat nodeset=/system id=system
xf:textbox ref=user/custname class=info/xf:textbox
xf:textbox ref=user/address class=info/xf:textbox
xf:textbox ref=user/zip class=info/xf:textbox
xf:textbox ref=user/city class=info/xf:textbox
/xf:repeat

but the funny thing is, that I only can access the first user element. I
don't 
get all user elements.

 -Ursprüngliche Nachricht-
 Von: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 3. Dezember 2002 12:05
 An: [EMAIL PROTECTED]
 Betreff: Re: XMLForm and Table output
 
 
 Did you try setting your form model as a DocumentContainer 
 which contains
 the DOM object?
 
 http://jakarta.apache.org/commons/jxpath/users-guide.html#Containers
 
 
 
 
 - Original Message -
 From: Kirchhoff, Lars [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, December 02, 2002 8:35 PM
 Subject: AW: XMLForm and Table output
 
 
 maybe I was a bit unprecise. I already could see that the xml 
 output is
 correct.
 the only thing I'm still not sure is how to reference the dom 
 in the xml
 page.
 I tried the following:
 xf:repeat nodeset=/Users/user id=myUsers
 xf:textbox ref=custname class=info/xf:textbox
 xf:textbox ref=address class=info/xf:textbox
 xf:textbox ref=city class=info/xf:textbox
 xf:textbox ref=zip class=info/xf:textbox
 /xf:repeat
 
 and
 
 xf:selectMany ref=/ selectUIType=checkbox
   xf:captionUsernames:/xf:caption
   xf:itemset nodeset=/Users/user
 xf:caption ref=custname/
 xf:caption ref=address/
 xf:caption ref=city/
 xf:caption ref=zip/
   /xf:itemset
 /xf:selectMany
 
 and several others ... (but this seemed to be the most logical ones
 after reading the xmlform specs from w3c)
 
 but it's not working. Now my guess is that probably the data is not
 return probaply to the xml page or better the pipeline. In the action
 java file I have this getForm().getModel(); statement and am now
 wondering if this returns all Data, not only the bean data?
 
 maybe you can help finding the light out of this...
 
 ciao Lars
 
  -Ursprüngliche Nachricht-
  Von: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
  Gesendet: Dienstag, 3. Dezember 2002 10:00
  An: [EMAIL PROTECTED]
  Betreff: Re: XMLForm and Table output
 
 
  I am not sure what exactly the problem is,
  but I guess you might be actually looking for a file reader 
 instead of
  generator.
 
  I have not really used Cocoon for printing.
 
  Ivelin
 
 
  - Original Message -
  From: Kirchhoff, Lars [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, December 02, 2002 12:15 AM
  Subject: AW: XMLForm and Table output
 
 
  thanks Ivelin,
 
  but now I'm right in front of a new problem, how to print out
  the document
  using
  cocoon? I couldn't find a generator that gets the input right
  from a stream?
  Do I have to write my own generator? If yes, can you point 
 me to some
  documentation
  about this, because I couldn't found it.
 
  thanks Lars
 
   -Ursprüngliche Nachricht-
   Von: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
   Gesendet: Sonntag, 1. Dezember 2002 00:03
   An: [EMAIL PROTECTED]
   Betreff: Re: XMLForm and Table output
  
  
   Yes. You are on the right track.
   Why don't you print the XML document once it is created to
  see what it
   actually contains.
   I suspect this might be a simple mistake due to misuse of the
   API. It is not
   very convenient.
   Actually if you plan writing a lot of DOM code, you may want
   to look at JDOM
   or some of the O/R mapping frameworks.
  
  
   Ivelin
  
  
  
   - Original Message -
   From: Kirchhoff, Lars [EMAIL PROTECTED]
   To: Cocoon-Users (E-Mail) [EMAIL PROTECTED]
   Sent: Thursday, November 28, 2002 4:49 AM
   Subject: XMLForm and Table output
  
  
Hi,
   
it's me again and I hope I'm still getting answers and not
   starting to
bother you all
with all my questions.
I've tried to create an application which simple should get
   some user data
from a
database, by simply enter the name. So my first form is
   just a text field
where the name
can be inserted. If the name is found all data will be
   shown. so far so
good. But now
I would like to built something more. Because I do not look
   at the exact
name in the
database it could be possible to get more then one entry. I
   now want to
create a page,
where all possible names are shown and some more additional
   information
about 

Re: XMLForm and Table output

2002-12-02 Thread Kirchhoff, Lars
I mean NOW I can access the dom..

 -Ursprüngliche Nachricht-
 Von: Kirchhoff, Lars 
 Gesendet: Dienstag, 3. Dezember 2002 12:54
 An: '[EMAIL PROTECTED]'
 Betreff: AW: XMLForm and Table output
 
 
 no I didn't, but I forget to set the get and set method in 
 the JavaBean.
 No I can access the dom   with the following:
 
   xf:selectMany ref=/system selectUIType=checkbox
 xf:captionUsername:/xf:caption
   xf:itemset nodeset=/system
   xf:caption ref=user/custname/
   /xf:itemset
   /xf:selectMany
   
   xf:captionUserlist:/xf:caption
   xf:repeat nodeset=/system id=system
   xf:textbox ref=user/custname 
 class=info/xf:textbox
   xf:textbox ref=user/address 
 class=info/xf:textbox
   xf:textbox ref=user/zip class=info/xf:textbox
   xf:textbox ref=user/city class=info/xf:textbox
   /xf:repeat
 
 but the funny thing is, that I only can access the first 
 user element. I
 don't 
 get all user elements.
 
  -Ursprüngliche Nachricht-
  Von: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
  Gesendet: Dienstag, 3. Dezember 2002 12:05
  An: [EMAIL PROTECTED]
  Betreff: Re: XMLForm and Table output
  
  
  Did you try setting your form model as a DocumentContainer 
  which contains
  the DOM object?
  
  http://jakarta.apache.org/commons/jxpath/users-guide.html#Containers
  
  
  
  
  - Original Message -
  From: Kirchhoff, Lars [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, December 02, 2002 8:35 PM
  Subject: AW: XMLForm and Table output
  
  
  maybe I was a bit unprecise. I already could see that the xml 
  output is
  correct.
  the only thing I'm still not sure is how to reference the dom 
  in the xml
  page.
  I tried the following:
  xf:repeat nodeset=/Users/user id=myUsers
  xf:textbox ref=custname class=info/xf:textbox
  xf:textbox ref=address class=info/xf:textbox
  xf:textbox ref=city class=info/xf:textbox
  xf:textbox ref=zip class=info/xf:textbox
  /xf:repeat
  
  and
  
  xf:selectMany ref=/ selectUIType=checkbox
xf:captionUsernames:/xf:caption
xf:itemset nodeset=/Users/user
  xf:caption ref=custname/
  xf:caption ref=address/
  xf:caption ref=city/
  xf:caption ref=zip/
/xf:itemset
  /xf:selectMany
  
  and several others ... (but this seemed to be the most logical ones
  after reading the xmlform specs from w3c)
  
  but it's not working. Now my guess is that probably the data is not
  return probaply to the xml page or better the pipeline. In 
 the action
  java file I have this getForm().getModel(); statement and am now
  wondering if this returns all Data, not only the bean data?
  
  maybe you can help finding the light out of this...
  
  ciao Lars
  
   -Ursprüngliche Nachricht-
   Von: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
   Gesendet: Dienstag, 3. Dezember 2002 10:00
   An: [EMAIL PROTECTED]
   Betreff: Re: XMLForm and Table output
  
  
   I am not sure what exactly the problem is,
   but I guess you might be actually looking for a file reader 
  instead of
   generator.
  
   I have not really used Cocoon for printing.
  
   Ivelin
  
  
   - Original Message -
   From: Kirchhoff, Lars [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Monday, December 02, 2002 12:15 AM
   Subject: AW: XMLForm and Table output
  
  
   thanks Ivelin,
  
   but now I'm right in front of a new problem, how to print out
   the document
   using
   cocoon? I couldn't find a generator that gets the input right
   from a stream?
   Do I have to write my own generator? If yes, can you point 
  me to some
   documentation
   about this, because I couldn't found it.
  
   thanks Lars
  
-Ursprüngliche Nachricht-
Von: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
Gesendet: Sonntag, 1. Dezember 2002 00:03
An: [EMAIL PROTECTED]
Betreff: Re: XMLForm and Table output
   
   
Yes. You are on the right track.
Why don't you print the XML document once it is created to
   see what it
actually contains.
I suspect this might be a simple mistake due to misuse of the
API. It is not
very convenient.
Actually if you plan writing a lot of DOM code, you may want
to look at JDOM
or some of the O/R mapping frameworks.
   
   
Ivelin
   
   
   
- Original Message -
From: Kirchhoff, Lars [EMAIL PROTECTED]
To: Cocoon-Users (E-Mail) [EMAIL PROTECTED]
Sent: Thursday, November 28, 2002 4:49 AM
Subject: XMLForm and Table output
   
   
 Hi,

 it's me again and I hope I'm still getting answers and not
starting to
 bother you all
 with all my questions.
 I've tried to create an application which simple should get
some user data
 from a
 database, by simply enter the name. So my first form is
just a text field
 where the name
 can be inserted. If the 

AW: Access Cocoon ESQL connection pool in JavaBean

2002-12-02 Thread Kirchhoff, Lars
can somebody explain me how to get the org.apache.cocoon.Roles packages?
I always get a compile error that the package can't be imported. I could 
found this packages as well and wondering how the example is working then?

any help is appreciated, thanks

Lars

 -Ursprüngliche Nachricht-
 Von: Kirchhoff, Lars 
 Gesendet: Freitag, 29. November 2002 15:47
 An: '[EMAIL PROTECTED]'
 Betreff: AW: Access Cocoon ESQL connection pool in JavaBean
 
 
 thanks Paul, but there is an even easier and well documented method
 for this. I just found it in the developer section:
 
http://xml.apache.org/cocoon/developing/datasources.html
 
 I was just looking in the wrong docs to find the answer...
 
 ciao Lars
 
  -Ursprüngliche Nachricht-
  Von: Christian Haul [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 28. November 2002 16:11
  An: [EMAIL PROTECTED]
  Betreff: Re: Access Cocoon ESQL connection pool in JavaBean
  
  
  On 28.Nov.2002 -- 12:13 PM, Kirchhoff, Lars wrote:
   Hello, 
   
   after playing around with XMLForms, I could manage to get 
  it working 
   with some database support, but I'm wondering about using 
 the same 
   connection pool than cocoon does with xsp:esql. I'm 
  currently loading
   the postgres driver manually. Can somebody give me a hint 
  how to use 
   the cocoon connection pool.
  
  One option would be of course to use the database actions in 
  conjunction
  with XMLForms. This way you wouldn't have to deal with SQL and JDBC
  yourself.
  
  The other option is to look at them and see how they obtain 
  the connection
  from the component manager.
  
  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/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]
 

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