RE: [C2] SOAP - Scanned for virus

2001-07-19 Thread Michael Homeijer

Hi,

If you mean the stuff I sent to the mailing list: it ended up in the cvs bij
mistake.
They were just meant as an example to show what could be done with soap.

In my opinion, an implementation of soap in C2 should not just be a
logicsheet,
but an extra channel in the interface with cocoon (both serving soap
requests and performing soap requests on
other servers). This way it should be easier to implement xml based services
in a cocoon application instead of only xml based publishing.

I think Giacomo has some great ideas on the subject. You can also check my
previous posts on the subject.

Greetings,
Michael Homeijer

-Original Message-
From: Berin Loritsch [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 13 juli 2001 21:50
To: [EMAIL PROTECTED]
Subject: Re: [C2] SOAP - Scanned for virus


Drasko Kokic wrote:
> 
> Berin,
> 
> Who is the "maintainer" of the SOAP addition to C2.1 ?
> Is it possible to extract SOAP part out of the C2.1
> and try to make it working on C2.0? I need to
> implement it rather soon and could just about wait for
> C2.0 to be released (C2.1 would probably be far too
> late).

I'm not sure.  Cocoon 2.1 is simply the same as Cocoon 2.0
with some extra stuff.  Try just pulling 2.1 from CVS, and
extract what you need.

> 
> TIA
> Drasko
> 
> --- Berin Loritsch <[EMAIL PROTECTED]> wrote:
> > Drasko Kokic wrote:
> > >
> > > Uli,
> > >
> > > have you thought about redesigning the SOAP taglib
> > > (logicsheet?) so that it is portable to C2?
> > > I would need to have it running fairly soon and am
> > > ready to put in some eforts :-)
> > > With regards to the auth taglib, I would still
> > suggest
> > > that you look into the RequestIntercepter
> > > implementation of the "Context Based Security"
> > spec.
> > > It is 100% portable (between C1 and C2 of course
> > :-)
> >
> > I believe the CVS for Cocoon 2.1 has SOAP support
> > using
> > the Axis jar.  You may want to verify  It was
> > included
> > in Cocoon 2.1 due to its newness and it not being
> > tested
> > yet.
> >
> > As to the "Context Based Security" spec, do you have
> > a URL?  I am interested in looking at it.
> >
> > >
> > > Drasko
> > >
> > > --- Uli Mayring <[EMAIL PROTECTED]> wrote:
> > > > On Wed, 11 Jul 2001, Berin Loritsch wrote:
> > > >
> > > > > I think you may already be used to not
> > > > > getting the output stream in Cocoon 1.
> > > >
> > > > In Cocoon1 it is actually possible to get the
> > > > OutputStream, I'm using that
> > > > in my soap taglib. My auth taglib makes heavy
> > use of
> > > > redirects (such as
> > > > redirecting you to the login page, if you try to
> > > > access a protected page
> > > > and have not authenticated). So these two
> > taglibs,
> > > > which I use a lot in my
> > > > Cocoon1 apps, are not portable to Cocoon2.
> > > >
> > > > Back when XSP taglibs first appeared, it was
> > said
> > > > that their advantage is
> > > > that implementations can change, the interface
> > > > remains the same. Of course
> > > > now that XSP itself works differently, this
> > > > advantage is gone.
> > > >
> > > > It's always a trade-off between backwards
> > > > compatibility and new features.
> > > > I'm sorry to hear that the XSP model was not
> > deemed
> > > > fit to last across
> > > > different versions of Cocoon - I wonder if it
> > will
> > > > change again for
> > > > Cocoon3. Perhaps the answer lies elsewhere:
> > > > implement XSP as an Avalon
> > > > block, add some parts of Tomcat, Xerces and
> > Xalan as
> > > > blocks and I won't
> > > > need Cocoon anymore to build web applications.
> > > > That's the beauty of
> > > > OpenSource, that these things are possible.
> > > >
> > > > > The objects you seek are all in the Map
> > > > objectModel passed in to your pages.
> > > > > for XSP, the Request, Context, and Response
> > > > objects are stored as class
> > > > > variables.  Through them, you can get your
> > Session
> > > > and Cookie objects as usual.
> > > > > other than sendRedirect and getting a
> > reference to
> > > > the output stream, nothing
> > > > > should be hidden from you.
> > > >
> > > > Ok, thanks for the info,
> > > >
> > > > Ulrich
> > > >
> > > > --
> > > > Ulrich Mayring
> > > > DENIC eG, Softwareentwicklung
> 
> > ATTACHMENT part 2 application/x-pkcs7-signature
> name=smime.p7s
> 
> __
> 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]>

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

To unsubscribe,

Re: [C2] SOAP - Scanned for virus

2001-07-19 Thread Ulrich Mayring

Michael Homeijer wrote:
> 
> In my opinion, an implementation of soap in C2 should not just be a
> logicsheet,
> but an extra channel in the interface with cocoon (both serving soap
> requests and performing soap requests on
> other servers). This way it should be easier to implement xml based services
> in a cocoon application instead of only xml based publishing.

I agree. The philosophy of Cocoon2 is different tools for different
purposes. The SOAP functionality would have to be spread over Actions,
XSP and Serializers, so that is too unelegant. My SOAP taglib for
Cocoon1 is implemented in XSP alone, because XSP in Cocoon1 can do more,
but it is also very unelegant. So the best thing is probably to write a
new tool altogether.

Ulrich

-- 
Ulrich Mayring
DENIC eG, Systementwicklung

-
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: util:get-file-contents with Cocoon2.1-dev

2001-07-19 Thread Arnaud Bienvenu

On Wed, Jul 18, 2001 at 10:40:22AM -0700, Davanum Srinivas wrote:
> Try the latest Code from CVS.
> - Made the encoding attribute optional.

Thanks for replying so fast, this works fine !

> - Fixed relative path problem. (if you specify just "data.txt" it will look under 
>cocoon directory
> for it).

This still doesn't work; when I specify "data.txt", I see the exception :
java.io.FileNotFoundException:
file:/usr/local/soft/jakarta-tomcat-3.2.2/webapps/cocoon (No such file or
directory)

Actually, looking at XSPUtil.relativeFilename(), I see line 102 :
return NetUtils.getPath(context.getResource(filename).toExternalForm());

The getPath() method returns a path, not a filename, so I wonder how it could
work. Moreover, the context.getResource() method calls
javax.servlet.ServletContext.getResource() which needs to have a path begin
with "/" as an argument, according to
http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletContext.html#getResource(java.lang.String)

To say the truth, I would have expected that  could
include a file relatively to the location of the XSP file, and not the cocoon
path. I don't know if it is possible, but it would be great.

> Note that the IOException is thrown by design. The LogicSheet should not "hide" this 
>exception.

Well, in other including utilities you can find in util.xsl (i.e.
util:include-file), all exceptions are catched, so why not for
util:get-file-contents ?

Thank you for your attention.

P.S: Do you think this thread should migrate to cocoon-devel ?
-- 
Arnaud Bienvenu
http://www.generasound.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: It's about Cocoon 2.1-dev

2001-07-19 Thread Arnaud Bienvenu

Hi,

I think the samples you are looking for are in webapp/docs/samples. You can
see them in action at http://localhost:8080/cocoon

-- 
Arnaud Bienvenu
http://www.generasound.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]>




[C2] What parameters are available to the sitemap?

2001-07-19 Thread Ugo Cei

The subject line pretty much says it all. I know that from the sitemap 
you can access parts of the URI that match wildcards ({1}, {2}, etc.) 
and also any parameter that has been put there by actions.

Are there any other parameters available, e.g.:

- original URI
- query string
- query string parameters
- server name
- remote user?


TIA,

Ugo

-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - 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]>




C2 : XML -> XSP -> HTML

2001-07-19 Thread Udo . Kretschmer



In C1 one can perfectly seperate content (in XML), logic (in XSP) and style (as
XSL).

I have used this for creating dynamic forms and executing database queries
whereas
the form description and the db-query were located in the XML file.
For each different database query / form an appropriate XML file was created.

Logic and style were located in XSL documents and were developed once.

The XML was piped to the first XSL which creating a XSP page,which perfomed the
query and the results were piped to the XSL for formatting the output.

To do the same thing in C2, we need to use a XML filegenerator and a XSP
transformer, which obviously does not exists in the moment.

Does anyone know, if it's planned to create a XSP transformer ?
Or is there simply another way in C2 ? All hints are appreciated.

Cheers

Udo




-
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] What parameters are available to the sitemap?

2001-07-19 Thread Marcus Crafter

On Thu, 19 Jul 2001, Ugo Cei wrote:

> Are there any other parameters available, e.g.:
> 
> - original URI
> - query string
> - query string parameters

These 3 are available via the RequestParamAction at the moment.

> - server name
> - remote user?

I'm going to be updating the RequestParamAction soon, and can add these
values if you like ?

Cheers,

Marcus
-- 
.
 ,,$,  Marcus Crafter
;$'  ':Computer Systems Engineer
$: :   Open Software Associates GmbH
 $   o_)$$$:   82-84 Mainzer Landstrasse
 ;$,_/\ &&:'   60327 Frankfurt Germany
   ' /( &&&
   \_' Email : [EMAIL PROTECTED]
  .Business Hours : +49 69 9757 200
&&&:


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




Doubt in aplying stylesheet using Cocoon's xslt processor.

2001-07-19 Thread Hema Rajan


Hi there!

We have to match an element which is in 4 or 5 th level from the current
level.  Is there anyway to find out this element without giving the
absolute/relative path in the xsl?

For example, our XML file is as follows:

















In our stylesheet we have the following template:















The above template works fine only if the  element is directly below
the  tag.  It will not work if the  element is 2 or 3
levels below the  tag.  We tried replacing the
"" line with
"".  Even this did not work.  Any
suggestions?  

regards,
Hema.






-Original Message-
From: Martin Frost [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 6:03 PM
To: Hema Rajan
Subject: Re: Learning WML & WMLScript - reader question


Hema Rajan wrote:

> The converted WML file does not pass the value of the input
> elements to the next page.  The  tag should dynamically
> get the value from the  elements.  But this does not happen
> and it always takes the initial value of the input element.
> How can this problem be solved?

You have a problem with your stylesheet, in the lines that say:






The  tag specification is incorrect. Doing it like that
will cause the XSL processor to insert the original value into
the WML file, and the WML browser will never see that it is supposed
to be anything other than the original value. (Look at the generated
WML: the value attribute has an empty string as its value.)

This line should actually read:



The XSL processor will expand this to, for example:



and the WAP browser will then expand $foo at submit time.

Regards,

Martin




-
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] SOAP - Scanned for virus

2001-07-19 Thread Giacomo Pati

Quoting Michael Homeijer <[EMAIL PROTECTED]>:

> Hi,
> 
> If you mean the stuff I sent to the mailing list: it ended up in the cvs
> bij
> mistake.
> They were just meant as an example to show what could be done with soap.
> 
> In my opinion, an implementation of soap in C2 should not just be a
> logicsheet,
> but an extra channel in the interface with cocoon (both serving soap
> requests and performing soap requests on
> other servers). This way it should be easier to implement xml based
> services
> in a cocoon application instead of only xml based publishing.
> 
> I think Giacomo has some great ideas on the subject. You can also check
> my
> previous posts on the subject.

We had to write a C2 app that is able to serve SOAP clients as well as browsers 
so the approach we've take is that we've put the application logic into beans 
that are XML'izable themselfs (I've mentioned our toolkit to produce the beans 
in another mail earlier). The way we do it is that we have ConnectorActions that 
sits on top of the different URIs to accept the requests. So we ended up with a 
SOAPConnectorAction and a HttpConnectorAction. The responsability they have is 
simply build a bean that represents the request either out of the SOAP message 
of from the GET/POST. This bean is simply used as a Command that is processed by 
other components/Actions before the final response bean is created. This 
response bean is depending on the requesting client xml'ized down the pipeline  
by a BeanSOAPGenerator (very simple) for the SOAP client or processed in an XSP 
page to present the content together with aggregated stuff (header, navbar, 
footer, etc.) for the browser clients.

Giacomo

> 
> Greetings,
> Michael Homeijer
> 
> -Original Message-
> From: Berin Loritsch [mailto:[EMAIL PROTECTED]]
> Sent: vrijdag 13 juli 2001 21:50
> To: [EMAIL PROTECTED]
> Subject: Re: [C2] SOAP - Scanned for virus
> 
> 
> Drasko Kokic wrote:
> > 
> > Berin,
> > 
> > Who is the "maintainer" of the SOAP addition to C2.1 ?
> > Is it possible to extract SOAP part out of the C2.1
> > and try to make it working on C2.0? I need to
> > implement it rather soon and could just about wait for
> > C2.0 to be released (C2.1 would probably be far too
> > late).
> 
> I'm not sure.  Cocoon 2.1 is simply the same as Cocoon 2.0
> with some extra stuff.  Try just pulling 2.1 from CVS, and
> extract what you need.
> 
> > 
> > TIA
> > Drasko
> > 
> > --- Berin Loritsch <[EMAIL PROTECTED]> wrote:
> > > Drasko Kokic wrote:
> > > >
> > > > Uli,
> > > >
> > > > have you thought about redesigning the SOAP taglib
> > > > (logicsheet?) so that it is portable to C2?
> > > > I would need to have it running fairly soon and am
> > > > ready to put in some eforts :-)
> > > > With regards to the auth taglib, I would still
> > > suggest
> > > > that you look into the RequestIntercepter
> > > > implementation of the "Context Based Security"
> > > spec.
> > > > It is 100% portable (between C1 and C2 of course
> > > :-)
> > >
> > > I believe the CVS for Cocoon 2.1 has SOAP support
> > > using
> > > the Axis jar.  You may want to verify  It was
> > > included
> > > in Cocoon 2.1 due to its newness and it not being
> > > tested
> > > yet.
> > >
> > > As to the "Context Based Security" spec, do you have
> > > a URL?  I am interested in looking at it.
> > >
> > > >
> > > > Drasko
> > > >
> > > > --- Uli Mayring <[EMAIL PROTECTED]> wrote:
> > > > > On Wed, 11 Jul 2001, Berin Loritsch wrote:
> > > > >
> > > > > > I think you may already be used to not
> > > > > > getting the output stream in Cocoon 1.
> > > > >
> > > > > In Cocoon1 it is actually possible to get the
> > > > > OutputStream, I'm using that
> > > > > in my soap taglib. My auth taglib makes heavy
> > > use of
> > > > > redirects (such as
> > > > > redirecting you to the login page, if you try to
> > > > > access a protected page
> > > > > and have not authenticated). So these two
> > > taglibs,
> > > > > which I use a lot in my
> > > > > Cocoon1 apps, are not portable to Cocoon2.
> > > > >
> > > > > Back when XSP taglibs first appeared, it was
> > > said
> > > > > that their advantage is
> > > > > that implementations can change, the interface
> > > > > remains the same. Of course
> > > > > now that XSP itself works differently, this
> > > > > advantage is gone.
> > > > >
> > > > > It's always a trade-off between backwards
> > > > > compatibility and new features.
> > > > > I'm sorry to hear that the XSP model was not
> > > deemed
> > > > > fit to last across
> > > > > different versions of Cocoon - I wonder if it
> > > will
> > > > > change again for
> > > > > Cocoon3. Perhaps the answer lies elsewhere:
> > > > > implement XSP as an Avalon
> > > > > block, add some parts of Tomcat, Xerces and
> > > Xalan as
> > > > > blocks and I won't
> > > > > need Cocoon anymore to build web applications.
> > > > > That's the beauty of
> > > > > OpenSource, that these things are possible.
> > > > >
> > > > > > The objects you se

RE: Doubt in aplying stylesheet using Cocoon's xslt processor.

2001-07-19 Thread JEULIN Olivier

Use 

You may find http://www.dpawson.co.uk/xsl/sect2/sect21.html usefull for this
king of questions
Olivier

> -Message d'origine-
> De : Hema Rajan [mailto:[EMAIL PROTECTED]]
> Envoyé : jeudi 19 juillet 2001 11:52
> À : [EMAIL PROTECTED]
> Objet : Doubt in aplying stylesheet using Cocoon's xslt processor.
> 
> 
> 
> Hi there!
> 
> We have to match an element which is in 4 or 5 th level from 
> the current
> level.  Is there anyway to find out this element without giving the
> absolute/relative path in the xsl?
> 
> For example, our XML file is as follows:
> 
> 
>   
>   
>   
>   
>   
>   
> 
>   
>   
>   
>   
>   
>   
> 
> 
> In our stylesheet we have the following template:
> 
> 
>   
>   
>   
>   
>   
>   
>name="{@item}"
> value="$({@item})"/>
>   
>   
>   
>   
> 
> 
> The above template works fine only if the  element is 
> directly below
> the  tag.  It will not work if the  element is 2 or 3
> levels below the  tag.  We tried replacing the
> "" line with
> "".  Even this did not 
> work.  Any
> suggestions?  

-
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: Doubt in aplying stylesheet using Cocoon's xslt processor.

2001-07-19 Thread Sylvain Wallez



Hema Rajan a écrit :
> 
> Hi there!
> 
> We have to match an element which is in 4 or 5 th level from the current
> level.  Is there anyway to find out this element without giving the
> absolute/relative path in the xsl?
> 
> For example, our XML file is as follows:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> In our stylesheet we have the following template:
> 
> 
> 
> 
> 
> 
> 
> 
>  value="$({@item})"/>
> 
> 
> 
> 
> 
> 
> The above template works fine only if the  element is directly below
> the  tag.  It will not work if the  element is 2 or 3
> levels below the  tag.  We tried replacing the
> "" line with
> "".  Even this did not work.  Any
> suggestions?
> 
> regards,
> Hema.
> 

Just look at your XML file : it's not "input" but "cms:input" !
-- 
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.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] What parameters are available to the sitemap?

2001-07-19 Thread Ugo Cei

Marcus Crafter wrote:


>>- server name
>>- remote user?
>>
> 
>   I'm going to be updating the RequestParamAction soon, and can add these
>   values if you like ?


I would say that pretty much everything that is available via the request could be 
useful.


Ugo


-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - 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]>




[C2]cache and database

2001-07-19 Thread Orgalist

Hello

here's my problem :
I'm generating xml using the esql tags and a mysql database with file
liste.xsp and transforming it with liste.xsl : it allows me to display
the items of a list and ,using a form to send parameters to add-item.xsp,
add an item to this list.
the SELECT and INSERT work fine but when I come back from add-item.xsp
using a simple link , I need to refresh if i want to see
the newly added item.

If somebody has an idea so that the item is displayed without needing to
refresh, I would really appreciate

and one last question : can I use map:redirect-to to come back from
add-item.xsp
after the insert ? I've tried but the redirect is executed before the insert

thanks

C.


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




esql:query + esql:parameter bug

2001-07-19 Thread Arnaud Bienvenu

If I write, for example :

 select * from space where person like Alex
 ...
(I known I don't need the esql:parameter tags here, but see below...)

Then I get an error :
Error compiling index_xsp: Line 303, column 37: ')' expected.

Actually, the generated code is :
try {
  _esql_query.prepared_statement.setString(1,
 this.characters("Alex"););
}

which is obviously incorrect. The generated code gets more broken if you use
something like


I think this is a big problem, and if some developer manage to fix it, he
would be a real man (or woman)...

-- 
Arnaud Bienvenu
http://www.generasound.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]>




AW: esql:query + esql:parameter bug

2001-07-19 Thread Stefan Seifert

Try:

"Alex"

or



This should work.

Stefan

> -Ursprüngliche Nachricht-
> Von: Arnaud Bienvenu [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 19. Juli 2001 15:21
> An: [EMAIL PROTECTED]
> Betreff: esql:query + esql:parameter bug
> 
> 
> If I write, for example :
> 
>  select * from space where person like  type="string">Alex
>  ...
> (I known I don't need the esql:parameter tags here, but see below...)
> 
> Then I get an error :
> Error compiling index_xsp: Line 303, column 37: ')' expected.
> 
> Actually, the generated code is :
> try {
>   _esql_query.prepared_statement.setString(1,
>  this.characters("Alex"););
> }
> 
> which is obviously incorrect. The generated code gets more 
> broken if you use
> something like
> 
> 
> I think this is a big problem, and if some developer manage 
> to fix it, he
> would be a real man (or woman)...
> 
> -- 
> Arnaud Bienvenu
> http://www.generasound.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: esql:query + esql:parameter bug

2001-07-19 Thread JEULIN Olivier

Here is an example of what I did.
This works inside a "xsp:logic" tag... In your case, you may use xsp:logic
instead of xsp:expr

* using a variable (_ensemble) :

if ( != null) {
  [some code here]
...
  
select i.idtitle, t.xml
from _ensemble identifiant i, title t
where i.idtitle = t.idtitle _whichGroup + _like
  


* using a taglib: this is the same thing, because taglib elements are
expanded to *java code*
just replace _ensemble above with 

Olivier

> -Message d'origine-
> De : Arnaud Bienvenu [mailto:[EMAIL PROTECTED]]
> Envoyé : jeudi 19 juillet 2001 15:21
> À : [EMAIL PROTECTED]
> Objet : esql:query + esql:parameter bug
> 
> 
> If I write, for example :
> 
>  select * from space where person like  type="string">Alex
>  ...
> (I known I don't need the esql:parameter tags here, but see below...)
> 
> Then I get an error :
> Error compiling index_xsp: Line 303, column 37: ')' expected.
> 
> Actually, the generated code is :
> try {
>   _esql_query.prepared_statement.setString(1,
>  this.characters("Alex"););
> }
> 
> which is obviously incorrect. The generated code gets more 
> broken if you use
> something like
> 
> 
> I think this is a big problem, and if some developer manage 
> to fix it, he
> would be a real man (or woman)...
> 
> -- 
> Arnaud Bienvenu
> http://www.generasound.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]>
> 

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




getting Request data with C2

2001-07-19 Thread Eric Vernichon

I'm sending out XML data from a form, like this :

XML Data: 

I want to process this data into an xsp. I need to get this data.
In submitdata.xsp, I try :

String data = ;
data


But data isn't a string but XML code.

In Coccon2, it fails with an error message :
Type expected. this.contentHandler.startElement("", "xsp-request:get-
parameter", "xsp-request:get-parameter", ^ 

In my sitemap, there's a section like this :

  
  
  ;

data
xml"/>



I'm novice in XML.
Any help would be appreciate.

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




The order of battle

2001-07-19 Thread Marks local account

I have a pipeling that has the following pattern:







I though what happened her was that a file 'login_xsp.java' was
generated from 'login.xsp' which would fire SAX events that are then
transformed by 'login-page2html.xsl'.

But in tracking down a bug it looks more like the login.xsp page has the
login-page2html.xsl applied, and then it is compiled into a .java file.
I concluded this because the problem was that the root tag was not being
matched, and the java file only had a few tags in it. When I go the name
of the tag right in login-page2html.xsl then the resulting java file
produced had all the bits and pieces.

I'm confused.

Mark Miller
Web Architect
Logica


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




Debugging Transform

2001-07-19 Thread Marks local account

What is the best way to write a transform that could be inserted at any
point in the pipeline to produce a colorized output of the pipe at that
stage, ike the view source, only with dynamically generated tags?

So if I was trying to debug this:

  
  
  
  

  

I could do something like this:

  
  
  

  

  
  
  
  

  


  
  
  
  

  

Mark Miller
Web Architect
Logica




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




Servlet generator, help needed

2001-07-19 Thread Jean-Marc Borer

Hello guys,

I am new to Cocoon, but not to web application development and XML. We
are currently evaluating Cocoon to see if it fits out needs. We develop
web applications based on servlets. In a MVC (model view controller)
model, we expect to use servlets as controllers, Cocoon for the view and
we have our own database layer for the model. Our servlets are
responsible to produce the XML (from information extracted of the
database) and tranmit it to the Cocoon pipeline for the rendition.
However our static pages will be written in XML and processed by Cocoon
in the usual way.
What is the best way to implement this? Subclass the ServletGenerator
class and build our owns?

Thanks in advance for any help. Cheers,


Jean-Marc Borer
Solution center Engineer
InfoDesign Communications

-
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: Servlet generator, help needed

2001-07-19 Thread Giacomo Pati

Quoting Jean-Marc Borer <[EMAIL PROTECTED]>:

> Hello guys,
> 
> I am new to Cocoon, but not to web application development and XML. We
> are currently evaluating Cocoon to see if it fits out needs. We develop
> web applications based on servlets. In a MVC (model view controller)
> model, we expect to use servlets as controllers, Cocoon for the view and
> we have our own database layer for the model. Our servlets are
> responsible to produce the XML (from information extracted of the
> database) and tranmit it to the Cocoon pipeline for the rendition.
> However our static pages will be written in XML and processed by Cocoon
> in the usual way.
> What is the best way to implement this? Subclass the ServletGenerator
> class and build our owns?

No, Cocoon was not build to be used that way. Best is you rewrite your servlet 
as Actions and put it at the begining of your pipeline definitions in the 
sitemap.

Giacomo

> 
> Thanks in advance for any help. Cheers,
> 
> 
> Jean-Marc Borer
> Solution center Engineer
> InfoDesign Communications
> 
> -
> 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: esql:query + esql:parameter bug

2001-07-19 Thread Arnaud Bienvenu

On Thu, Jul 19, 2001 at 03:41:19PM +0200, Stefan Seifert wrote:
>  type="string">"Alex"

You are absolutely right, this works !

>  name="Alex"/>

Great, this works too, provided I declare the according namespace of course :
xmlns:xsp-request="http://apache.org/xsp/request/2.0"; (for Cocoon2.1-dev)

Actually, the "request" taglib I was using didn't exist anymore, and has
obviously been replaced by "xsp-request". I still wonder why I must use
 tags and not  like Olivier Jeulin suggested in
his reply ? (his solution concern another version of Cocoon I guess)

So it looks like there was no bug in the code, but there is one in the doc.
These URLs I learned from tell to use the "request" taglib :
http://xml.apache.org/cocoon2/logicsheet-request.html
http://xml.apache.org/cocoon2/logicsheet-concepts.html

Thank you very much for your help, it's really useful.

PS : I can get these docs up to date according to what have been said, if
some developper thinks it may be a good idea, just contact me...
-- 
Arnaud Bienvenu
http://www.generasound.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]>




is this a task for cocoon?

2001-07-19 Thread Gerhard Froehlich

Hi,
In my present job, I work on a project which stucks in
a crises.

Maybe the cocoon framework can help us to solve this problem.
I _don't_ to ask here for a complete solution and I _don't_ want 
to steal your ideas. 
Maybe I can get a little discussion to determine the limits and the 
possibilities of cocoon.

We shall develop a web based "office" plattform. At the beginning
the customer forced us to use a content management system for
developing, but this fails with the complexity of the whole project. 

Following background:
It schould be possible, that the user can write documents over
a web enabled interface, with links, pictures, like in word.
Maybe this job can be done by a Java Applet. The focus
for the user is content. Formating the document shall be
done in the background, because to keep the corporate design
consistent. The only formating the user can do, is a little bit
text formating (bold,italic,...). The document can exist in 
different language.

The document itself can be exported to different formats 
(PDF, rtf, ...), for exchanging the documents between different
standard programs and maybe to give it a copyshop for a 
nice print

Behind all there is a little publishing workflow.

The whole document creation shall be done in a private, secure part
of the web interface with a user/group management.

But beside the private part, there is a public one, in which the
documents can be displayed and be accessed by the everybody.

Because I developed a little bit for cocoon2, I think cocoon
is a framework, we can use here. My idea is to structure the 
documents in xml and do formating it with xsl. 
The webinterface for the application is quit static and a
little bit dynamic (lists, etc..). Maybe we can use here here too?

What is your opinion?

Cheers
Gerhard

-- 
Gerhard Fröhlich
[EMAIL PROTECTED]

"black holes are,
when GOD is dividing by zero" 

GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

GMX Tipp:

Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1!
http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a


-
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: The order of battle

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

> -Original Message-
> From: Marks local account [mailto:[EMAIL PROTECTED]]
> 
> I have a pipeling that has the following pattern:
> 
> 
> 
> 
> 
> 
> 
> I though what happened her was that a file 'login_xsp.java' was
> generated from 'login.xsp' which would fire SAX events that are then
> transformed by 'login-page2html.xsl'.
> 
> But in tracking down a bug it looks more like the login.xsp 
> page has the
> login-page2html.xsl applied, and then it is compiled into a 
> .java file.
> I concluded this because the problem was that the root tag 
> was not being
> matched, and the java file only had a few tags in it. When I 
> go the name
> of the tag right in login-page2html.xsl then the resulting java file
> produced had all the bits and pieces.

I don't follow your conclusion. This fits with the scenario that the
stylesheet inserts by default some html tags, and skips the XML which it
can't match. This is expected behavior, FAIK.


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




Re: Servlet generator, help needed

2001-07-19 Thread Sergio Carvalho

On Thu, 19 Jul 2001 17:21:52 +0200 (CEST), Giacomo Pati <[EMAIL PROTECTED]> wrote:
--
> Quoting Jean-Marc Borer <[EMAIL PROTECTED]>:
> 
> > Hello guys,
> > 
> > I am new to Cocoon, but not to web application development and XML. We
> > are currently evaluating Cocoon to see if it fits out needs. We develop
> > web applications based on servlets. In a MVC (model view controller)
> > model, we expect to use servlets as controllers, Cocoon for the view and
> > we have our own database layer for the model. Our servlets are
> > responsible to produce the XML (from information extracted of the
> > database) and tranmit it to the Cocoon pipeline for the rendition.
> > However our static pages will be written in XML and processed by Cocoon
> > in the usual way.
> > What is the best way to implement this? Subclass the ServletGenerator
> > class and build our owns?
> 
> No, Cocoon was not build to be used that way. Best is you rewrite your servlet 
> as Actions and put it at the begining of your pipeline definitions in the 
> sitemap.

Why not? Why can't the servlets be used as Generators, and feed cocoon like any
other generator? Cocoon can be used as a complete solution, but I see no valid reason
to avoid using (part of) it as a presentation layer. With aggregation and caching, 
it's probably the best software out there for the job.

I don't know if there is a Servlet Generator, but that's another totally 
different story.
> 
> Giacomo
> 
> > 
> > Thanks in advance for any help. Cheers,
> > 
> > 
> > Jean-Marc Borer
> > Solution center Engineer
> > InfoDesign Communications
> > 
> > -
> > 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]>
> 



--
Sergio Carvalho
---
[EMAIL PROTECTED]

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

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

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




Re: Servlet generator, help needed

2001-07-19 Thread Jean-Marc Borer



Sergio Carvalho wrote:
> 
> On Thu, 19 Jul 2001 17:21:52 +0200 (CEST), Giacomo Pati <[EMAIL PROTECTED]> wrote:
> --
> > Quoting Jean-Marc Borer <[EMAIL PROTECTED]>:
> >
> > > Hello guys,
> > >
> > > I am new to Cocoon, but not to web application development and XML. We
> > > are currently evaluating Cocoon to see if it fits out needs. We develop
> > > web applications based on servlets. In a MVC (model view controller)
> > > model, we expect to use servlets as controllers, Cocoon for the view and
> > > we have our own database layer for the model. Our servlets are
> > > responsible to produce the XML (from information extracted of the
> > > database) and tranmit it to the Cocoon pipeline for the rendition.
> > > However our static pages will be written in XML and processed by Cocoon
> > > in the usual way.
> > > What is the best way to implement this? Subclass the ServletGenerator
> > > class and build our owns?
> >
> > No, Cocoon was not build to be used that way. Best is you rewrite your servlet
> > as Actions and put it at the begining of your pipeline definitions in the
> > sitemap.
> 
> Why not? Why can't the servlets be used as Generators, and feed cocoon like any
> other generator? Cocoon can be used as a complete solution, but I see no valid reason
> to avoid using (part of) it as a presentation layer. With aggregation and caching,
> it's probably the best software out there for the job.

I absolutely agree. You not only benefit from caching, converting,
multiple output and sitemap, but you can also mix static (XML pages) and
dynamic content (application/servlet output) and maange their rendition
through Cocoon. That why I wanted to know if anyone ever tried to use
the Cocoon that way. 

> 
> I don't know if there is a Servlet Generator, but that's another totally
> different story.

In fact, yes there is a ServletGenerator class, but it is not documented
at all... Anyone tried to use it?

> >
> > Giacomo
> >
> > >
> > > Thanks in advance for any help. Cheers,
> > >
> > >
> > > Jean-Marc Borer
> > > Solution center Engineer
> > > InfoDesign Communications
> > >
> > > -
> > > 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]>
> >
> 
> --
> Sergio Carvalho
> ---
> [EMAIL PROTECTED]
> 
> If at first you don't succeed, skydiving is not for you
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> 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: Servlet generator, help needed

2001-07-19 Thread Davanum Srinivas

Sergio,

Just use the URLGenerator to read the XML stream via a URL and feed it to Cocoon2.

Thanks,
dims

--- Sergio Carvalho <[EMAIL PROTECTED]> wrote:
> On Thu, 19 Jul 2001 17:21:52 +0200 (CEST), Giacomo Pati <[EMAIL PROTECTED]> wrote:
> --
> > Quoting Jean-Marc Borer <[EMAIL PROTECTED]>:
> > 
> > > Hello guys,
> > > 
> > > I am new to Cocoon, but not to web application development and XML. We
> > > are currently evaluating Cocoon to see if it fits out needs. We develop
> > > web applications based on servlets. In a MVC (model view controller)
> > > model, we expect to use servlets as controllers, Cocoon for the view and
> > > we have our own database layer for the model. Our servlets are
> > > responsible to produce the XML (from information extracted of the
> > > database) and tranmit it to the Cocoon pipeline for the rendition.
> > > However our static pages will be written in XML and processed by Cocoon
> > > in the usual way.
> > > What is the best way to implement this? Subclass the ServletGenerator
> > > class and build our owns?
> > 
> > No, Cocoon was not build to be used that way. Best is you rewrite your servlet 
> > as Actions and put it at the begining of your pipeline definitions in the 
> > sitemap.
> 
> Why not? Why can't the servlets be used as Generators, and feed cocoon like any
> other generator? Cocoon can be used as a complete solution, but I see no valid reason
> to avoid using (part of) it as a presentation layer. With aggregation and caching, 
> it's probably the best software out there for the job.
> 
> I don't know if there is a Servlet Generator, but that's another totally 
> different story.
> > 
> > Giacomo
> > 
> > > 
> > > Thanks in advance for any help. Cheers,
> > > 
> > > 
> > > Jean-Marc Borer
> > > Solution center Engineer
> > > InfoDesign Communications
> > > 
> > > -
> > > 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]>
> > 
> 
> 
> 
> --
> Sergio Carvalho
> ---
> [EMAIL PROTECTED]
> 
> If at first you don't succeed, skydiving is not for you
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 


=
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

__
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: Servlet generator, help needed

2001-07-19 Thread Sergio Carvalho


Thanks dims. It was not me asking, but Jean-Marc Borer. I was just surprised 
at how strongly Giacomo discouraged using Cocoon as a presentation engine. 
I use Cocoon that way with Jsp pages. Its a great way to convert legacy apps, 
decoupling presentation.

On the other hand, I didn't know about URLGenerator. Living and learning.

On Thu, 19 Jul 2001 09:24:30 -0700 (PDT), Davanum Srinivas <[EMAIL PROTECTED]> wrote:
--
> Sergio,
> 
> Just use the URLGenerator to read the XML stream via a URL and feed it to Cocoon2.
> 
> Thanks,
> dims
> 

--
Sergio Carvalho
---
[EMAIL PROTECTED]

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

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

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




Re: Servlet generator, help needed

2001-07-19 Thread Davanum Srinivas

Oops. Sorry. Jean, Take a look at URLGenerator and HTMLGenerator, both of them pick up 
data from a
url. There are samples for both.

Thanks,
dims

--- Sergio Carvalho <[EMAIL PROTECTED]> wrote:
> 
> Thanks dims. It was not me asking, but Jean-Marc Borer. I was just surprised 
> at how strongly Giacomo discouraged using Cocoon as a presentation engine. 
> I use Cocoon that way with Jsp pages. Its a great way to convert legacy apps, 
> decoupling presentation.
> 
> On the other hand, I didn't know about URLGenerator. Living and learning.
> 
> On Thu, 19 Jul 2001 09:24:30 -0700 (PDT), Davanum Srinivas <[EMAIL PROTECTED]> wrote:
> --
> > Sergio,
> > 
> > Just use the URLGenerator to read the XML stream via a URL and feed it to Cocoon2.
> > 
> > Thanks,
> > dims
> > 
> 
> --
> Sergio Carvalho
> ---
> [EMAIL PROTECTED]
> 
> If at first you don't succeed, skydiving is not for you
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 


=
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

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




R: Servlet generator, help needed

2001-07-19 Thread Marco Spinetti

I agree with you.
Where can I find the examples?

Marco
+---+
Data processing engineer  Spinetti Marco
Italia On Line S.p.a. - Infostrada
Italy
+-+

- Original Message -
From: Davanum Srinivas <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 19, 2001 6:43 PM
Subject: Re: Servlet generator, help needed


> Oops. Sorry. Jean, Take a look at URLGenerator and HTMLGenerator, both of
them pick up data from a
> url. There are samples for both.
>
> Thanks,
> dims
>
> --- Sergio Carvalho <[EMAIL PROTECTED]> wrote:
> >
> > Thanks dims. It was not me asking, but Jean-Marc Borer. I was just
surprised
> > at how strongly Giacomo discouraged using Cocoon as a presentation
engine.
> > I use Cocoon that way with Jsp pages. Its a great way to convert legacy
apps,
> > decoupling presentation.
> >
> > On the other hand, I didn't know about URLGenerator. Living and
learning.
> >
> > On Thu, 19 Jul 2001 09:24:30 -0700 (PDT), Davanum Srinivas
<[EMAIL PROTECTED]> wrote:
> > --
> > > Sergio,
> > >
> > > Just use the URLGenerator to read the XML stream via a URL and feed it
to Cocoon2.
> > >
> > > Thanks,
> > > dims
> > >
> >
> > --
> > Sergio Carvalho
> > ---
> > [EMAIL PROTECTED]
> >
> > If at first you don't succeed, skydiving is not for you
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. 
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> >
>
>
> =
> Davanum Srinivas, JNI-FAQ Manager
> http://www.jGuru.com/faq/JNI
>
> __
> 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]>
>
>


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




CVS update

2001-07-19 Thread Marco Spinetti



Hi all,
in 10 days I will have to do a demo of cocoon2. I'm 
not expert of CVS and then my problem is this: I have cocoon2.0 and I know that 
now there is cocoon2-1. I would like to do the demo with the new version of 
cocoon2. How can I update my version without loose all my data? Can you explain 
me all the steps?
 
Thanks
 
Marco
 


Re: R: Servlet generator, help needed

2001-07-19 Thread Davanum Srinivas

Actually, am wrong. use the FileGenerator (not URLGenerator) or HTMLGenerator. Look 
for slashdot
in sitemap.xmap in C2.0. C2.1 has a samples for HTMLGenerator, look for yahoo in 
sitemap.xmap in
C2.1 

Thanks,
dims
--- Marco Spinetti <[EMAIL PROTECTED]> wrote:
> I agree with you.
> Where can I find the examples?
> 
> Marco
> +---+
> Data processing engineer  Spinetti Marco
> Italia On Line S.p.a. - Infostrada
> Italy
> +-+
> 
> - Original Message -
> From: Davanum Srinivas <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, July 19, 2001 6:43 PM
> Subject: Re: Servlet generator, help needed
> 
> 
> > Oops. Sorry. Jean, Take a look at URLGenerator and HTMLGenerator, both of
> them pick up data from a
> > url. There are samples for both.
> >
> > Thanks,
> > dims
> >
> > --- Sergio Carvalho <[EMAIL PROTECTED]> wrote:
> > >
> > > Thanks dims. It was not me asking, but Jean-Marc Borer. I was just
> surprised
> > > at how strongly Giacomo discouraged using Cocoon as a presentation
> engine.
> > > I use Cocoon that way with Jsp pages. Its a great way to convert legacy
> apps,
> > > decoupling presentation.
> > >
> > > On the other hand, I didn't know about URLGenerator. Living and
> learning.
> > >
> > > On Thu, 19 Jul 2001 09:24:30 -0700 (PDT), Davanum Srinivas
> <[EMAIL PROTECTED]> wrote:
> > > --
> > > > Sergio,
> > > >
> > > > Just use the URLGenerator to read the XML stream via a URL and feed it
> to Cocoon2.
> > > >
> > > > Thanks,
> > > > dims
> > > >
> > >
> > > --
> > > Sergio Carvalho
> > > ---
> > > [EMAIL PROTECTED]
> > >
> > > If at first you don't succeed, skydiving is not for you
> > >
> > > -
> > > Please check that your question has not already been answered in the
> > > FAQ before posting. 
> > >
> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > > For additional commands, e-mail: <[EMAIL PROTECTED]>
> > >
> >
> >
> > =
> > Davanum Srinivas, JNI-FAQ Manager
> > http://www.jGuru.com/faq/JNI
> >
> > __
> > 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]>
> >
> >
> 
> 
> -
> 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]>
> 


=
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

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




cvs auth failure

2001-07-19 Thread java guru

HI.,
  Today i am getting following trying to update my
c2.1

cvs [login aborted]: unrecognized auth response from
xml.apache.org: cvs [pserver aborted]: CVS repos now
on cvs.apache.org.  Please update your CVSROOT.


Any input is appreciated


=
Thanks and have great day
srini


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: cvs auth failure

2001-07-19 Thread java guru

Sorry guys.,
  Figured that out myself...it looks like the server
name changed from xml.apache.org to cvs.apache.org


 --- java guru <[EMAIL PROTECTED]> wrote: > HI.,
>   Today i am getting following trying to update my
> c2.1
> 
> cvs [login aborted]: unrecognized auth response from
> xml.apache.org: cvs [pserver aborted]: CVS repos now
> on cvs.apache.org.  Please update your CVSROOT.
> 
> 
> Any input is appreciated
> 
> 
> =
> Thanks and have great day
> srini
> 
>

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

=
Thanks and have great day
srini


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




AW: CVS update

2001-07-19 Thread Gerhard Froehlich



My 
proposal (I'm not a cvs expert)
if you 
use wincvs:
create 
--> checkout module 
change 
the checkout folder to new directory.
 
if you 
use unix/linux
just 
add a new user with a new profile
and 
checkout the actual branch in his
home 
dir.
 
Cheers
Gerhard
[Gerhard 
Froehlich] 
 -Ursprüngliche 
Nachricht-Von: Marco Spinetti 
[mailto:[EMAIL PROTECTED]]Gesendet: Donnerstag, 19. Juli 2001 
18:58An: [EMAIL PROTECTED]Betreff: CVS 
update

  Hi all,
  in 10 days I will have to do a demo of cocoon2. 
  I'm not expert of CVS and then my problem is this: I have cocoon2.0 and I know 
  that now there is cocoon2-1. I would like to do the demo with the new version 
  of cocoon2. How can I update my version without loose all my data? Can you 
  explain me all the steps?
   
  Thanks
   
  Marco
   


build failed

2001-07-19 Thread java guru

Hi.,
  I was trying build latest cvs pull and its
complaining about some mywlsreponse

any idea?



=
Thanks and have great day
srini


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: is this a task for cocoon?

2001-07-19 Thread Gerhard Froehlich

Hi Josef,
thanx a lot for your answer.
what version of cocoon do use for it (cocoon1 or cocoon2)?

Cheers
Gerhard
-Ursprüngliche Nachricht-
Von: Josef Stampach [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 19. Juli 2001 18:51
An: Gerhard Froehlich
Betreff: AW: is this a task for cocoon?


Hello Gerhard,

yes you could do that with cocoon :-) because we at ideefix develop an
soluton
like you describe. Look at http://www.ideefix.net/produkte_wwp_de.html

We develop around xml and xsl with cocoon an framework to create templates
with xml so that the user can only edit in predefined cells. The edited
content
is then extracted to an xml contentfile. The conversion from the stored xml
file
to html an other presentation is with xsl.

Best example ist http://www.franke-wse.com an product catalog produced with
cocoon
form an database, edited with our framework (called WWP) also the normal
websites
are edited with this framework.

Gruss Lukas


-Ursprüngliche Nachricht-
Von: Gerhard Froehlich [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 19. Juli 2001 17:42
An: [EMAIL PROTECTED]
Betreff: is this a task for cocoon?


Hi,
In my present job, I work on a project which stucks in
a crises.

Maybe the cocoon framework can help us to solve this problem.
I _don't_ to ask here for a complete solution and I _don't_ want
to steal your ideas.
Maybe I can get a little discussion to determine the limits and the
possibilities of cocoon.

We shall develop a web based "office" plattform. At the beginning
the customer forced us to use a content management system for
developing, but this fails with the complexity of the whole project.

Following background:
It schould be possible, that the user can write documents over
a web enabled interface, with links, pictures, like in word.
Maybe this job can be done by a Java Applet. The focus
for the user is content. Formating the document shall be
done in the background, because to keep the corporate design
consistent. The only formating the user can do, is a little bit
text formating (bold,italic,...). The document can exist in
different language.

The document itself can be exported to different formats
(PDF, rtf, ...), for exchanging the documents between different
standard programs and maybe to give it a copyshop for a
nice print

Behind all there is a little publishing workflow.

The whole document creation shall be done in a private, secure part
of the web interface with a user/group management.

But beside the private part, there is a public one, in which the
documents can be displayed and be accessed by the everybody.

Because I developed a little bit for cocoon2, I think cocoon
is a framework, we can use here. My idea is to structure the
documents in xml and do formating it with xsl.
The webinterface for the application is quit static and a
little bit dynamic (lists, etc..). Maybe we can use here here too?

What is your opinion?

Cheers
Gerhard

--
Gerhard Fröhlich
[EMAIL PROTECTED]

"black holes are,
when GOD is dividing by zero"

GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

GMX Tipp:

Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1!
http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a



-
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: build failed

2001-07-19 Thread Davanum Srinivas

You got in the middle of a set of check-ins. Please try once more. It will work.

Thanks,
dims (actually Davanum Srinivas)

--- java guru <[EMAIL PROTECTED]> wrote:
> Hi.,
>   I was trying build latest cvs pull and its
> complaining about some mywlsreponse
> 
> any idea?
> 
> 
> 
> =
> Thanks and have great day
> srini
> 
> 
> 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]>
> 


=
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

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




[c2] class loading problem with a jdbc driver

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

I'm having trouble specifying the classpath for a jdbc driver. Here's the
entry in my web.xml file for loading the jdbc driver:


  load-class
  

  oracle.jdbc.driver.OracleDriver


org.hsqldb.jdbcDriver
  



I get the following exception first thing (no previous entries in the log
file) when I start cocoon. Immediately after the (long) load class
exception, the log file prints out the full classpath including the jdbc
driver (it's
"/opt/jakarta-tomcat-4.0-b5/webapps/cocoon/WEB-INF/lib/classes12.zip"). Why
isn't the class being found (it gets found later when I load relevant
esql-based xsp pages)? What am I doing wrong?


Karl Hallowell [EMAIL PROTECTED]

 


DEBUG   46  [cocoon  ] (HttpProcessor[8080][4]): Trying to load class:
oracl
e.jdbc.driver.OracleDriver
WARN94  [cocoon  ] (HttpProcessor[8080][4]): Could not force-load
class:
 oracle.jdbc.driver.OracleDriver
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled
Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
at org.apache.cocoon.util.ClassUtils.loadClass(ClassUtils.java:46)
at
org.apache.cocoon.servlet.CocoonServlet.forceLoad(CocoonServlet.java:
399)
at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:119)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java, C
ompiled Code)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.jav
a:602)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:231)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java, Compiled Code)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a, Compiled Code)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
Com
piled Code)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:225)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java, Compiled Code)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a, Compiled Code)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
Com
piled Code)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
2252)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:164)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java, Compiled Code)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
446)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java, Compiled Code)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a, Compiled Code)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
Com
piled Code)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java, Compiled Code)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a, Compiled Code)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
Com
piled Code)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
r.java:875)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
va, Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)
DEBUG   332 [cocoon  ] (HttpProcessor[8080][4]): Trying to load class:
org.h
sqldb.jdbcDriver
DEBUG   563 [cocoon  ] (HttpProcessor[8080][4]): extraClassPath is not
absol
ute:
/opt/jakarta-tomcat-4.0-b5/bin/./../webapps/cocoon/WEB-INF/lib/classes12.zi
p
DEBUG   564 [cocoon  ] (HttpProcessor[8080][4]): Using configuration
file: /
cocoon.xconf
INFO566 [cocoon  ] (HttpProcessor[8080][4]): Reloading from:
jndi:/local
host/cocoon/cocoon.xconf
DEBUG   1147[cocoon  ] (HttpProcessor[8080][4]): New Cocoon object.
DEBUG   1148[cocoon  ] (HttpProcessor[8080][4]): Using parser:
org.apache.co
coon.components.parser.JaxpParser
DEBUG   1261[cocoon  ] (HttpProcessor[8080][4]): Attempting to get
Handler f
or: org.apache.cocoon.components.parser.Parser
DEBUG   1522[cocoon  ] (HttpProcessor[8080][4]): Handler type =
org.apache.a
valon.excalibur.component.DefaultComponentHandler
DEBUG   1523[cocoon  ] (HttpProcessor[8080][4]): Creating Repository
with th
is directory: ./../work/localhost/cocoon
DEBUG   1527[cocoon  ] (HttpProcessor[8080][4]): 

Cocoon 1.8.2 inserts xmlns: attributes in every tag

2001-07-19 Thread James Scott

Hi

This is a strange one...and I didn't find the answer in the FAQ or the
mail archives, so I'm asking the list. I have two Cocoon-driven webapps
running on the same Tomcat/Apache installation. One is just a bare-bones
install of the Cocoon distro, the other actually contains application
code. The webapp with the application code inserts "xmlns:" attributes
into every tag in an XSP! For instance, I commented out the XSLT directive
in the XSP sample (samples/xsp/page.xml) and this is what it produced:

-
http://www.w3.org/TR/REC-html40/strict.dtd";>
http://www.w3.org/XML/1998/namespace";
xmlns:xsp="http://www.apache.org/1999/XSP/Core";>
  http://www.w3.org/XML/1998/namespace";
xmlns:xsp="http://www.apache.org/1999/XSP/Core";>First XSP Page
  http://www.w3.org/XML/1998/namespace";
xmlns:xsp="http://www.apache.org/1999/XSP/Core";>
   http://www.w3.org/XML/1998/namespace";
xmlns:xsp="http://www.apache.org/1999/XSP/Core";>Stefano Mazzocchi
   http://www.w3.org/XML/1998/namespace";
xmlns:xsp="http://www.apache.org/1999/XSP/Core";>[EMAIL PROTECTED]
  

  http://www.w3.org/XML/1998/namespace";
xmlns:xsp="http://www.apache.org/1999/XSP/Core";>Hi, I'm your first XSP
page ever.
-

The other Cocoon webapp - running in the same JVM - doesn't do this.  I
diffed the cocoon.properties files and the only differences are in the
connection pool setups.

I actually do need to solve this problem to conform to an interface
specification.

Thanks,

JLS


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




2.1? What gives?

2001-07-19 Thread Roy Tennant

So here I've been waiting for a stable Cocoon 2, and I find that the 
development has blown past a stable 2.0 release, and now is working 
on 2.1. Is there any hope of a stable release anytime soon? I have 
production services running (shakily, unfortunately) on 1.8.3, and 
would appreciate having a stable version of 2.x, in the (perhaps 
forlorn) hope that my troubles may disappear. Can anyone give me a 
sense of the proposed development path? Please respond directly to me 
as well as the list, since I cannot deal with signing up to a list 
that gets the kind of traffic this list does. Thanks,
Roy Tennant
eScholarship
California Digital Library

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

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




Re: 2.1? What gives?

2001-07-19 Thread Berin Loritsch

Roy Tennant wrote:
> 
> So here I've been waiting for a stable Cocoon 2, and I find that the
> development has blown past a stable 2.0 release, and now is working
> on 2.1. Is there any hope of a stable release anytime soon? I have
> production services running (shakily, unfortunately) on 1.8.3, and
> would appreciate having a stable version of 2.x, in the (perhaps
> forlorn) hope that my troubles may disappear. Can anyone give me a
> sense of the proposed development path? Please respond directly to me
> as well as the list, since I cannot deal with signing up to a list
> that gets the kind of traffic this list does. Thanks,
> Roy Tennant
> eScholarship
> California Digital Library




Cocoon 2 is well on its way to a stable release.  Beta 2 is planned for
the real near future.

The Cocon 2.1 repository is for all those wonderful new components that
people have been dying to add.  There is alot of good stuff in 2.1, but
to keep the focus on a stable 2.0 release the Cocoon team put a freeze
on new components to Cocoon 2.0.

That means that _new_ things go in 2.1, and bug fixes get applied to both
repositories.  We don't want to do this forever, so after we have 2.0 final
out the door, Cocoon 2.1 will be ready for further development.
 S/MIME Cryptographic Signature


Re: Problems with line breaks in Cocoon 2

2001-07-19 Thread Paul Paradise

On Thu, Jul 19, 2001 at 08:09:09AM +0200, [EMAIL PROTECTED] wrote:
> In my xsl-file I have written:
> 
> 
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
> 
> 
> This is a javascript-function, which takes a string as a
> parameter. My problem is that Cocoon parses this as a string with
> linebreaks, which Javascript doesn't accept.
> 
> The output is like this:
> 
>   function start(frm){
> 
>   initialize('
> 
>   init
> 
>   ', "
> 
> 
> 
>   Text
> 
>   ");
> 
>   output(frm, 'init');
> 
>   }
> 
> How can I get Cocoon to not add any line breaks?
> 
> I have been looking for an answer to this on the web, but I can't find 
> anything. I did read about changing the following line in
> cocoon.properties though:
> 
> formatter.text/html/loose.line-width = 120
> 
> But, I can't find this file on my hard disk. Does it even exist for
> Cocoon 2?

I'm a relative Cocoon/XSL newbie, but if I'm not mistaken the xsl:text
node specifically serves the purpose of saving linebreaks, including
the ones you have in your source file. Try changing your code to read
something like:




Note that there is no linebreak between the end of the CDATA and the
end of the xsl:text node. You'd need to repeat this for all the
elements you're inserting...

Good luck!

-- 

--
 Paul ParadiseOffice: AE-209U
 Engineering Intern  Email: [EMAIL PROTECTED]
 Corporate IT R&D   Tel: 858.651.5883
 Qualcomm Incorporated
--

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




SQL Sample query results problem

2001-07-19 Thread Sue Spielman


If someone can offer any insight, it would be most appreciated.
I am running C2.0b1 from the distribution on Win98 with a mySql db and 
tomcat 3.2.1

I am trying to get the sample Simple SQL from the welcome page to run 
correctly. I can access it, but the query results are not displaying. My 
database is configured with the correct tables and I've confirmed the data 
is there correctly. I have granted all access to the 'sa' user. I'm 
including the snippet of my cocoon.xconf, as well as my web.xml that 
contains my jdbc driver (which seems to be loading correctly), and the 
tomcat log. Any thoughts on what might be causing this would be very 
helpful, especially if it's a mySql config issue. I'm in the process of 
setting up a different application that will use similiar mechanisms, but 
want to confirm everything working correctly with the samples first. Thanks.
Sue

Cocoon.xconf snippet
cut---
  


  
  false
  jdbc:mysql://localhost/test
  sa
  


  
cut
web.xml snippet

  load-class
  org.gjt.mm.mysql.Driver



>From tomcat/log

2001-07-19 02:11:26 - path="/cocoon" :DEBUG   15657   [cocoon  ] (Thread-9): 
Making URL from 
file:/C:/Java/tomcat/webapps/cocoon/docs/samples/sql/sql-page.xml

2001-07-19 02:11:26 - path="/cocoon" :DEBUG   15657   [cocoon  ] (Thread-9): 
CONNECTION: personnel

2001-07-19 02:11:26 - path="/cocoon" :DEBUG   15657   [cocoon  ] (Thread-9): 
Making URL from 
file:/C:/Java/tomcat/webapps/cocoon/stylesheets/simple-sql2html.xsl

2001-07-19 02:11:26 - path="/cocoon" :DEBUG   15657   [cocoon  ] (Thread-9): 
Using stylesheet: 
'file:/C:/Java/tomcat/webapps/cocoon/stylesheets/simple-sql2html.xsl' in 
org.apache.cocoon.transformation.TraxTransformer@b74ae1c6, last modified: 
995571904000

2001-07-19 02:11:26 - path="/cocoon" :DEBUG   15657   [cocoon  ] (Thread-9): 
Caching content for further requests of 'sql/sql-page'.

2001-07-19 02:11:26 - path="/cocoon" :DEBUG   15657   [cocoon  ] (Thread-9): 
Retrieving a org.apache.cocoon.components.sax.XMLByteStreamCompiler from the 
pool

2001-07-19 02:11:26 - path="/cocoon" :DEBUG   15657   [cocoon  ] (Thread-9): 
Creating new Templates in 
org.apache.cocoon.transformation.TraxTransformer@b74ae1c6 for 
file:/C:/Java/tomcat/webapps/cocoon/stylesheets/simple-sql2html.xsl

2001-07-19 02:11:26 - path="/cocoon" :DEBUG   15659   [cocoon  ] (Thread-9): 
Holding object in memory. Key: 
file:/C:/Java/tomcat/webapps/cocoon/stylesheets/simple-sql2html.xsl

2001-07-19 02:11:26 - path="/cocoon" :DEBUG   15659   [cocoon  ] (Thread-9): 
processing file docs/samples/sql/sql-page.xml

2001-07-19 02:11:26 - path="/cocoon" :DEBUG   15659   [cocoon  ] (Thread-9): 
file resolved to 
file:/C:/Java/tomcat/webapps/cocoon/docs/samples/sql/sql-page.xml

2001-07-19 02:11:26 - path="/cocoon" :DEBUG   15659   [cocoon  ] (Thread-9): 
ComponentFactory creating new instance of 
org.apache.cocoon.components.parser.JaxpParser.

2001-07-19 02:11:26 - path="/cocoon" :DEBUG   15659   [cocoon  ] (Thread-9): 
SAXParserFactory: null

2001-07-19 02:11:26 - path="/cocoon" :DEBUG   15659   [cocoon  ] (Thread-9): 
DocumentBuilderFactory: null

2001-07-19 02:11:26 - path="/cocoon" :DEBUG   15659   [cocoon  ] (Thread-9): 
SAXParser: null

2001-07-19 02:11:26 - path="/cocoon" :INFO15659   [cocoon  ] (Thread-9): 
PUBLIC IDnull

2001-07-19 02:11:26 - path="/cocoon" :INFO15659   [cocoon  ] (Thread-9): 
SYSTEM IDfile:/C:/Java/tomcat/webapps/cocoon/docs/samples/sql/sql-page.xml

2001-07-19 02:11:26 - path="/cocoon" :DEBUG   15659   [cocoon  ] (Thread-9): 
RECEIVED CHARACTERS:



2001-07-19 02:11:26 - path="/cocoon" :DEBUG   15659   [cocoon  ] (Thread-9): 
RECEIVED CHARACTERS: Hello

2001-07-19 02:11:26 - path="/cocoon" :DEBUG   15659   [cocoon  ] (Thread-9): 
RECEIVED CHARACTERS:


2001-07-19 02:11:26 - path="/cocoon" :DEBUG   15659   [cocoon  ] (Thread-9): 
RECEIVED CHARACTERS:


2001-07-19 02:11:26 - path="/cocoon" :DEBUG   15659   [cocoon  ] (Thread-9): 
RECEIVED CHARACTERS: This is my first Cocoon2 page filled with sql data!

2001-07-19 02:11:26 - path="/cocoon" :DEBUG   15659   [cocoon  ] (Thread-9): 
RECEIVED CHARACTERS:



2001-07-19 02:11:26 - path="/cocoon" :DEBUG   15659   [cocoon  ] (Thread-9): 
RECEIVED START ELEMENT execute-query

2001-07-19 02:11:26 - path="/cocoon" :DEBUG   15659   [cocoon  ] (Thread-9): 
RECEIVED CHARACTERS:


2001-07-19 02:11:26 - path="/cocoon" :DEBUG   15659   [cocoon  ] (Thread-9): 
RECEIVED START ELEMENT query

2001-07-19 02:11:26 - path="/cocoon" :DEBUG   15659   [cocoon  ] (Thread-9): 
RECEIVED CHARACTERS:
select id,name from department_table


2001-07-19 02:11:26 - path="/cocoon" :DEBUG   15659   [cocoon  ] (Thread-9): 
RECEIVED END ELEMENT query(http://apache.org/cocoon/SQL/2.0)

2001-07-19 02:11:26 - path="/cocoon" :DEBUG   15659   [cocoon  ] (Thread-9): 
QUERY IS "
select id,name from department_table
   "

2001-07-19 02:11:26 - path="/cocoon" :DEBUG   15659   [cocoon  ] (

Ancestor and Cocoon 2

2001-07-19 Thread Hege Hansbakk

Is it possible to use the ancestor function in Cocoon 2, even though it
uses the SAX parser? The error I get is that it can not find the
function...

Hege


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




[C2B1] Sitemap handler's sitemap not available

2001-07-19 Thread Kevin Sonney

What I've done with resin :
1. I've followed the instructions on the C2 site for replacing 
[dom|jaxp|sax].jar with xerces/xalan
2. tried it with tomcat and not seen this error
3. Searched the mailing list archives for answers.


So Only in resin 2.x, has anyone seen the following error with 
C2Beta1 :

org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is 
not available.
at 
org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:179)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93)
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:103)
at 
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:82)
at com.caucho.server.http.Invocation.service(Invocation.java:272)
at 
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:128)
at com.caucho.server.http.JniRequest.dispatch(JniRequest.java:226)

-- 
+---+
| Kevin Sonney[EMAIL PROTECTED] |
| Systems Programmerwww.webslingerZ.com |
+---+

"The weakest link in any civil rights case is always the
defendant. Imagine being a lawyer and getting a call from me. That's why I
try to, uh, behave myself." - Hunter S. Thompson


-
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: [C2B1] Sitemap handler's sitemap not available

2001-07-19 Thread Karun114
yeps ! its seen a lot. Reasons are not generic and vary with case to case. 
The best way to know the exact error is to check the cocoon.log file. Under 
bea wlserver6.0 its under //WEB-INF directory. 
clean the file before running the servlet engine, the app fails as expected. 
Check the log file and search for "error". There you go .. thats the exact 
error. It is usually some font settings, display variable settings, or some 
mis typed or missing jar from your servlet's/ cocoon's classpath.
good luck !
Try and past the the relevant portion of your log on this list. Someone might 
have a fix already !!
later dude !
Karun


RE: [c2] class loading problem with a jdbc driver

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

Seems to be worked out. I had to place my oracle jar in the ext directory of
JRE. A big thank you to the Cocoon 2 bug fixers for solving this problem!


Karl Hallowell [EMAIL PROTECTED]

> -Original Message-
> From: HALLOWELL,KARL (HP-Cupertino,ex1) [mailto:[EMAIL PROTECTED]]
> 
> I'm having trouble specifying the classpath for a jdbc 
> driver. Here's the
> entry in my web.xml file for loading the jdbc driver:
> 
> 
>   load-class
>   
> 
>   oracle.jdbc.driver.OracleDriver
> 
> 
> org.hsqldb.jdbcDriver
>   
> 
> 
> 
> I get the following exception first thing (no previous 
> entries in the log
> file) when I start cocoon. Immediately after the (long) load class
> exception, the log file prints out the full classpath 
> including the jdbc
> driver (it's
> "/opt/jakarta-tomcat-4.0-b5/webapps/cocoon/WEB-INF/lib/classes
> 12.zip"). Why
> isn't the class being found (it gets found later when I load relevant
> esql-based xsp pages)? What am I doing wrong?
> 
> 
> Karl Hallowell [EMAIL PROTECTED]
> 
>  
> 
> 
> DEBUG   46  [cocoon  ] (HttpProcessor[8080][4]): Trying 
> to load class:
> oracl
> e.jdbc.driver.OracleDriver
> WARN94  [cocoon  ] (HttpProcessor[8080][4]): Could 
> not force-load
> class:
>  oracle.jdbc.driver.OracleDriver
> java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
> at java.net.URLClassLoader$1.run(URLClassLoader.java, 
> Compiled Code)
> at java.security.AccessController.doPrivileged(Native Method)
> at 
> java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled
> Code)
> at java.lang.ClassLoader.loadClass(ClassLoader.java, 
> Compiled Code)
> at java.lang.ClassLoader.loadClass(ClassLoader.java, 
> Compiled Code)
> at 
> org.apache.cocoon.util.ClassUtils.loadClass(ClassUtils.java:46)
> at
> org.apache.cocoon.servlet.CocoonServlet.forceLoad(CocoonServlet.java:
> 399)
> at
> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:119)
> at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java, C
> ompiled Code)
> at
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.jav
> a:602)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
> alve.java:231)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
> .java, Compiled Code)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a, Compiled Code)
> at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
> Com
> piled Code)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
> alve.java:225)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
> .java, Compiled Code)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a, Compiled Code)
> at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
> Com
> piled Code)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
> 2252)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
> ava:164)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
> .java, Compiled Code)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
> 446)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
> .java, Compiled Code)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a, Compiled Code)
> at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
> Com
> piled Code)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
> ve.java:163)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
> .java, Compiled Code)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a, Compiled Code)
> at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
> Com
> piled Code)
> at
> org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
> r.java:875)
> at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
> va, Compiled Code)
> at java.lang.Thread.run(Thread.java, Compiled Code)
> DEBUG   332 [cocoon  ] (HttpProcessor[8080][4]): Trying 
> to load class:
> org.h
> sqldb.jdbcDriver
> DEBUG   563 [cocoon  ] (HttpProcessor[8080][4]): 
> extraClassPath is not
> absol
> ute:
> /opt/jakarta-tomcat-4.0-b5/bin/./../webapps/cocoon/WEB-INF/lib
> /classes12.zi
> p
> DEBUG   564 [cocoon  ] (HttpProcessor[8080][4]): Using 
> configuration
> file: /
> cocoon.xconf
> INFO566 [cocoon  ] (HttpProcessor[8080][4]): Reloading from:
> jndi:/local
> host/cocoon/cocoon.xc

[C2] : Actions and getting the HttpServletRequest/Response objects

2001-07-19 Thread Rick Tessner

Hi all,

I have a situation where I need direct access to the HttpServletRequest
and Reponse objects.  Basically, there's an existing servlet in our
environment, written a long time ago and used by many other bits to
provide SingleSignOn capability.  This servlet is used by more than
just things that reside within Cocoon2.  (ie. perl CGI processes, etc
use it as well).

I do not have the option of rewriting this servlet as a Cocoon
thingy.  Possibly in the future, but not today.

Okay, so having tried to justify that, :), I am faced with
trying to get the raw HttpServletRequest/Response objects from
within an Action in Cocoon2.  [ It used to be done within XSPs, 
but the advent of Actions made me switch to doing the SingleSignOn
stuff from within an Action instead. ]

The action looks like this:

 public Map act (Redirector redirector, SourceResolver resolver,
 Map objectModel, String src, Parameters par)
 throws Exception {

 sso iAm = new sso(
"http://someurl/that/does/sso";,
(HttpServletRequest)
  objectModel.get(HttpEnvironment.HTTP_REQUEST_OBJECT),
(HttpServletResponse)
  objectModel.get(HttpEnvironment.HTTP_RESPONSE_OBJECT) );
 :
 .

What I'm finding is the the objectModel.get() is simply returning
"null".

What am I missing?  How do I get the raw HttpServletRequest/Response
objects?

-- 
Rick Tessner[EMAIL PROTECTED]
MYRA Systems Corp. Fone: (250) 381 1335 x125  Phax: (250) 381 1304
   Cell: (250) 885 9452

"Time grabs you by the wrist, directs you where to go.
 So make the best of this test and don't ask why.'


-
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 getting the HttpServletRequest/Response objects

2001-07-19 Thread Rick Tessner

On Thu, 19 Jul 2001 18:54:29 PDT, Rick Tessner wrote:

>I have a situation where I need direct access to the HttpServletRequest
>and Reponse objects.  Basically, there's an existing servlet in our
>environment, written a long time ago and used by many other bits to
>provide SingleSignOn capability.  This servlet is used by more than
>just things that reside within Cocoon2.  (ie. perl CGI processes, etc
>use it as well).

Ooops!  My bad!! The objectModel.get(HttpEnvironment.HTPT_REQUEST_OBJECT)
etc. seem to be fine.

I may have found a bug in the SingleSignOn servlet we use ... :
-- 
Rick Tessner[EMAIL PROTECTED]
MYRA Systems Corp. Fone: (250) 381 1335 x125  Phax: (250) 381 1304
   Cell: (250) 885 9452

"Time grabs you by the wrist, directs you where to go.
 So make the best of this test and don't ask why.'


-
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: Debugging Transform

2001-07-19 Thread giacomo

On Thu, 19 Jul 2001, Marks local account wrote:

> What is the best way to write a transform that could be inserted at any
> point in the pipeline to produce a colorized output of the pipe at that
> stage, ike the view source, only with dynamically generated tags?

I don't know what you want to color but there is still the good old
LogTransformer which was always a good helper to see what's running down
the pipeline. Look at the cocoon.log for its output.

Giaocmo

>
> So if I was trying to debug this:
>
>   
>   
>   
>   
> 
>   
>
> I could do something like this:
>
>   
>   
>   
> 
>   
>
>   
>   
>   
>   
> 
>   
>
> 
>   
>   
>   
>   
> 
>   
>
> Mark Miller
> Web Architect
> Logica
>
>
>
>
> -
> 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: cvs auth failure

2001-07-19 Thread giacomo

On Thu, 19 Jul 2001, java guru wrote:

> HI.,
>   Today i am getting following trying to update my
> c2.1
>
> cvs [login aborted]: unrecognized auth response from
> xml.apache.org: cvs [pserver aborted]: CVS repos now
> on cvs.apache.org.  Please update your CVSROOT.

Read again the message: CVS repos now on cvs.apache.org!

Wrong CVSROOT. You need to change all your CVS/Root file
fromxml.apache.org to cvs.apache.org. If you are using a *nix machine
use:

   find . -name Root -print \
   | xargs perl -pi -e "s/xml.apache/cvs.apache/;"

Giacomo

>
>
> Any input is appreciated
>
>
> =
> Thanks and have great day
> srini
>
> 
> 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]>
>
>
>
>


-
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] class loading problem with a jdbc driver

2001-07-19 Thread giacomo

On Thu, 19 Jul 2001, HALLOWELL,KARL (HP-Cupertino,ex1) wrote:

> I'm having trouble specifying the classpath for a jdbc driver. Here's the
> entry in my web.xml file for loading the jdbc driver:
>
> 
>   load-class
>   
> 
>   oracle.jdbc.driver.OracleDriver
>
> 
> org.hsqldb.jdbcDriver
>   
> 
>
>
> I get the following exception first thing (no previous entries in the log
> file) when I start cocoon. Immediately after the (long) load class
> exception, the log file prints out the full classpath including the jdbc
> driver (it's
> "/opt/jakarta-tomcat-4.0-b5/webapps/cocoon/WEB-INF/lib/classes12.zip"). Why
> isn't the class being found (it gets found later when I load relevant
> esql-based xsp pages)? What am I doing wrong?

IIRC Tomcat 4 is not loading zip files from the lib directory. I had to
unzip and jar it as classes.jar to get it working under TC4.

Giacomo

>
>
> Karl Hallowell [EMAIL PROTECTED]
>
>  
>
>
> DEBUG   46  [cocoon  ] (HttpProcessor[8080][4]): Trying to load class:
> oracl
> e.jdbc.driver.OracleDriver
> WARN94  [cocoon  ] (HttpProcessor[8080][4]): Could not force-load
> class:
>  oracle.jdbc.driver.OracleDriver
> java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
> at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled
> Code)
> at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
> at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
> at org.apache.cocoon.util.ClassUtils.loadClass(ClassUtils.java:46)
> at
> org.apache.cocoon.servlet.CocoonServlet.forceLoad(CocoonServlet.java:
> 399)
> at
> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:119)
> at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java, C
> ompiled Code)
> at
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.jav
> a:602)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
> alve.java:231)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
> .java, Compiled Code)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a, Compiled Code)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
> Com
> piled Code)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
> alve.java:225)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
> .java, Compiled Code)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a, Compiled Code)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
> Com
> piled Code)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
> 2252)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
> ava:164)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
> .java, Compiled Code)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
> 446)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
> .java, Compiled Code)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a, Compiled Code)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
> Com
> piled Code)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
> ve.java:163)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
> .java, Compiled Code)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a, Compiled Code)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
> Com
> piled Code)
> at
> org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
> r.java:875)
> at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
> va, Compiled Code)
> at java.lang.Thread.run(Thread.java, Compiled Code)
> DEBUG   332 [cocoon  ] (HttpProcessor[8080][4]): Trying to load class:
> org.h
> sqldb.jdbcDriver
> DEBUG   563 [cocoon  ] (HttpProcessor[8080][4]): extraClassPath is not
> absol
> ute:
> /opt/jakarta-tomcat-4.0-b5/bin/./../webapps/cocoon/WEB-INF/lib/classes12.zi
> p
> DEBUG   564 [cocoon  ] (HttpProcessor[8080][4]): Using configuration
> file: /
> cocoon.xconf
> INFO566 [cocoon  ] (HttpProcessor[8080][4]): Reloading from:
> jndi:/local
> host/cocoon/cocoon.xconf
> DEBUG   1147[cocoon  ] (HttpProcessor[8080][4]): New Cocoon object.
> DEBUG   1148[cocoon  ] (HttpProcessor[8080][4]): Using parser:
> org.apache.co

Re: Servlet generator, help needed

2001-07-19 Thread giacomo

On Thu, 19 Jul 2001, Sergio Carvalho wrote:

>
> Thanks dims. It was not me asking, but Jean-Marc Borer. I was just surprised
> at how strongly Giacomo discouraged using Cocoon as a presentation engine.
> I use Cocoon that way with Jsp pages. Its a great way to convert legacy apps,
> decoupling presentation.

Because experience of other projects (jetspeed) using cocoon the other
way around as a template/rendering engine failed because of the
complexity. The right approach to use cocoon is to have it run as it
is and put your logic into components available for use (Actions,
Generators or Transformer) or use custom ones like Jsp-/URLGenerator.

Giacomo

>
> On the other hand, I didn't know about URLGenerator. Living and learning.
>
> On Thu, 19 Jul 2001 09:24:30 -0700 (PDT), Davanum Srinivas <[EMAIL PROTECTED]> wrote:
> --
> > Sergio,
> >
> > Just use the URLGenerator to read the XML stream via a URL and feed it to Cocoon2.
> >
> > Thanks,
> > dims
> >
>
> --
> Sergio Carvalho
> ---
> [EMAIL PROTECTED]
>
> If at first you don't succeed, skydiving is not for you
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> 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: CVS update

2001-07-19 Thread Frans Thamura

I prefer you try Cocoon 2.0 from dist, not from CVS..

I am got several error in that version, 2.1-dev, the
sitemap handler.

I used 2.0, and it work well.. may abe in 2.1 will be
used axis, because I find axis.jar there.

Have a nice try.

Frans

--- Marco Spinetti <[EMAIL PROTECTED]> wrote:
> Hi all,
> in 10 days I will have to do a demo of cocoon2. I'm
> not expert of CVS and then my problem is this: I
> have cocoon2.0 and I know that now there is
> cocoon2-1. I would like to do the demo with the new
> version of cocoon2. How can I update my version
> without loose all my data? Can you explain me all
> the steps?
> 
> Thanks
> 
> Marco
> 
> 


=
Let's Empowering Open Source

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




AW: Ancestor and Cocoon 2

2001-07-19 Thread Stefan Seifert

Of course. ancestor is not a function but a integral part of the XPath
specification and fully supportet by the XSLT processor used by Cocoon
2.

Use it like this:



Look in the XPath specifications for further documentation.

Stefan

> -Ursprüngliche Nachricht-
> Von: Hege Hansbakk [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 19. Juli 2001 11:14
> An: [EMAIL PROTECTED]
> Betreff: Ancestor and Cocoon 2
> 
> 
> Is it possible to use the ancestor function in Cocoon 2, even 
> though it
> uses the SAX parser? The error I get is that it can not find the
> function...
> 
> Hege

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