Does Cocoon return the Request Object as XML?

2001-07-12 Thread DD



I want to get the Request Object (i.e. what is 
either POSTed or from GET) as XML. Currently, I am using ASP.Net, and the 
request object is returned as a "NameValueCollection" which is similar to a 
Dictionary object, or a Hashtable. I have to then convert it all into XML myself 
to then send to an XSL page or to a database. I want to have the request object 
already in XML and figured if anyone had done it, cocoon had. Is 
it?
 
Robert


Re: C1 to C2

2001-07-12 Thread Lajos Moczar

If I understand you correctly, all you have to do is rename cocoon.war 
to ROOT.war - this will eliminate the need for the "cocoon/" after your 
hostname, since the ROOT webapp equates to "/". Dont' forget to copy all 
your own stuff from $TOMCAT_HOME/webapps/cocoon to 
$TOMCAT_HOME/webapps/ROOT.


Lajos Moczar
galatea.com

Andre Juffer wrote:

> 
> 
> Luca Morandini wrote:
> 
>>> -Original Message-
>>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Andre
>>> Juffer
>>> Sent: giovedì 12 luglio 2001 15.11
>>> To: [EMAIL PROTECTED]
>>> Subject: Re: C1 to C2
>>> 
>>> 
>>> Luca Morandini wrote:
>>> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 
 
>>> Behalf Of Andre
>>> 
> Juffer
> Sent: giovedì 12 luglio 2001 13.35
> To: [EMAIL PROTECTED]
> Subject: Re: C1 to C2
> 
 
 Hmmm... why you would like to start a different context ?
 I assumed you wanted just to put you application in a
>>> 
>>> 
>>> directory other than
>>> 
 \webapps\cocoon... am I wrong ?
>>> 
>>> 
>>> 
>>> You are entirely correct. That is exactly what I have in mind. I should
>>> say that all static html (normally in public_html in user's
>>> subdirectories, as is common under Unix) are still served directly by
>>> the Apache webserver. Nothing of that is going through cocoon. Under
>>> cocoon1, one uses tomcat where files with the extension .xml where
>>> served by tomcat and ultimately by cocoon1. I was under the impression
>>> that things with cocoon2 were done in a similar way, but maybe
>>> everything should be served by cocoon2 first (including these html
>>> files) and the sitemap would than start the appropriate pipelines? (That
>>> would explain the word sitemap). So, cocoon2 would control the complete
>>> website (both static and dynamic files). Is the Apache webserver in fact
>>> still required to run on the server?
>>> 
>> 
>> 
>> No, you could dispense with Apache and run everything on Tomcat, 
>> though it
>> seems an overkill to me (and less stable, too).
>> 
>> Talking about C2, there is no need to start another Cocoon 
>> context, far
>> from it... you should just tell Cocoon to find your files where they are.
>> The mechanism to do that is to modify the sitemap (the one I've named
>> "general sitemap" in my previous message) in order to mount the 
>> sub-sitemap
>> correctly.
>> 
>> The odd thihg about this is that you may find your site only by 
>> referring
>> to an URI with "cocoon" in it, like <...>\cocoon\cru\index.xml.
>> 
>> Next step is to tell Apache to redirect everything from "cru" to
>> "coocon\cru" (provided, of course, "cru" is the name of you application);
>> I've used the rewrite engine of Apache, adding the following to 
>> httpd.conf:
>> 
>> RewriteEngine On
>> RewriteLog "C:/apps/apache/logs/rewrite.log"
>> RewriteLogLevel 0
>> RewriteRule cru/(.*) /cocoon/cru/$1 [PT]
>> 
>> It works, but it took me half a day to figure it out the whole 
>> process :(
> 
> 
> 
> 
> So, apparently it is not possible to have something like 
> mydomain.com/Foo/foo, and one must always use something like 
> mydomain.com/cocoon/Foo/foo, if I understood you correctly. That is too 
> bad, since it was certainly possible with cocoon1. There must (should) 
> be a way around it.
> 
> 
> Andre
> 
>> 
>> Best regards,
>>  
>> -
>>Luca Morandini
>>GIS Consultant
>> [EMAIL PROTECTED]
>>   +39 0744 59  85  1 Office
>>   +39 0335 681 02 12 Mobile
>> http://utenti.tripod.it/lmorandini/index.html
>> -
>> 
>> 
>> 
>> 
>> -
>> Please check that your question has not already been answered in the
>> FAQ before posting. 
>> 
>> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>> For additional commands, e-mail: <[EMAIL PROTECTED]>


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

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




Generating PDF on the fly

2001-07-12 Thread Carlos

I'm trying to generate PDF documents on the fly using docbook (4.1.2) and
Norman Walsh's stylesheets. It will not generate the PDF document, only
display the text. What is the correct way of doing it? Is there a trick I'm
not using?

Carlos

 P  |Carlos Araya
 _  |WebCT Administrator/Trainer
 G  |California Virtual Campus, Region 1
 C/O De Anza College
10650 Bubb Road
Cupertino, CA 95014

mail:   [EMAIL PROTECTED]
web:http://www.cvc1.org (work)
http://www.silverwolf-net.net (personal)
PGP Fingerprint:E629 5DFD 7EAE 4995 E9D7  3D2F 5A9F 0CE7 DFE7 1756

LIFE: You can't control the length, but you can control the depth and width
-- From Randall Schwartz

Paradoxically, a refusal to 'put monetary value in life' means that life is
often undervalued -- Artifical intelligence, A Modern Approach

Between the ages of twenty and forty we are engaged in the process of
discovering who we are, which involves learning the difference between
accidental limitations which it is our duty to outgrow and the necessary
limitations of our nature beyond which we cannot trespass with
impunity.--W. H. Auden

-
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: [C2] using XInclude Transformer

2001-07-12 Thread Berin Loritsch

Jeremy Quinn wrote:
> 
> Sorry about the four copies of my previous email.
> 
> At 1:58 PM -0400 11/7/01, Berin Loritsch wrote:
> >Jeremy Quinn wrote:
> >> I am struggling to use the XInclude Transformer in Cocoon 2.
> >
> >There are two issues with it (I just got done fixing it).
> >
> >1) You need to include an xml:base="context://"  This tells the
> >   Xinclude processor where the root is.  P.S.  The newly checked
> >   in version will update the namespace to "http://www.w3.org/2001/XInclude";.
> 
> Something like this?
> 
> 

Exactly.  Oh, the spec says that "xml" is the default parse type. 
Therefore
you could shorten it to:




I typically mark my "xml:base" attribute at the same time I mark my
namespace
declaration, like this:

http://www.w3.org/2001/XInclude";
xml:base="context://linkbase/">

  




The actual prefix for the namespace does not matter--it will still
work.  On an
interesting note, the current XInclude spec uses the "xi" prefix which
is much
shorter.
 S/MIME Cryptographic Signature


unicode problem with Xerces/Cocoon

2001-07-12 Thread Anthony E.

>3. Unzip xerces.jar, edit 
   
>java/src/org/apache/xml/serialize/HTMLEntities.res
>  and zip it back into xerces.jar


I tried this, but it still doesn't solve the problem
of  keeping the unicode value in the cocoon output.

'mdash' is not recognized by Netscape. so i have to
keep it as 151;

i tried "#151 151" in HTMLEntities.res, but it simply
comments the rest of the line out after '#'.
(i also tried "\#151 151", but that put the literal
'\' in, resulting with "&\#151;")

if i can only get that '\' out! please help!!










> Bettina Linssen wrote:

> So the problem seems to be, that Cocoon transforms
the
> UNICODE-encoding (eg –) into the
HTML-4-encoding (–), but
> Netscape 4.75 just doesn't know what to do with that
(different to IE5
> or Netscape 6).
> 
> Is there any way to tell Cocoon NOT to transform
these encodings ??

Yes, of course, it's an open-source project !

It's not Cocoon job, but Xerces.

You can :

1. Ask on a Xerces Mailing list how to solve this.

2. Get Xerces source, edit 
   
java/src/org/apache/xml/serialize/HTMLEntities.res
   and rebuild xerces.

3. Unzip xerces.jar, edit 
   
java/src/org/apache/xml/serialize/HTMLEntities.res
   and zip it back into xerces.jar

-- 
Sébastien Koechlin - IVision - [EMAIL PROTECTED]



=
--
Anthony E.
AP Web Design

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.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: [c2] Selectors and Matchers vs components in sitemaps

2001-07-12 Thread HALLOWELL,KARL (HP-Cupertino,ex1)

My apologies. This was meant to be a Cocoon 2 question.


Karl Hallowell [EMAIL PROTECTED]


> -Original Message-
> From: HALLOWELL,KARL (HP-Cupertino,ex1) [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 11, 2001 3:26 PM
> To: [EMAIL PROTECTED]
> Subject: Selectors and Matchers vs components in sitemaps
> 
> 
> I noticed that the packages org.apache.cocoon.selection and
> org.apache.cocoon.matching contain a number of "code 
> factories" (writes a
> StringBuffer of java code) while none of the other packages 
> (in cocoon) do.
> Does this mean that if I write a selector or matcher that I 
> actually should
> write a CodeFactory object? Didn't spot anything about this 
> subject on the
> mailing lists. Thank you.
> 
> 
> 
> Karl Hallowell [EMAIL PROTECTED]
> 
>  
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

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

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




preserving unicode character reference in cocoon's output?

2001-07-12 Thread Anthony E.

I need to preserve the unicode special character
reference in cocoon's output.

ie - my xml files has the unicode representation for
"emdash" as '& # 1 5 1 ;'

the outputed sourced replaces the unicode with the
"emddash" character (a long hyphen)...

How do I preserve the original unicode character
reference in my output? (leaving "emdash" as & # 1 5 1
;)

Thanks,

=
--
Anthony E.
AP Web Design

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.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]>




reg form validation ..xform

2001-07-12 Thread java guru

HI.,
   Anyone using form validation successfully?..The
examples are working fine, but i needed extensive
validation and error reporting to user incase of form
error..anyone wants to share examples in this area...

And also any ideas on generating nice html forms from
xml like xform or something like that for cocoon?


Thanks in advance..



Do You Yahoo!?
For regular News updates go to http://in.news.yahoo.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: AW: Re: [C2] Using XSP inside XSL

2001-07-12 Thread C. Gaffga

That's realy nice, but I have still the Problem that the stylesheet
depends on the request parameters, but they are not available!
Is it a bug, not the way it should work or my mistake?

I did the following (from my sitemap):

   


   
   



   

using the latest cocoon2 from the CVS.

The request parameter should be processed in stylesheet.xsp

If somebody know about that, please let me know.
Please help me, Carsten!!

Christoph Gaffga


- Original Message -
From: "Carsten Ziegeler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 12, 2001 4:05 PM
Subject: AW: [C2] Using XSP inside XSL


> Hi,
>
> with the beta2 of cocoon2 which will be available in some weeks,
> this should be possible by using the new cocoon: protocol:
>
> You can refer to the stylesheet with the following line:
>   
>
> The cocoon: protocol loads a pipeline from the sitemap.
>
> (You could also test this right now with the current cvs
> version of cocoon2)
>
>
> Carsten
>
> Open Source GroupsunShine - b:Integrated
> 
> Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
> www.sundn.de  mailto: [EMAIL PROTECTED]
> 
>
> > -Ursprüngliche Nachricht-
> > Von: C. Gaffga [mailto:[EMAIL PROTECTED]]
> > Gesendet: Donnerstag, 12. Juli 2001 15:20
> > An: [EMAIL PROTECTED]
> > Betreff: Re: [C2] Using XSP inside XSL
> >
> >
> > Oh, I forgot to say that it is very importent for us
> > to use the same request (inc. Parameters, etc...)
> > in the stylesheet generating XSP, that is not possible
> > with the solution below.
> >
> > Christoph Gaffga
> >
> >
> > - Original Message -
> > From: "C. Gaffga" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, July 12, 2001 1:50 PM
> > Subject: [C2] Using XSP inside XSL
> >
> >
> > > Why can't I use dynamicly generated Stylesheets in Cocoon 2.
> > > I tryed with the following configuration (sitemap):
> > >
> > > 
> > >   
> > >   
> > > 
> > >
> > > 
> > >   
> > >   
> > >   
> > > 
> > >
> > > But I got a File not Found exception.
> > >
> > > Will this be fixed? Will this feature (using pipelines) be integrated
in
> > > a future Version of C2?
> > >
> > > When I use a URL with transform:
> > >   http://myserver:8080/myapp/test.xsl"/>
> > > it works, of course, but this, I think, will bring
> > > a lack of performence.
> > >
> > > Christoph Gaffga
> > >
> > >
> > > -
> > > Please check that your question has not already been answered in the
> > > FAQ before posting. 
> > >
> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > > For additional commands, e-mail: <[EMAIL PROTECTED]>
> > >
> >
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. 
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> >
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


-
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: hi

2001-07-12 Thread Minakshi k

Please mention "cocoon" in subject instead of personal subject like "hi"

>From: "raghu" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED] 
>To: <[EMAIL PROTECTED]>
>Subject: hi 
>Date: Thu, 12 Jul 2001 18:46:31 +0530 
> 
>Hi, 
>I have Tomcat 3.2.2 , jetspeed 1.3a1, apache 1.3.11 and mod_jk.so as a link between tomcat and apache. 
> I have installed cocoon 1.8.2, . I am able to see the Adding context /cocoon line when starting tomcat. 
>But when i go to http://localhost:8080/cocoon/Cocoon.xml, i get the following error. 
>What may be the error? Is it because of conflicting jar files? Do i need to have turbine-pool.jar file? 
>Is it conflicting with jetspeed Turbine resource properties? 
>i have renamed xml and parser to zxml and zparser. 
>Please help. 
> PUBLISHING ENGINE COULD NOT BE INITIALISED 
>java.lang.RuntimeException: Error creating org.apache.cocoon.processor.xsp.XSPProcessor: make sure the needed classes can be found in the classpath (org/apache/turbine/services/resources/TurbineResourceService) 
> at org.apache.cocoon.framework.Manager.create(Manager.java:122) 
> at org.apache.cocoon.framework.Router.init(Router.java:80) 
> at org.apache.cocoon.framework.Manager.create(Manager.java:109) 
> at org.apache.cocoon.Engine.(Engine.java:179) 
> at org.apache.cocoon.Engine.getInstance(Engine.java:232) 
> at org.apache.cocoon.Cocoon.init(Cocoon.java:157) 
> at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) 
> at org.apache.tomcat.core.Handler.init(Handler.java:215) 
> at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) 
> at org.apache.tomcat.core.Handler.service(Handler.java:254) 
> 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:213) 
> at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) 
> at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) 
> at java.lang.Thread.run(Thread.java:484) 
> 
> 
> Warning: this page has been dynamically generated. 
> 
>Copyright (c) 1999-2001 The Apache XML Project. 
>All rights reserved. 
> 
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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: C1 to C2

2001-07-12 Thread Andre Juffer



Luca Morandini wrote:

>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Andre
>> Juffer
>> Sent: giovedì 12 luglio 2001 15.11
>> To: [EMAIL PROTECTED]
>> Subject: Re: C1 to C2
>> 
>> 
>> Luca Morandini wrote:
>> 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
>>> 
>> Behalf Of Andre
>> 
 Juffer
 Sent: giovedì 12 luglio 2001 13.35
 To: [EMAIL PROTECTED]
 Subject: Re: C1 to C2
 
>>> 
>>> Hmmm... why you would like to start a different context ?
>>> I assumed you wanted just to put you application in a
>> 
>> directory other than
>> 
>>> \webapps\cocoon... am I wrong ?
>> 
>> 
>> You are entirely correct. That is exactly what I have in mind. I should
>> say that all static html (normally in public_html in user's
>> subdirectories, as is common under Unix) are still served directly by
>> the Apache webserver. Nothing of that is going through cocoon. Under
>> cocoon1, one uses tomcat where files with the extension .xml where
>> served by tomcat and ultimately by cocoon1. I was under the impression
>> that things with cocoon2 were done in a similar way, but maybe
>> everything should be served by cocoon2 first (including these html
>> files) and the sitemap would than start the appropriate pipelines? (That
>> would explain the word sitemap). So, cocoon2 would control the complete
>> website (both static and dynamic files). Is the Apache webserver in fact
>> still required to run on the server?
>> 
> 
> 
>   No, you could dispense with Apache and run everything on Tomcat, though it
> seems an overkill to me (and less stable, too).
> 
>   Talking about C2, there is no need to start another Cocoon context, far
> from it... you should just tell Cocoon to find your files where they are.
>   The mechanism to do that is to modify the sitemap (the one I've named
> "general sitemap" in my previous message) in order to mount the sub-sitemap
> correctly.
> 
>   The odd thihg about this is that you may find your site only by referring
> to an URI with "cocoon" in it, like <...>\cocoon\cru\index.xml.
> 
>   Next step is to tell Apache to redirect everything from "cru" to
> "coocon\cru" (provided, of course, "cru" is the name of you application);
> I've used the rewrite engine of Apache, adding the following to httpd.conf:
> 
> RewriteEngine On
> RewriteLog "C:/apps/apache/logs/rewrite.log"
> RewriteLogLevel 0
> RewriteRule cru/(.*) /cocoon/cru/$1 [PT]
> 
>   It works, but it took me half a day to figure it out the whole process :(



So, apparently it is not possible to have something like 
mydomain.com/Foo/foo, and one must always use something like 
mydomain.com/cocoon/Foo/foo, if I understood you correctly. That is too 
bad, since it was certainly possible with cocoon1. There must (should) 
be a way around it.


Andre

> 
> Best regards,
>  
> -
>Luca Morandini
>GIS Consultant
> [EMAIL PROTECTED]
>   +39 0744 59  85  1 Office
>   +39 0335 681 02 12 Mobile
> http://utenti.tripod.it/lmorandini/index.html
> -
> 
> 
> 
> 
> -
> 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]>


-- 
Andre H. Juffer  | Phone: +358-8-553 1683
The Biocenter and| Fax: +358-8-553-1141
 the Dep. of Biochemistry | Email: [EMAIL PROTECTED]
University of Oulu, Finland  | WWW: http://www.biochem.oulu.fi/research.html


-
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: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-12 Thread JEULIN Olivier

RPM of C1.8.2-2  + tomcat 3.2.1 + apache 1.3.12-25 on redhat 7.?

> -Message d'origine-
> Tell me Olivier, what platform are you using?
> 
> Paolo.

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




c2 packaging...

2001-07-12 Thread java guru

Hi Guys.,
 First of all, I ask for big pardon for posting this
question here...

But., I am working on a product using cocoon2 and need
to create install package with tomcat, cocoon2 and my
application. I am looking for opensource/free
installtion wizards for this purpose..I had look at
the openoffice installation package but not sure how
to handle it

Any suggestions are highly appreciated..
Thanks ang great day


Do You Yahoo!?
For regular News updates go to http://in.news.yahoo.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: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-12 Thread Dongilli Paolo

Tell me Olivier, what platform are you using?

Paolo.

-
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: C2 -- Actions and how do they work??

2001-07-12 Thread Christian Haul

On 12.Jul.2001 -- 11:14 AM, Sheshadri Mantha wrote:
> Hello All:
> I'm new to Cocoon2 and want to learn the steps involved in using actions
> instead of embedding java logic in xsp pages.  I've read the documentation
> page on action and admit that I fail to understand the constructs behind the
> HelloWorldAction and what it accomplishes (and hence am not able to
> "extrapolate").  I get the next section that talks about the action sets and
> have a vague idea on how they get called etc.  So... I get some of the
> high-level stuff and what I'd like is a working example that I can disect.
> Perhaps an Action oriented solution to the "problem in embedding java logic
> in xsp" (as outlined in actions.html documentation page -- this is the first
> code sample on this page).

OK, have a look at the samples supplied with C2. The employee sample
uses actions as does the session-state example in the CVS
version. Both illustrate different usage patterns so get the CVS
version and look at the examples.

Action sets are a way to reference a couple of actions together. Which
ones get executed is determined by a request parameter named
"cocoon-action".

> On my understanding, I'd like to present a step-by-step addition to the
> Actions documentation.

Great!

> Also, from my understanding of the documentation, the SQLTransformer class
> takes a SQL Statement and "constructs" an XML from the result set... is this
> true?

Yes.

> My ultimate goal is to tie the Actions in with my classes that implement
> business logic, db extraction, updates and inserts.

That's what they're for.

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. 

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




ComponentException: UnnamedSelector

2001-07-12 Thread Dinkar Ganti


Hi,

I wrote a simple class called SimpleTest and mapped an action called
"simple" in the sitemap.

The exception that I am getting is:
org.apache.avalon.framework.component.ComponentException: UnnamedSelector:
ComponentSelector could not find the component for hint: simple
at
org.apache.avalon.excalibur.component.DefaultComponentSelector.select(Defaul
tComponentSelector.java:177)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:3838)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1344)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:175)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:94)
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:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

I modified web.xml to include the absolute path of the web.xml.
I am attaching the cocoon.log, web.xml and sitemap.xmap. I would appreciate
any help or pointers for information.

Thanks,

Dinkar

 sitemap.xmap





http://java.sun.com/j2ee/dtds/web-app_2.2.dtd";>


  Cocoon2 Demo
  Demo application for Cocoon2
  
Cocoon2
Cocoon2
The main Cocoon2 servlet


org.apache.cocoon.servlet.ParanoidCocoonServlet



  configurations
  /cocoon.xconf




  log-level
  DEBUG





  


  allow-reload
  yes

  



  load-class
  

com.ibm.servlet.classloader.Handler


org.hsqldb.jdbcDriver
  

  

  

  


  extra-classpath
  ;c:\dinkar\cocoon_test


  

  
Cocoon2
/
  




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

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


[C2] Where/How to store site-wide configuration parameters?

2001-07-12 Thread amatos

Hi,

I'm creating a web site in Cocoon 2, using XSP, SVGs and XSLT. I have
several configuration "parameters" that I would like to store in a separate
file for global tuning the site (Things like background colors, widths,
database connections URLs, ..). I would like to use the configuration variables 
in the XSP files, XSLT stylesheets and if possible, even in some XML files for 
my site.

I was first thinking in using a separate XSLT stylesheet, only with top 
xsl:params, and import it as needed. But of course I couldn't use it for the 
XSPs (at least, not directly). I could also use java property files, but for
accessing them in XSLT files I would need to use XSLT extensions, also not 
likely. As for XML files, maybe there could some simple pre-processor that I 
could use in the pipeline, only for doing simple substitutions. This could be
feasible also for the XSLTs and XSPs files.

Any sugestions, or any Cocoon 2 support for this ?

Thanks,

Artur Matos ([EMAIL PROTECTED])



-
Everyone should have http://www.freedom2surf.net/

-
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: XSP Problem - UnsupportedEncodingException

2001-07-12 Thread JEULIN Olivier

Hello,
this a bit OT... And the message from the compiler is quite explicit
In java, you must declare all exception in the prototype of the function; in
this case, 
you should enclose your code in a try/catch bloc

> -Message d'origine-
> Hello,
> 
> i have following Problem with xsp:logic and getBytes
> 
> my code is:
> --
> 
>  xmlns:xsp="http://apache.org/xsp";
> xmlns:xsp-request="http://apache.org/xsp/request/2.0";>
> 
>
>  
>   String saveAs = request.getParameter("saveAs");
>   String name_enc = new String(saveAs.getBytes("8859_1"));
>   System.out.println (name_enc);
> 
>  
> 
>  
>  
>
> 
> 
> --
> 
> when i enter an encoding String in getBytes(), i will get 
> following
> error with cocoon:
> Exception java.io.UnsupportedEncodingException must be 
> caught, or it must be
> declared in the throws clause of this method.
> 
> how can i get the german characters, because the characters, which are
> printed with System.out.println, are not the same i entered 
> as parameter.
> 
> 
>   Georg Schmitt

-
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: XSP Problem - UnsupportedEncodingException

2001-07-12 Thread Torsten Curdt

Your POST data should come as the correct encoding!
Have a look at the  tags in your HTML.
It should say ISO-8859-1!

Then you don't have to do any conversions...

(BTW: Have a look into the Java2 API docu.
  I think getBytes() throws a UnsupportedEncodingException)

Hope that helps
--
Torsten

> -Original Message-
> From: Georg Schmitt [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 12, 2001 4:35 PM
> To: [EMAIL PROTECTED]
> Subject: XSP Problem - UnsupportedEncodingException 
> 
> 
> Hello,
> 
> i have following Problem with xsp:logic and getBytes
> 
> my code is:
> --
> 
>  xmlns:xsp="http://apache.org/xsp";
> xmlns:xsp-request="http://apache.org/xsp/request/2.0";>
> 
>
>  
>   String saveAs = request.getParameter("saveAs");
>   String name_enc = new String(saveAs.getBytes("8859_1"));
>   System.out.println (name_enc);
> 
>  
> 
>  
>  
>
> 
> 
> --
> 
> when i enter an encoding String in getBytes(), i will get following
> error with cocoon:
> Exception java.io.UnsupportedEncodingException must be caught, or it must be
> declared in the throws clause of this method.
> 
> how can i get the german characters, because the characters, which are
> printed with System.out.println, are not the same i entered as parameter.


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




C2 -- Actions and how do they work??

2001-07-12 Thread Sheshadri Mantha

Hello All:
I'm new to Cocoon2 and want to learn the steps involved in using actions
instead of embedding java logic in xsp pages.  I've read the documentation
page on action and admit that I fail to understand the constructs behind the
HelloWorldAction and what it accomplishes (and hence am not able to
"extrapolate").  I get the next section that talks about the action sets and
have a vague idea on how they get called etc.  So... I get some of the
high-level stuff and what I'd like is a working example that I can disect.
Perhaps an Action oriented solution to the "problem in embedding java logic
in xsp" (as outlined in actions.html documentation page -- this is the first
code sample on this page).

On my understanding, I'd like to present a step-by-step addition to the
Actions documentation.

Also, from my understanding of the documentation, the SQLTransformer class
takes a SQL Statement and "constructs" an XML from the result set... is this
true?

My ultimate goal is to tie the Actions in with my classes that implement
business logic, db extraction, updates and inserts.

Thank you in advance for your patient reply.

Kind regards,
Sheshadri

Sheshadri Manthaemail: [EMAIL PROTECTED]
LifeConnect, Inc.   web site: http://www.lifeconnect.com
Telephone: 609.730.9180 Fax: 609.730.9663


-
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: C2 and postgres

2001-07-12 Thread Christian Haul

On 12.Jul.2001 -- 03:49 PM, Eric ... wrote:
(sorry, can't quote HTML)

Could you please state what problems occur?

xsp:ns has an extra "www." in it. Remove it and try again.

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

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. 

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




XSP Problem - UnsupportedEncodingException

2001-07-12 Thread Georg Schmitt

Hello,

i have following Problem with xsp:logic and getBytes

my code is:
--

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

   
 
  String saveAs = request.getParameter("saveAs");
  String name_enc = new String(saveAs.getBytes("8859_1"));
  System.out.println (name_enc);

 

 
 
   


--

when i enter an encoding String in getBytes(), i will get following
error with cocoon:
Exception java.io.UnsupportedEncodingException must be caught, or it must be
declared in the throws clause of this method.

how can i get the german characters, because the characters, which are
printed with System.out.println, are not the same i entered as parameter.


  Georg Schmitt


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

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




Re: How to set session attribute correctly

2001-07-12 Thread Zeljko Rajic

I should add that I can't try out this on my own as I simply do not get
Cocoon 2 to work with ServletExec 3.1 AS !! :(   I tried out C2 b1 and also
the current CVS version, but gave up after some depressing hours !!

Did anybody manage to run Cocoon 2 with ServletExec 3.1??  Would appreciate
any help!!

Regards,
Zeljko



> Hi Cocoon users,

> I'm wondering how to set a session attribute correctly using the
>  tag.

> For example I create an instance of an own object:

> 
>MyObject theInstance = new MyObject();
> 


> Later in the XSP document I'd like to add this instance to the session using
> the  tag. Now I'm not sure what's the correct way
> to do so as there are several possibilites:

> theInstance

> or:

> name="MyAttribute">theInstance

> And then, how to I correctly set a string value? Like this:

> Some text 
>!!

> or is this the correct way:

> Some text
> !!


> And by the way, is this kind of expression allowed:

> 
>
>   if ( "object".equals()
>   {
>  theInstance
>   }
>   else
>   {
>   Some Text !!
>   }
>
> 


> Any kind of comments are welcome !!

> -  Zeljko


> PS: Yes I know, I could simply use the 'session.setAttribute(...)' method, but
> I'd like to use the  tag.


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

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


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

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




Re: [C2] using XInclude Transformer

2001-07-12 Thread Jeremy Quinn

Sorry about the four copies of my previous email.


At 1:58 PM -0400 11/7/01, Berin Loritsch wrote:
>Jeremy Quinn wrote:
>> I am struggling to use the XInclude Transformer in Cocoon 2.
>
>There are two issues with it (I just got done fixing it).
>
>1) You need to include an xml:base="context://"  This tells the
>   Xinclude processor where the root is.  P.S.  The newly checked
>   in version will update the namespace to "http://www.w3.org/2001/XInclude";.

Something like this?




>2) There is an error in the construct: new URL(baseURL, relative);  This
>   seems to be an error in Sun's JVM.  The URLFactory component has also
>   been updated to fix this problem when we have the "file" protocol.
>
>Please allow me a few minutes to update CVS, then you can get the working
>version there.

Thanks for your help.

regards Jeremy
-- 
   ___

   Jeremy Quinn   Karma Divers
   webSpace Design
HyperMedia Research Centre

   


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




AW: [C2] Using XSP inside XSL

2001-07-12 Thread Carsten Ziegeler

Hi,

with the beta2 of cocoon2 which will be available in some weeks,
this should be possible by using the new cocoon: protocol:

You can refer to the stylesheet with the following line:
  

The cocoon: protocol loads a pipeline from the sitemap.

(You could also test this right now with the current cvs
version of cocoon2)


Carsten

Open Source GroupsunShine - b:Integrated

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


> -Ursprüngliche Nachricht-
> Von: C. Gaffga [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 12. Juli 2001 15:20
> An: [EMAIL PROTECTED]
> Betreff: Re: [C2] Using XSP inside XSL
>
>
> Oh, I forgot to say that it is very importent for us
> to use the same request (inc. Parameters, etc...)
> in the stylesheet generating XSP, that is not possible
> with the solution below.
>
> Christoph Gaffga
>
>
> - Original Message -
> From: "C. Gaffga" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, July 12, 2001 1:50 PM
> Subject: [C2] Using XSP inside XSL
>
>
> > Why can't I use dynamicly generated Stylesheets in Cocoon 2.
> > I tryed with the following configuration (sitemap):
> >
> > 
> >   
> >   
> > 
> >
> > 
> >   
> >   
> >   
> > 
> >
> > But I got a File not Found exception.
> >
> > Will this be fixed? Will this feature (using pipelines) be integrated in
> > a future Version of C2?
> >
> > When I use a URL with transform:
> >   http://myserver:8080/myapp/test.xsl"/>
> > it works, of course, but this, I think, will bring
> > a lack of performence.
> >
> > Christoph Gaffga
> >
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. 
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> >
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


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

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




RE: C1 to C2

2001-07-12 Thread Luca Morandini

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Andre
> Juffer
> Sent: giovedì 12 luglio 2001 15.11
> To: [EMAIL PROTECTED]
> Subject: Re: C1 to C2
>
>
> Luca Morandini wrote:
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Andre
> > > Juffer
> > > Sent: giovedì 12 luglio 2001 13.35
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: C1 to C2
> > >
> >
> > Hmmm... why you would like to start a different context ?
> > I assumed you wanted just to put you application in a
> directory other than
> > \webapps\cocoon... am I wrong ?
>
>
> You are entirely correct. That is exactly what I have in mind. I should
> say that all static html (normally in public_html in user's
> subdirectories, as is common under Unix) are still served directly by
> the Apache webserver. Nothing of that is going through cocoon. Under
> cocoon1, one uses tomcat where files with the extension .xml where
> served by tomcat and ultimately by cocoon1. I was under the impression
> that things with cocoon2 were done in a similar way, but maybe
> everything should be served by cocoon2 first (including these html
> files) and the sitemap would than start the appropriate pipelines? (That
> would explain the word sitemap). So, cocoon2 would control the complete
> website (both static and dynamic files). Is the Apache webserver in fact
> still required to run on the server?
>

No, you could dispense with Apache and run everything on Tomcat, though it
seems an overkill to me (and less stable, too).

Talking about C2, there is no need to start another Cocoon context, far
from it... you should just tell Cocoon to find your files where they are.
The mechanism to do that is to modify the sitemap (the one I've named
"general sitemap" in my previous message) in order to mount the sub-sitemap
correctly.

The odd thihg about this is that you may find your site only by referring
to an URI with "cocoon" in it, like <...>\cocoon\cru\index.xml.

Next step is to tell Apache to redirect everything from "cru" to
"coocon\cru" (provided, of course, "cru" is the name of you application);
I've used the rewrite engine of Apache, adding the following to httpd.conf:

RewriteEngine On
RewriteLog "C:/apps/apache/logs/rewrite.log"
RewriteLogLevel 0
RewriteRule cru/(.*) /cocoon/cru/$1 [PT]

It works, but it took me half a day to figure it out the whole process :(

Best regards,
 
-
   Luca Morandini
   GIS Consultant
    [EMAIL PROTECTED]
  +39 0744 59  85  1 Office
  +39 0335 681 02 12 Mobile
http://utenti.tripod.it/lmorandini/index.html
-




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




C2 and postgres

2001-07-12 Thread Eric ...
My previous message "C2 and postgres" was wrongly expressedI reformulate it here:I succeeded in configuring Cocoon1 to use Postgresql but I do not succeed in doing so with Cocoon2.Here are two xsp files.They both aim at connecting to my postgres database, named "dtw".The first one used to work perfectly well with Cocoon1.The second one does not work with Cocoon2.
The only differences between both files is that:1- the second one does not have the "" statement2- I wrote xmlns:xsp="http://apache.org/xsp" instead of xmlns:xsp="http://www.apache.org/1999/XSP/Core"
Could you please tell me what's wrong in this second file, or do I have to modify other files (cocoon.xconf ...).Thanks. Eric Vernichon
Here is the the first xsp file: -


  xmlns:xsp="http://www.apache.org/1999/XSP/Core"  xmlns:esql="http://apache.org/cocoon/SQL/v2">


 org.postgresql.Driver jdbc:postgresql://localhost:5432/dtw postgres 
      SELECT enduser_id, enduser_lastname, enduser_firstname FROM enduser;             



  
-
Here is the second xsp file which fails under Cocoon2 :
    xmlns:xsp="http://apache.org/xsp"  xmlns:esql="http://apache.org/cocoon/SQL/v2">

 org.postgresql.Driver jdbc:postgresql://localhost:5432/dtw postgres 
      SELECT enduser_id, enduser_lastname, enduser_firstname FROM enduser;             



 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-12 Thread JEULIN Olivier

> > This is weird, because the java file and the counter change, 
> > so the request
> > *is* processed by cocoon and it should reflect the text 
> > change (my version
> > works fine on this part: java file modified, class recompiled).
> 
> On my system it's the same: java file gets modified and the class is
> recompiled. Both have the same date/time.
> 
> -rw-r--r--1 www-data www-data10479 Jul 12 14:11 
> _clean_page.class
> -rw-r--r--1 www-data www-data22772 Jul 12 14:11 
> _clean_page.java

looks OK

> > Try to delete _clean-page.* from your repository *without* 
> > restarting cocoon
> > and reload the page.
> 
> Done! WITHOUT restarting Cocoon, _clean-page.* are recreated: 
> I reloaded the
> page and the old clean-page.xml is showed with the counter 
> going on from
> where I left it last time!

!!!
I dunno... this shouldn't happen (AFAIK)
I had this kind of trouble before setting the repository to an absulute
path, but then the .class/java weren't created at all.
If you reload cocoon, without deleting _clean-page.*, what happens to these
files, and what is the result ?

> What the heck is happening? :(
> 
> Paolo.
bad karma ? ;)
Olivier

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




hi

2001-07-12 Thread raghu



Hi,
I have Tomcat 3.2.2 , jetspeed 
1.3a1, apache 1.3.11 and mod_jk.so as a link between tomcat and 
apache.
 I have installed cocoon 
1.8.2, .  I am able to see the Adding context /cocoon line when starting 
tomcat.
But when i go to http://localhost:8080/cocoon/Cocoon.xml, 
i get the following error.  
What may be the error?  Is 
it because of conflicting jar files? Do i need to have turbine-pool.jar 
file?  
Is it conflicting with jetspeed 
Turbine resource properties?
i have renamed xml and parser to 
zxml and zparser.
Please help.
    
                
    PUBLISHING ENGINE COULD NOT BE INITIALISED


  
  

  java.lang.RuntimeException: Error creating org.apache.cocoon.processor.xsp.XSPProcessor: make sure the needed classes can be found in the classpath (org/apache/turbine/services/resources/TurbineResourceService)
	at org.apache.cocoon.framework.Manager.create(Manager.java:122)
	at org.apache.cocoon.framework.Router.init(Router.java:80)
	at org.apache.cocoon.framework.Manager.create(Manager.java:109)
	at org.apache.cocoon.Engine.(Engine.java:179)
	at org.apache.cocoon.Engine.getInstance(Engine.java:232)
	at org.apache.cocoon.Cocoon.init(Cocoon.java:157)
	at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
	at org.apache.tomcat.core.Handler.init(Handler.java:215)
	at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
	at org.apache.tomcat.core.Handler.service(Handler.java:254)
	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:213)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:484)

  
Warning: this page has 
  been dynamically generated. 
Copyright (c) 1999-2001 The Apache XML Project.All rights 
reserved. 


Re: [C2] Using XSP inside XSL

2001-07-12 Thread C. Gaffga

Oh, I forgot to say that it is very importent for us
to use the same request (inc. Parameters, etc...)
in the stylesheet generating XSP, that is not possible
with the solution below.

Christoph Gaffga


- Original Message - 
From: "C. Gaffga" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 12, 2001 1:50 PM
Subject: [C2] Using XSP inside XSL


> Why can't I use dynamicly generated Stylesheets in Cocoon 2.
> I tryed with the following configuration (sitemap):
> 
> 
>   
>   
> 
> 
> 
>   
>   
>   
> 
> 
> But I got a File not Found exception.
> 
> Will this be fixed? Will this feature (using pipelines) be integrated in
> a future Version of C2?
> 
> When I use a URL with transform:
>   http://myserver:8080/myapp/test.xsl"/>
> it works, of course, but this, I think, will bring
> a lack of performence.
> 
> Christoph Gaffga
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 


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

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




RE: How to set session attribute correctly

2001-07-12 Thread JEULIN Olivier

I strongly encourage you to try all your ideas and to look at the generated
java file...
It's the best way to see what really happens.
Anyway, here are my personal feelings (I work with C1)... But I'm not a
cocoon guru yet :) (the code will tell you the all truth!)


> -Message d'origine-
> De : Zeljko Rajic [mailto:[EMAIL PROTECTED]]
> Envoyé : jeudi 12 juillet 2001 13:56
> À : [EMAIL PROTECTED]
> Objet : How to set session attribute correctly
> 
> 
> Hi Cocoon users,
> 
> I'm wondering how to set a session attribute correctly using the
>  tag.
> 
> For example I create an instance of an own object:
> 
> 
>MyObject theInstance = new MyObject();
> 
> 
> 
> Later in the XSP document I'd like to add this instance to 
> the session using
> the  tag. Now I'm not sure what's 
> the correct way
> to do so as there are several possibilites:
> 
>  name="MyAttribute">theInstance

creates a text node containing "theInstance", not what you want

> or:
> 
>  name="MyAttribute">theInstance on:set-attribute>

good

> And then, how to I correctly set a string value? Like this:
> 
> Some text 
> !!
> 
> or is this the correct way:
> 
> Some text
> !!

session variables contain Object... look at the code to see what really
happens

> And by the way, is this kind of expression allowed:
> 
> 
>
>   if ( "object".equals( name="MyParam"/>)
>   {
>  theInstance
>   }
>   else
>   {
>   Some Text !!
>   }
>
> 

yes, it should work, but I don't see why you put theInstance inside
xsp:expr...
Everything in xsp:logic is treated as code, except when you use xsp:content

> Any kind of comments are welcome !!
> 
> -  Zeljko
> 
> 
> PS: Yes I know, I could simply use the 
> 'session.setAttribute(...)' method, but
> I'd like to use the  tag.

good idea, I do it myself :)
Olivier

-
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: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-12 Thread Dongilli Paolo

> This is weird, because the java file and the counter change, 
> so the request
> *is* processed by cocoon and it should reflect the text 
> change (my version
> works fine on this part: java file modified, class recompiled).

On my system it's the same: java file gets modified and the class is
recompiled. Both have the same date/time.

-rw-r--r--1 www-data www-data10479 Jul 12 14:11 _clean_page.class
-rw-r--r--1 www-data www-data22772 Jul 12 14:11 _clean_page.java

> 
> Try to delete _clean-page.* from your repository *without* 
> restarting cocoon
> and reload the page.

Done! WITHOUT restarting Cocoon, _clean-page.* are recreated: I reloaded the
page and the old clean-page.xml is showed with the counter going on from
where I left it last time!

What the heck is happening? :(

Paolo.




> 
> The problem is that cocoon runs the wrong version of the 
> compiled class, but
> if the java file reflects the text change, normally cocoon 
> also recompiles
> this class...
> Check the dates: the .class should always be older than the .java
> 
> > (...)
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

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

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




RE: C1 to C2

2001-07-12 Thread Luca Morandini

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Andre
> Juffer
> Sent: giovedì 12 luglio 2001 13.35
> To: [EMAIL PROTECTED]
> Subject: Re: C1 to C2
>

> Let me see if I understand you correctly. The GENERAL sitemap is the
> sitemap located in the cocoon subdirectory (webapps/cocoon) <..> ?

Yes, I added "general" to be sure you didn't mistake it with sub-sitemap.

> The idea of a sub-sitemap below is clear to me. Still, the request
> localhost/Foo/foo goes through the Apache webserver, which passes it on
> to Tomcat. But Tomcat will try to read webapps/Foo and not
> webapps/cocoon, because the configuration of Tomcat was set up like
> that.  Should I possibly include in the configuration file of tomcat
> something like
>
> ---
>
> Alias /Foo /usr/local/jakarta-tomcat-3.2.1/webapps/cocoon
>
>
> so that /Foo would correspond to /cocoon as well? In combination with
> the sub-sitemap as you suggested, the correct pipeline would start.
>
> Is the above correct?


Hmmm... why you would like to start a different context ?
I assumed you wanted just to put you application in a directory other than
\webapps\cocoon... am I wrong ?

Best regards,
 
-
   Luca Morandini
   GIS Consultant
    [EMAIL PROTECTED]
  +39 0744 59  85  1 Office
  +39 0335 681 02 12 Mobile
http://utenti.tripod.it/lmorandini/index.html
-



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

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




How to set session attribute correctly

2001-07-12 Thread Zeljko Rajic

Hi Cocoon users,

I'm wondering how to set a session attribute correctly using the
 tag.

For example I create an instance of an own object:


   MyObject theInstance = new MyObject();



Later in the XSP document I'd like to add this instance to the session using
the  tag. Now I'm not sure what's the correct way
to do so as there are several possibilites:

theInstance

or:

theInstance

And then, how to I correctly set a string value? Like this:

Some text !!

or is this the correct way:

Some text
!!


And by the way, is this kind of expression allowed:


   
  if ( "object".equals()
  {
 theInstance
  }
  else
  {
  Some Text !!
  }
   



Any kind of comments are welcome !!

-  Zeljko


PS: Yes I know, I could simply use the 'session.setAttribute(...)' method, but
I'd like to use the  tag.


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




[C2] Using XSP inside XSL

2001-07-12 Thread C. Gaffga

Why can't I use dynamicly generated Stylesheets in Cocoon 2.
I tryed with the following configuration (sitemap):


  
  



  
  
  


But I got a File not Found exception.

Will this be fixed? Will this feature (using pipelines) be integrated in
a future Version of C2?

When I use a URL with transform:
  http://myserver:8080/myapp/test.xsl"/>
it works, of course, but this, I think, will bring
a lack of performence.

Christoph Gaffga


-
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: C1 to C2

2001-07-12 Thread Andre Juffer

Hi Luca,

thank you for your response.

Let me see if I understand you correctly. The GENERAL sitemap is the
sitemap located in the cocoon subdirectory (webapps/cocoon), or are you
referring to another sitemap?

The idea of a sub-sitemap below is clear to me. Still, the request
localhost/Foo/foo goes through the Apache webserver, which passes it on
to Tomcat. But Tomcat will try to read webapps/Foo and not
webapps/cocoon, because the configuration of Tomcat was set up like
that.  Should I possibly include in the configuration file of tomcat
something like

--- 

Alias /Foo /usr/local/jakarta-tomcat-3.2.1/webapps/cocoon

---

so that /Foo would correspond to /cocoon as well? In combination with
the sub-sitemap as you suggested, the correct pipeline would start.

Is the above correct?


Thanks you again,
Andre.



Luca Morandini wrote:
> 
> Andre,
> 
> have you modifed the general sitemap to tell Cocoon you're not under the
> cocoon  context ?
> 
> For instance, when I wanted a sub-sitemap of mine to be relocated to the
> c:\cru directory, I modified the general sitemap as follows:
> 
> 
> 
>  check-reload="yes"
> reload-method="synchron"/>
> 
> 
> 
> I hope this helps...
> 
> -
>Luca Morandini
>GIS Consultant
> [EMAIL PROTECTED]
>   +39 0744 59  85  1 Office
>   +39 0335 681 02 12 Mobile
> http://utenti.tripod.it/lmorandini/index.html
> -
> 
> > -Original Message-
> > From: Andre Juffer [mailto:[EMAIL PROTECTED]]
> > Sent: mercoledì 11 luglio 2001 21.19
> > To: [EMAIL PROTECTED]
> > Subject: C1 to C2
> >
> >
> > Hi,
> >
> > just recently I have posted a question about having cocoon2 recognizing
> > my own context under tomcat/webapp. This may be a tomcat problem, still
> > I had cocoon1.8.2, together with the apache web server and tomcat,
> > working just fine with my own context. Obviously, I would like to be
> > able to do the same with cocoon2, but I could not get it going.
> >
> > I have removed everything that had something to do with cocoon1 and got
> > cocoon2 installed. No problem, I could read cocoon/welcome and try some
> > of the examples. I did not make any modifications in the existing
> > configuration files. So, I continued and made a very simple sitemap in
> > webapps/cocoon that simply transforms foo.xml into some html. Worked
> > without problem in webapps/cocoon, but, after transferring the relevant
> > files to webapps/Foo and restarting tomcat and apache, I got error
> > messages. If I request localhost/Foo, the content of my context is
> > displayed, but it fails to start the pipeline associated with the
> > transformation (localhost/Foo/foo). I get the following error:
> >
> > 
> > type resource-not-found
> >
> > message Resource not found
> >
> > description The requested URI "/Foo/foo" was not found.
> >
> > sender org.apache.cocoon.servlet.CocoonServlet
> >
> > source Cocoon servlet
> >
> > request-uri
> >
> > /Foo/foo
> >
> > path-info
> >
> > foo
> >
> > 
> >
> > foo is the pattern that should start the pipeline. This works perfectly
> > all right when carried out in the cocoon context
> > (http://localhost/cocoon/foo). So, it must be a context setup problem.
> >
> > It seems that tomcat properly sees my context:
> >
> > 
> >
> > 2001-07-11 07:50:34 - ContextManager: Adding context Ctx( /Foo )
> >
> > 
> >
> > Is there anything special that I may need to do so that
> > tomcat/apache/cocoon2 work nicely together?
> >
> > This is the content of a configuation file that is included into the
> > apache httpd.conf file (the same I have used before with cocoon1):
> >
> > 
> >
> > LoadModule jserv_module libexec/mod_jserv.so
> > ApJServManual on
> > ApJServDefaultProtocol ajpv12
> > ApJServSecretKey DISABLED
> > ApJServMountCopy on
> > ApJServLogLevel notice
> >
> > ApJServDefaultHost localhost
> > ApJServDefaultPort 8007
> >
> > AddType test/jsp .jsp
> > AddHandler jserv-servlet .jsp
> > AddType text/xml .xml
> > AddHandler jserv-servlet .xml
> >
> > Alias /cocoon /usr/local/jakarta-tomcat-3.2.1/webapps/cocoon
> > 
> >  Options Indexes FollowSymLinks
> > 
> > ApJServMount /cocoon /cocoon
> > 
> >  AllowOverride None
> >  deny from all
> > 
> >
> > Alias /Foo /usr/local/jakarta-tomcat-3.2.1/webapps/Foo
> > 
> >  Options Indexes FollowSymLinks
> > 
> > ApJServMount /Foo /Foo
> > 
> >  AllowOverride None
> >  deny from all
> > 
> >
> > 
> >
> >
> > Thank you for any suggestion you may have to resolve this matter,
> >
> > --
> > Andre H. Juffer  | Phone: +358-8-553 1683
> > The Biocenter and| Fax: +358-8-553-1141
> >  the Dep. of Biochemistry | Email: [EMAIL PROTECTED]
> > University of Oulu, Finland  | 

RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-12 Thread JEULIN Olivier

This is weird, because the java file and the counter change, so the request
*is* processed by cocoon and it should reflect the text change (my version
works fine on this part: java file modified, class recompiled).

Try to delete _clean-page.* from your repository *without* restarting cocoon
and reload the page.

The problem is that cocoon runs the wrong version of the compiled class, but
if the java file reflects the text change, normally cocoon also recompiles
this class...
Check the dates: the .class should always be older than the .java

> (...)

-
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: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-12 Thread Dongilli Paolo

> Does the java file take your modification into account ?

Yes, it does.

> What happens when you reload the xml file just after the 
> modification? Does
> the counter change ?

Yes, it goes on, but I don't see the modifications in the text.

> If it's immediate, the page is in cache somewhere: try to use 
> netscape with
> memory & disk cache size=0.
> 

OK. I set both memory & disk cache size = 0, I restarted the browser, I
reloaded the document "clean-page.xml" and the counter continues from the
number where I left it.

I think Cocoon cached it ...

Paolo.

> 
> > -Message d'origine-
> > De : Dongilli Paolo [mailto:[EMAIL PROTECTED]]
> > Envoyé : jeudi 12 juillet 2001 09:33
> > À : '[EMAIL PROTECTED]'
> > Objet : RE: XSP with Cocoon 1.8.1 - Cache Problem?
> > 
> > Could you help me please with the further checks?
> > 
> > After restarting Cocoon and changing "clean-page.xml" I see 
> > the modification
> > "FOO ...".
> > Now, if I change it again without restarting Cocoon, I see 
> > always the old
> > version of "clean-page.xml".
> > 
> > Thanks a lot,
> > Paolo.
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

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

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




RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-12 Thread JEULIN Olivier

Does the java file take your modification into account ?
What happens when you reload the xml file just after the modification? Does
the counter change ?
If it's immediate, the page is in cache somewhere: try to use netscape with
memory & disk cache size=0.


> -Message d'origine-
> De : Dongilli Paolo [mailto:[EMAIL PROTECTED]]
> Envoyé : jeudi 12 juillet 2001 09:33
> À : '[EMAIL PROTECTED]'
> Objet : RE: XSP with Cocoon 1.8.1 - Cache Problem?
> 
> Could you help me please with the further checks?
> 
> After restarting Cocoon and changing "clean-page.xml" I see 
> the modification
> "FOO ...".
> Now, if I change it again without restarting Cocoon, I see 
> always the old
> version of "clean-page.xml".
> 
> Thanks a lot,
> Paolo.

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




Direct Cocoon Interfacing

2001-07-12 Thread Gerold Kathan

Hi out there.
system: redhat7.1|jdk1.3|tomcat3.2.2|cocoon1.8.2

question:
* i am developing an application which handles virtual representations of
physical displays. It is planned that each virtual display is kept in memory
as a DOM object.
* now my first and most import question =>is it possible to use cocoon in a
way that it is interfaced directly in my server-environment as a kind of
rendering engine for my virtual screen objects.
  - in more detail:
* can i invoke cocoon without "requesting it via a client browser" but
directly from within my application
* i want to produce html from the screen objects within the server
application and send the results (html) from cocoon process to my physical
detached display-clients

* as i have read the cocoon specification i can see that the default
producer gets input from a file (file-producer)
  - this might be cool if you have your .xml files on a filesystem
  - but in my case i do not have any .xml files but i have already
DOM-objects in memory
  => so i see 2 possibilities:
 (1) the uncool: serialize the DOM objects to temporarly .xml files
and invoce cocoon with file-producer
 (2) the cool: write a producer which gets a DOM-object as input
  => OTHER question: when i already have a DOM object => do i need a
producer at all ???

  => can anybody give me a hint in the right direction ?

* or should i specify my problem in more detail ?

many thanks in advance,
greetings from vienna,

kaktus.


-
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: [C1] Generating a HTML frameset using XML/XSLT

2001-07-12 Thread Adrian Geissel

Thanks - it was the SAX parser error message that was throwing me - I had
copied the HTML and made that fatal assumption that it was valid (XML)

Cheers
Adrian

- Original Message -
From: Benoît Chauvet <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 11, 2001 6:00 PM
Subject: Re: [C1] Generating a HTML frameset using XML/XSLT


> I think the error message is clear enough...
> The SAX parser waits for an "=" character after the attribute "FRAME"...
>
> Maybe it doesn't allow the '-' character you use...
>
> Try  instead...
>
> --
> Benoît Chauvet
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>



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

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




RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-12 Thread Dongilli Paolo

Could you help me please with the further checks?

After restarting Cocoon and changing "clean-page.xml" I see the modification
"FOO ...".
Now, if I change it again without restarting Cocoon, I see always the old
version of "clean-page.xml".

Thanks a lot,
Paolo.

> -Original Message-
> From: JEULIN Olivier [mailto:[EMAIL PROTECTED]]
> Sent: Mittwoch, 11. Juli 2001 15:49
> To: '[EMAIL PROTECTED]'
> Subject: RE: XSP with Cocoon 1.8.1 - Cache Problem?
> 
> 
> > > 2) load this page in your browser. (At this point, the page 
> > > prints 'FOO  Hi,
> > > I'm your ...' in my browser)
> > 
> > OK.
> 
> Do you see 'FOO ...' in your browser ? If not, what is the 
> *complete* path
> to the _clean-page.java file and the *complete* path to your 
> clean-page.xml
> file ? They should look like the same at the end (with '_' for java)
> 
> > 
> > > 3) take a look in your repository and check the 
> > > '_clean-page.java' to see if
> > > its date of modification is the current time and date. If so 
> > > search in it
> > > for the string 'FOO'. You should find it, if the page is recreated
> > > correctly.
> > 
> > OK. _clean-page.java created and it contains the modicication "FOO".
> > 
> > > And let's see what happens (please copy what you put in 
> > > cocoon.properties
> > > for the repository path)
> > 
> > processor.xsp.repository = /usr/share/java/repository
> > 
> > Waiting for further steps.
> > 
> > Thanks,
> > Paolo.
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

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

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