RE: Cocoon2 : Managing URL-encoded parameters

2001-09-20 Thread Sparkes, Peter
Title: RE: Cocoon2 : Managing URL-encoded parameters





HI,


I have the same problem.


Peter
-- Peter Sparkes
Data Architect
Derwent Information
14 Great Queen St Tel. +44 (0)20 7424 2084
London  Fax. +44 (0) 20 7344 2815
WC2B 5DF  Email. [EMAIL PROTECTED]
UK   Website: http://www.derwent.com/


 -Original Message-
 From: Olivier Boulanger [mailto:[EMAIL PROTECTED]]
 Sent: 19 September 2001 18:52
 To: [EMAIL PROTECTED]
 Subject: Cocoon2 : Managing URL-encoded parameters
 
 
 Hi all,
 
 I have just installed cocoon 2. I first thought that defining 
 a sitemap was
 a great idea, but i'm wondering by now if it's possible to manage
 URL-encoded parameters in an XML2HTML process (like i used to 
 with cocoon
 1).
 
 Considering an url like 
 localhost/my-project/my-xml-document.xml?param=1,
 what should be written in the sitemap file to make it work fine ?
 I've tried to define several kinds of map:match corresponding to my
 pattern, without any success...
 
 Thanks a lot in advance,
 
 Olivier Boulanger
 




**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



AW: Cocoon2 : Managing URL-encoded parameters

2001-09-20 Thread Carsten Ziegeler

The usual sitemap match (map:match pattern=xyz) tests
only the request uri. It does not take any parameter into
account.
For testing parameters you can use the parameters matcher:

map:match pattern=my-xml-document.xml
   map:match type=request pattern=param
!-- At this point {1} refers to the value of the parameter
named param
map:generate src=xml_doc_number{1}.xml/
 ...
  /map:match

/map:match

The example above should (if there is not a typo in it) test
the request against the uri my-xml-document.xml, if this
test is successful, the request matcher gets the value of
the request parameter param and makes it available for
the included components, so a call my-xml-document.xml?param=2
would read xml_doc_number2.xml.

HTH


Carsten

Open Source GroupsunShine - b:Integrated

Carsten Ziegeler, SN AG, Klingenderstrasse 5, D-33100 Paderborn
www.sundn.de  mailto: [EMAIL PROTECTED]


-Ursprüngliche Nachricht-
Von: Sparkes, Peter [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 20. September 2001 09:41
An: '[EMAIL PROTECTED]'
Betreff: RE: Cocoon2 : Managing URL-encoded parameters


HI,
I have the same problem.
Peter
-- Peter Sparkes
Data Architect
Derwent Information
14 Great Queen St   Tel. +44 (0)20 7424 2084
London  Fax. +44 (0) 20 7344 2815
WC2B 5DFEmail. [EMAIL PROTECTED]
UK  Website: http://www.derwent.com/
 -Original Message-
 From: Olivier Boulanger [mailto:[EMAIL PROTECTED]]
 Sent: 19 September 2001 18:52
 To: [EMAIL PROTECTED]
 Subject: Cocoon2 : Managing URL-encoded parameters


 Hi all,

 I have just installed cocoon 2. I first thought that defining
 a sitemap was
 a great idea, but i'm wondering by now if it's possible to manage
 URL-encoded parameters in an XML2HTML process (like i used to
 with cocoon
 1).

 Considering an url like
 localhost/my-project/my-xml-document.xml?param=1,
 what should be written in the sitemap file to make it work fine ?
 I've tried to define several kinds of map:match corresponding to my
 pattern, without any success...

 Thanks a lot in advance,

 Olivier Boulanger



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


-
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: c2b2 install problem / c2b1 running fine ...

2001-09-20 Thread Arno Illmann

o! I forgot to put the jar file in tomcat/lib. Now the error comes a bit nicer (any 
suggestions? thanks, arno):

Cocoon 2 - Internal server error



type internal-server-error

message Exception in Handler

description org.apache.cocoon.ProcessingException: Exception in 
Handler:java.lang.NullPointerException

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/welcome

embedded exception

java.lang.NullPointerException

embedded exception stacktrace

java.lang.NullPointerException
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:163)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:224)
at java.lang.Thread.run(Thread.java:484)


exception

org.apache.cocoon.ProcessingException: Exception in 
Handler:java.lang.NullPointerException

path-info

welcome

stacktrace

org.apache.cocoon.ProcessingException: Exception in 
Handler:java.lang.NullPointerException
at org.apache.cocoon.sitemap.Handler.throwEventualException(Handler.java:257)
at org.apache.cocoon.sitemap.Handler.regenerate(Handler.java:167)
at org.apache.cocoon.sitemap.Manager.getHandler(Manager.java:169)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:90)
at org.apache.cocoon.Cocoon.process(Cocoon.java:293)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
java.lang.NullPointerException
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:163)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:224)
at java.lang.Thread.run(Thread.java:484)





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




Internal servlet error

2001-09-20 Thread sebastien . walgraffe

Hi! I ve a problem installing Cocoon2...

My config is :
 Win 2000
 Apache Server 1.3
 Tomcat 4.0
 Cocoon 2 ob2

when I want to access the page http://localhost:8080/cocoon;, I have the
following error message!

Can somobody help me?
That would be great!
Thanx!

Sébastien Walgraffe

Error
message--
Type : internal-servlet-error


Message : Internal servlet error


Description : Cocoon was not initialized.


Sender : org.apache.cocoon.servlet.CocoonServlet


Source : Cocoon servlet


Request URI : /cocoon


Embedded exeption :

org.apache.avalon.framework.component.ComponentException: Could not access
the Component for role: org.apache.cocoon.components.parser.Parser

Embedded exeption stacktrace:

org.apache.avalon.framework.component.ComponentException: Could not access
the Component for role: org.apache.cocoon.components.parser.Parser
  at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:286)

  at org.apache.cocoon.Cocoon.configure(Cocoon.java:210)
  at org.apache.cocoon.Cocoon.initialize(Cocoon.java:160)
  at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634)

  at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164)
  at org.apache.catalina.core.StandardWrapper.load(Unknown Source)
  at org.apache.catalina.core.StandardContext.loadOnStartup(Unknown
Source)
  at org.apache.catalina.core.StandardContext.start(Unknown Source)
  at org.apache.catalina.core.ContainerBase.addChild(Unknown Source)
  at org.apache.catalina.core.StandardHost.addChild(Unknown Source)
  at org.apache.catalina.core.StandardHost.install(Unknown Source)
etc..

  EET


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




Using xsp-requests in xsls

2001-09-20 Thread Torsten Knodt

Hello,
I have an XSL, which generates HTML out of a generic document. 
There something like this should be generated:
ADDRESSA href=mailto:author-email?subject=uri;author-name/A/ADDRESS
The problem is, how to insert the requested uri in the XSL. XSP-Tags are 
ignored. The namespaces should be OK. The XSP-Tags work correctly as 
standalone XSP-file.
I've looked in the faq and archive but I haven't found something which could 
help. 
Any ideas?

WKR Torsten Knodt

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




C2B2: Using weblogic 6.1 JSP engine instead of Jasper

2001-09-20 Thread Damian_Kwok

Hi,
I understand that you can configure Cocoon to use a different JSP engine by changing the settings in cocoon.xconf. 
Does anyone know the full class name of weblogic 6.1's JSP engine? 

thanks,
Damian
__
Visit us at www.singaporeair.com.
__

-
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: Cocoon2 : Managing URL-encoded parameters

2001-09-20 Thread Sparkes, Peter
Title: RE: Cocoon2 : Managing URL-encoded parameters





Thanks Carsten,


With your help I have got it working.


A commented sitemap DTD would be a great help, is anyone working on it?


Peter
-
Peter Sparkes
Data Architect
Derwent Information
14 Great Queen St Tel. +44 (0)20 7424 2084
London  Fax. +44 (0) 20 7344 2815
WC2B 5DF  Email. [EMAIL PROTECTED]
UK   Website: http://www.derwent.com/


 -Original Message-
 From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
 Sent: 20 September 2001 09:00
 To: [EMAIL PROTECTED]
 Subject: AW: Cocoon2 : Managing URL-encoded parameters
 
 
 The usual sitemap match (map:match pattern=xyz) tests
 only the request uri. It does not take any parameter into
 account.
 For testing parameters you can use the parameters matcher:
 
 map:match pattern=my-xml-document.xml
 map:match type=request pattern=param
 !-- At this point {1} refers to the value of the parameter
 named param
 map:generate src="xml_doc_number{1}.xml/
 ...
 /map:match
 
 /map:match
 
 The example above should (if there is not a typo in it) test
 the request against the uri my-xml-document.xml, if this
 test is successful, the request matcher gets the value of
 the request parameter param and makes it available for
 the included components, so a call my-xml-document.xml?param=2
 would read xml_doc_number2.xml.
 
 HTH
 
 
 Carsten
 
 Open Source Group sunShine - b:Integrated
 
 Carsten Ziegeler, SN AG, Klingenderstrasse 5, D-33100 Paderborn
 www.sundn.de mailto: [EMAIL PROTECTED]
 
 
 -Ursprüngliche Nachricht-
 Von: Sparkes, Peter [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 20. September 2001 09:41
 An: '[EMAIL PROTECTED]'
 Betreff: RE: Cocoon2 : Managing URL-encoded parameters
 
 
 HI,
 I have the same problem.
 Peter
 -- Peter Sparkes
 Data Architect
 Derwent Information
 14 Great Queen St Tel. +44 (0)20 7424 2084
 London Fax. +44 (0) 20 7344 2815
 WC2B 5DF Email. [EMAIL PROTECTED]
 UK Website: http://www.derwent.com/
  -Original Message-
  From: Olivier Boulanger [mailto:[EMAIL PROTECTED]]
  Sent: 19 September 2001 18:52
  To: [EMAIL PROTECTED]
  Subject: Cocoon2 : Managing URL-encoded parameters
 
 
  Hi all,
 
  I have just installed cocoon 2. I first thought that defining
  a sitemap was
  a great idea, but i'm wondering by now if it's possible to manage
  URL-encoded parameters in an XML2HTML process (like i used to
  with cocoon
  1).
 
  Considering an url like
  localhost/my-project/my-xml-document.xml?param=1,
  what should be written in the sitemap file to make it work fine ?
  I've tried to define several kinds of map:match 
 corresponding to my
  pattern, without any success...
 
  Thanks a lot in advance,
 
  Olivier Boulanger
 
 
 
 **
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the system manager.
 
 This footnote also confirms that this email message has been swept by
 MIMEsweeper for the presence of computer viruses.
 
 www.mimesweeper.com
 **
 
 
 -
 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]
 




**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



Cocoon 1.8.2, esql, html

2001-09-20 Thread Schroeter Christian

Hi,

my html-pages are stored in the database (postgres).
Now i want to read them out by e.g. ...queryselect html from page where 
pageno=20/query...htmlesql:get-string column=html/...

in the xsl-page i wrote xsl:value-of select=html

Urtunfortunately the result is not html because the ,  etc. are replaced.

What must i do so that the result is displayed and interpreted by the browser 
as it would be html?

cu
christian

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




esql, cocoon 1.8.2

2001-09-20 Thread Schroeter Christian

Hi,

which esql-tag must i use to get the number of the results a sql-statment 
returns?

cu,
christian

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




Wanted - C2 Idiots Guide to deploying XML/XSL/XSP files

2001-09-20 Thread Aston Jeremy
Title: RE: Cocoon2 : Managing URL-encoded parameters



Hi,

I have 
just moved from c1.8 to c2b2 and am lost on how to deploy even the simplest of 
code under c2. I did have c2 running as a war under Tomcat 3.2.3 but now 
have got it running as an "raw" web app with Apache 1.3.19/mod_jk acting as the 
HTTP server andjava interface (i.e. I've got the aliases and jkmount 
/cocoon/* ajp12 in my httpd.conf). This is so I can easily develop and add 
in my basic noddy code without having to repackage the war each time. All 
the samples work fine but even a basic xml page coded and copied under the 
cocoon webapp folder results in a "page not found" error. My research 
leaves me to believe that I need to add something to the sitemap file so that 
the file can be picked up but does this mean that *every* page needs to be in 
sitemap, even if it is in some kind of wild card arrangement? It appears 
that cocoon must be restarted to reloaded the changed sitemap - surely this is a 
ridiculous overhead in development time and prevents rapid "code the page and 
test it" that I am used to - even on C1.8. I basically understand what the 
sitemap is doing for the samples - it's just seems too long winded when all I 
want to do is create a folder and do a simple XML/XSL 
transformation.

Am I 
missing something? What I need is an idiots guide to deploying a basic XML 
file right through to a basic XSP/Logicsheet/XML scenario. An idiots guide 
to working with the sitemap file would help as well - the alpha documentation 
does not contain sufficent examples at the moment.

As an 
example - how do I deploy the basic XML/XSL filedeployed in the XSP Guide 
chapter that is in the c2 doc set:
Assume:
The 
file path: c:\java\tomcat\webapps\cocoon\mystuff (onWin 2000 pro 
btw)
The 
url I request: http://localhost/cocoon/mystuff/greeting.xml

With 
my C1.8 knowledge I would have expected that I just create the folder and plop 
the files (greeting.xml and greeting.xsl) in there but it seems that the sitemap 
holds the key to these being served...

Perhaps with a few pointers I can write the idiots 
guide but I need a little help myself first!

Many 
thanks in advance

Jez
[EMAIL PROTECTED]





Re: Cocoon and J2EE

2001-09-20 Thread Sergio Carvalho


At my last company, I created a proof-of-concept Ejb generator. It did work,
although it needs some optimizing to be placed in a production environment. As
it is too big to send to the list (1.9Mb tar.gz), I'm sending it to Chris, who
started the thread. Feel free to use it at will. It might be a good starting
point.

On Fri, 14 Sep 2001 15:46:52 +0100, Chris  Loftus wrote:
From: Chris  Loftus [EMAIL PROTECTED]
--

 I'm thinking about integrating Cocoon XSP and J2EE JSPs/Servlets/EJBs. What 
 experience do people have with doing this? What are the pitfalls, how easy 
 is it to make XSP part of a J2EE web application so that security 
 constraints are applied?
 
 Many thanks
 
 Chris
 
 
 Chris Loftus
 Training Manager
 JayDee Technology Ltd
 
 http://www.JayDeeTechnology.co.uk
 
 Minerva House
 Lower Bristol Road
 Bath, BA2 9ER
 Tel:   +44 (0)1970 832554 (Teleworking office)
 Tel:   +44 (0)1225 789255 (Bath office)
 Mobile:  +44 (0)7879 897712
 
 Visit PlanetJava's website http://www.PlanetJava.co.uk for a wealth of free 
 Java resources
 
 
 
 -
 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]
 


--
Sergio Carvalho
---
[EMAIL PROTECTED]

If at first you don't succeed, skydiving is not for you

-
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: Wanted - C2 Idiots Guide to deploying XML/XSL/XSP files

2001-09-20 Thread Thomas Hofer
Title: RE: Cocoon2 : Managing URL-encoded parameters



you do not have to restart cocoon each time after editing the 
site-map, just edit the cocoon.xconf at the very end to 
sitemap file="sitemap.xmap" reload-method="synchron" check-reload="yes"/ (check reload has to be yes and 
synchron!!)
the other 
question i cannot answer, sorry

--Thomas 
HoferSCCH - Software 
Competence Center Hagenberg GmbHHauptstrasse 99, A-4232 Hagenberg, 
Austriaphone: +43 7236 3343 836, fax: +43 7236 3343 888eMail: 
[EMAIL PROTECTED] 

  -Original Message-From: Aston Jeremy 
  [mailto:[EMAIL PROTECTED]]Sent: Donnerstag, 20. 
  September 2001 13:59To: 
  '[EMAIL PROTECTED]'Subject: Wanted - C2 Idiots Guide to 
  deploying XML/XSL/XSP files
  Hi,
  
  I 
  have just moved from c1.8 to c2b2 and am lost on how to deploy even the 
  simplest of code under c2. I did have c2 running as a war under Tomcat 
  3.2.3 but now have got it running as an "raw" web app with Apache 
  1.3.19/mod_jk acting as the HTTP server andjava interface (i.e. I've got 
  the aliases and jkmount /cocoon/* ajp12 in my httpd.conf). This is so I 
  can easily develop and add in my basic noddy code without having to repackage 
  the war each time. All the samples work fine but even a basic xml page 
  coded and copied under the cocoon webapp folder results in a "page not found" 
  error. My research leaves me to believe that I need to add something to 
  the sitemap file so that the file can be picked up but does this mean that 
  *every* page needs to be in sitemap, even if it is in some kind of wild card 
  arrangement? It appears that cocoon must be restarted to reloaded the 
  changed sitemap - surely this is a ridiculous overhead in development time and 
  prevents rapid "code the page and test it" that I am used to - even on 
  C1.8. I basically understand what the sitemap is doing for the samples - 
  it's just seems too long winded when all I want to do is create a folder and 
  do a simple XML/XSL transformation.
  
  Am I 
  missing something? What I need is an idiots guide to deploying a basic 
  XML file right through to a basic XSP/Logicsheet/XML scenario. An idiots 
  guide to working with the sitemap file would help as well - the alpha 
  documentation does not contain sufficent examples at the 
  moment.
  
  As 
  an example - how do I deploy the basic XML/XSL filedeployed in the XSP 
  Guide chapter that is in the c2 doc set:
  Assume:
  The 
  file path: c:\java\tomcat\webapps\cocoon\mystuff (onWin 2000 pro 
  btw)
  The 
  url I request: http://localhost/cocoon/mystuff/greeting.xml
  
  With 
  my C1.8 knowledge I would have expected that I just create the folder and plop 
  the files (greeting.xml and greeting.xsl) in there but it seems that the 
  sitemap holds the key to these being served...
  
  Perhaps with a few pointers I can write the idiots 
  guide but I need a little help myself first!
  
  Many 
  thanks in advance
  
  Jez
  [EMAIL PROTECTED]
  
  
  


Re: Wanted - C2 Idiots Guide to deploying XML/XSL/XSP files

2001-09-20 Thread Michael Bierenfeld

dumdidum :-)

This is exactly what I need too. Since 1,5 years we are using c1. But I
dont have a idea how to deploy my apps under c2. Event the simplest
hello-world xsp example.

Regards

Michael

-
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 and J2EE

2001-09-20 Thread Martin Kavalar

Could someone please post a url where i can download it? Thanks a lot!

Sergio Carvalho wrote:

At my last company, I created a proof-of-concept Ejb generator. It did work,
although it needs some optimizing to be placed in a production environment. As
it is too big to send to the list (1.9Mb tar.gz), I'm sending it to Chris, who
started the thread. Feel free to use it at will. It might be a good starting
point.

On Fri, 14 Sep 2001 15:46:52 +0100, Chris  Loftus wrote:
From: Chris  Loftus [EMAIL PROTECTED]
--

I'm thinking about integrating Cocoon XSP and J2EE JSPs/Servlets/EJBs. What 
experience do people have with doing this? What are the pitfalls, how easy 
is it to make XSP part of a J2EE web application so that security 
constraints are applied?

Many thanks

Chris


Chris Loftus
Training Manager
JayDee Technology Ltd

http://www.JayDeeTechnology.co.uk

Minerva House
Lower Bristol Road
Bath, BA2 9ER
Tel:   +44 (0)1970 832554 (Teleworking office)
Tel:   +44 (0)1225 789255 (Bath office)
Mobile:  +44 (0)7879 897712

Visit PlanetJava's website http://www.PlanetJava.co.uk for a wealth of free 
Java resources



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



--
Sergio Carvalho
---
[EMAIL PROTECTED]

If at first you don't succeed, skydiving is not for you

-
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: Cocoon and J2EE

2001-09-20 Thread Sergio Carvalho


Ok, just posted it here:
 http://sergio.insuasoftware.com/CocoonEjbProofOfConcept.tgz

On Thu, 20 Sep 2001 14:18:41 +0200, Martin Kavalar wrote:
From: Martin Kavalar [EMAIL PROTECTED]
--

 Could someone please post a url where i can download it? Thanks a lot!
 
 Sergio Carvalho wrote:
 
 At my last company, I created a proof-of-concept Ejb generator. It did work,
 although it needs some optimizing to be placed in a production environment.
As
 it is too big to send to the list (1.9Mb tar.gz), I'm sending it to Chris,
who
 started the thread. Feel free to use it at will. It might be a good starting
 point.
 
 On Fri, 14 Sep 2001 15:46:52 +0100, Chris  Loftus wrote:
 From: Chris  Loftus [EMAIL PROTECTED]
 --
 
 I'm thinking about integrating Cocoon XSP and J2EE JSPs/Servlets/EJBs. What 
 experience do people have with doing this? What are the pitfalls, how easy 
 is it to make XSP part of a J2EE web application so that security 
 constraints are applied?
 
 Many thanks
 
 Chris
 
 
 Chris Loftus
 Training Manager
 JayDee Technology Ltd
 
 http://www.JayDeeTechnology.co.uk
 
 Minerva House
 Lower Bristol Road
 Bath, BA2 9ER
 Tel:   +44 (0)1970 832554 (Teleworking office)
 Tel:   +44 (0)1225 789255 (Bath office)
 Mobile:  +44 (0)7879 897712
 
 Visit PlanetJava's website http://www.PlanetJava.co.uk for a wealth of free 
 Java resources
 
 
 
 -
 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]
 
 
 
 --
 Sergio Carvalho
 ---
 [EMAIL PROTECTED]
 
 If at first you don't succeed, skydiving is not for you
 
 -
 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]
 


--
Sergio Carvalho
---
[EMAIL PROTECTED]

If at first you don't succeed, skydiving is not for you

-
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: Cocoon2 : Managing URL-encoded parameters

2001-09-20 Thread Olivier Boulanger

Thanks a lot, but the problem i have is quite different : in fact, i'd like
to take these url-encoded parameters in account in the XSL stylesheets used
to generate the html code. I may have many parameters in the same url, but
i'd like to generate the corresponding html file with only one parametered
XSL stylesheet.

The reason why I want to proceed like that is that i've got a huge
repository of XML i used to publish with cocoon1 parametered XSL files, and
i would appreciate not to have to modify everything...

Example :

I'd like to manage [...]myXMLDoc?bgcolor=FF with this XSL code :

?xml version=1.0 encoding=iso-8859-1?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
  xsl:param name=bgcolorFF/xsl:param
  xsl:template match=/
html
  body bgcolor=#{$bgcolor}
  [...]

Many thanks !

Olivier


-Message d'origine-
De : Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 20 septembre 2001 10:00
À : [EMAIL PROTECTED]
Objet : AW: Cocoon2 : Managing URL-encoded parameters


The usual sitemap match (map:match pattern=xyz) tests
only the request uri. It does not take any parameter into
account.
For testing parameters you can use the parameters matcher:

map:match pattern=my-xml-document.xml
   map:match type=request pattern=param
!-- At this point {1} refers to the value of the parameter
named param
map:generate src=xml_doc_number{1}.xml/
 ...
  /map:match

/map:match

The example above should (if there is not a typo in it) test
the request against the uri my-xml-document.xml, if this
test is successful, the request matcher gets the value of
the request parameter param and makes it available for
the included components, so a call my-xml-document.xml?param=2
would read xml_doc_number2.xml.

HTH


Carsten

Open Source GroupsunShine - b:Integrated

Carsten Ziegeler, SN AG, Klingenderstrasse 5, D-33100 Paderborn
www.sundn.de  mailto: [EMAIL PROTECTED]


-Ursprüngliche Nachricht-
Von: Sparkes, Peter [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 20. September 2001 09:41
An: '[EMAIL PROTECTED]'
Betreff: RE: Cocoon2 : Managing URL-encoded parameters


HI,
I have the same problem.
Peter
-- Peter Sparkes
Data Architect
Derwent Information
14 Great Queen St   Tel. +44 (0)20 7424 2084
London  Fax. +44 (0) 20 7344 2815
WC2B 5DFEmail. [EMAIL PROTECTED]
UK  Website: http://www.derwent.com/
 -Original Message-
 From: Olivier Boulanger [mailto:[EMAIL PROTECTED]]
 Sent: 19 September 2001 18:52
 To: [EMAIL PROTECTED]
 Subject: Cocoon2 : Managing URL-encoded parameters


 Hi all,

 I have just installed cocoon 2. I first thought that defining
 a sitemap was
 a great idea, but i'm wondering by now if it's possible to manage
 URL-encoded parameters in an XML2HTML process (like i used to
 with cocoon
 1).

 Considering an url like
 localhost/my-project/my-xml-document.xml?param=1,
 what should be written in the sitemap file to make it work fine ?
 I've tried to define several kinds of map:match corresponding to my
 pattern, without any success...

 Thanks a lot in advance,

 Olivier Boulanger



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


-
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: Wanted - C2 Idiots Guide to deploying XML/XSL/XSP files

2001-09-20 Thread Giacomo Pati

Quoting Aston Jeremy [EMAIL PROTECTED]:

 Hi,
  
 I have just moved from c1.8 to c2b2 and am lost on how to deploy even
 the
 simplest of code under c2.  I did have c2 running as a war under Tomcat
 3.2.3 but now have got it running as an raw web app with Apache
 1.3.19/mod_jk acting as the HTTP server and java interface (i.e. I've
 got
 the aliases and jkmount /cocoon/* ajp12 in my httpd.conf).  This is so I
 can
 easily develop and add in my basic noddy code without having to
 repackage
 the war each time.  All the samples work fine but even a basic xml page
 coded and copied under the cocoon webapp folder results in a page not
 found error.  My research leaves me to believe that I need to add
 something
 to the sitemap file so that the file can be picked up but does this mean
 that *every* page needs to be in sitemap, even if it is in some kind of
 wild
 card arrangement?  It appears that cocoon must be restarted to reloaded
 the
 changed sitemap - surely this is a ridiculous overhead in development
 time
 and prevents rapid code the page and test it that I am used to - even
 on
 C1.8.  I basically understand what the sitemap is doing for the samples
 -
 it's just seems too long winded when all I want to do is create a folder
 and
 do a simple XML/XSL transformation.
  
 Am I missing something?  What I need is an idiots guide to deploying a
 basic
 XML file right through to a basic XSP/Logicsheet/XML scenario.  An
 idiots
 guide to working with the sitemap file would help as well - the alpha
 documentation does not contain sufficent examples at the moment.

The main difference between C1 and C2 is that the definition of the 
processing steps is teared out of the individual xml pages into the sitemap.

The thing is you have to group your pages you'd like to process by a single XSLT 
stylesheet. To achieve what you call code the page and test it use this simple 
sitemap snippet:

   map:match pattern=mygroup/*.html
 map:generate type=file src=mydir/{1}.xml/
 map:transform type=xslt src=stylesheet/mygroup2html.xsl/
 map:serialize type=html/
   /map:match

With this snipped a file anyfile.xml put into the mydir directory will be 
accessable by the url mygroup/anyfile.html and will by transformed by the 
stylesheet in stylesheet/mygroup2html.xsl.

Hope this helps.

Giacomo

  
 As an example - how do I deploy the basic XML/XSL file deployed in the
 XSP
 Guide chapter that is in the c2 doc set:
 Assume:
 The file path: c:\java\tomcat\webapps\cocoon\mystuff (on Win 2000 pro
 btw)
 The url I request: http://localhost/cocoon/mystuff/greeting.xml
 http://localhost/cocoon/mystuff/greeting.xml 
  
 With my C1.8 knowledge I would have expected that I just create the
 folder
 and plop the files (greeting.xml and greeting.xsl) in there but it seems
 that the sitemap holds the key to these being served...
  
 Perhaps with a few pointers I can write the idiots guide but I need a
 little
 help myself first!
  
 Many thanks in advance
  
 Jez
 [EMAIL PROTECTED] mailto:[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: Wanted - C2 Idiots Guide to deploying XML/XSL/XSP files

2001-09-20 Thread Michael Bierenfeld

snipsnap/

 The thing is you have to group your pages you'd like to process by a single XSLT
 stylesheet. To achieve what you call code the page and test it use this simple
 sitemap snippet:
 
map:match pattern=mygroup/*.html
  map:generate type=file src=mydir/{1}.xml/
  map:transform type=xslt src=stylesheet/mygroup2html.xsl/
  map:serialize type=html/
/map:match
 
 With this snipped a file anyfile.xml put into the mydir directory will be
 accessable by the url mygroup/anyfile.html and will by transformed by the
 stylesheet in stylesheet/mygroup2html.xsl.
 
 Hope this helps.
 
 Giacomo
 

http://xml.apache.org/cocoon2/flow.html

helped me a lot understanding this tuff. anyway I am not fully brightend
but on the learning curve

Regards

Michael

-
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: Wanted - C2 Idiots Guide to deploying XML/XSL/XSP files

2001-09-20 Thread Aston Jeremy
Title: RE: Wanted - C2 Idiots Guide to deploying XML/XSL/XSP files





Thanks for your help people. Things are working and I am well on my way to getting more complex patterns and map settings for xml/logicsheet/xsl transformations going.

I've had to make some notes for fellow developers so I will probably tart them up and put them somewhere for everyone. It could even turn into a c2 newbie guide...

Jeremy


-Original Message-
From: Giacomo Pati [mailto:[EMAIL PROTECTED]]
Sent: 20 September 2001 14:39
To: [EMAIL PROTECTED]; Aston Jeremy; [EMAIL PROTECTED]
Subject: Re: Wanted - C2 Idiots Guide to deploying XML/XSL/XSP files



Quoting Aston Jeremy [EMAIL PROTECTED]:


 Hi,
 
 I have just moved from c1.8 to c2b2 and am lost on how to deploy even
 the
 simplest of code under c2. I did have c2 running as a war under Tomcat
 3.2.3 but now have got it running as an raw web app with Apache
 1.3.19/mod_jk acting as the HTTP server and java interface (i.e. I've
 got
 the aliases and jkmount /cocoon/* ajp12 in my httpd.conf). This is so I
 can
 easily develop and add in my basic noddy code without having to
 repackage
 the war each time. All the samples work fine but even a basic xml page
 coded and copied under the cocoon webapp folder results in a page not
 found error. My research leaves me to believe that I need to add
 something
 to the sitemap file so that the file can be picked up but does this mean
 that *every* page needs to be in sitemap, even if it is in some kind of
 wild
 card arrangement? It appears that cocoon must be restarted to reloaded
 the
 changed sitemap - surely this is a ridiculous overhead in development
 time
 and prevents rapid code the page and test it that I am used to - even
 on
 C1.8. I basically understand what the sitemap is doing for the samples
 -
 it's just seems too long winded when all I want to do is create a folder
 and
 do a simple XML/XSL transformation.
 
 Am I missing something? What I need is an idiots guide to deploying a
 basic
 XML file right through to a basic XSP/Logicsheet/XML scenario. An
 idiots
 guide to working with the sitemap file would help as well - the alpha
 documentation does not contain sufficent examples at the moment.


The main difference between C1 and C2 is that the definition of the 
processing steps is teared out of the individual xml pages into the sitemap.


The thing is you have to group your pages you'd like to process by a single XSLT 
stylesheet. To achieve what you call code the page and test it use this simple 
sitemap snippet:


 map:match pattern=mygroup/*.html
 map:generate type=file src="mydir/{1}.xml/
 map:transform type=xslt src="stylesheet/mygroup2html.xsl/
 map:serialize type=html/
 /map:match


With this snipped a file anyfile.xml put into the mydir directory will be 
accessable by the url mygroup/anyfile.html and will by transformed by the 
stylesheet in stylesheet/mygroup2html.xsl.


Hope this helps.


Giacomo


 
 As an example - how do I deploy the basic XML/XSL file deployed in the
 XSP
 Guide chapter that is in the c2 doc set:
 Assume:
 The file path: c:\java\tomcat\webapps\cocoon\mystuff (on Win 2000 pro
 btw)
 The url I request: http://localhost/cocoon/mystuff/greeting.xml
 http://localhost/cocoon/mystuff/greeting.xml 
 
 With my C1.8 knowledge I would have expected that I just create the
 folder
 and plop the files (greeting.xml and greeting.xsl) in there but it seems
 that the sitemap holds the key to these being served...
 
 Perhaps with a few pointers I can write the idiots guide but I need a
 little
 help myself first!
 
 Many thanks in advance
 
 Jez
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 
 
 
 
 
 





Where to place extension classes ?

2001-09-20 Thread Aurelien

Does somebody know where I can put classes with helper functions for 
XSLT transformations ?

thx in advance,

Aurélien

-
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 accessible only from local machine

2001-09-20 Thread Aurelien

Cocoon is installed on my linux workstation on top of JBoss-Tomcat and 
works fine there, that is: I can browse all the examples from the same 
workstation. But if I attempt to access it from my LAN, the request 
either times out or takes an incredible amount of time to succeed (5 
minutes+). I've tried that with all kinds of browsers on Windows, Linux 
and Mac boxes. What can possibly cause that ?

Somebody already seen this ?

Aurélien

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




Generate Static HTML with Cocoon

2001-09-20 Thread Sebastian Mäder

Hi cocooner,


I have build a page with cocoon. For examble so
http://host:8080/cocoon/xyz/index.html

Now I want to build a static HTML Version of this page with cocoon. How can
I do this ?? Is there a batch File or anything else for this ??

Thanx

your Sincerely

Sebastian




-
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: Installation Problem Solved- C2b2 and Tomcat 4.0 Final WAS Installation Problem - Cocoon-2.0b2 and Tomcat 4.0-rc2

2001-09-20 Thread Paul Spencer

I have solved the problem a different way.

1) Move jaxp.jar and crimson.jar from common/lib to server/lib.
   This is because Tomcat need those jars in it's classpath, which
include server/lib and common/lib.  In previous version of Tomcat 4 the
jars where in server/lib to address compatibility problems around which
XML parsers and webapps.  Application that required them [jaxp.jar and
crimson.jar] , but did not distribute them complained and application,
like Cocoon, the could not use them worked! I do not know why Tomcat
moved them back to common/lib.

2) Copy jasper-compiler from TOMCAT_HOME/jasper to
webapps/cocoon/WEB-INF/lib.
   This is required for JSPs to work.  Apparently Cocoon does not use
jasper-runtime.jar

Paul Spencer

[EMAIL PROTECTED] wrote:
 
 Help Please,
 
 I have installed Cocoon-2.0b2 and Tomcat 4.0-rc2.
 I have added to the cocoon web.xml file:
 init-param
 !--  change param value to path to Catalina's servlet.jar  --
 param-nameextra-classpath/param-name
 param-valueC:\Program Files\Apache Tomcat
 4.0\common\lib\servlet.jar/param-value
 /init-param
 
 AFAIK, this is not necessary now.
 
 
 When I HTTP access Cocoon using http://localhost:8080/cocoon I get the following
 error message:
Status 503 - Servlet Cocoon2 is currently unavailable
 
 Any Ideas
 
 Well,the problem is that C2 doesn't find the parser for starting to parse the 
cocoon.xconf. I saw that seeing the line number in the stack-trace and looking at the 
sources.
 To make it work just delete (or move somewhere else) the files jaxp.jar and 
crimson.jar in \jakarta-tomcat-path\common\lib and put the xerces_1_4_1.jar file 
instead.
 All should work now.
 
 Nicola Ken Barozzi
 [EMAIL PROTECTED]
 
 Peter Sparkes  Data Architect
 Derwent Information
 14 Great Queen St  Tel. +44 (0)20 7424 2084
 London Fax. +44 (0) 20 7344 2815
 WC2B 5DF   Email. [EMAIL PROTECTED]
 UK Website: http://www.derwent.com/
 
 -
 
 messaggio inviato con Freemail by superEva
 http://www.supereva.it
 
 -
 
 -
 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: Wanted - C2 Idiots Guide to deploying XML/XSL/XSP files

2001-09-20 Thread giacomo

On Thu, 20 Sep 2001, Aston Jeremy wrote:

 Thanks for your help people.  Things are working and I am well on my way to
 getting more complex patterns and map settings for xml/logicsheet/xsl
 transformations going.

 I've had to make some notes for fellow developers so I will probably tart
 them up and put them somewhere for everyone.  It could even turn into a c2
 newbie guide...

It would be very welcome to supplement the docs we already have.

Giacomo


 Jeremy

 -Original Message-
 From: Giacomo Pati [mailto:[EMAIL PROTECTED]]
 Sent: 20 September 2001 14:39
 To: [EMAIL PROTECTED]; Aston Jeremy; [EMAIL PROTECTED]
 Subject: Re: Wanted - C2 Idiots Guide to deploying XML/XSL/XSP files


 Quoting Aston Jeremy [EMAIL PROTECTED]:

  Hi,
 
  I have just moved from c1.8 to c2b2 and am lost on how to deploy even
  the
  simplest of code under c2.  I did have c2 running as a war under Tomcat
  3.2.3 but now have got it running as an raw web app with Apache
  1.3.19/mod_jk acting as the HTTP server and java interface (i.e. I've
  got
  the aliases and jkmount /cocoon/* ajp12 in my httpd.conf).  This is so I
  can
  easily develop and add in my basic noddy code without having to
  repackage
  the war each time.  All the samples work fine but even a basic xml page
  coded and copied under the cocoon webapp folder results in a page not
  found error.  My research leaves me to believe that I need to add
  something
  to the sitemap file so that the file can be picked up but does this mean
  that *every* page needs to be in sitemap, even if it is in some kind of
  wild
  card arrangement?  It appears that cocoon must be restarted to reloaded
  the
  changed sitemap - surely this is a ridiculous overhead in development
  time
  and prevents rapid code the page and test it that I am used to - even
  on
  C1.8.  I basically understand what the sitemap is doing for the samples
  -
  it's just seems too long winded when all I want to do is create a folder
  and
  do a simple XML/XSL transformation.
 
  Am I missing something?  What I need is an idiots guide to deploying a
  basic
  XML file right through to a basic XSP/Logicsheet/XML scenario.  An
  idiots
  guide to working with the sitemap file would help as well - the alpha
  documentation does not contain sufficent examples at the moment.

 The main difference between C1 and C2 is that the definition of the
 processing steps is teared out of the individual xml pages into the sitemap.

 The thing is you have to group your pages you'd like to process by a single
 XSLT
 stylesheet. To achieve what you call code the page and test it use this
 simple
 sitemap snippet:

map:match pattern=mygroup/*.html
  map:generate type=file src=mydir/{1}.xml/
  map:transform type=xslt src=stylesheet/mygroup2html.xsl/
  map:serialize type=html/
/map:match

 With this snipped a file anyfile.xml put into the mydir directory will be
 accessable by the url mygroup/anyfile.html and will by transformed by the
 stylesheet in stylesheet/mygroup2html.xsl.

 Hope this helps.

 Giacomo

 
  As an example - how do I deploy the basic XML/XSL file deployed in the
  XSP
  Guide chapter that is in the c2 doc set:
  Assume:
  The file path: c:\java\tomcat\webapps\cocoon\mystuff (on Win 2000 pro
  btw)
  The url I request: http://localhost/cocoon/mystuff/greeting.xml
  http://localhost/cocoon/mystuff/greeting.xml
 
  With my C1.8 knowledge I would have expected that I just create the
  folder
  and plop the files (greeting.xml and greeting.xsl) in there but it seems
  that the sitemap holds the key to these being served...
 
  Perhaps with a few pointers I can write the idiots guide but I need a
  little
  help myself first!
 
  Many thanks in advance
 
  Jez
  [EMAIL PROTECTED] mailto:[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]




Oracle connection problem

2001-09-20 Thread Lukas Kubin

I am having troubles getting a connection to Oracle 8.1.7 database in
Apache Cocoon 2.0b2 on Tomcat 4.0-b7 and Linux 2.4.9 I tried all the
installation steps described in Cocoon's Using Databases documentation.
Of course, I changed all the login and database properties. I also changed
the connection name of the Cocoon's Simple SQL example in sitemap.xmap
to match the connection name I used in cocoon.xconf However anytime I try
to acces the Simple SQL page I get only the page's header without any
data received from database. I use JDK 1.3.1 Could somebody help me,
please?
Thank you.

Lukas Kubin


-
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: XHTML Serializer

2001-09-20 Thread Michael McKibben

Sorry, I didn't pay close enough attention to who was asking the question.
Interestingly, I do not have this problem in my stylesheets.  Here is what
I do:

(in my xml file)
rootElement xmlns=http://namespace1;
...
ns2:someotherElement xmlns:ns2=http://namespace2/
...
/rootElement

(in my xsl stylesheet)
xsl:stylesheet version=1.0
xmlns=http://www.w3.org/1999/xhtml;
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:ns1=http://namespace1;
xmlns:ns2=http://namespace2;
exclude-result-prefixes=ns1 ns2

...

Notice that I declare the namespaces used in my xml file in my stylesheet
also. Hope this helps.

Regards,

--mike

On Thu, 20 Sep 2001, Martin Kavalar wrote:

 Well, if i do that, all i get is replies to my older questions.

 exclude-result-prefixes didnt get rid of the default namespace, and using '#default' 
as suggested didnt work, either.
 Furthermore, i still got all the namespaces of elements further down the tree than 
the root element. How do i get rid of them?

 thanks
 martin



 Michael McKibben wrote:

 Search the mail list archives for this month on exclude-result-prefixes.
 
 Regards,
 
 --mike
 
 On Wed, 19 Sep 2001, Martin Kavalar wrote:
 
 that still doesnt get rid of any namespaces, it produces the same output
 as the code i used i think. Anyone know how to get rid of the namespaces?
 
 Colin Paul Adams wrote:
 
 Martin == Martin Kavalar [EMAIL PROTECTED] writes:
 
Martin I was wondering why there is no XHTML serializer in
Martin c2. When defining my own i use the XML serializer and set
Martin the content type to text/html. Unfortunatly i then get all
Martin the namespaces from previous documents in my xhtml which
Martin keeps it from validating as XHTML 1.0. Can anyone help?
Martin thanks martin
 
 here's what I use:
 
  map:serializer name=xhtml mime-type=text/html
src=org.apache.cocoon.serialization.XMLSerializer
doctype-public-//W3C//DTD XHTML 1.1//EN/doctype-public

doctype-systemhttp://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd/doctype-system
encodingUTF-8/encoding
omit-xml-declarationno/omit-xml-declaration
  /map:serializer
 
 
 
 -
 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]



-
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 with jetspeed

2001-09-20 Thread Thangadurai


I am using cocoon1.8.2  on tomcat 3.2.1. It is working properly.
While running jetspeed(1.3a2) without cocoon, it is also working,I can able
to add html and xml pages on it.
But I couldn't add xsp pages with jetspeed.
Does somebody know what steps need to do, to work jetspeed properly with
cocoon.
Thanks,
Thangadurai.

Paul Spencer wrote:

 Thangadurai,
 I am using Cocoon C2b1 with Jetspeed v1.3a2-dev.  In my environment
 Cocoon is generating standard web  pages and soon graphs (SVG/JPEG) that
 will be included as portlets in a Jetspeed.  Both Cocoon and Jetspeed
 are running under the same instance of Tomcat 4.0-RC1.   Their is a plan
 to integrate Cocoon2 into Jetspeed, but that has not been implemented
 yet.

 Paul Spencer

 Thangadurai wrote:
 
   Is anybody using cocoon with jetspeed... is it possible...
 
  - Thangadurai
 
  -
  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]




Re: Cocoon and J2EE

2001-09-20 Thread Russell Castagnaro

Aloha Chris,

I'm trying to do this now.  Its not all that easy, but not impossible.

My biggest problem is trying to use cocoon in the EJB layer when you
have no access to an http request.  Sometimes you have to create a
request-like object that can be difficult.


Friday, September 14, 2001, 4:46:52 AM, you wrote:

CL I'm thinking about integrating Cocoon XSP and J2EE JSPs/Servlets/EJBs. What 
CL experience do people have with doing this? What are the pitfalls, how easy 
CL is it to make XSP part of a J2EE web application so that security 
CL constraints are applied?

CL Many thanks

CL Chris


CL Chris Loftus
CL Training Manager
CL JayDee Technology Ltd

CL http://www.JayDeeTechnology.co.uk

CL Minerva House
CL Lower Bristol Road
CL Bath, BA2 9ER
CL Tel:   +44 (0)1970 832554 (Teleworking office)
CL Tel:   +44 (0)1225 789255 (Bath office)
CL Mobile:  +44 (0)7879 897712

CL Visit PlanetJava's website http://www.PlanetJava.co.uk for a wealth of free 
CL Java resources



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

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



-- 
Mahalo,
 Russellmailto:[EMAIL PROTECTED]
Chief Mentor

4Charity - Changing the world,
 one click at a time.


-
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: C1: Including XML/XSL in JSP pages

2001-09-20 Thread Russell Castagnaro

Aloha Mark,

try using
jsp:forward page=test.xml  /

if you need to pass addidtional parameters use:

jsp:forward page=test.xml
 jsp:param name=foo value=bar /
/jsp:forward


Friday, September 14, 2001, 9:30:15 AM, you wrote:

MSK I'd like to include an XML page request with esql query string and
MSK report type (i.e. html, pdf, csv, etc.) as a jsp:include in a current
MSK JSP page which already has my page security and other stuff.

MSK Currently, in my JSP I have:
MSK jsp:include page=test.xml flush=true /

MSK I'm getting the message:
MSK java.lang.IllegalStateException: Writer is already being used for this
MSK request

MSK which from reading previous posts relates to the OutputStream (servlet) vs.
MSK Writer (tomcat) incompatibility (only one can control the writing).

MSK My stand-alone XML file does what I want by outputting in HTML or PDF
MSK (depending
MSK on a form choice from the previous page that calls it and xsp:pi an
MSK appropriate stylesheet filename), but I have concerns  about the XML file
MSK being able to be called without any checking to ensure the website visitor
MSK is authorized to view the page (this is for an online app). Otherwise,
MSK wouldn't they be able to just put it in the URL and view it (although they
MSK would have to know what parameters to feed it to get it to work right)?

MSK The other thing is once I've committed the output type to a JSP page,
MSK can
MSK I tell the the output to be a PDV or a CSV to be downloaded?

MSK Thanks!
MSK Mark


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

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



-- 
Mahalo,
 Russellmailto:[EMAIL PROTECTED]
Chief Mentor

4Charity - Changing the world,
 one click at a time.


-
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 accessible only from local machine

2001-09-20 Thread Jeff Turner

On Thu, Sep 20, 2001 at 06:58:53PM +0200, Aurelien wrote:
 Cocoon is installed on my linux workstation on top of JBoss-Tomcat and 
 works fine there, that is: I can browse all the examples from the same 
 workstation. But if I attempt to access it from my LAN, the request 
 either times out or takes an incredible amount of time to succeed (5 
 minutes+). I've tried that with all kinds of browsers on Windows, Linux 
 and Mac boxes. What can possibly cause that ?

Firewalls.

Which port are you accessing it on? Many sysadmins block all ports
except normal ones.

--Jeff

 Somebody already seen this ?
 
 Aurélien

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




Where is import org.apache.cocoon.util.CocoonServletRequest ?

2001-09-20 Thread N.V.Sairam


Hi,

In the sample, fromServlet,
there is the following import statement,

import org.apache.cocoon.util.CocoonServletRequest

but when I browsed thru the directory structure, I couldn't find the
util under cocoon.

Please let me know, that where I am missing ?




 Thanks,
 N.V.Sairam

NEC Soft, Ltd.
1-18-6, Shinkiba,
Kotuo-ku,
Tokyo 136 8608
Phone : (03)  5569 3228
Email : [EMAIL PROTECTED]
*
This message is for the designated recipient only and may contain privileged
or  confidential information.  If you have received it in error, please
notify the sender immediately and delete the original.  Any other use of the
email by you is prohibited.


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