Re: Problem with nested actions in action-set...

2002-06-14 Thread Ivan Luzyanin

Hi!
I've posted this BUG to bugzilla BUG database. Please vote for this bug
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9835

Best regards.
Ivan.

 Hi!
 
 I can confirm this problem (as postet yesterday).
 
 I used 2.0.2 without problems and the current cvs snapshot (co 10 
 minutes ago) fails to handle this!
 
 Regards,
 Gerhard
 
 Ivan Luzyanin wrote:
 
 Hi!
 
 Yesterday i upgraded to Cocoon 2.1-dev from 2.0.2 and i had problem with
 nested actions in action-sets.
 
 Example of action-set:
 
 map:action-set name=StoryEdit
   map:act action=Post Story type=form-validator
 map:parameter name=validate-set value=add/
 map:act type=dbAdd/
   /map:act
 /map:action-set
 
 When i call this action set (form-descriptor and db descriptor passed in
 parameters) and form validation passed successfully but dbAdd action NOT
 EXECUTED. Logs doesn't contain any warnings or errors.
 I wonder why nested actions workes fine with 2.0.2 version of Cocoon but
 doesn't work with last dev snapshot?
 
 Env: C2 2.1dev; Tomcat 4.0.4b3, JDK1.3.1_02b(Blackdown), RH 7.3



-
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: Form validator error in logicsheet

2002-06-14 Thread Christian Haul

On 14.Jun.2002 -- 11:26 AM, steeven wrote:
 My form validator code worked well under xsp file. when i moved them to logicshee, 
and error raised. It was reported that ths generated java file is wrong.

I wonder how it worked on your XSP. Problem is, that the on-XXX tags
don't switch to xsp:content for the nested block. So you need to
enlose your error message with markup, e.g. bnull age/b

I agree that it would be better if xsp:content would be assumed for
the nested block but I wouldn't call it a bug.

 Is it a bug?
 
 = guestbook-logic.xsl ==
 xsl:template match=guestbook:check-form
   Error: xsp-formval:results/br/
   xsp-formval:descriptor name=context:///test/descriptor.xml 
constraint-set=guestbook
   age must not less than
   xsp-formval:get-attribute parameter=age name=min/
   br/
   xsp-formval:on-null name=age
   null age
   /xsp-formval:on-null
   /xsp-formval:descriptor
 /xsl:template
 ==
 
 here is the generated xsp file:
 =guestbook_xsp.java===
 
   if 
(XSPFormValidatorHelper.getParamResult(objectModel,age).equals(ValidatorActionResult.ISNULL))
 {
   
   null age
   
   }
 
   }
 ===

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]




RE: war file classpath

2002-06-14 Thread cnsxxx09

Thanks for the reply.

I am also using a library of other files. If I unzip them into WEB-INF/classes then 
they are found ok (but not a practical approach). But when I put the jar in 
WEB-INF/lib then I get the dreaded NoClassDefFoundErroras a jar file it just isn't 
found.

Could this be symptomatic of having cocoon deployed in a war in an ear?
I just thought I could drop any jar into WEB-INF/lib and automatically have access to 
the files.

Thanks

C.
--

 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 
 Hi,
 
 I'm deploying Cocoon as a war file (within an ear file).
 My own sitemap.xmap file contains references to self-written
generators but
 when I try and access my files through a browser the sitemap cannot
find them,
 therefore cannot be compiled, and throws  the following error:

java.lang.NoClassDefFoundError:org/apache/cocoon/generation/ServletGener
ator

Make sure you have your generator in the WEB-INF/classes or in the jar
file in WEB-INF/lib of the Cocoon webapp.

Vadim

 
 I tried jarring up my files into WEB-INF/lib - this didn't make a
difference
 I tried also adding an extra-classpath reference in web.xml pointing
to this
 jar file - again, this didn't make a difference
 I tried just unjarring the files into WEB-INF/classes - and again,
this made
 no difference
 
 How can I tell Cocoon where to find my generator (and other) files?
 
 TIA
 
 C.
 --
 
 
 __



__
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.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]




XMLForm Control of flow

2002-06-14 Thread Graaf, Edgar de (fin)

People,

I was experimenting with XMLForm and the Howto example. It works, but I have
some question. I am hoping someone can answer them.

1. Why is the flow controled with HowtoWizardAction? And not with help of a
xml like struts-config?
2. When I repeated the steps and unchecked the boxes. Then when I arrive at
confirm input everthing is still true. Do I have to invalidate the session
or something? Shouldn't that happen the moment you push finish?

Thanks,

Edgar

-
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 and Struts model 2x

2002-06-14 Thread Sylvain.Thevoz

Hello,

Anyone has implemented a web application with Struts model 2x and Cocoon??

I thought to start a project with this architecture:

Middleware: J2EE EJB server (JBoss) with Tomcat Servlet container. EJB classes to 
access to the data and more.

Web front-end: Struts model 2x and Cocoon. Struts model 2x to have a MVC framework 
which generate XML pages and Cocoon to process the XML pages to any format (HTML, WML, 
PDF, etc...).


Has anyone an experience of it??


Thank you
Sylvain

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




Upload/HTTP-Post-Request

2002-06-14 Thread Lutz Lenzen


Hi,

I have a question about uploads.  When cocoon receives any HTTP-post-request 
with an upload-file (multipar/form-data), the file is uploaded in the 
default-upload-dir even if the request causes a server-error (and no pipeline 
is initiated). So it seems, that the upload is done by cocoon before any 
pipeline is initiated. How can I prevent the upload, or where can I intervene 
and control the HTTP-Request.

Thanks in advance

Lutz
-- 
*
Lutz Lenzen
Institut fuer Reine und Angewandte
Mathematik
RWTH Aachen
Templergraben 55
52062 Aachen
E-mail: [EMAIL PROTECTED]
Tel.: 0241/80-94513 bzw.
   030/314-22698
*

-
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 Control of flow

2002-06-14 Thread Reinhard Poetz

There is am Mail from Konstantin --
http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=102380667528528w=2

Regards,
Reinhard

 -Original Message-
 From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 14, 2002 10:15 AM
 To: Cocoon-Users (E-mail)
 Subject: XMLForm  Control of flow


 People,

 I was experimenting with XMLForm and the Howto example. It works,
 but I have
 some question. I am hoping someone can answer them.

 1. Why is the flow controled with HowtoWizardAction? And not with
 help of a
 xml like struts-config?
 2. When I repeated the steps and unchecked the boxes. Then when I
 arrive at
 confirm input everthing is still true. Do I have to invalidate the session
 or something? Shouldn't that happen the moment you push finish?

 Thanks,

 Edgar

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

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



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

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




Cocoon and OpenCMS?

2002-06-14 Thread Derek Hohls

a quick question (I know the answer may be more difficult ;-):

what is the relationship - if any - between OpenCMS 
http://www.opencms.org/opencms/opencms/index.html
and Cocoon - it seems there are some overlaps - yet
perhaps the focus of each is different - and lots of the 
'buzzwords' seem similar - Velocity; Struts; JSP; Tomcat etal

can these systems be 'integrated' - if so, how? and 
what, if any, roles could each play?

i appreciate there is not a *specific* question i am asking here
but CMS is an issue for me at present, and i wondering if
i will have to learn yet-another-package - or can i keep building
on what i have learnt so far?

any thoughts/comment would be welcome

derek

ps - i am especially curious re the role of JSP; OpenCMS
seems to be adopting it only now - yet from a Cocoon 
perspective, might that not be a move backwards??

-
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 and Struts model 2x

2002-06-14 Thread Michael Wechner

Dear Sylvain

I don't have experience with Struts and Cocoon combined, but I recently
had a discussion with people from Canoo which built something similar to 
Struts: http://www.canoo.com/products/webapp.html
They developed their WebApp Java Framework together with Credit Suissse.
Unfortunately they never tried to merge their software with Struts.
I am a big fan of Cocoon, but during the discussion I realized how 
powerfull it could be to use their framework resp. Struts for 
presentation logic (e.g. generation of navigation, tables etc.) together 
with Cocoon. The integration would probably quite simple: just create a
StrutsGenerator which is generating XML! But I never tried it out,
so maybe it's not that simple.

All the best

Michael




[EMAIL PROTECTED] wrote:

 Hello,
 
 Anyone has implemented a web application with Struts model 2x and Cocoon??
 
 I thought to start a project with this architecture:
 
 Middleware: J2EE EJB server (JBoss) with Tomcat Servlet container. EJB classes to 
access to the data and more.
 
 Web front-end: Struts model 2x and Cocoon. Struts model 2x to have a MVC framework 
which generate XML pages and Cocoon to process the XML pages to any format (HTML, 
WML, PDF, etc...).
 
 
 Has anyone an experience of it??
 
 
 Thank you
 Sylvain
 
 -
 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]




[Fwd: [4.0.4] Binaries available] Finally a stable 2.0.4 versionof Tomcat

2002-06-14 Thread Nicola Ken Barozzi

For those who needed a stable version but have problems installing on 
4.0.3... this is good news :-)


 Original Message 
Subject: [4.0.4] Binaries available
Date: Thu, 13 Jun 2002 23:08:38 -0700
From: Remy Maucherat [EMAIL PROTECTED]
Reply-To: Tomcat Developers List [EMAIL PROTECTED]
Organization: ASF
To: Tomcat Developers List [EMAIL PROTECTED]

The Tomcat 4.0.4 binaries are now available. Both the tester and
Watchdog passed successfully on the build. It also includes very little
changes over 4.0.4 Beta 3.

Please test for showstoppers or build errors. The welcome file for the
main directory references the j-t-c build directory for native connector
builds, so it would be nice if this was populated with builds for JK 1.2
and Webapp. RPMs are also needed (thanks in advance Henri :)).

The official release announcement will happen early next week unless
some major problem is found since then.

I would also like to apologize for the delays in making this release
available.

Downloads for the proposed final build:
-snipped-

Remy

-- 
Nicola Ken Barozzi   [EMAIL PROTECTED]
 - verba volant, scripta manent -
(discussions get forgotten, just code remains)
-


-
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 and OpenCMS?

2002-06-14 Thread Michael Wechner

Dear Derek

If you are looking for a CMS based on Cocoon, then you might be
interested in Wyona http://www.wyona.org.

There will also be a conference on Open Source Content Management
this September in San Francisco: http://www.oscom.org

All the best

Michael



Derek Hohls wrote:

 a quick question (I know the answer may be more difficult ;-):
 
 what is the relationship - if any - between OpenCMS 
 http://www.opencms.org/opencms/opencms/index.html
 and Cocoon - it seems there are some overlaps - yet
 perhaps the focus of each is different - and lots of the 
 'buzzwords' seem similar - Velocity; Struts; JSP; Tomcat etal
 
 can these systems be 'integrated' - if so, how? and 
 what, if any, roles could each play?
 
 i appreciate there is not a *specific* question i am asking here
 but CMS is an issue for me at present, and i wondering if
 i will have to learn yet-another-package - or can i keep building
 on what i have learnt so far?
 
 any thoughts/comment would be welcome
 
 derek
 
 ps - i am especially curious re the role of JSP; OpenCMS
 seems to be adopting it only now - yet from a Cocoon 
 perspective, might that not be a move backwards??
 
 -
 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 and OpenCMS?

2002-06-14 Thread Derek Hohls

Thanks

It seems like Wyona is pretty quite tho' - no updates since
January (and 6 months is a long time in the web-world)
and the documentation there is very thin... is this
project still active?? - at least OpenCMS seems like a 
thriving development (as is Cocoon!)

Derek

 [EMAIL PROTECTED] 14/06/2002 11:08:06 
Dear Derek

If you are looking for a CMS based on Cocoon, then you might be
interested in Wyona http://www.wyona.org.

There will also be a conference on Open Source Content Management
this September in San Francisco: http://www.oscom.org 

All the best

Michael



Derek Hohls wrote:

 a quick question (I know the answer may be more difficult ;-):
 
 what is the relationship - if any - between OpenCMS 
 http://www.opencms.org/opencms/opencms/index.html 
 and Cocoon - it seems there are some overlaps - yet
 perhaps the focus of each is different - and lots of the 
 'buzzwords' seem similar - Velocity; Struts; JSP; Tomcat etal
 
 can these systems be 'integrated' - if so, how? and 
 what, if any, roles could each play?
 
 i appreciate there is not a *specific* question i am asking here
 but CMS is an issue for me at present, and i wondering if
 i will have to learn yet-another-package - or can i keep building
 on what i have learnt so far?
 
 any thoughts/comment would be welcome
 
 derek
 
 ps - i am especially curious re the role of JSP; OpenCMS
 seems to be adopting it only now - yet from a Cocoon 
 perspective, might that not be a move backwards??
 

-
 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 output of servlet into XSP

2002-06-14 Thread telmo sa

Ok. It works. :)
Thank you.
Is there any way to pass in the src parameter something not static, ie,
something out of a variable?

Thank you!

Telmo Sa


From: Vadim Gritsenko [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Including output of servlet into XSP
Date: Thu, 13 Jun 2002 08:45:02 -0400

  From: telmo sa [mailto:[EMAIL PROTECTED]]
 
  Hello all.
  I have been trying to find the answer to my post but with no success.
  I am using Cocoon2 and Tomcat4.0.
 
  I am upgrading a Web App done with cocoon 1.8.2.
  In my cocoon 1.8.2 XSPs i was using util:include-uri to have the
content of
  a servlet in my XSP.
 
  For some reason the util:include-uri dosen't work in Cocoon2 ( i have
eard
  of a bug)
 
  How can i do it?

Use cinclude transformer. See samples and docs. In your case it will
look like:

cinclude:include src=http://server/myservlet/


Vadim


  Thank you so much!
 
  Telmo Sa


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




_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.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]




xsp-session:encode-url gives always empty string

2002-06-14 Thread Volker Schneider

Dear colleagues,

I want to use URL rewriting within xsp's and tried this:

?xml version=1.0 encoding=iso-8859-1?

xsp:page xmlns:xsp=http://apache.org/xsp;
  xmlns:xsp-session=http://apache.org/xsp/session/2.0;
  create-session=true

service
  xsp:element name=button
xsp:attribute name=actionxsp-session:encode-url
href=xyActionFollow me/xsp-session:encode-url/xsp:attribute
  /xsp:element
/service
/xsp:page

But the resulting xml is:

?xml version=1.0 encoding=UTF-8?
service xmlns:xsp=http://apache.org/xsp;
xmlns:xsp-session=http://apache.org/xsp/session/2.0;
  button action=

  /button
/service

What is wrong with encode-url?

Thank you, best regards
- Volker -


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




What does map:pipeline really do?

2002-06-14 Thread Volker Schneider

Dear colleagues,

does anybody know the difference between:

map:pipeline
  map:match.../map:match
  map:match.../map:match
/map:pipeline

and

map:pipeline
  map:match.../map:match
/map:pipeline

map:pipeline
  map:match.../map:match
/map:pipeline

Thank you, best regards
- Volker -

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




sending to a printer

2002-06-14 Thread Omar Alos
Hello
I want to send my cocoon output (ps) to a printer, which IP should come as a parameter. 
How can Iuse this parameter to do it? 
My pipeline is:
map:match pattern="imprime"map:act type="dame-listado"map:generate src="{plantilla}.xsp" type="serverpages"/ map:select type="parameter"map:parameter name="parameter-selector-test" value="{salida}"/map:when test="pdf"map:transform src="miDocbook.xsl" /map:serialize type="fo2pdf"//map:whenmap:when test="fo"map:transform src="miDocbook.xsl"/map:serialize type="xml"//map:whenmap:when test="html"map:transform src="docbookxsl/html/docbook.xsl"/map:serialize type="html"//map:when/map:select!-- ... --/map:act/map:match
I have seen that FOP inline covers this issue with "-psprint_address" parameter. How can I use something similar in Cocoon?
Thanks in advance.

Copa del Mundo de la FIFA 2002El único lugar de Internet con vídeos de los 64 partidos ¡Apúntante ya!.

Re: Upload/HTTP-Post-Request

2002-06-14 Thread Jeroen ter Voorde

You can't.

Nicola Ken suggested that the upload mechanism should be rewritten. I'm
willing to do
this (including some major speedups of the multipart parser) but i could use
some pointers how
to do this.

Jeroen

- Original Message -
From: Lutz Lenzen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 14, 2002 10:35 AM
Subject: Upload/HTTP-Post-Request



 Hi,

 I have a question about uploads.  When cocoon receives any
HTTP-post-request
 with an upload-file (multipar/form-data), the file is uploaded in the
 default-upload-dir even if the request causes a server-error (and no
pipeline
 is initiated). So it seems, that the upload is done by cocoon before any
 pipeline is initiated. How can I prevent the upload, or where can I
intervene
 and control the HTTP-Request.

 Thanks in advance

 Lutz
 --
 *
 Lutz Lenzen
 Institut fuer Reine und Angewandte
 Mathematik
 RWTH Aachen
 Templergraben 55
 52062 Aachen
 E-mail: [EMAIL PROTECTED]
 Tel.: 0241/80-94513 bzw.
030/314-22698
 *

 -
 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: What does map:pipeline really do?

2002-06-14 Thread Morrison, John

http://xml.apache.org/cocoon/faq/faq-sitemap.html#faq-3

 -Original Message-
 From: Volker Schneider [mailto:[EMAIL PROTECTED]]
 Sent: Friday, 14 June 2002 11:50 am
 To: [EMAIL PROTECTED]
 Subject: What does map:pipeline really do?
 
 
 Dear colleagues,
 
 does anybody know the difference between:
 
 map:pipeline
   map:match.../map:match
   map:match.../map:match
 /map:pipeline
 
 and
 
 map:pipeline
   map:match.../map:match
 /map:pipeline
 
 map:pipeline
   map:match.../map:match
 /map:pipeline
 
 Thank you, best regards
 - Volker -
 
 -
 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-session:encode-url gives always empty string

2002-06-14 Thread Volker Schneider

Dear colleagues,

sorry for that question. I'm working with WebSphereApplicationDeveloper and:

I HAVE TO SWITH URL REWRITNG ON in WebSphere !!!

(but as you know, these things can be time-consuming)

Best regards
- Volker -



-Original Message-
From: Volker Schneider [mailto:[EMAIL PROTECTED]]
Sent: Freitag, 14. Juni 2002 12:40
To: [EMAIL PROTECTED]
Subject: xsp-session:encode-url gives always empty string


Dear colleagues,

I want to use URL rewriting within xsp's and tried this:

?xml version=1.0 encoding=iso-8859-1?

xsp:page xmlns:xsp=http://apache.org/xsp;
  xmlns:xsp-session=http://apache.org/xsp/session/2.0;
  create-session=true

service
  xsp:element name=button
xsp:attribute name=actionxsp-session:encode-url
href=xyActionFollow me/xsp-session:encode-url/xsp:attribute
  /xsp:element
/service
/xsp:page

But the resulting xml is:

?xml version=1.0 encoding=UTF-8?
service xmlns:xsp=http://apache.org/xsp;
xmlns:xsp-session=http://apache.org/xsp/session/2.0;
  button action=

  /button
/service

What is wrong with encode-url?

Thank you, best regards
- Volker -


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




Using Xalan from the command line?

2002-06-14 Thread Derek Hohls

Hi

Can anyone give me the syntax for doing this - I have been using
James Clarke's XT for this up to now, but it appears there are some 
critical differences between the way the two processors deal with the
same XML/XSLT combo [I'm not sure why; but they do...]

Thanks
Derek

-
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: Using Xalan from the command line?

2002-06-14 Thread Stephan Michels



On Fri, 14 Jun 2002, Derek Hohls wrote:

 Hi

 Can anyone give me the syntax for doing this - I have been using
 James Clarke's XT for this up to now, but it appears there are some
 critical differences between the way the two processors deal with the
 same XML/XSLT combo [I'm not sure why; but they do...]

#!/bin/sh
LW=my-lib-dir
CLASSPATH=$LW/xerces_1_4_3.jar:$LW/xalan-2.2.0-dev.jar:.
java org.apache.xalan.xslt.Process -IN $1 -XSL $2 -OUT $3



-
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: Upload/HTTP-Post-Request

2002-06-14 Thread Nicola Ken Barozzi

Jeroen ter Voorde wrote:

 Nicola Ken suggested that the upload mechanism should be rewritten. I'm
 willing to do
 this (including some major speedups of the multipart parser) but i could use
 some pointers how
 to do this.

Well, here are some small pointers:
1- check out the upload component in jakarta-commons, it may be nice
2- remove the fixed dir from web.xml, and make that a param

Basically, you will see that the Request is created by wrapping the 
HttpServletRequest; there are RequestFactories in the components, and 
wrappers in environment.

Base yourself on real-life use cases and why you-others are having 
problems with the current version, and fix that :-)

-- 
Nicola Ken Barozzi   [EMAIL PROTECTED]
 - verba volant, scripta manent -
(discussions get forgotten, just code remains)
-


-
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 and Struts model 2x

2002-06-14 Thread Ivelin Ivanov


Have you seen this:
http://xml.apache.org/cocoon/howto/xmlform-wizard/howto-xmlform-wizard.html

[EMAIL PROTECTED] wrote:
 Hello,
 
 Anyone has implemented a web application with Struts model 2x and Cocoon??
 
 I thought to start a project with this architecture:
 
 Middleware: J2EE EJB server (JBoss) with Tomcat Servlet container. EJB classes to 
access to the data and more.
 
 Web front-end: Struts model 2x and Cocoon. Struts model 2x to have a MVC framework 
which generate XML pages and Cocoon to process the XML pages to any format (HTML, 
WML, PDF, etc...).
 
 
 Has anyone an experience of it??
 
 
 Thank you
 Sylvain
 
 -
 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]
 
 



-- 

-= Ivelin =-


-
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: Using Xalan from the command line?

2002-06-14 Thread Derek Hohls

Uh - I assume this is UNIX - is there equivalent syntax for WinD*z?

Running in my xalan/xerces directory I have tried:

xerces_1_4_4.jar:xalan-2.2.0-D13.jar:.java
org.apache.xalan.xslt.Process -IN $1 -XSL $2 -OUT $3

where $1 $2 and $3 have been replaced by filespaths   names and I
get:

The filename, directory name, or volume label syntax is incorrect.

When I run the XT equvilent ie.

xt $1 $2 $3

then all is well, so I know the files themselves are OK.

???

 [EMAIL PROTECTED] 14/06/2002 01:41:39 


On Fri, 14 Jun 2002, Derek Hohls wrote:

 Hi

 Can anyone give me the syntax for doing this - I have been using
 James Clarke's XT for this up to now, but it appears there are some
 critical differences between the way the two processors deal with
the
 same XML/XSLT combo [I'm not sure why; but they do...]

#!/bin/sh
LW=my-lib-dir
CLASSPATH=$LW/xerces_1_4_3.jar:$LW/xalan-2.2.0-dev.jar:.
java org.apache.xalan.xslt.Process -IN $1 -XSL $2 -OUT $3



-
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: Using Xalan from the command line?

2002-06-14 Thread Morrison, John

This doesn't really have anything to do with cocoon.  Please
ask on more appropriate lists.

: isn't a path seperator in windows, ; is.

J.

 -Original Message-
 From: Derek Hohls [mailto:[EMAIL PROTECTED]]
 Sent: Friday, 14 June 2002 1:03 pm
 To: [EMAIL PROTECTED]
 Subject: Re: Using Xalan from the command line?
 
 
 Uh - I assume this is UNIX - is there equivalent syntax for WinD*z?
 
 Running in my xalan/xerces directory I have tried:
 
 xerces_1_4_4.jar:xalan-2.2.0-D13.jar:.java
 org.apache.xalan.xslt.Process -IN $1 -XSL $2 -OUT $3
 
 where $1 $2 and $3 have been replaced by filespaths   names and I
 get:
 
 The filename, directory name, or volume label syntax is incorrect.
 
 When I run the XT equvilent ie.
 
 xt $1 $2 $3
 
 then all is well, so I know the files themselves are OK.
 
 ???
 
  [EMAIL PROTECTED] 14/06/2002 01:41:39 
 
 
 On Fri, 14 Jun 2002, Derek Hohls wrote:
 
  Hi
 
  Can anyone give me the syntax for doing this - I have been using
  James Clarke's XT for this up to now, but it appears there are some
  critical differences between the way the two processors deal with
 the
  same XML/XSLT combo [I'm not sure why; but they do...]
 
 #!/bin/sh
 LW=my-lib-dir
 CLASSPATH=$LW/xerces_1_4_3.jar:$LW/xalan-2.2.0-dev.jar:.
 java org.apache.xalan.xslt.Process -IN $1 -XSL $2 -OUT $3
 
 
 
 -
 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: Using Xalan from the command line?

2002-06-14 Thread Stephan Michels



On Fri, 14 Jun 2002, Derek Hohls wrote:

 Uh - I assume this is UNIX - is there equivalent syntax for WinD*z?

 Running in my xalan/xerces directory I have tried:

 xerces_1_4_4.jar:xalan-2.2.0-D13.jar:.java
 org.apache.xalan.xslt.Process -IN $1 -XSL $2 -OUT $3

 where $1 $2 and $3 have been replaced by filespaths   names and I
 get:

 The filename, directory name, or volume label syntax is incorrect.

 When I run the XT equvilent ie.

 xt $1 $2 $3

 then all is well, so I know the files themselves are OK.


The full description of the cli of xalan were found at:
http://xml.apache.org/xalan-j/commandline.html

For more questions about the cli of xalan, I would propose
to ask the xalan mailing list ;-)

Stephan Michels.


 On Fri, 14 Jun 2002, Derek Hohls wrote:

  Hi
 
  Can anyone give me the syntax for doing this - I have been using
  James Clarke's XT for this up to now, but it appears there are some
  critical differences between the way the two processors deal with
 the
  same XML/XSLT combo [I'm not sure why; but they do...]

 #!/bin/sh
 LW=my-lib-dir
 CLASSPATH=$LW/xerces_1_4_3.jar:$LW/xalan-2.2.0-dev.jar:.
 java org.apache.xalan.xslt.Process -IN $1 -XSL $2 -OUT $3



 -
 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: Using Xalan from the command line?

2002-06-14 Thread Rogier Peters

If you look here:
http://xml.apache.org/xalan-j/commandline.html
there's a good explanation of the command line utility along with all the flags you 
can set.
I use it from xmlspy as an alternate to the msxml parser.

Regards,

Rogier Peters


-
Content Management Department
Hippo Webworks
Grasweg 35
1031 HW Amsterdam
The Netherlands
Tel  +31 (0)20 6345173 
Fax +31 (0)20 6345179
Rogier(at)hippo(dot)nl / www.hippo.nl 

 -Oorspronkelijk bericht-
 Van: Derek Hohls [mailto:[EMAIL PROTECTED]]
 Verzonden: Friday, June 14, 2002 1:40 PM
 Aan: [EMAIL PROTECTED]
 Onderwerp: Using Xalan from the command line?
 
 
 Hi
 
 Can anyone give me the syntax for doing this - I have been using
 James Clarke's XT for this up to now, but it appears there are some 
 critical differences between the way the two processors deal with the
 same XML/XSLT combo [I'm not sure why; but they do...]
 
 Thanks
 Derek
 
 -
 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: Using Xalan from the command line?

2002-06-14 Thread Derek Hohls

Thanks - this is all  I needed - a friendly pointer to the
documentation!
:-)

 [EMAIL PROTECTED] 14/06/2002 02:43:06 


On Fri, 14 Jun 2002, Derek Hohls wrote:

 Uh - I assume this is UNIX - is there equivalent syntax for WinD*z?

 Running in my xalan/xerces directory I have tried:

 xerces_1_4_4.jar:xalan-2.2.0-D13.jar:.java
 org.apache.xalan.xslt.Process -IN $1 -XSL $2 -OUT $3

 where $1 $2 and $3 have been replaced by filespaths   names and I
 get:

 The filename, directory name, or volume label syntax is incorrect.

 When I run the XT equvilent ie.

 xt $1 $2 $3

 then all is well, so I know the files themselves are OK.


The full description of the cli of xalan were found at:
http://xml.apache.org/xalan-j/commandline.html 

For more questions about the cli of xalan, I would propose
to ask the xalan mailing list ;-)

Stephan Michels.


 On Fri, 14 Jun 2002, Derek Hohls wrote:

  Hi
 
  Can anyone give me the syntax for doing this - I have been using
  James Clarke's XT for this up to now, but it appears there are
some
  critical differences between the way the two processors deal with
 the
  same XML/XSLT combo [I'm not sure why; but they do...]

 #!/bin/sh
 LW=my-lib-dir
 CLASSPATH=$LW/xerces_1_4_3.jar:$LW/xalan-2.2.0-dev.jar:.
 java org.apache.xalan.xslt.Process -IN $1 -XSL $2 -OUT $3




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




Problem with org.apache.avalon.excalibur.xml.Parser

2002-06-14 Thread Jeroen ter Voorde

Hi,

I'm trying to get the latest CVS (HEAD) webapp to work but there seems to be
a problem with
the JaxpParser.

I'm using tomcat 4.0.4 on Win98. The exception is as follows:

org.apache.avalon.framework.component.ComponentException: Could not set up
Component for role: org.apache.avalon.excalibur.xml.Parser
 at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.addComponent
(ExcaliburComponentManager.java:646)
 at org.apache.cocoon.Cocoon.initialize(Cocoon.java:259)
 at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1237
)
 at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:435)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91
8)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3279)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:478)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java:738)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:155)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
 at org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
java.lang.NullPointerException
 at
org.apache.avalon.framework.configuration.AbstractConfiguration.getAttribute
AsInteger(AbstractConfiguration.java:272)
 at
org.apache.avalon.framework.configuration.AbstractConfiguration.getAttribute
AsInteger(AbstractConfiguration.java:315)
 at
org.apache.avalon.excalibur.component.PoolableComponentHandler.init(Poolab
leComponentHandler.java:135)
 at
org.apache.avalon.excalibur.component.PoolableComponentHandler.init(Poolab
leComponentHandler.java:116)
 at
org.apache.avalon.excalibur.component.ComponentHandler.getComponentHandler(C
omponentHandler.java:70)
 at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.getComponent
Handler(ExcaliburComponentManager.java:587)
 at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.addComponent
(ExcaliburComponentManager.java:629)
 at org.apache.cocoon.Cocoon.initialize(Cocoon.java:259)
 at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1237
)
 at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:435)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91
8)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3279)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:478)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java:738)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:155)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
 at org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

2002-06-14 14:43:15 ERROR   

Weblogic6.1 and JSPGenerator

2002-06-14 Thread QUEROMES,YVON (HP-Cupertino,ex1)


Hi,

I am trying to set up the JSPGenerator to use the Weblogic(6.1) JSP Engine.
Has anyone done
it before? I have set the following section in my 'cocoon.xconf' file:

jsp-engine logger=core.jsp-engine
parameter name=servlet-class value=weblogic.servlet.JSPServlet/
parameter name=servlet-name value=*.jsp/
  /jsp-engine

At run-time, I get the following stacktrace:
 javax.servlet.UnavailableException: Couldn't find init param:
compileCommand
   at
weblogic.servlet.jhtmlc.PageCompileServlet.init(PageCompileServlet.ja
va:92)
   at weblogic.servlet.JSPServlet.init(JSPServlet.java:56)
   at
org.apache.cocoon.components.jsp.JSPEngineImpl.executeJSP(JSPEngineIm
pl.java:121)

Thanks,

Yvon

-
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: any expierience of getting xml from Quark

2002-06-14 Thread Geoff Howard

Check out the filters at
http://www.thepowerxchange.com/PowerXChange/showprod.cfm?DID=6User_ID=9403
5st=3060st2=56837284st3=-89809369CATID=28ObjectGroup_ID=40.

We aren't using it directly on cocoon, but we have a content provider using
the (free I think) XPress XML product.  There were other better ones there,
but that one was free.

Geoff Howard

 -Original Message-
 From: caleb racey [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 14, 2002 9:31 AM
 To: [EMAIL PROTECTED]
 Subject: any expierience of getting xml from Quark 
 
 
 
 Does anyone have any recent experience getting xml from quark? 
 
 I've searched the archives but the only quark  xml thread is 
 18 months
 old.
 
 From my research it looks like there are two options 
 1) use quark's avenue, which I'm yet to see any positive 
 comments about
 2) use Atomic from easypress (http://www.easypress.com/) which I can
 only find marketing blurb about. 
 
 The objective is to take existing quark documentation and output it to
 xml then use cocoon to manipulate it to html pdf etc. The existing
 documentation has been written to strict and relatively simple
 formatting guidelines so should be reasonably well orderred.
 
 Anyone found a solution to the quark to xml problem?
 
 Cheers
 
 Caleb Racey
 Webteam 
 University Computer Service 
 University of Newcastle
 tel 0191 222 5916
 
 
 
 -
 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]




JSESSIONID had /cocoon as path

2002-06-14 Thread Liam Morley

Is there a way to edit the path for the JSESSIONID cookie?

Thanks,
Liam Morley


-
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: JSESSIONID had /cocoon as path

2002-06-14 Thread Christoph Gaffga

Hi, i'm looking for a way to change the cookie path also. 
At the Moment I'm using a filter-Class infront of
the cocoon-Servlet and wrap the ServletResponse, but it
would be nice to just edit the config file.

Christoph Gaffga
[EMAIL PROTECTED]


- Original Message - 
From: Liam Morley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 14, 2002 4:21 PM
Subject: JSESSIONID had /cocoon as path


 Is there a way to edit the path for the JSESSIONID cookie?
 
 Thanks,
 Liam Morley
 
 
 -
 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: What does map:pipeline really do?

2002-06-14 Thread Argyn Kuketayev

Error handling might be different for different pipelines, I guess

 -Original Message-
 From: Per Kreipke [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 14, 2002 10:56 AM
 To: [EMAIL PROTECTED]
 Subject: RE: What does map:pipeline really do?

 Sure, one pipeline can be hidden but what other reasons exist 
 for separating
 into multiple pipelines? [Note: Volker's example didn't 
 specify an internal
 pipeline]

-
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: What does map:pipeline really do?

2002-06-14 Thread ROSSEL Olivier

I think the only difference is that handle-errors 
are on per pipeline.
so for different error handling, you need separate pipelines.

BTW, internal-only=true/false is already a very good reason for having
several pipelines.



 -Message d'origine-
 De: Per Kreipke [mailto:[EMAIL PROTECTED]]
 Date: vendredi 14 juin 2002 16:56
 À: [EMAIL PROTECTED]
 Objet: RE: What does map:pipeline really do?
 
 
 John, Volker,
 
 I was about to ask the same question.
 
   Dear colleagues,
  
   does anybody know the difference between:
  
   map:pipeline
 map:match.../map:match
 map:match.../map:match
   /map:pipeline
  
   and
  
   map:pipeline
 map:match.../map:match
   /map:pipeline
  
   map:pipeline
 map:match.../map:match
   /map:pipeline
 
  http://xml.apache.org/cocoon/faq/faq-sitemap.html#faq-3
 
 I re-read the entire user doc package last night and came across that
 section but, with all due respect, that documentation doesn't 
 explain the
 benefits of one approach or the other.
 
 Sure, one pipeline can be hidden but what other reasons exist 
 for separating
 into multiple pipelines? [Note: Volker's example didn't 
 specify an internal
 pipeline]
 
 - for example, in the default sitemap (which is quite large), 
 why are there
 so many pipelines? Couldn't it be done with all the matchers 
 inside one
 pipeline?
 
 - in there a performance difference?
 
 - in cases where you aggregate XML parts using map:aggregate and the
 cocoon:/ protocol, are serializers skipped perhaps?
 
 Thanks, Per.
 
 
 
 -
 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]




session problem (get mixed data)

2002-06-14 Thread Christoph Stocker

hi!


i use weblogic6.0sp2, hp-ux and cocoon2.0.2

i have a session-problem with cocoon in the following way --

if a client connects to my webapplication, he gets data, like
adresses. then on the other way, a second client connects to
the server and also requests data.

so in some cases it could happen, that one client sees the data
of the other client. my mention is, that i have a session problem, 
that data is shown to a user don't belong to him.



in my action i look if its a new session (get the session from request).

if this is so, i read the parameters given with the url and write it 
into the session. is there another request, i look again, if the session

is new - if it is, i do the step described before - if not, i get the
data
from the related session. 


so i have a lot of sesisons objects on the server.

some times it could happen, that a user gets data from session-objects,
don't belong to him. i don't know, if my solution of session handling is
the best - maybe i do it wrong.

what is my problem?
is there a better solution?


greetings, chris


-
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 Control of flow

2002-06-14 Thread Andrew C. Oliver

I asked the exact same question.  So can we use this flowmap with
XMLForm?  I'd much rather.  The action classes I'm writing are very
stupid and redundant.

-Andy

On Fri, 2002-06-14 at 04:46, Reinhard Poetz wrote:
 There is am Mail from Konstantin --
 http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=102380667528528w=2
 
 Regards,
 Reinhard
 
  -Original Message-
  From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
  Sent: Friday, June 14, 2002 10:15 AM
  To: Cocoon-Users (E-mail)
  Subject: XMLForm  Control of flow
 
 
  People,
 
  I was experimenting with XMLForm and the Howto example. It works,
  but I have
  some question. I am hoping someone can answer them.
 
  1. Why is the flow controled with HowtoWizardAction? And not with
  help of a
  xml like struts-config?
  2. When I repeated the steps and unchecked the boxes. Then when I
  arrive at
  confirm input everthing is still true. Do I have to invalidate the session
  or something? Shouldn't that happen the moment you push finish?
 
  Thanks,
 
  Edgar
 
  -
  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]
 
-- 
http://www.superlinksoftware.com - software solutions for business
http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
Java
http://krysalis.sourceforge.net/centipede - the best build/project
structure
a guy/gal could have! - Make Ant simple on complex Projects!
The avalanche has already started. It is too late for the pebbles to
vote.
-Ambassador Kosh


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




Generating a 404 from esql:no-results

2002-06-14 Thread Jonathan Layes

Hi all,

I have a few ESQL XSP pages where there is the potential for
the query to not generate any results.  In those cases, I would
like to throw a ResourceNotFoundException and let my error
handling (defined in the sitemap) take over and generate a 404
back to the client.  Is this a sensible thing to do and, if so,
how do I import ResourceNotFoundException into the context
of the XSP so I can write something like:

  esql:no-results
xsp:logic
  throw new ResourceNotFoundException(bla bla);
/xsp:logic
  /esql:no-results

Thanks, Jonathan

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




FlowControleAction

2002-06-14 Thread Graaf, Edgar de (fin)

Is there someone who might be interested in the following:

map:match pattern=flowshow.html
 map:act type=flowControler
  map:parameter name = flow value = a,b, c;d/
  map:generate src={nextpage}.xsp/
  map:transform src=simple-page2html.xsl/
  map:serialize/
 /map:act
 map:redirect-to uri=flowerror.html/
/map:match

For example: b.xsp
==

?xml version=1.0 encoding=ISO-8859-1?

xsp:page language=java
xmlns:xsp=http://apache.org/xsp;
page
titleB/title
form action=flowshow.html
 button label=Jump to A command=jump(1)/
 button label=Jump to C command=jump(3)/
 button label=Jump to D command=jump(4)/
 hr/
 button label=Prev command=prev/
 button label=Next command=next/
 button label=Start command=Start/
 button label=End command=end/
/form
/page
/xsp:page

The flow of xsp pages is set in the flow parameter. Pages are seperated with
a , or ;
You can jump to some position in the flow or you can just follow the flow
with prev or next. 

Finally you can use start and end.

I am thinking about giving it to the community, but only if people are
interested. Because maybe you got something better or nobody wants to use
it...

regards,

Edgar




-
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: What does map:pipeline really do?

2002-06-14 Thread Nicola Ken Barozzi


ROSSEL Olivier wrote:
 I think the only difference is that handle-errors 
 are on per pipeline.
 so for different error handling, you need separate pipelines.

Yes, and also internal-only

 BTW, internal-only=true/false is already a very good reason for having
 several pipelines.

Ok, you know it ;-)

This means that:

map:pipeline
   map:match.../map:match
   map:match.../map:match
/map:pipeline

and

map:pipeline
   map:match.../map:match
/map:pipeline

map:pipeline
   map:match.../map:match
/map:pipeline

are _equivalent_.


 -oOo-

BTW, this makes me remind of a trick.
If you have many matches, it's better to make them hierarchical for 
speed reasons.

IE, it I request real/b, with the following stuff:

   map:match pattern=samples/A.../map:match
   map:match pattern=samples/B.../map:match
   map:match pattern=samples/C.../map:match
   map:match pattern=samples/D.../map:match
   map:match pattern=real/a   .../map:match
   map:match pattern=real/b   .../map:match

  Cocoon has to match 6 times before finding the one needed:


  (1X) map:match pattern=samples/A.../map:match
  (2X) map:match pattern=samples/B.../map:match
  (3X) map:match pattern=samples/C.../map:match
  (4X) map:match pattern=samples/D.../map:match
  (5X) map:match pattern=real/a   .../map:match
  (6!) map:match pattern=real/b   .../map:match

In this equivalent case:
   map:match pattern=samples/*
 map:match pattern=samples/A.../map:match
 map:match pattern=samples/B.../map:match
 map:match pattern=samples/C.../map:match
 map:match pattern=samples/D.../map:match
   /map:match
   map:match pattern=real/*
 map:match pattern=real/a   .../map:match
 map:match pattern=real/b   .../map:match
   /map:match

Just 4.

(1X)  map:match pattern=samples/*
 map:match pattern=samples/A.../map:match
 map:match pattern=samples/B.../map:match
 map:match pattern=samples/C.../map:match
 map:match pattern=samples/D.../map:match
   /map:match
(2X)map:match pattern=real/*
(3X)map:match pattern=real/a   .../map:match
(4!)map:match pattern=real/b   .../map:match
   /map:match

If you think that many sitemaps have more than 6 matches...

-- 
Nicola Ken Barozzi   [EMAIL PROTECTED]
 - verba volant, scripta manent -
(discussions get forgotten, just code remains)
-


-
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: JSESSIONID had /cocoon as path

2002-06-14 Thread Christoph Gaffga

It think that when your webapp is under webapps/cocoon, the cookie-Path is
alway /cocoon.
If you don't want that, then you could run your webapp as webapps/ROOT (your
cookie-path will be /).

For me that's no enought. I modify the JSESSIONID-cookie (and the path) in
the following way:

I've the following in my WEB-INF/web.xml-File

  filter
filter-nameRequestWrapper/filter-name
filter-classcom.triplemind.asp.server.RequestWrapper/filter-class
  /filter
  filter-mapping
filter-nameRequestWrapper/filter-name
servlet-nameCocoon2/servlet-name
  /filter-mapping

so that every request to cocoon goes through my RequestWrapper-Class.
In my RequestWrapper I can change the cookies.

public class RequestWrapper implements Filter {
   ...
   public void doFilter(ServletRequest request,
ServletResponse response, FilterChain chain) {
 if(request instanceof HttpServletRequest  response instanceof
HttpServletResponse) {
response = new MyHttpResponseWrapper(response);
 }
 chain.doFilter(request, response);
   }
   ...
 }


public class MyHttpResponseWrapper extends HttpServletResponseWrapper {
  public void addCookie(Cookie cookie) {
if(cookie.getName().equals(JSESSIONID)) {
  cookie.setPath(/whereever-you-want/dir/);
  cookie.setDomain(mydomain.com);
  // you can also set expiry, etc...
}
super.addCookie(cookie);
  }

}


yours
Christoph Gaffga
[EMAIL PROTECTED]



- Original Message -
From: Liam Morley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 14, 2002 4:39 PM
Subject: Re: JSESSIONID had /cocoon as path


 This is new to me. Would you by any chance mind explaining more in
 depth? I'm trying to rewrite the URL so that cocoon is not in the URL,
 but then sessions don't work..

 Thank you very much,
 Liam Morley

 Christoph Gaffga wrote:

 Hi, i'm looking for a way to change the cookie path also.
 At the Moment I'm using a filter-Class infront of
 the cocoon-Servlet and wrap the ServletResponse, but it
 would be nice to just edit the config file.
 
 Christoph Gaffga
 [EMAIL PROTECTED]
 
 
 - Original Message -
 From: Liam Morley [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, June 14, 2002 4:21 PM
 Subject: JSESSIONID had /cocoon as path
 
 
 
 
 Is there a way to edit the path for the JSESSIONID cookie?
 
 Thanks,
 Liam Morley
 
 
 -
 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: What does map:pipeline really do?

2002-06-14 Thread Per Kreipke

 I think the only difference is that handle-errors
 are on per pipeline.
 so for different error handling, you need separate pipelines.

Aha.

 BTW, internal-only=true/false is already a very good reason for having
 several pipelines.

I agree, I've seen in the sitemap.xsl that processing can skip the
serialization step when you hook together pipelines.

For development, however, I can't actually look at internal pipelines if I
turn that feature on. So it's only going on for deployment.

Per


-
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: What does map:pipeline really do?

2002-06-14 Thread Per Kreipke

Thanks, very good reminder. In documentation under 'Best Practices' or
'Sitemap Patterns' ;-)?

Yes, yes, I know, write it myself. If I only _knew_ anything useful.

Per


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




aggregation with different generators

2002-06-14 Thread Sternath Elmar

Hi,

I would like to know if it's possible to use self-implemented generators inside an 
aggregation, something like:

map:aggregate element=SCWPage
map:part type=UploadGenerator 
src=http://scw_de:[EMAIL PROTECTED]:/BOLServlet/ProductService.uploadDocument;
/map:aggregate

Regards,
Elmar

-
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: MSFT answer to Cocoon? (Plaease don't throw stones :)

2002-06-14 Thread Sven Kuenzler

[EMAIL PROTECTED] schrieb:

   Had to ask - does Microsoft have anything for IIS that gives Cocoon/Xalan/Xerces 
functionality?

There was once a post on this list which mentioned a new feature of 
MSXML 4. That feature is similar Cocoons pipeline concept. I.e. you can 
pass SAX events thru different filters and have a serializer at the end 
producing HTML, WML, whatever.

Sven




-
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: aggregation with different generators

2002-06-14 Thread Per Kreipke

 I would like to know if it's possible to use self-implemented
 generators inside an aggregation, something like:

 map:aggregate element=SCWPage
   map:part type=UploadGenerator
 src=http://scw_de:[EMAIL PROTECTED]:/BOLServlet
 /ProductService.uploadDocument
 /map:aggregate

I've wanted to do the same thing but after looking through the sitemap's
code generator (sitemap.xsl), I don't think it's that easy.

However, you can just set up different pipelines or matchers to achieve some
of what you want:

map:match pattern=foo.data
   map:generate type=UploadGenerator
src=http://scw_de.uploadDocument; /
   map:serialize type=xml /
/map:match

map:match pattern=whatever
map:aggregate element=SCWPage
map:part src=cocoon:/foo.data /
/map:aggregate
map:serialize type=xml /
/map:match

Per


-
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: MSFT answer to Cocoon? (Plaease don't throw stones :)

2002-06-14 Thread Nicola Ken Barozzi


Sven Kuenzler wrote:
 [EMAIL PROTECTED] schrieb:
 
   Had to ask - does Microsoft have anything for IIS that gives 
 Cocoon/Xalan/Xerces functionality?
 
 
 There was once a post on this list which mentioned a new feature of 
 MSXML 4. That feature is similar Cocoons pipeline concept. I.e. you can 
 pass SAX events thru different filters and have a serializer at the end 
 producing HTML, WML, whatever.

That's the *Xalan* pipeline concept  :-P

-- 
Nicola Ken Barozzi   [EMAIL PROTECTED]
 - verba volant, scripta manent -
(discussions get forgotten, just code remains)
-


-
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: MSFT answer to Cocoon? (Plaease don't throw stones :)

2002-06-14 Thread Sven Kuenzler

[EMAIL PROTECTED] schrieb:


   Thanks Roger - this solution INTRIGUES me... Has anyone done this or knows where 
to get info to couple IIS with Tomcat?  Are cases/examples on Apache.org somewhere?

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html


Just got this working yesterday. There is no Cocoon involved in that 
application (yet), however.

Sven




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




org.apache.xerces.parsers.SAXParser does not implement XMLReader

2002-06-14 Thread Steven Cummings

Hey all,

I'm trying to run Cocoon 2.0.2 on Tomcat 4.0.3 which is running on JRE 1.3.1 and I'm 
getting the following error:

type fatal

message SAX2 driver class org.apache.xerces.parsers.SAXParser does not implement 
XMLReader

description java.lang.ClassCastException: 
org.apache.xerces.parsers.StandardParserConfiguration

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

java.lang.ClassCastException: org.apache.xerces.parsers.StandardParserConfiguration
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
at 
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:377)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:365)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:328)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:291)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Thread.java:484)

request-uri

/cocoon/

path-info

Does anybody know how to get cocoon to stop complaining about this fact? Thanks

-- 
Steven Cummings [EMAIL PROTECTED]
Columbia, MO



__
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.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]




Using Cocoon 2 as a Servlet Filter

2002-06-14 Thread Mark Arnold

Hello,

is it possible to pass an InputStream into cocoon rather than a filename of an input 
file?
I'd like to be able to use cocoon as a filter rather than a servlet, but for that I 
need it to take a stream instead of a file.

I would then have the CocoonFilter take the stream (with XML) coming from my servlet 
and transform it to whatever file format (HTML,
PDF, RTF,...) I need, just based on an extension in the URL I used to call my original 
servlet.

It should not be too hard since Cocoon internally has to take the filename and create 
an InputStream or a Reader at some point
anyway, I just haven't found the place where it does that yet...

There is a support package that does exactly that for orion, but I would like to do 
this for Tomcat:
http://kb.atlassian.com/content/orionsupport/articles/cocoon.html
I will try to play with it and see if I can just use it for Tomcat, however, they need 
Cocoon 1.8 (DOM?) and I want to use version 2
(SAX?) for memory usage reasons, so it's probably not a match anyway...

If you have any idea for that, let me know...

Thanks,

MARK


-
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: org.apache.xerces.parsers.SAXParser does not implement XMLReader

2002-06-14 Thread Vadim Gritsenko

 From: Steven Cummings [mailto:[EMAIL PROTECTED]]
 
 Hey all,
 
 I'm trying to run Cocoon 2.0.2 on Tomcat 4.0.3 which is running on JRE
1.3.1
 and I'm getting the following error:

http://xml.apache.org/cocoon/installing/index.html
Works for me every time. Just don't deviate from it.


PS I still prefer 4.0.4 though... I prefer simple setup.

Vadim


 type fatal
 
 message SAX2 driver class org.apache.xerces.parsers.SAXParser does not
 implement XMLReader
 
 description java.lang.ClassCastException:
 org.apache.xerces.parsers.StandardParserConfiguration
 
 sender org.apache.cocoon.servlet.CocoonServlet
 
 source Cocoon servlet
 
 stack-trace
 
 java.lang.ClassCastException:
 org.apache.xerces.parsers.StandardParserConfiguration
 at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown
Source)
 at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown
Source)
 at

org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.gene
rateCo
 de(AbstractMarkupLanguage.java:377)
 at

org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.gen
erateR
 esource(ProgramGeneratorImpl.java:365)
 at

org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.cre
ateRes
 ource(ProgramGeneratorImpl.java:328)
 at

org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa
d(Prog
 ramGeneratorImpl.java:291)
 at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
 at java.lang.Thread.run(Thread.java:484)
 
 request-uri
 
 /cocoon/
 
 path-info
 
 Does anybody know how to get cocoon to stop complaining about this
fact?
 Thanks
 
 --
 Steven Cummings [EMAIL PROTECTED]
 Columbia, MO


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




encoding problem

2002-06-14 Thread S.M. Siebinga

Hi all,

I have a small encoding problem in cocoon 2.0.2. I have a utf-8 encoded
text that is transformed to html with an xsl stylesheet. After the
processing the unicode characters aren't displayed properly. When I
looked at the page source my characters were hardcoded in html entities
like  Aumlaut; when it should have been an a with a macron. When I
processed the xml source and the stylesheet by xalan it worked fine. 

Furthermore some of the unicode characters in hyperlinks are displayed
properly in the status bar at the bottom of my browser but aren't in the
main browser window. This led me to conclude that the problem most be
somewhere internally in cocoon.

When I looked through the log files I couldn't find any noticable
exceptions.

Could somebody please help me out?

I have a sdk 1.3.1 on a SuSE linux 8.0 box and cocoon 2.0.2 is running
on tomcat 4.0.1

regards sjoerd


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




Database component help

2002-06-14 Thread Stephen Ng

I need to be able to connect to multiple databases on the fly in my app.
I'm using esql.  I'd also like to use connection pooling.

I tried creating a new Component on the fly (DynamicJdbcDataSource which
extends JdbcDataSource), thinking that I could grab the
ComponentManager, and add my new component to it, so that my esql sheet
could continue to use esql:pool, and have it use my component.

The problem is that I guess I can't add a new component to an already
initialized component manager.  So, I guess you are supposed to create a
fixed number of (pooled) components at startup time, and that number
can't change while the app is running?

If that is the case, I guess what I need to do is use
org.apache.avalon.excalibur.datasource.JdbcConnectionPool, and hack esql
to use that instead of the component selector?

Thanks,

Steve

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




[Announce] CocoBlog 0.0.4 released

2002-06-14 Thread Ugo Cei

CocoBlog 0.0.4 has been released today. You can download your copy from:

https://sourceforge.net/project/showfiles.php?group_id=55003release_id=94817

Changes in this release:

- moved from Cocoon 2.1dev to Cocoon 2.0.3dev.
- cosmetic changes and bugfixes

CocoBlog is a free weblogging software tool based on Apache Cocoon and 
Apache Xindice. More info can be found at

http://www.beblogging.com/blog/docs

-- 
Ugo Cei - http://www.beblogging.com/blog/


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




request-parameter exist

2002-06-14 Thread Matthew Hailstone

Is there any way to determine whether a particular request-parameter
exists in the sitemap's pipeline?

ex:

map:select type=request-parameter
  map:parameter name=parameter-name value=test-name/

!-- I know I'm probably hashing the syntax. --

  map:when test=!exist()
map:redirect-to session=true
uri=subsiteroot/doesnotexist/
  /map:when
  map:otherwise
map:redirect-to session=true
uri=subsiteroot/doesexist/
  /map:otherwise
/map:select

Thanks,

Matthew

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




FOP serializer is 4-5 times slower in C2.0.3 than from command line

2002-06-14 Thread Argyn Kuketayev

I've a pipeline with 
1 XSP (generates content) - 1.7 seconds
2 XSL (transforms it to XSL-FO) - 2.7
3. FOP (serializes into PDF) - 14.3

I measured time by terminating each step with xml serializer to see the
ouput in a browser.

My concern is the last step. When I ran FOP 0.20.3 from the command-line, it
takes me 2.5 seconds to ouput the PDF from xsl-fo file, and 2.8 seconds from
xml file with xsl stylesheet. I used the xml file from step 1, xsl-fo file
from step 2, and the same xslt stylesheets as in Cocoon.

So, PDF generation from Cocoon with FOP takes more time than from
command-line. I'm in trouble, my friends. I may end-up spending this
week-end to figure out what's going on, and would appreciate any tips.

thanks a lot,
Argyn

-
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: FOP serializer is 4-5 times slower in C2.0.3 than from command li ne

2002-06-14 Thread Argyn Kuketayev

configuration of my workstation is
Win2k Pro, WLS6.1 SP2, 
command line is .\bin\java -classic -ms512m -mx1024m ...

Dual Pentium 1.4Ghz, 2GB Ram

-
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: FOP serializer is 4-5 times slower in C2.0.3 than from command line

2002-06-14 Thread Mark Arnold

You call Cocoon as a servlet using CocoonServlet, right?
If so, try to write your own little FOP/PDF servlet that calls the FOP library rather 
than the cocoon one.
Curious about what kind of performance you get then...

MARK

-Original Message-
From: Argyn Kuketayev [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 4:07 PM
To: Cocoon-Users (E-mail)
Subject: FOP serializer is 4-5 times slower in C2.0.3 than from command
line


I've a pipeline with 
1 XSP (generates content) - 1.7 seconds
2 XSL (transforms it to XSL-FO) - 2.7
3. FOP (serializes into PDF) - 14.3

I measured time by terminating each step with xml serializer to see the
ouput in a browser.

My concern is the last step. When I ran FOP 0.20.3 from the command-line, it
takes me 2.5 seconds to ouput the PDF from xsl-fo file, and 2.8 seconds from
xml file with xsl stylesheet. I used the xml file from step 1, xsl-fo file
from step 2, and the same xslt stylesheets as in Cocoon.

So, PDF generation from Cocoon with FOP takes more time than from
command-line. I'm in trouble, my friends. I may end-up spending this
week-end to figure out what's going on, and would appreciate any tips.

thanks a lot,
Argyn

-
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: FOP serializer is 4-5 times slower in C2.0.3 than from command line

2002-06-14 Thread Argyn Kuketayev

 -Original Message-
 From: Mark Arnold [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 14, 2002 7:22 PM
 To: [EMAIL PROTECTED]
 Subject: RE: FOP serializer is 4-5 times slower in C2.0.3 than from
 command line
 
 
 You call Cocoon as a servlet using CocoonServlet, right?

right, CocoonServlet, pipeline and so on

 If so, try to write your own little FOP/PDF servlet that 
 calls the FOP library rather than the cocoon one.
 Curious about what kind of performance you get then...

Why do u think it will make a difference? Do u know what's a problem with
FOP under Cocoon?

-
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: Session transformer and namespaces

2002-06-14 Thread Jeremy Quinn


On Thursday, June 13, 2002, at 06:53 PM, Bruce Krautbauer wrote:

 also note the namespace for the 'a' element has disappeared.


The transformer you are using is based on the 
AbstractSAXTransformer, which I believe does not handle 
namespaces properly.

I have the same problem with the new SourceWritingTransformer 
version I am working on, that is also based on the same class.


regards Jeremy


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




xml-namespace in XSP result

2002-06-14 Thread Koen Pellegrims

Hi,

I have written a small XSP-file to dynamically include articles from a
news.xml-file, based on the current date (so as to leave out articles that
have expired).
I use the xml:base tag to point to my data-directory, and I use XInclude to
include the relevant news-articles from there.

The problem I'm having is that the xml:base attribute results in a
xmlns:xml-attribute in the resulting file, which is illegal...

What am I doing wrong, how can I fix this?

The result:
news xml:base=cocoon:/data/
xmlns:xml=http://www.w3.org/XML/1998/namespace;
...
/news

The original XSP:

?xml version=1.0 encoding=ISO-8859-1?

xsp:page
 language=java
 xmlns:xsp=http://apache.org/xsp;
 xmlns:xi=http://www.w3.org/2001/XInclude;

 xsp:structure
  xsp:includejava.text.SimpleDateFormat/xsp:include
 /xsp:structure

 news xml:base=cocoon:/data/
  xsp:logic
   Date today = new Date();
   String strToday = (new SimpleDateFormat(MMdd)).format(today);
  /xsp:logic

  xi:include
   xsp:attribute name=hrefnews.xml#xpointer(//article[
(translate(@date,'-', '') lt;= xsp:exprstrToday/xsp:expr) and
(translate(@expires,'-', '') gt;=
xsp:exprstrToday/xsp:expr) ])/xsp:attribute
  /xi:include
 /news
/xsp:page

Kind regards,

Koen Pellegrims


-
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: request-parameter exist

2002-06-14 Thread Christian Haul

On 14.Jun.2002 -- 04:11 PM, Matthew Hailstone wrote:
 Is there any way to determine whether a particular request-parameter
 exists in the sitemap's pipeline?

Yes, look at the RequestParameterExistsAction. It is used in the mod-db
example BTW.

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]