RE: FlowControleAction

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

> So what happens when you have branching rules.
> Depending on what was selected in a, go to be or jump straight to c?

I don't know exactly what you mean. First of all you don't have to use the
command next. You can use jump(2)

a b c
0 1 2

to jump right away to c.

(I still have to test this but) I imaging you can do the following:



  







  
  


.
.
.




of course when you don't skip fillinB in flowshow.html, then you go to the
fillinB pipeline.
  _choose2_>__
 ||
  --->fillInA --choose1--> fillInB fillInC  --->
| /\
\/|
   fillInB1 -->fillInB2 

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




FlowControleAction

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

Is there someone who might be interested in the following:


 
  
  
  
  
 
 


For example: b.xsp
==



http://apache.org/xsp";>

B

 
 
 
 
 
 
 
 




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

Finally you can use start and end.

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

regards,

Edgar




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

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




XMLForm & Control of flow

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

People,

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

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

Thanks,

Edgar

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

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




RE: Unsubscribe me

2002-06-12 Thread Graaf, Edgar de (fin)
Title: Unsubscribe me



Mail a empty mail to: 
[EMAIL PROTECTED]
Sometimes it takes some 
time

  -Oorspronkelijk bericht-Van: João Moita 
  [mailto:[EMAIL PROTECTED]]Verzonden: woensdag 12 juni 2002 
  16:27Aan: Cocoon-Users (E-mail)Onderwerp: Unsubscribe 
  me
  Could you please unsubscribe me? 
  Thanks! 
   João Moita PayCenter 
  e-mail   :[EMAIL PROTECTED] Telem.   : +351.916.610.721 Telef.   : +351.218.394.860 Fax  : +351.218.394.868 
  www.eb-focus.pt 
  


Xforms?

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

I would like to know if xform support is being build? 
I mean is there a stylesheet that takes xform and converts it to html.

XMLForm2html.xsl is probably not it, or is it? If so how does it work?

Thanks.

-
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: Protected Area - Cocoon sample

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

Did you download cocoon 2.0.2 'official release'? 

I tried it on a unix machine. Then my old cocoon page didn't work. I believe
it was the session validator that didn't work correctly. It only checked
validation-sets, if I remember correctly. When I tried a dev snapshot it did
work...

Regards,

Edgar

-Oorspronkelijk bericht-
Van: zze-STIENNE Nicolas FTRD/DMI/CAE
[mailto:[EMAIL PROTECTED]]
Verzonden: dinsdag 11 juni 2002 9:27
Aan: [EMAIL PROTECTED]
Onderwerp: Protected Area - Cocoon sample


Hello

My Protected Area in Web Applications Cocoons samples doesn't work. 
ie: I try to log in using Donald Ball, but as I submit, nothing append:
the same login page come back.

Where does it come from ?

thanks

Nicolas !!

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




SOAP

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

Hi,

I have add a xsp. The problem is that when the SOAP method is called, then
it is called 8 times. I have tried to solve it with a boolean, but
appearantly the XSP is not called 8 times (but the SOAP part is). To me it
looks like it is http://apache.org/xsp/soap/3.0. Is this a known issue? Or
can somebody tell me what I do wrong.

Thanks,

Edgar
---


http://apache.org/xsp";
  xmlns:xsp-request="http://apache.org/xsp/request/2.0";
  xmlns:soap="http://apache.org/xsp/soap/3.0";
  >
  
javax.ejb.*
javax.naming.*
java.util.*
javax.rmi.PortableRemoteObject
javax.servlet.http.*
org.jnp.interfaces.*


com.ordina.bugtrack.usersEjb.UsersHome

com.ordina.bugtrack.usersEjb.Users

org.apache.cocoon.environment.Session

static boolean switch1 = false;
  
  
  try{
java.util.Properties env = new java.util.Properties();
env.put(
"java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory" );
env.put( "java.naming.provider.url","jnp://localhost:1099"
);
env.put(
"java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");

Object ref;
javax.naming.Context jndiContext = null;
jndiContext = new InitialContext(env);

ref = jndiContext.lookup("jaws/UsersEJB");
UsersHome usersHome = (UsersHome)
PortableRemoteObject.narrow (ref, UsersHome.class);
Session session = request.getSession();

String username = (String)session.getAttribute("username");
Users users = usersHome.findByUsername(username);
Integer userno = users.getUserno();
if(users.getType().toLowerCase().equals("developer")){
  
  userno
  
  
if(!switch1){
switch1 = true;
 http://localhost:8080/apache-soap/servlet/rpcrouter";>

http://www.w3.org/1999/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/1999/XMLSchema";>
http://www.w3.org/1999/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/1999/XMLSchema";>
http://www.w3.org/1999/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/1999/XMLSchema";>userno


 
 }
}
}catch(Exception e){System.err.println(e);}

The component  was created.




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

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




RE: How to upload a file???

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

Set 'upload-directory' in web.xml.

Use:



where upload is its self



-Oorspronkelijk bericht-
Van: manish [mailto:[EMAIL PROTECTED]]
Verzonden: dinsdag 4 juni 2002 11:08
Aan: [EMAIL PROTECTED]
Onderwerp: How to upload a file???


Hello All,
How can I upload a file from browser to server using cocoon.
I am using the following syntax...


please let me know how to include this tag on cocoon side to accept file
type data

from
anurag


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

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

Yeah. But this was probably the kindest reaction. I didn't want to offent
you all. I haven't look into xmltoany that much. 

Of course Cocoon 2 can do much more. I know that and I don't underestimate
that. I just came across it and mailed it to you all. For those who are
interrested (that is no one probably ;-). But I see, if Cocoon 2 is a bit
over kill for the smaller sites then I should use Cocoon 1

Regards,

Edgar

-Oorspronkelijk bericht-
Van: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Verzonden: maandag 3 juni 2002 15:45
Aan: [EMAIL PROTECTED]
Onderwerp: RE: XMLtoAny


> From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
> 
> People,
> 
> Have you ever seen this?
> 
> http://www.javazoom.net/jzservlets/xmltoany/xmltoany.html

" is a free servlet that uses XSLT to provide content from XML source
and XSL stylesheet"
 
> It sounds a lot like cocoon, it is much smaller (about 1 MB zipped).

It sounds like stripped down Cocoon 1...

Remove all libraries from the Cocoon 1, reuse XML parser and XSLT engine
from Tomcat, remove PDF, SVG, XSP, etc - and you will have same
functionality as XMLtoANY under 500K.

Vadim


> Regards,
> 
> Edgar
> 


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

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

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

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




XMLtoAny

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

People,

Have you ever seen this?

http://www.javazoom.net/jzservlets/xmltoany/xmltoany.html

It sounds a lot like cocoon, it is much smaller (about 1 MB zipped).

Regards,

Edgar

-
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: Antw: Re: ESQL-Nested Queries

2002-05-30 Thread Graaf, Edgar de (fin)

Malte

Could you place [EMAIL PROTECTED] in you to. My outlook has a
special map for that kind of email and if you place it in BCC or something,
then my mail gets mixed up

Thank you

Edgar

-Oorspronkelijk bericht-
Van: Malte Vahlenkamp [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 30 mei 2002 15:46
Onderwerp: Antw: Re: ESQL-Nested Queries


Hello Christian,

as far as I could say, I get a ResultSet with the REFCURSOR in it, but I'm
not able to dereferenz on this cursor to access its fields. I have tried
with different methods (getArray(), getObject() casted to ResultSet, ...)
but it doesn't seem to make any difference. 
I just switched to 2.1-dev and don't get any exception. Is it possible, that
the  tag is ignored? I have had a closer look at the generated
sources and it seems, that the  xsp:logic code doesn't show up there. Maybe
you have an idea, what I can do to get this running?


Malte


Malte, could you be a bit more specific on "don't get it running"?
It would be great if you could try 2.1-dev from CVS since 2.0.2 esql
swallows
some exceptions.
Is it correct to use getArray() on a refcursor? 

Chris.


-
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: template possibilities

2002-05-29 Thread Graaf, Edgar de (fin)

Maybe you can use CInclude and parameter

I can't say for sure, because I never done this.



  





I have no idea if it works and if so how I would use the parameter in
cinclude.

Maybe this works:

http://foo.bar.com/xmlhack"/>


-Oorspronkelijk bericht-
Van: Sebastien SACARD [mailto:[EMAIL PROTECTED]]
Verzonden: woensdag 29 mei 2002 14:05
Aan: [EMAIL PROTECTED]
Onderwerp: template possibilities


Hi,

I want to use cocoon to generate my website static pages and I know it 
can do it perfectly; but I did not find a way to do this simple thing :
- my pages are built from different modules and a gobal template.
- Each module is composed of one XML document and a XSLT file, and I 
want to concatenate (merge would be the better word) in the global 
template. But I don't want to concatenate the files one after the other 
: I want to be able to choose where each module will be inserted in the 
global template.
I know I can get the modules XML from the global template, using the 
select="document('module.xml')" method, but I don't want to have to XST 
code for the modules inside the template, and I don't want to have an 
include of the module XSLT files either...

In other word, can cocoon concatenate XSLT results at given places, or 
in a given order rather than sequentially ?
I'm sure this is possible but can someone tell me how ?


Sébastien Sacard



-
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: Sitemap object in xsp

2002-05-29 Thread Graaf, Edgar de (fin)

How can that parameter be used in XSP? xsp:get-parameter? Because
xsp-request:get-parameter is only for request parameter isn't it?

Edgar

-Oorspronkelijk bericht-
Van: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Verzonden: woensdag 29 mei 2002 4:26
Aan: [EMAIL PROTECTED]
Onderwerp: RE: Sitemap object in xsp


> From: Kenny Chow [mailto:[EMAIL PROTECTED]]
> 
> Hi there,
> After an action is executed in a pipeline, a map
> object is returned. Now my question comes -- how could
> I possibly obtain this map object in xsp?
> 
> any response appreciated. :)

Here is the response:

  It is not possible.

Use request's or session's attributes to pass information. The only
other possibility is to pass sitemap parameters to the XSP explicitly:


  

  


But you have to know all parameter names and they should be fixed.

Vadim


> KC
> 


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




FW: html2jpg

2002-05-28 Thread Graaf, Edgar de (fin)




-Oorspronkelijk bericht-
Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
Verzonden: dinsdag 28 mei 2002 13:40
Aan: [EMAIL PROTECTED]
Onderwerp: Re: html2jpg


From: "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]>

> Would it not be handy to get a image of for example www.cnn.com. I think
> so... But unfortunately not everything is well formed (x)html

Making an image from www.cnn.com will be like writing a rendering engine

-> Thats right, that is probably why it is just too much work...

 for a browser. Is it worth? ;)

And how would you use those images?
-> The user can view the page in a thumbnail (prob a bit larger then that)
without the need to jump to it

KP

>
> -Oorspronkelijk bericht-
> Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
> Verzonden: dinsdag 28 mei 2002 11:44
> Aan: [EMAIL PROTECTED]
> Onderwerp: Re: html2jpg
>
>
> From: "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]>
>
> > Tidy doesn't work when you have , this wil not be converted to
.
> > This cause an error saying br misses a closing tag
>
> This is either a bug in Tidy or can be configured. See the docs.
> Otherwise, why to use it if you have already well-formed XHTML?
>
> Konstantin
>
> >
> > -Oorspronkelijk bericht-
> > Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
> > Verzonden: dinsdag 28 mei 2002 10:36
> > Aan: [EMAIL PROTECTED]
> > Onderwerp: Re: html2jpg
> >
> >
> > From: "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]>
> >
> > > Hi,
> > >
> > > I want to make a jpg from a html. Is there someone who at least
converts
> > > html to svg?
> >
> > Are you sure that want html2jpg and not xml2jpg?
> > There is a sample in cocoon for performing: XML -> SVG -> JPG
generation.
> > For using HTML for this you should use Tidy to generate XHTML from it
and
> > then use an XHTML -> SVG -> JPG pipeline.
> >
> > Konstantin
> >
> > >
> > > thanks,
> > >
> > > Edgar
> > >
> > > -
> > > Please check that your question has not already been answered in the
> > > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> > >
> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > > For additional commands, e-mail: <[EMAIL PROTECTED]>
> > >
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> >
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>

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

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

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

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




FW: Real dumb question - how to concatenate XML files

2002-05-28 Thread Graaf, Edgar de (fin)



-Oorspronkelijk bericht-
Van: Graaf, Edgar de (fin) 
Verzonden: dinsdag 28 mei 2002 9:28
Aan: '[EMAIL PROTECTED]'
Onderwerp: RE: Real dumb question - how to concatenate XML files













It takes 4 xml of 2 are XSP and makes one XML of it.

Regards,

Edgar

-Oorspronkelijk bericht-
Van: daniel robinson [mailto:[EMAIL PROTECTED]]
Verzonden: dinsdag 28 mei 2002 7:37
Aan: [EMAIL PROTECTED]
Onderwerp: Real dumb question - how to concatenate XML files



Ok.  This is a dumb one, for many reasons - but I've been trying to
figure it out for hours and have been all over the mail archives to try
and figure it out.

Say I have 3 XML files and I want to use them with an XSLT to respond to

a request.  What is the best way to do this?  I checked out the FAQ but
had no idea WHAT WAS SUPPOSED TO BE INSIDE THE XML files being
concatenated.  An example would be VERY USEFUL.  I tried using cinclude
but that didn't help.

Sorry for being such a noob.






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

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

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

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




RE: html2jpg

2002-05-28 Thread Graaf, Edgar de (fin)



-Oorspronkelijk bericht-
Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
Verzonden: dinsdag 28 mei 2002 13:40
Aan: [EMAIL PROTECTED]
Onderwerp: Re: html2jpg


From: "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]>

> Would it not be handy to get a image of for example www.cnn.com. I think
> so... But unfortunately not everything is well formed (x)html

Making an image from www.cnn.com will be like writing a rendering engine

-> Thats right, that is probably why it is just too much work...

 for a browser. Is it worth? ;)

And how would you use those images?
-> The user can view the page in a thumbnail (prob a bit larger then that)
without the need to jump to it

KP

>
> -Oorspronkelijk bericht-
> Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
> Verzonden: dinsdag 28 mei 2002 11:44
> Aan: [EMAIL PROTECTED]
> Onderwerp: Re: html2jpg
>
>
> From: "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]>
>
> > Tidy doesn't work when you have , this wil not be converted to
.
> > This cause an error saying br misses a closing tag
>
> This is either a bug in Tidy or can be configured. See the docs.
> Otherwise, why to use it if you have already well-formed XHTML?
>
> Konstantin
>
> >
> > -Oorspronkelijk bericht-
> > Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
> > Verzonden: dinsdag 28 mei 2002 10:36
> > Aan: [EMAIL PROTECTED]
> > Onderwerp: Re: html2jpg
> >
> >
> > From: "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]>
> >
> > > Hi,
> > >
> > > I want to make a jpg from a html. Is there someone who at least
converts
> > > html to svg?
> >
> > Are you sure that want html2jpg and not xml2jpg?
> > There is a sample in cocoon for performing: XML -> SVG -> JPG
generation.
> > For using HTML for this you should use Tidy to generate XHTML from it
and
> > then use an XHTML -> SVG -> JPG pipeline.
> >
> > Konstantin
> >
> > >
> > > thanks,
> > >
> > > Edgar
> > >
> > > -
> > > Please check that your question has not already been answered in the
> > > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> > >
> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > > For additional commands, e-mail: <[EMAIL PROTECTED]>
> > >
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> >
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>

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

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

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

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




RE: html2jpg

2002-05-28 Thread Graaf, Edgar de (fin)

Would it not be handy to get a image of for example www.cnn.com. I think
so... But unfortunately not everything is well formed (x)html

-Oorspronkelijk bericht-
Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
Verzonden: dinsdag 28 mei 2002 11:44
Aan: [EMAIL PROTECTED]
Onderwerp: Re: html2jpg


From: "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]>

> Tidy doesn't work when you have , this wil not be converted to .
> This cause an error saying br misses a closing tag

This is either a bug in Tidy or can be configured. See the docs.
Otherwise, why to use it if you have already well-formed XHTML?

Konstantin

>
> -Oorspronkelijk bericht-
> Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
> Verzonden: dinsdag 28 mei 2002 10:36
> Aan: [EMAIL PROTECTED]
> Onderwerp: Re: html2jpg
>
>
> From: "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]>
>
> > Hi,
> >
> > I want to make a jpg from a html. Is there someone who at least converts
> > html to svg?
>
> Are you sure that want html2jpg and not xml2jpg?
> There is a sample in cocoon for performing: XML -> SVG -> JPG generation.
> For using HTML for this you should use Tidy to generate XHTML from it and
> then use an XHTML -> SVG -> JPG pipeline.
>
> Konstantin
>
> >
> > thanks,
> >
> > Edgar
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> >
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>

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

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

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

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




RE: html2jpg

2002-05-28 Thread Graaf, Edgar de (fin)

Tidy doesn't work when you have , this wil not be converted to .
This cause an error saying br misses a closing tag

-Oorspronkelijk bericht-
Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
Verzonden: dinsdag 28 mei 2002 10:36
Aan: [EMAIL PROTECTED]
Onderwerp: Re: html2jpg


From: "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]>

> Hi,
>
> I want to make a jpg from a html. Is there someone who at least converts
> html to svg?

Are you sure that want html2jpg and not xml2jpg?
There is a sample in cocoon for performing: XML -> SVG -> JPG generation.
For using HTML for this you should use Tidy to generate XHTML from it and
then use an XHTML -> SVG -> JPG pipeline.

Konstantin

>
> thanks,
>
> Edgar
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>

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

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

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

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




html2jpg

2002-05-28 Thread Graaf, Edgar de (fin)

Hi,

I want to make a jpg from a html. Is there someone who at least converts
html to svg?

thanks,

Edgar

-
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: renewed Newbie Question

2002-05-28 Thread Graaf, Edgar de (fin)

Hi,

Well then I should make another list ;-)

A. Backup your cocoon + tomcat (copy it in a zip or something)
B. Shutdown tomcat
C. Delete ROOT (in webapps of tomcat)
D. rename cocoon to ROOT
E. Open your sitemap and mount the directory of the user (look in the
example sitemap how to do that)
F. Create a sitemap for that subdirectory.
G. Start tomcat

Instead of E & F you can also do (in the sitemap.xmap of cocoon)

   
   
   


the wildcard will fill the {1}. When you call
http://localhost/~user/hello-page.xml

{1} will contain ~user/hello-page.xml

Cocoon will for example load: C:\tomcat4\webapps\ROOT\~user\hello-page.xml
If you add a tranformation each xml matching the wildcard will be
transformed...

ps. to change the port goto server.xml of tomcat and search for
org.apache.catalina.connector.http.HttpConnector. Change port 8080 to 80.

-Oorspronkelijk bericht-
Van: Jens Nie [mailto:[EMAIL PROTECTED]]
Verzonden: maandag 27 mei 2002 21:42
Aan: [EMAIL PROTECTED]
Onderwerp: Re: renewed Newbie Question


Am Montag, 27. Mai 2002 14:43 schrieb Graaf, Edgar de (fin):
> If I understand you correctly you want users to be able to place xml in
> cocoon that is processed by cocoon.
> Well:
> 1. Create a subdirectory in ../cocoon/
> 2. Mount that directory (in the sitemap.xmap of /cocoon/)
> 3. In that subdirectory you place a sitemap.xmap
> 4. Per user make a directory and give them access.
> 5. If you want them to be able to run xsp you add the following to the
> sitemap:
> 
>   
>   
>   
> 
>
Well at first thank you for that suggestion. But i think it does not exactly

match what i wan't to do using cocoon. See the following example:

http://localhost:8080/cocoon/samples/hello/hello-page.xml

gives me the simplest xml-to html transform possible. That's taken from the 
live samples section of cocoon, and is working pretty well.
As far as i understand the whole thing, this works because tomcat running at

localhost:8080 knows to run cocoon on this url as /cocoon/ is in the path
and 
it's an xml-document. What I wan't to have working is the same thing with
the 
following url:

http://localhost:8080/~user/cocoon/samples/hello/hello-page.xml

or even better

http://localhost/~user/hello-page.xml

that is really all that would be satisfying (at the moment of course)

Thanks for any help

jneines

-- 
Dipl.-Phys. Jens Nie
Fachbereich Physik, Universität Osnabrück
[EMAIL PROTECTED], http://godot.physik.uni-osnabrueck.de/~jnie

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

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

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

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




RE: renewed Newbie Question

2002-05-27 Thread Graaf, Edgar de (fin)

If I understand you correctly you want users to be able to place xml in
cocoon that is processed by cocoon.
Well:
1. Create a subdirectory in ../cocoon/
2. Mount that directory (in the sitemap.xmap of /cocoon/)
3. In that subdirectory you place a sitemap.xmap
4. Per user make a directory and give them access.
5. If you want them to be able to run xsp you add the following to the
sitemap:

  
  
  


-Oorspronkelijk bericht-
Van: Jens Nie [mailto:[EMAIL PROTECTED]]
Verzonden: maandag 27 mei 2002 13:34
Aan: [EMAIL PROTECTED]
Onderwerp: renewed Newbie Question


Hi cocooners,

i just asked that question a couple of days before, but did not receive any 
response to it. And i suppose it's simple for you gurus. So i'm about to try

again.

I have installed the jakarta-tomcat and cocoon packages shipped with the 
Suse-8.0 LinuX-Distribution. The examples work fine. 

The question is: what changes do i have to make to apache/tomcat/cocoon 
configuration to make cocoon processing work in user homepages?

Any sugestions? 

Sincerly
jneines


-- 
  Dipl. Phys. Jens Nie
 Fachbereich Physik, Universität Osnabrück
[EMAIL PROTECTED], http://godot.physik.uni-osnabrueck.de/~jnie



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

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

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

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




RE: How can I use a different XSLT Processor?

2002-05-27 Thread Graaf, Edgar de (fin)

NullPointers and other strange error seemed to be solved. I still have to
test it with JMeter. If it stands that, great...

Thanks

Edgar

-Oorspronkelijk bericht-
Van: Stephen Ng [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 24 mei 2002 14:50
Aan: [EMAIL PROTECTED]
Onderwerp: RE: How can I use a different XSLT Processor?


Although I was never totally successful with this, AFAIK this is what
you need to do for Saxon in Cocoon 2.0.2:

1. Replace xalan-2.3.1 with saxon.jar.
2. Use v1.9 of xsp.xsl
(http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoo
n/components/language/markup/xsp/java/xsp.xsl)
3. Start the servlet-engine with the additional switch
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFac
toryImpl

Be sure to clear out your cache directory before restarting.

Steve

> -Original Message-
> From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, May 24, 2002 7:37 AM
> To: Cocoon-Users (E-mail)
> Subject: How can I use a different XSLT Processor?
> 
> 
> Hi,
> 
> Can someone tell me how I would use a different XSLT 
> Processor? For example Saxon
> 
> Regards
> 
> Edgar
> 
> -
> Please check that your question has not already been answered 
> in the FAQ before posting. 
<http://xml.apache.org/cocoon/faqs.html>

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



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

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

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

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




RE: How can I use a different XSLT Processor?

2002-05-27 Thread Graaf, Edgar de (fin)

Thanx, I will try it out

-Oorspronkelijk bericht-
Van: Stephen Ng [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 24 mei 2002 14:50
Aan: [EMAIL PROTECTED]
Onderwerp: RE: How can I use a different XSLT Processor?


Although I was never totally successful with this, AFAIK this is what
you need to do for Saxon in Cocoon 2.0.2:

1. Replace xalan-2.3.1 with saxon.jar.
2. Use v1.9 of xsp.xsl
(http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoo
n/components/language/markup/xsp/java/xsp.xsl)
3. Start the servlet-engine with the additional switch
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFac
toryImpl

Be sure to clear out your cache directory before restarting.

Steve

> -Original Message-
> From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, May 24, 2002 7:37 AM
> To: Cocoon-Users (E-mail)
> Subject: How can I use a different XSLT Processor?
> 
> 
> Hi,
> 
> Can someone tell me how I would use a different XSLT 
> Processor? For example Saxon
> 
> Regards
> 
> Edgar
> 
> -
> Please check that your question has not already been answered 
> in the FAQ before posting. 
<http://xml.apache.org/cocoon/faqs.html>

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



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

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

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

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




RE: how do I redirect in an Action?

2002-05-27 Thread Graaf, Edgar de (fin)

It totally depends on what you want to replace with your resource...

if you have the pipeline like:
==

...
...





You can change this to the following:
=










...
...




...

..



The advantage is that if you change the stylesheet pageTohtml.xsl you only
have to change it in one place.


-Oorspronkelijk bericht-
Van: Christopher Painter-Wakefield [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 23 mei 2002 17:39
Aan: [EMAIL PROTECTED]
Onderwerp: RE: how do I redirect in an Action?



Thanks for all the suggestions.  I'm pretty confused at this point, as I
haven't used  or  previously, so I need to spend
some time understanding the code you've offered.  One thing in particular I
don't see is where I should put my normal generate, transform, and
serialize steps for the protected URL.  Do they just go after the call to
the resource?

-Christopher



Hi Christopher and Edgar,

Couple things.  I could be wrong, but I believe in Edgar's example, the
redirect would always execute (since it sits outside the action).

Also, depending on how many protected url matchers you have, you can also
delegate all work to a resource where you could put all your authentication
and redirect logic (so you don't have to have it in each matcher).  So you
could do something like this:

 
  
   
   ... any other params you might need to process this
pipe ...
  
 

 
  
   
   ... any other params you might need to process this
pipe ...
  
 

And the resource might look like:

 
  
   


 ... stuff to process pipeline based
on params


 

   
  
 


Anyway, hope that helps!

Harry




-
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: Tomcat error, BeginnerQuestion

2002-05-27 Thread Graaf, Edgar de (fin)

Okay, great. But what I tried to tell you is that we need more information
to help you:
* What are you trying to do? Installing a new Xalan? Why as far as I know
Cocoon 2.0.2 already uses the newest Xalan.
* Why do you change web.xml? (Since that is not needed when you place a new
jar in a lib directory. Well not with the tomcat I use.)
* Why are you deleting xerces? Because xerces is a XML parser and xalan is a
XSLT Processor. It is totally different stuff and Cocoon 2 can't work
without a XML parser.
* What do you mean with the common lib. 'Tomcat/lib'? or do you mean
'.../cocoon/WEB-INF/lib'?
* What do you want to test? Performance?

-Oorspronkelijk bericht-
Van: Rajeev Singh [mailto:[EMAIL PROTECTED]]
Verzonden: maandag 27 mei 2002 7:30
Aan: [EMAIL PROTECTED]
Onderwerp: RE: Tomcat error, BeginnerQuestion


Hey, it worked,
I just placed xercex-XXX along with batik, xalan, xml-apis into common
lib .
The error I was making was in web.xml. I had to put all this param-value
in single line and not multiple lines.

Now I want to make a test app of my own . how do I start.

-Original Message-----
From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]] 
Sent: Friday, May 24, 2002 4:45 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Tomcat error, BeginnerQuestion

Just curious. What did you change in the web.xml? And why did you remove
xerces? What version of Xerces did you use?

-Oorspronkelijk bericht-
Van: Rajeev Singh [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 24 mei 2002 12:20
Aan: [EMAIL PROTECTED]
Onderwerp: Tomcat error, BeginnerQuestion




I am using Tomcat4.0.3.
I have removed xerces and placed xalanXXX, xercesXXX and xml-apis.jar
and change entries in web.xml and restarted the tomcat. I got following
exception. I am using Cocoon2.0.2.

Error starts here=

type fatal

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

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

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

java.lang.ClassCastException:
org.apache.xerces.parsers.StandardParserConfiguration
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown
Source)
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown
Source)
at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.gene
rateCode(AbstractMarkupLanguage.java:377)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.gen
erateResource(ProgramGeneratorImpl.java:365)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.cre
ateResource(ProgramGeneratorImpl.java:328)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa
d(ProgramGeneratorImpl.java:291)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Thread.java:484)


request-uri

/cocoon/

path-info
==error ends==


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

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

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

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



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

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

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

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




RE: TreeProcessor performance

2002-05-27 Thread Graaf, Edgar de (fin)

I don't know exactly what you mean. However I only have one computer, a 196
MB Pentium 233 MhZ. If that isn't slow...
Everyone says the treeprocessor is much faster, that is why this suprised me
so much. 
Of course when I change stuff the treeprocessor will be faster. But it has
to be faster when it is released and the program is not changed much



-Oorspronkelijk bericht-
Van: Olivier Rossel [mailto:[EMAIL PROTECTED]]
Verzonden: maandag 27 mei 2002 11:05
Aan: [EMAIL PROTECTED]
Onderwerp: Re: TreeProcessor performance


COuld you please give us your bench with a brand new version of the 
sitemap.xmap (for example, edit it, change a line, save the file, 
measure the perf with a given processor, and reprocess all that for each
processor).

On a slow 128MB machine, sitemap compilation takes ages to complete.
TreeProcessor is much faster.

I did not try with Saxon.


Graaf, Edgar de (fin) wrote:

> Hi,
> 
> Recently I installed the TreeProcessor instead of compiling. Everyone says
> it is faster then compiling the sitemap, so I didn't test it. Then I
> installed Saxon and tot test Saxon I did a Jmeter test. My application
> collapsed from 6 seconds average response time to 20 seconds!? So I put
> xalan back, 27 seconds!? Then I put the compiled version back and I got 6
> seconds my question to you is: 
> 
> Does anybody know why this could be? Does the TreeProcessor cost more
> memory? (I only have 196 MB) Are there some bugs in certain versions of
the
> TreeProcessor? Or is the TreeProcessor just not scaleable?
> 
> Thanks,
> 
> Edgar
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 



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

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

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

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




TreeProcessor performance

2002-05-27 Thread Graaf, Edgar de (fin)

Hi,

Recently I installed the TreeProcessor instead of compiling. Everyone says
it is faster then compiling the sitemap, so I didn't test it. Then I
installed Saxon and tot test Saxon I did a Jmeter test. My application
collapsed from 6 seconds average response time to 20 seconds!? So I put
xalan back, 27 seconds!? Then I put the compiled version back and I got 6
seconds my question to you is: 

Does anybody know why this could be? Does the TreeProcessor cost more
memory? (I only have 196 MB) Are there some bugs in certain versions of the
TreeProcessor? Or is the TreeProcessor just not scaleable?

Thanks,

Edgar

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

2002-05-27 Thread Graaf, Edgar de (fin)

So I noticed. In some situation I get a null pointer exception...

Thanks I will try that version

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 24 mei 2002 18:49
Aan: [EMAIL PROTECTED]
Onderwerp: Re: Saxon and Cocoon


Edgar:

Be aware that Saxon 7 is a partial implementation of XSLT/XPATH 2.0 and that
Michael Kay indicates that for production 6.5.2 is the version to use.

Carlos


On 5/24/02 5:07 AM, "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]>
wrote:

> Hi,
> 
> earlier I asked how I would use Saxon in Cocoon. It is very simple, delete
> Xalan and place Saxon in. Saxon 7 is really fast! I see the difference. My
> problem was that I didn't notice anything different, so I guessed I did
> something wrong. However I had a jar called j2ee.jar in my lib, it
contained
> Xalan. If you also want to do this, the search the core.log for
> templatesHandler. If Saxon is there you did everything right
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

-- 
Carlos E. Araya
---+ WebCT Administrator/Trainer
 P | California Virtual Campus
 - | C/O De Anza College
 G | 21250 Stevens Creek Blvd
---+ Cupertino, CA 95014

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

"If there is artificial intelligence, doesn't that imply there is also
artificial stupidity!"


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

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

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

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




RE: Tomcat error, BeginnerQuestion

2002-05-24 Thread Graaf, Edgar de (fin)

Just curious. What did you change in the web.xml? And why did you remove
xerces? What version of Xerces did you use?

-Oorspronkelijk bericht-
Van: Rajeev Singh [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 24 mei 2002 12:20
Aan: [EMAIL PROTECTED]
Onderwerp: Tomcat error, BeginnerQuestion




I am using Tomcat4.0.3.
I have removed xerces and placed xalanXXX, xercesXXX and xml-apis.jar
and change entries in web.xml and restarted the tomcat. I got following
exception. I am using Cocoon2.0.2.

Error starts here=

type fatal

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

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

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

java.lang.ClassCastException:
org.apache.xerces.parsers.StandardParserConfiguration
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown
Source)
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown
Source)
at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.gene
rateCode(AbstractMarkupLanguage.java:377)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.gen
erateResource(ProgramGeneratorImpl.java:365)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.cre
ateResource(ProgramGeneratorImpl.java:328)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa
d(ProgramGeneratorImpl.java:291)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Thread.java:484)


request-uri

/cocoon/

path-info
==error ends==


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




Saxon and Cocoon

2002-05-24 Thread Graaf, Edgar de (fin)

Hi,

earlier I asked how I would use Saxon in Cocoon. It is very simple, delete
Xalan and place Saxon in. Saxon 7 is really fast! I see the difference. My
problem was that I didn't notice anything different, so I guessed I did
something wrong. However I had a jar called j2ee.jar in my lib, it contained
Xalan. If you also want to do this, the search the core.log for
templatesHandler. If Saxon is there you did everything right

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

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




How can I use a different XSLT Processor?

2002-05-24 Thread Graaf, Edgar de (fin)

Hi,

Can someone tell me how I would use a different XSLT Processor? For example
Saxon

Regards

Edgar

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

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




RE: how do I redirect in an Action?

2002-05-24 Thread Graaf, Edgar de (fin)




On 23.May.2002 -- 05:00 PM, Graaf, Edgar de (fin) wrote:
> Christopher,
> 
>  can't contain matchers, how else would cocoon know that the
> action should be run?

Edgar, AFAIK this is not true.  can contain all other tags
that are allowed within a pipeline. 

EDGAR -> Okay prob. Then euh.. sorry Cristopher for misleading you. I have
to adapt my program I guess.
But I thought I copied the example provided by Cocoon. But still my example
works (read on)

Depending on the amount of "pipeline fragments" protected by the
action it would be worthwhile to use a subsitemap, though.

Another misconception in this thread seems to be that the tags after
the action will always be processed. That is only true if it was
determined that they are part of the actual pipeline.

EDGAR -> Agreed, because that is the whole concept my sollution is based
upon. It works, that is for sure. Only maybe it is not the best
sollution

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

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




RE: how do I redirect in an Action?

2002-05-24 Thread Graaf, Edgar de (fin)

I tried the following:



 protected area <==






 

Login is of course outside the protected area. It sets the session variable
when the password is right. It is not high security, I know...

This worked. So you where both right that a matcher can be inside map:act.
Thanks!

Regards

-Oorspronkelijk bericht-
Van: Christian Haul [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 23 mei 2002 18:08
Aan: [EMAIL PROTECTED]
Onderwerp: Re: how do I redirect in an Action?


On 23.May.2002 -- 05:00 PM, Graaf, Edgar de (fin) wrote:
> Christopher,
> 
>  can't contain matchers, how else would cocoon know that the
> action should be run?

Edgar, AFAIK this is not true.  can contain all other tags
that are allowed within a pipeline. 

Depending on the amount of "pipeline fragments" protected by the
action it would be worthwhile to use a subsitemap, though.

Another misconception in this thread seems to be that the tags after
the action will always be processed. That is only true if it was
determined that they are part of the actual pipeline.

The whole process is made in two steps:
1) determine what the pipeline actually contains by evaluating
actions, matchers, selectors, call and redirect tags. A pipeline is
terminated when a serializer is found. For the sake of brevity I
consider a reader here to be a (generator + serializer).

2) Use the components (readers, generators, transformers, serializers)
determined in step 1. Note that in this step no actions, matchers, or
selectors are used.

IOW if a serializer is nested inside a map:act tag, it effectively
terminates the pipeline and tags beneath the map:act will not be
considered.

It works just like it was mentioned with redirects or calls.

HTH

Chris.

-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

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

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

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

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




RE: how do I redirect in an Action?

2002-05-23 Thread Graaf, Edgar de (fin)

This is how it works in my project.

Christian Haul says the same I guess:
"Another misconception in this thread seems to be that the tags after
the action will always be processed. That is only true if it was
determined that they are part of the actual pipeline."

-Oorspronkelijk bericht-
Van: Lai, Harry [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 23 mei 2002 17:49
Aan: '[EMAIL PROTECTED]'
Onderwerp: RE: how do I redirect in an Action?


Hi Edgar,

I may be misunderstanding how actions work, but at least for how we've used
them in our project, anything after an action always executes, regardless of
whether the action returns a null Map or not.  If an action returns a null
Map, it skips the steps inside the act tag, but it will continue executing
the steps after the act tag.  If this isn't always the case, please let me
know.  I'll be the first to admit that my understanding of Cocoon is far
from perfect!  =)

Harry


-----Original Message-
From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 10:25 AM
To: '[EMAIL PROTECTED]'
Subject: RE: how do I redirect in an Action?


Harry,

I have to look in to you example later. 
But the last redirect is to a page that ask you to try again... when the
action doesn't fail(the password is right) that redirect is not executed
(that between the  is).

-Oorspronkelijk bericht-
Van: Lai, Harry [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 23 mei 2002 17:19
Aan: '[EMAIL PROTECTED]'
Onderwerp: RE: how do I redirect in an Action?


Hi Christopher and Edgar,

Couple things.  I could be wrong, but I believe in Edgar's example, the
redirect would always execute (since it sits outside the action).

Also, depending on how many protected url matchers you have, you can also
delegate all work to a resource where you could put all your authentication
and redirect logic (so you don't have to have it in each matcher).  So you
could do something like this:




... any other params you might need to process this
pipe ...






... any other params you might need to process this
pipe ...



And the resource might look like:






... stuff to process pipeline based
on params









Anyway, hope that helps!

Harry

-Original Message-
X-Sybari-Space:    
From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 10:01 AM
To: '[EMAIL PROTECTED]'
Subject: RE: how do I redirect in an Action?


Christopher,

 can't contain matchers, how else would cocoon know that the
action should be run?

try:

  

...


  

  

...


  

regards

Edgar

-Oorspronkelijk bericht-
Van: Christopher Painter-Wakefield [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 23 mei 2002 15:52
Aan: [EMAIL PROTECTED]
Onderwerp: Re: how do I redirect in an Action?



I'm trying to implement a homegrown authentication scheme.  One of our
types of users will be "authenticated" by coming into the system with
appropriate credentials as request parameters in the URL (we will e-mail
them their unique URL).  This is to avoid generating a large number of user
ids and requiring all these users to remember credentials for a system they
will likely use once or twice a year.  None of the existing server-level
authentication schemes would seem to support this.

Once the user has "logged in" by providing the correct credentials, I
planned to store their identity and the fact that they have been
authenticated in their session.

So, each time a request is made to a protected page, I need to first check
the session to see if the user is already authenticated.  If not, I need to
check the request parameters, if available, against the database.  If both
of these fail, I need to redirect the user to a polite login failure page
(at some point we will have users that use a traditional login mechanism,
at which point we'll probably redirect to a login form).

I read the Action docs and searched through the mail archives, and I
thought I could do something like this:


  
...
  

  
...
  


As I understood it, if the authentication fails, I would redirect to my
failure page in the Action and return null to prevent anything inside the
 element from running.  If t

RE: how do I redirect in an Action?

2002-05-23 Thread Graaf, Edgar de (fin)

Harry,

I have to look in to you example later. 
But the last redirect is to a page that ask you to try again... when the
action doesn't fail(the password is right) that redirect is not executed
(that between the  is).

-Oorspronkelijk bericht-
Van: Lai, Harry [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 23 mei 2002 17:19
Aan: '[EMAIL PROTECTED]'
Onderwerp: RE: how do I redirect in an Action?


Hi Christopher and Edgar,

Couple things.  I could be wrong, but I believe in Edgar's example, the
redirect would always execute (since it sits outside the action).

Also, depending on how many protected url matchers you have, you can also
delegate all work to a resource where you could put all your authentication
and redirect logic (so you don't have to have it in each matcher).  So you
could do something like this:




... any other params you might need to process this
pipe ...






... any other params you might need to process this
pipe ...



And the resource might look like:






... stuff to process pipeline based
on params









Anyway, hope that helps!

Harry

-Original Message-----
From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 10:01 AM
To: '[EMAIL PROTECTED]'
Subject: RE: how do I redirect in an Action?


Christopher,

 can't contain matchers, how else would cocoon know that the
action should be run?

try:

  

...


  

  

...


  

regards

Edgar

-Oorspronkelijk bericht-
Van: Christopher Painter-Wakefield [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 23 mei 2002 15:52
Aan: [EMAIL PROTECTED]
Onderwerp: Re: how do I redirect in an Action?



I'm trying to implement a homegrown authentication scheme.  One of our
types of users will be "authenticated" by coming into the system with
appropriate credentials as request parameters in the URL (we will e-mail
them their unique URL).  This is to avoid generating a large number of user
ids and requiring all these users to remember credentials for a system they
will likely use once or twice a year.  None of the existing server-level
authentication schemes would seem to support this.

Once the user has "logged in" by providing the correct credentials, I
planned to store their identity and the fact that they have been
authenticated in their session.

So, each time a request is made to a protected page, I need to first check
the session to see if the user is already authenticated.  If not, I need to
check the request parameters, if available, against the database.  If both
of these fail, I need to redirect the user to a polite login failure page
(at some point we will have users that use a traditional login mechanism,
at which point we'll probably redirect to a login form).

I read the Action docs and searched through the mail archives, and I
thought I could do something like this:


  
...
  

  
...
  


As I understood it, if the authentication fails, I would redirect to my
failure page in the Action and return null to prevent anything inside the
 element from running.  If the authentication succeeds, I return
an empty Map and the stuff inside the  element will run as usual.
Now that I'm saying all that it doesn't sound very likely, but I swear I
got it all from the docs.

Any suggestions?

-Christopher



From: "Christopher Painter-Wakefield" <[EMAIL PROTECTED]>

> What is the proper way to redirect in an Action?

Why do you have to redirect in an action?
I would not suggest it.

Redirect instead in the sitemap based on the results of the Action.

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




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

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

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

RE: how do I redirect in an Action?

2002-05-23 Thread Graaf, Edgar de (fin)

Christopher,

 can't contain matchers, how else would cocoon know that the
action should be run?

try:

  

...


  

  

...


  

regards

Edgar

-Oorspronkelijk bericht-
Van: Christopher Painter-Wakefield [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 23 mei 2002 15:52
Aan: [EMAIL PROTECTED]
Onderwerp: Re: how do I redirect in an Action?



I'm trying to implement a homegrown authentication scheme.  One of our
types of users will be "authenticated" by coming into the system with
appropriate credentials as request parameters in the URL (we will e-mail
them their unique URL).  This is to avoid generating a large number of user
ids and requiring all these users to remember credentials for a system they
will likely use once or twice a year.  None of the existing server-level
authentication schemes would seem to support this.

Once the user has "logged in" by providing the correct credentials, I
planned to store their identity and the fact that they have been
authenticated in their session.

So, each time a request is made to a protected page, I need to first check
the session to see if the user is already authenticated.  If not, I need to
check the request parameters, if available, against the database.  If both
of these fail, I need to redirect the user to a polite login failure page
(at some point we will have users that use a traditional login mechanism,
at which point we'll probably redirect to a login form).

I read the Action docs and searched through the mail archives, and I
thought I could do something like this:


  
...
  

  
...
  


As I understood it, if the authentication fails, I would redirect to my
failure page in the Action and return null to prevent anything inside the
 element from running.  If the authentication succeeds, I return
an empty Map and the stuff inside the  element will run as usual.
Now that I'm saying all that it doesn't sound very likely, but I swear I
got it all from the docs.

Any suggestions?

-Christopher



From: "Christopher Painter-Wakefield" <[EMAIL PROTECTED]>

> What is the proper way to redirect in an Action?

Why do you have to redirect in an action?
I would not suggest it.

Redirect instead in the sitemap based on the results of the Action.

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




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

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: how do I redirect in an Action?

2002-05-23 Thread Graaf, Edgar de (fin)



 



is the proper way. In the action 'myaction' a sitemap parameter is set that
sets the nextpage, here it is called 'dest'...

regards

-Oorspronkelijk bericht-
Van: Christopher Painter-Wakefield [mailto:[EMAIL PROTECTED]]
Verzonden: woensdag 22 mei 2002 21:23
Aan: [EMAIL PROTECTED]
Onderwerp: C2: how do I redirect in an Action?



What is the proper way to redirect in an Action?

I presume we are supposed to use the Redirector object, since nothing else
seems able.  I've looked at the Redirector interface, but the API docs have
zero explanation (g!) of the methods.  If this is the right object,
then:
1) what is the difference between redirect() and globalRedirect() and which
one should I use?
2) what is the meaning of the boolean "sessionmode" parameter?

I've searched the list archives and looked through the source and am none
the wiser.

Thanks,
Christopher


-
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: Setting actions in sitemap

2002-05-22 Thread Graaf, Edgar de (fin)


-Oorspronkelijk bericht-
Van: Mike Ash [mailto:[EMAIL PROTECTED]]
Verzonden: woensdag 22 mei 2002 17:05
Aan: '[EMAIL PROTECTED]'
Onderwerp: Setting actions in sitemap


I have an action defined as 

   


first off is this possible?
[Graaf, Edgar de (fin)] 
->Yes I have it  running

 
I know that this is done as well in the form validator, . 
  

 
  

however it appears that everytime I use it I would have to put in the
parameter for the descriptor file,.  I was hoping to set the config file
once in the declaration of the action in the sitemap is it possible.

-> Not that I know of, but you can use a validation-set:


What belongs to that set is defined in de descriptor file

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

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




RE: XSLTC

2002-05-22 Thread Graaf, Edgar de (fin)

O okay, I knew I read something about it somewhere, but at that time I
didn't knew where it was for exactly. Now I knew, but could find where I
read about it.

Thanks,

Edgar

-Oorspronkelijk bericht-
Van: Stephen Ng [mailto:[EMAIL PROTECTED]]
Verzonden: dinsdag 21 mei 2002 17:49
Aan: [EMAIL PROTECTED]
Onderwerp: RE: XSLTC


XSLTC is not ready for general use yet--there are bugs which are being
worked out.  There are a few messages on this topic floating around the
cocoon-dev list.

Steve

> -Original Message-
> From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, May 21, 2002 10:04 AM
> To: Cocoon-Users (E-mail)
> Subject: XSLTC
> 
> 
> Hello,
> 
> Can anyone tell me how I would use XSLTC in cocoon. Is there 
> a transformer that can call a translet or something like 
> that? Maybe it is handy to have the option to compile all XSL 
> on usage (to translet). Or is that already the case?
> 
> Regards,
> 
> Edgar
> 
> -
> Please check that your question has not already been answered 
> in the FAQ before posting. 
<http://xml.apache.org/cocoon/faqs.html>

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



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

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

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

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




RE: http://xml.apache.org/

2002-05-21 Thread Graaf, Edgar de (fin)

Okay thanks everyone. It is probably my connection or IE 5. Al though other
pages of apache.org work fine...

-Oorspronkelijk bericht-
Van: Steven Sedlmeyer [mailto:[EMAIL PROTECTED]]
Verzonden: dinsdag 21 mei 2002 16:36
Aan: '[EMAIL PROTECTED]'
Onderwerp: RE: http://xml.apache.org/


Looks fine from here. (IE 6)

-Original Message-----
From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 21, 2002 10:13 AM
To: Cocoon-Users (E-mail)
Subject: http://xml.apache.org/


Can anyone confirm http://xml.apache.org/ works fine. When I go there
everything is messed up..

Thanks

Edgar

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

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

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

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

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

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




XSLTC

2002-05-21 Thread Graaf, Edgar de (fin)

Hello,

Can anyone tell me how I would use XSLTC in cocoon. Is there a transformer
that can call a translet or something like that? Maybe it is handy to have
the option to compile all XSL on usage (to translet). Or is that already the
case?

Regards,

Edgar

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




http://xml.apache.org/

2002-05-21 Thread Graaf, Edgar de (fin)

Can anyone confirm http://xml.apache.org/ works fine. When I go there
everything is messed up..

Thanks

Edgar

-
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: Looking for companies using cocoon.

2002-05-21 Thread Graaf, Edgar de (fin)

Try:
http://www.q42.nl/projects/

regards

(Als Den Haag in Nederland goed is?)

-Oorspronkelijk bericht-
Van: Cederic Van Herreweghe [mailto:[EMAIL PROTECTED]]
Verzonden: dinsdag 21 mei 2002 13:38
Aan: '[EMAIL PROTECTED]'
Onderwerp: RE: Looking for companies using cocoon.


My definition of CMS :

A system that allows us to create and maintain content in a structured way
in different languages, and publishing it on different websites.

We want to know if this is a better system (a system that fits better to our
needs) than other CMS-solutions such as : Interwoven, Tridion, Gauss,.

Thanks for the quick replies !

Kind regards,

Cederic Van Herreweghe



-Original Message-
From: Michael Homeijer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 21, 2002 12:15
To: '[EMAIL PROTECTED]'
Subject: RE: Looking for comanies using cocoon.


Cederic,

Are you looking for CMS solutions like Wyona (based on Cocoon) or for
websites based on Cocoon?
Maybe you could explain your definition of CMS and what kind of service you
are looking for?

HTH

Michael

> -Original Message-
> From: Cederic Van Herreweghe [mailto:[EMAIL PROTECTED]]
> Sent: dinsdag 21 mei 2002 12:06
> To: '[EMAIL PROTECTED]'
> Subject: Looking for comanies using cocoon.
> 
> 
> I'm looking for companies or people in Belgium or near to 
> belgium who have
> already implemented a cocoon-based content-management-system.
> 
> Thanks in advance for letting me know !
> 
> Kind regards,
> 
> Cederic Van Herreweghe
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

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

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

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

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

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

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




RE: XSP Function to get URL

2002-05-21 Thread Graaf, Edgar de (fin)

I tried that, your right. You still have to use
://:

But my problem here was that you will get something like
http://myserver:8080/cocoon/myprog/index.xsp
And I wanted: http://myserver:8080/cocoon/myprog/

Regards,

Edgar

-Oorspronkelijk bericht-
Van: KOZLOV Roman [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 17 mei 2002 17:29
Aan: [EMAIL PROTECTED]
Onderwerp: Re: XSP Function to get URL


What about  (its from cocoon's samples, there it's
used
with  as="xml" and it's working at least in v2.0.1).

Roman

"Graaf, Edgar de (fin)" wrote:

> I also tried this and could not get the right function (get-request-url or
> something).
> Try
>
://: server-port/>
>
> Regards
>
> Edgar
>
> -Oorspronkelijk bericht-
> Van: Zack Angelo [mailto:[EMAIL PROTECTED]]
> Verzonden: vrijdag 17 mei 2002 5:52
> Aan: [EMAIL PROTECTED]
> Onderwerp: XSP Function to get URL
>
> Is there an XSP or Java class I can access that will give me the URL of
> the current page?
>
> TIA,
> Zack
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>


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

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

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

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




RE: Cocoon one step closer

2002-05-21 Thread Graaf, Edgar de (fin)

try:













by the way this should work:
Instead of:








-Oorspronkelijk bericht-
Van: Stephen Smithstone [mailto:[EMAIL PROTECTED]]
Verzonden: dinsdag 21 mei 2002 9:32
Aan: [EMAIL PROTECTED]
Onderwerp: Cocoon one step closer


Ok seems i have cocoon workin in some respects now :-)

I just downloaded the cocoon2 and not 2.0.2 and now i can get to
transform

however it only picks up on

localhost:8080/cocoon/lnxserv/

and not

localhost:8080/cocoon/lnxserv

heres my cocoon sitemap entry for the lnxserv







my site map is working in the lnxserv/ cos once u go to lnserv/ it loads
up the index.html file how ever i will add it to the end here











Any help would help as im nearly there now :-)

Ta

Stephen








-
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: cocoon confustion again going insane now -- sorry for being a dumb ass but i need help please

2002-05-21 Thread Graaf, Edgar de (fin)

Stephen,

I hope it helps. Read '->'

-Oorspronkelijk bericht-
Van: Stephen Smithstone [mailto:[EMAIL PROTECTED]]
Verzonden: maandag 20 mei 2002 22:46
Aan: [EMAIL PROTECTED]
Onderwerp: cocoon confustion again going insane now -- sorry for being a
dumb ass but i need help please




I appericated that , but guess what its not workin :/

-> What error message do you get?

so i have enclosed both my projects sitemap.xmap and the cocoon
sitemap.xmap

i created a src dir under /var/tomcat/webapps/cocoon/lnxserv where i
put the projects sitemap.xmap

heres the sitemap.xmap for that


http://apache.org/cocoon/sitemap/1.0";>





















-> So index.html is in the lnxservr directory and not in some subdirectory
('static/' ?)

and at the bottom of the cocoon site map i have added

in between the 



.. Other cocoon stuff already there






->




But I guess this is a mistake in your email
<-


then when i got to localhost:8080/cocoon/lnxserv - nothing appears

in the cocoons site map do i have define another
 to contain just my new apps stuff or can i
just have then contained by the main ones

-> That is not needed


also i keep restarting tomcat i supppose thats correct

-> It okay, but  not needed. If you set sitemap to compile it takes a couple
of seconds before everything works

is there any thing i need to change in the cocoon.xconf file i changed
the  where the reload-method use to be asynchron 

-> I think not







i running on port 8080 please have a look and see if u can spot the
errors

im u running tomcat 4.0 binary version , java jdk 1.3.1_01 and the
latest cocoon2.0.2 binary version 


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

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

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

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




RE: XSP Function to get URL

2002-05-17 Thread Graaf, Edgar de (fin)

I also tried this and could not get the right function (get-request-url or
something).
Try
://:

Regards

Edgar

-Oorspronkelijk bericht-
Van: Zack Angelo [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 17 mei 2002 5:52
Aan: [EMAIL PROTECTED]
Onderwerp: XSP Function to get URL


Is there an XSP or Java class I can access that will give me the URL of
the current page? 

TIA,
Zack


-
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: upgrading to Cocoon2 and debugging

2002-05-17 Thread Graaf, Edgar de (fin)

Well I haven't changed that part of the sitemap. I left it like apache
created it. Besides the compiled version works with the same file.

Edgar

ps map:generate is used...

-Oorspronkelijk bericht-
Van: KOZLOV Roman [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 17 mei 2002 12:06
Aan: [EMAIL PROTECTED]
Onderwerp: Re: upgrading to Cocoon2 and debugging


Hello Edgar,

Did you write map prefix, like map:generate ?

Roman

"Graaf, Edgar de (fin)" wrote:

> Now I know, I things have changed. My sitemap doesn't work... first
> XMLDBCollection goes wrong, but that one is deprecated. Then when I
comment
> that one out I get a message:
>
> No default type exists for 'generate' at
> file:/D:/Tomcat4/webapps/cocoon/bugtrack/sitemap.xmap:95:-1
>
> But I have a default, namely 'file'
>
> Regards
>
> Edgar
>
> -Oorspronkelijk bericht-
> Van: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
> Verzonden: vrijdag 17 mei 2002 9:07
> Aan: '[EMAIL PROTECTED]'
> Onderwerp: RE: upgrading to Cocoon2 and debugging
>
> Thanks Konstantin!
> But what I don't understand is if this is faster and better, why is it
> commented out? I didn't do that
>
> Regards,
>
> Edgar
>
> -Oorspronkelijk bericht-
> Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
> Verzonden: donderdag 16 mei 2002 13:19
> Aan: [EMAIL PROTECTED]
> Onderwerp: Re: upgrading to Cocoon2 and debugging
>
> From: "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]>
>
> > That I don't know because I never upgraded from C1. However when I adapt
> the
> > sitemap while Cocoon is running it takes 10
> > seconds at least before cocoon is ready and the nullpointerexception
> > dissapears.
>
> I can't remember that I've experienced any NPE with the TreeProcessor
> sitemap engine. Check if you are using it and not the compiled version
(see
> 'sitemap' element in cocoon.xconf).
>
> Regards,
>   Konstantin
>
> >
> > If there is nothing in the log or in your tomcat dos prompt do the
> > following: call the url, wait 10 seconds (untill your processor calms
> down).
> > Then reload
> >
> > -Oorspronkelijk bericht-
> > Van: gorillacommunications [mailto:[EMAIL PROTECTED]]
> > Verzonden: woensdag 15 mei 2002 22:54
> > Aan: [EMAIL PROTECTED]
> > Onderwerp: upgrading to Cocoon2 and debugging
> >
> >
> > Hi all.
> >
> > I am upgrading an application from Cocoon1 to Cocoon2 and am
> > having some problems. I get the error "Exception in creating Transform
> > Handler:
> > java.lang.NullPointerException".
> >
> > 1. I created a pipeline in sitemap.xmap, but are there any special
things
> I
> > must do to my XML and XSL files to upgrade?
> >
> > 2. How do I see meaningful debugging info? I looked in the archive
> > and think I have the settings correct in web.xml and logkit.xconf, but
> > I see no info in any of the logs for this application (other
applications
> > dump output to the logs). At least Cocoon1 would write a message
> > to the console telling me what the parser choked on (I read in
> > the archive that this message is caused by an error in the XSL).
> >
> > Thanks for any help.
> > Leona Slepetis
> >
> >
> >
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> >
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EM

RE: upgrading to Cocoon2 and debugging

2002-05-17 Thread Graaf, Edgar de (fin)

Now I know, I things have changed. My sitemap doesn't work... first
XMLDBCollection goes wrong, but that one is deprecated. Then when I comment
that one out I get a message:

No default type exists for 'generate' at
file:/D:/Tomcat4/webapps/cocoon/bugtrack/sitemap.xmap:95:-1

But I have a default, namely 'file'

Regards

Edgar

-Oorspronkelijk bericht-----
Van: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 17 mei 2002 9:07
Aan: '[EMAIL PROTECTED]'
Onderwerp: RE: upgrading to Cocoon2 and debugging


Thanks Konstantin!
But what I don't understand is if this is faster and better, why is it
commented out? I didn't do that

Regards,

Edgar

-Oorspronkelijk bericht-
Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 16 mei 2002 13:19
Aan: [EMAIL PROTECTED]
Onderwerp: Re: upgrading to Cocoon2 and debugging


From: "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]>

> That I don't know because I never upgraded from C1. However when I adapt
the
> sitemap while Cocoon is running it takes 10
> seconds at least before cocoon is ready and the nullpointerexception
> dissapears.

I can't remember that I've experienced any NPE with the TreeProcessor
sitemap engine. Check if you are using it and not the compiled version (see
'sitemap' element in cocoon.xconf).

Regards,
  Konstantin

>
> If there is nothing in the log or in your tomcat dos prompt do the
> following: call the url, wait 10 seconds (untill your processor calms
down).
> Then reload
>
> -Oorspronkelijk bericht-
> Van: gorillacommunications [mailto:[EMAIL PROTECTED]]
> Verzonden: woensdag 15 mei 2002 22:54
> Aan: [EMAIL PROTECTED]
> Onderwerp: upgrading to Cocoon2 and debugging
>
>
> Hi all.
>
> I am upgrading an application from Cocoon1 to Cocoon2 and am
> having some problems. I get the error "Exception in creating Transform
> Handler:
> java.lang.NullPointerException".
>
> 1. I created a pipeline in sitemap.xmap, but are there any special things
I
> must do to my XML and XSL files to upgrade?
>
> 2. How do I see meaningful debugging info? I looked in the archive
> and think I have the settings correct in web.xml and logkit.xconf, but
> I see no info in any of the logs for this application (other applications
> dump output to the logs). At least Cocoon1 would write a message
> to the console telling me what the parser choked on (I read in
> the archive that this message is caused by an error in the XSL).
>
> Thanks for any help.
> Leona Slepetis
>
>
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>

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

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

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

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

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

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




RE: upgrading to Cocoon2 and debugging

2002-05-16 Thread Graaf, Edgar de (fin)

Thanks Konstantin!
But what I don't understand is if this is faster and better, why is it
commented out? I didn't do that

Regards,

Edgar

-Oorspronkelijk bericht-
Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 16 mei 2002 13:19
Aan: [EMAIL PROTECTED]
Onderwerp: Re: upgrading to Cocoon2 and debugging


From: "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]>

> That I don't know because I never upgraded from C1. However when I adapt
the
> sitemap while Cocoon is running it takes 10
> seconds at least before cocoon is ready and the nullpointerexception
> dissapears.

I can't remember that I've experienced any NPE with the TreeProcessor
sitemap engine. Check if you are using it and not the compiled version (see
'sitemap' element in cocoon.xconf).

Regards,
  Konstantin

>
> If there is nothing in the log or in your tomcat dos prompt do the
> following: call the url, wait 10 seconds (untill your processor calms
down).
> Then reload
>
> -Oorspronkelijk bericht-
> Van: gorillacommunications [mailto:[EMAIL PROTECTED]]
> Verzonden: woensdag 15 mei 2002 22:54
> Aan: [EMAIL PROTECTED]
> Onderwerp: upgrading to Cocoon2 and debugging
>
>
> Hi all.
>
> I am upgrading an application from Cocoon1 to Cocoon2 and am
> having some problems. I get the error "Exception in creating Transform
> Handler:
> java.lang.NullPointerException".
>
> 1. I created a pipeline in sitemap.xmap, but are there any special things
I
> must do to my XML and XSL files to upgrade?
>
> 2. How do I see meaningful debugging info? I looked in the archive
> and think I have the settings correct in web.xml and logkit.xconf, but
> I see no info in any of the logs for this application (other applications
> dump output to the logs). At least Cocoon1 would write a message
> to the console telling me what the parser choked on (I read in
> the archive that this message is caused by an error in the XSL).
>
> Thanks for any help.
> Leona Slepetis
>
>
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>

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

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

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

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




RE: upgrading to Cocoon2 and debugging

2002-05-16 Thread Graaf, Edgar de (fin)

That I don't know because I never upgraded from C1. However when I adapt the
sitemap while Cocoon is running it takes 10 
seconds at least before cocoon is ready and the nullpointerexception
dissapears.

If there is nothing in the log or in your tomcat dos prompt do the
following: call the url, wait 10 seconds (untill your processor calms down).
Then reload

-Oorspronkelijk bericht-
Van: gorillacommunications [mailto:[EMAIL PROTECTED]]
Verzonden: woensdag 15 mei 2002 22:54
Aan: [EMAIL PROTECTED]
Onderwerp: upgrading to Cocoon2 and debugging


Hi all.

I am upgrading an application from Cocoon1 to Cocoon2 and am
having some problems. I get the error "Exception in creating Transform
Handler:
java.lang.NullPointerException".

1. I created a pipeline in sitemap.xmap, but are there any special things I
must do to my XML and XSL files to upgrade?

2. How do I see meaningful debugging info? I looked in the archive
and think I have the settings correct in web.xml and logkit.xconf, but
I see no info in any of the logs for this application (other applications
dump output to the logs). At least Cocoon1 would write a message
to the console telling me what the parser choked on (I read in
the archive that this message is caused by an error in the XSL).

Thanks for any help.
Leona Slepetis




-
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: Tutorial XSL..

2002-05-15 Thread Graaf, Edgar de (fin)
Title: RE: Tutorial XSL..



www.w3schools.com
 
You 
also need to study FO(Formatting Objects). That is a type of XML that can be 
converted to PDF.
 
Your 
XMLXSL>FO XML--fo2pdf serializer> PDF
 
Try www.w3c.org for FO.
 
But 
only when you have a good understanding of FO and XSLT.
 
Regards,
 
Edgar

  -Oorspronkelijk bericht-Van: Alejandro Raiczyk 
  [mailto:[EMAIL PROTECTED]]Verzonden: woensdag 8 mei 2002 
  16:28Aan: '[EMAIL PROTECTED]'Onderwerp: RE: 
  Tutorial XSL..
  http://docs.technisys.com.ar/XML/XSL/biblia.html 
  -Mensaje original- De: Bobrs 
  [mailto:[EMAIL PROTECTED]] 
  Enviado el: Miércoles 8 de Mayo de 2002 7:59 AM 
  Para: Cocoon Asunto: Tutorial 
  XSL.. 
  Hi All !!!    I would like 
  to know where I found tutorials of like write files 
  .xls, the structure etc.. I need to convert files .xml 
  to .pdf Someone have some material !?! 
   Thanks... 
  -- Robert Siqueira Desenvolvimento WEB CCUEC - Centro de 
  Computacao - UNICAMP UIN 70479124   
  [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: a question of java files

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

O dear... What generated java? If you change Java in for example a XSP (I
guess you mean that) then it depends. 

For example if you have an XSP that looks like:

String notUsed = "not used";
String myString = "Something"; 

...
...
myString
..
..


Of course notUsed will not influence the output to the browser. But when you
change myString then it will influence browser output.

Mind  is for adding java code,  is for outputing a
variable somewhere. See XSP in you cocoon for complete examples...

Regards,

Edgar

-Oorspronkelijk bericht-
Van: Aitziber Zubieta [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 25 april 2002 10:16
Aan: [EMAIL PROTECTED]
Onderwerp: a question of java files


Hi all,

I am very, very new in the use of Cocoon and I wanted to Know if the
changes, that I make, in the generated java file will be represented in the
browser.

Thanks Aitziber



-
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: att vadim: configuration localhost:8080

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

4080 shouldn't be changed. Try:
www.cocooncenter.de, resources for a tutorial on Xindice and Cocoon

Also try the usergroup:
[EMAIL PROTECTED]

for questions on the XML Database Xindice...

Edgar

-Oorspronkelijk bericht-
Van: Lizzie O'Grady [mailto:[EMAIL PROTECTED]]
Verzonden: maandag 13 mei 2002 22:16
Aan: [EMAIL PROTECTED]
Onderwerp: att vadim: configuration localhost:8080


sorry vadim, you are speaking to a real dummy here!...my configuration is on

default 4080 as you suggest. its probably really basic...how do i change 
this? yikes

i have the startup terminal open and running...do i type something in there.

thank you for your help so fari have a university deadline, so this list

is a brilliant resource.

lizzie

(apologies to all if i have come into the wrong posting)

_
Join the world's largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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

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: JBOSS-Cocoon

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



Yes 
you can. Here I have Windows 2000 with Cocoon 2, Tomcat, James and MySQL. 
At home the same only with SuSe Linux 7.3.
It 
works just fine for me. I use a generator I made seperately that calls EJB. 
Other times I use SOAP that calls the needed EJBs. SOAP is easily used with the 
SOAP logicsheets. I also call EJBs via XSP. Unfortunately there are no EJB 
logicsheets (at least not when I started, maybe that changed). (I had to test 
Cocoon, thats why I used different ways)
 
The 
advantage is that you can call a database in a object oriented way. Your 
customer can have his library of business objects that you can use. But maybe 
ESQL is better in your situation. The disadvantage is that especially Entity 
Beans slow everything down (a lot). Session beans is said to be better (that I 
didn't try out), only it also is an extra layer and will slow down 
stuff.

  -Oorspronkelijk bericht-Van: Ferran Urgell 
  [mailto:[EMAIL PROTECTED]]Verzonden: dinsdag 14 mei 2002 
  8:47Aan: [EMAIL PROTECTED]Onderwerp: 
  JBOSS-Cocoon
  Hi Cocooners!! Actually I've cocoon 2.0 i my PC 
  under Redhat Linux
  My question is, Can I Install Jboss ?  Is a 
  good combination install Jboss with cocoon ? How I can do this? 
  (I have a lot of questions about JBoss-Cocoon) 
  
  There are same people with  Cocoon and 
  Jboss?
  What advantages I'm getting with JBoss and Cocoon 
  together ?.
   
  Thanks
   
  Ferran 
Urgell


RE: How to write '<>' in a Cocoon query

2002-05-13 Thread Graaf, Edgar de (fin)

< should work!?

Regards,

Edgar

-Oorspronkelijk bericht-
Van: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]]
Verzonden: dinsdag 14 mei 2002 8:52
Aan: '[EMAIL PROTECTED]'
Onderwerp: How to write '<>' in a Cocoon query


I'm trying to add this condition to a query(already functional):
and OBJET.OBJ_SUPPRIME <> 'O'
I couldn't even write a simple "<" (according to my book: <), IE 5 won't
open the file as soon as I insert the line...

Please help..

Kurt

-
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: Using the IBM Compiler

2002-05-07 Thread Graaf, Edgar de (fin)

Can't you get another compiler. I hear only complaints about IBM compilers

-Oorspronkelijk bericht-
Van: Emre Tezel [mailto:[EMAIL PROTECTED]]
Verzonden: dinsdag 7 mei 2002 3:12
Aan: [EMAIL PROTECTED]
Onderwerp: Using the IBM Compiler


Hi Cocoon users,

I am trying to setup cocoon on Red Hat 7.2 and Tomcat 3.3.1. Apache and 
Tomcat are installed and run file but whenever I try to go to the cocoon 
page I get the atteched error. I am trying to use the IBM JDK 1.3.1. I 
think the error is related to not finding the right compiler. I read the 
cocoon web site about the installation. It says to put the compiler 
javac.jar to WEB-INF/lib. But there is no javac.jar file in IBM's JDK 
but only javac. Any ideas?

Thanks
Emre

http://hori.salem.com:8180/cocoon/


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




XInclude

2002-05-07 Thread Graaf, Edgar de (fin)

This probably already has been discussed. 
But I have two files I want to aggregate. One way to do it is with
map:aggregate.
However xinclude has more possiblities, for example I can add a header. 
My big problem is that I can't use neither a url or a cocoon:/ in
xinclude (or can I?). Even though the attribute is named href, it doesn't
call the url but the file.
Why is this so terrible? Well I want the XSP to execute and the result
should be included in another file.

Is there anyone who can help?

Regards,

Edgar

-
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: Cocoon generated Java throwing SQLException

2002-05-05 Thread Graaf, Edgar de (fin)

Maybe you should ask the Cocoon developers mailing list.
([EMAIL PROTECTED])

Edgar

-Oorspronkelijk bericht-
Van: Zack Angelo [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 3 mei 2002 19:24
Aan: [EMAIL PROTECTED]
Onderwerp: RE: Cocoon generated Java throwing SQLException


Actually, your version seems syntactically correct, but mine works...go
figure.  

Well, apparently the problem is stemming from OSX being a "UNIX"
operating system, but using a non case-sensitive file system. I've
experienced weird anomalies like this before where I'd have to export
and recreate the table and it would work fine.  

-Zack

-Original Message-
From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]] 
Sent: Friday, May 03, 2002 2:23 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Cocoon generated Java throwing SQLException

Zack,

Isn't

String userLogin = ;
String userPass = ;



String userLogin = "";
String userPass = "";


Regards,

Edgar
-Oorspronkelijk bericht-
Van: Zack Angelo [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 2 mei 2002 15:16
Aan: [EMAIL PROTECTED]
Onderwerp: Re: Cocoon generated Java throwing SQLException


Hmm, well, I don't think there are problems with my XSP syntax because
the
Java seems to be generating correctly, but I guess you're right. It
could be
something obscure. So here it is:



http://www.w3.org/1999/XSL/Transform";
xmlns:xsp="http://apache.org/xsp";
xmlns:esql="http://apache.org/cocoon/SQL/v2";
xmlns:xsp-session="http://apache.org/session/2.0";
xmlns:malin-auth="http://nostromo.com/malin-auth";
version="1.0">


  


  




String userLogin = ;
String userPass = ;


mySql


select ID,count(ID) as count from Users where
LoginUser='zack'
and Password='password' group by ID




int rescount = ;
int userID = 0;
if (rescount > 0)
{
userID = ;
}

        userID

  

  

   

   

   

 
   
 


  



On 5/2/02 2:12 AM, "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]>
wrote:

> Zack,
> 
> Please provide the whole XSP.
> 
> Regards,
> 
> Edgar
> 
> -Oorspronkelijk bericht-
> Van: Zack Angelo [mailto:[EMAIL PROTECTED]]
> Verzonden: donderdag 2 mei 2002 4:55
> Aan: [EMAIL PROTECTED]
> Onderwerp: Cocoon generated Java throwing SQLException
> 
> 
> Hey,
> 
> I'm having some really peculiar behavior with the ESQL logicsheet. I
> have the following XSP (in my own logicsheet):
> 
>  select ID,count(ID) as count from Users where
> LoginUser='zack' and Password='password' group by ID
> 
> The corresponding Java seems to be generating just fine:
> 
> _esql_query = new EsqlQuery( _esql_connection, String.valueOf("select
> ID,count(ID) as count from Users where LoginUser='zack' and
> Password='password' group by ID") );
> 
> But, upon execution, I get this exception:
> 
> org.apache.cocoon.ProcessingException: Exception in
> ServerPagesGenerator.generate(): java.lang.RuntimeException: Error
> executing statement: select ID,count(ID) as count from Users where
> LoginUser='zack' and Password='password' group by ID:
> java.sql.SQLException: Column not found: Unknown column 'LoginUser' in
> 'where clause'
> 
> For some reason it's saying that one of the columns doesn't exist...I
> have no idea why. I've also copied and pasted the SQL query from the
> Java into the mysql client, and it works fine. Any ideas? This just
> seems really strange to me. Thanks in advance.
> 
> -Zack Angelo
> Nostromo Corporation
> 
> 
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional 

RE: Cocoon generated Java throwing SQLException

2002-05-03 Thread Graaf, Edgar de (fin)

" instead of " might be needed. Thus

String userPass = "";

Mind the double ;

Regards,

Edgar

-Oorspronkelijk bericht-----
Van: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 3 mei 2002 9:23
Aan: '[EMAIL PROTECTED]'
Onderwerp: RE: Cocoon generated Java throwing SQLException


Zack,

Isn't

String userLogin = ;
String userPass = ;



String userLogin = "";
String userPass = "";


Regards,

Edgar
-Oorspronkelijk bericht-
Van: Zack Angelo [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 2 mei 2002 15:16
Aan: [EMAIL PROTECTED]
Onderwerp: Re: Cocoon generated Java throwing SQLException


Hmm, well, I don't think there are problems with my XSP syntax because the
Java seems to be generating correctly, but I guess you're right. It could be
something obscure. So here it is:



http://www.w3.org/1999/XSL/Transform";
xmlns:xsp="http://apache.org/xsp";
xmlns:esql="http://apache.org/cocoon/SQL/v2";
xmlns:xsp-session="http://apache.org/session/2.0";
xmlns:malin-auth="http://nostromo.com/malin-auth";
version="1.0">


  


  




String userLogin = ;
String userPass = ;


mySql


select ID,count(ID) as count from Users where LoginUser='zack'
and Password='password' group by ID




int rescount = ;
int userID = 0;
if (rescount > 0)
{
userID = ;
}

        userID

  

  

   

   

   

 
   
 


  



On 5/2/02 2:12 AM, "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]> wrote:

> Zack,
> 
> Please provide the whole XSP.
> 
> Regards,
> 
> Edgar
> 
> -Oorspronkelijk bericht-
> Van: Zack Angelo [mailto:[EMAIL PROTECTED]]
> Verzonden: donderdag 2 mei 2002 4:55
> Aan: [EMAIL PROTECTED]
> Onderwerp: Cocoon generated Java throwing SQLException
> 
> 
> Hey,
> 
> I'm having some really peculiar behavior with the ESQL logicsheet. I
> have the following XSP (in my own logicsheet):
> 
>  select ID,count(ID) as count from Users where
> LoginUser='zack' and Password='password' group by ID
> 
> The corresponding Java seems to be generating just fine:
> 
> _esql_query = new EsqlQuery( _esql_connection, String.valueOf("select
> ID,count(ID) as count from Users where LoginUser='zack' and
> Password='password' group by ID") );
> 
> But, upon execution, I get this exception:
> 
> org.apache.cocoon.ProcessingException: Exception in
> ServerPagesGenerator.generate(): java.lang.RuntimeException: Error
> executing statement: select ID,count(ID) as count from Users where
> LoginUser='zack' and Password='password' group by ID:
> java.sql.SQLException: Column not found: Unknown column 'LoginUser' in
> 'where clause'
> 
> For some reason it's saying that one of the columns doesn't exist...I
> have no idea why. I've also copied and pasted the SQL query from the
> Java into the mysql client, and it works fine. Any ideas? This just
> seems really strange to me. Thanks in advance.
> 
> -Zack Angelo
> Nostromo Corporation
> 
> 
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> 



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

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

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

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

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

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




RE: Cocoon generated Java throwing SQLException

2002-05-03 Thread Graaf, Edgar de (fin)

Zack,

Isn't

String userLogin = ;
String userPass = ;



String userLogin = "";
String userPass = "";


Regards,

Edgar
-Oorspronkelijk bericht-
Van: Zack Angelo [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 2 mei 2002 15:16
Aan: [EMAIL PROTECTED]
Onderwerp: Re: Cocoon generated Java throwing SQLException


Hmm, well, I don't think there are problems with my XSP syntax because the
Java seems to be generating correctly, but I guess you're right. It could be
something obscure. So here it is:



http://www.w3.org/1999/XSL/Transform";
xmlns:xsp="http://apache.org/xsp";
xmlns:esql="http://apache.org/cocoon/SQL/v2";
xmlns:xsp-session="http://apache.org/session/2.0";
xmlns:malin-auth="http://nostromo.com/malin-auth";
version="1.0">


  


  




String userLogin = ;
String userPass = ;


mySql


select ID,count(ID) as count from Users where LoginUser='zack'
and Password='password' group by ID




int rescount = ;
int userID = 0;
if (rescount > 0)
{
userID = ;
}

userID
    
          

  

   

   

   

 
   
 


  



On 5/2/02 2:12 AM, "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]> wrote:

> Zack,
> 
> Please provide the whole XSP.
> 
> Regards,
> 
> Edgar
> 
> -Oorspronkelijk bericht-
> Van: Zack Angelo [mailto:[EMAIL PROTECTED]]
> Verzonden: donderdag 2 mei 2002 4:55
> Aan: [EMAIL PROTECTED]
> Onderwerp: Cocoon generated Java throwing SQLException
> 
> 
> Hey,
> 
> I'm having some really peculiar behavior with the ESQL logicsheet. I
> have the following XSP (in my own logicsheet):
> 
>  select ID,count(ID) as count from Users where
> LoginUser='zack' and Password='password' group by ID
> 
> The corresponding Java seems to be generating just fine:
> 
> _esql_query = new EsqlQuery( _esql_connection, String.valueOf("select
> ID,count(ID) as count from Users where LoginUser='zack' and
> Password='password' group by ID") );
> 
> But, upon execution, I get this exception:
> 
> org.apache.cocoon.ProcessingException: Exception in
> ServerPagesGenerator.generate(): java.lang.RuntimeException: Error
> executing statement: select ID,count(ID) as count from Users where
> LoginUser='zack' and Password='password' group by ID:
> java.sql.SQLException: Column not found: Unknown column 'LoginUser' in
> 'where clause'
> 
> For some reason it's saying that one of the columns doesn't exist...I
> have no idea why. I've also copied and pasted the SQL query from the
> Java into the mysql client, and it works fine. Any ideas? This just
> seems really strange to me. Thanks in advance.
> 
> -Zack Angelo
> Nostromo Corporation
> 
> 
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> 



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

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

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

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




RE: Cocoon generated Java throwing SQLException

2002-05-02 Thread Graaf, Edgar de (fin)

Zack,

Please provide the whole XSP.

Regards,

Edgar

-Oorspronkelijk bericht-
Van: Zack Angelo [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 2 mei 2002 4:55
Aan: [EMAIL PROTECTED]
Onderwerp: Cocoon generated Java throwing SQLException


Hey,

I'm having some really peculiar behavior with the ESQL logicsheet. I
have the following XSP (in my own logicsheet):

 select ID,count(ID) as count from Users where
LoginUser='zack' and Password='password' group by ID

The corresponding Java seems to be generating just fine: 

_esql_query = new EsqlQuery( _esql_connection, String.valueOf("select
ID,count(ID) as count from Users where LoginUser='zack' and
Password='password' group by ID") );

But, upon execution, I get this exception:

org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.RuntimeException: Error
executing statement: select ID,count(ID) as count from Users where
LoginUser='zack' and Password='password' group by ID:
java.sql.SQLException: Column not found: Unknown column 'LoginUser' in
'where clause'

For some reason it's saying that one of the columns doesn't exist...I
have no idea why. I've also copied and pasted the SQL query from the
Java into the mysql client, and it works fine. Any ideas? This just
seems really strange to me. Thanks in advance.

-Zack Angelo
 Nostromo Corporation




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

2002-05-01 Thread Graaf, Edgar de (fin)

Chitharanjan,

Try:
http://www.w3schools.com/soap/default.asp

Here is a example of without parameters.
Of course you have to adapt it to your situation.



http://apache.org/xsp";
  xmlns:xsp-request="http://apache.org/xsp/request/2.0";
  xmlns:soap="http://apache.org/xsp/soap/3.0";
  >
  
  http://localhost:8080/apache-soap/servlet/rpcrouter";>
  

  
  
 


-Oorspronkelijk bericht-
Van: Chitharanjan Das [mailto:[EMAIL PROTECTED]]
Verzonden: woensdag 1 mei 2002 19:28
Aan: [EMAIL PROTECTED]
Onderwerp: Cocoon and SOAP


Hello,
I had a brief stint with the XSP which invokes Google Search via
SOAP.
Thanks to the author
 
Is there any documentation to support the SOAP logic sheet..
I was wondering how to invoke a remote method with no parameters.
Any link to documentation regarding the syntax will be deeply appreciated...
 
Regde,
Chiths
 

-
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: Can't get ESQL in XSP to work....

2002-05-01 Thread Graaf, Edgar de (fin)

Maybe it helps if do this:



...



Because now you get a xml with multiple  and thus multiple root
elements...

That at least is a error and maybe this is the sollution

Regards

Edgar

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Verzonden: woensdag 1 mei 2002 15:44
Aan: [EMAIL PROTECTED]
Onderwerp: Can't get ESQL in XSP to work


Hi - I tried the following XSP file...



http://apache.org/xsp";
xmlns:esql="http://apache.org/cocoon/SQL/v2";>

   
 venusPool
 
   select * from ref_country
   
 
   
   
 
   
 
   




I am using Weblogic 6.0sp2, on Solaris, and Cocoon 2.0.2,
and I cannot get this XSP to work - the connection pool is defined in the
config.xml as below:



So venusPool exists - and it's running - but when I try to run the above XSP
code, I get this rather unfriendly
and unhelpful message:


Cocoon 2 - Internal server error

type fatal
message Exception in ServerPagesGenerator.generate()
description org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.NullPointerException
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
stack-trace
org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.NullPointerException
at
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera
tor.java:272)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:251)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:399)
at
org.apache.cocoon.www.sitemap_xmap.matchN10388(/export/weblogic_6.0/config/v
odafone/applications/cocoon/WEB-INF/_tmp_war_eservices_eservices_cocoon/coco
on-files/org/apache/cocoon/www/sitemap_xmap.java:4185)
at
org.apache.cocoon.www.sitemap_xmap.process(/export/weblogic_6.0/config/vodaf
one/applications/cocoon/WEB-INF/_tmp_war_eservices_eservices_cocoon/cocoon-f
iles/org/apache/cocoon/www/sitemap_xmap.java:3218)
at
org.apache.cocoon.www.sitemap_xmap.process(/export/weblogic_6.0/config/vodaf
one/applications/cocoon/WEB-INF/_tmp_war_eservices_eservices_cocoon/cocoon-f
iles/org/apache/cocoon/www/sitemap_xmap.java:3091)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:213)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:1265)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:1631)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
java.lang.NullPointerException
at
org.apache.cocoon.components.language.markup.xsp.EsqlQuery.(EsqlQuery.java:9
0)
at
org.apache.cocoon.www.dealersite.helloworld_xsp.generate(/export/weblogic_6.
0/config/vodafone/applications/cocoon/WEB-INF/_tmp_war_eservices_eservices_c
ocoon/cocoon-files/org/apache/cocoon/www/dealersite/helloworld_xsp.java:296)
at
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera
tor.java:260)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:251)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:399)
at
org.apache.cocoon.www.sitemap_xmap.matchN10388(/export/weblogic_6.0/config/v
odafone/applications/cocoon/WEB-INF/_tmp_war_eservices_eservices_cocoon/coco
on-files/org/apache/cocoon/www/sitemap_xmap.java:4185)
at
org.apache.cocoon.www.sitemap_xmap.process(/export/weblogic_6.0/config/vodaf
one/applications/cocoon/WEB-INF/_tmp_war_eservices_eservices_cocoon/cocoon-f
iles/org/apache/cocoon/www/sitemap_xmap.java:3218)
at
org.apache.cocoon.www.sitemap_xmap.process(/export/weblogic_6.0/config/vodaf
one/applications/cocoon/WEB-INF/_tmp_war_eservices_eservices_cocoon/cocoon-f
iles/org/apache/cocoon/www/sitemap_xmap.java:3091)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  

RE: Actions Programming

2002-05-01 Thread Graaf, Edgar de (fin)

Michael,

I see 'request.setAttribute("hello", "world");'

but you request the parameter hello and not the attribute hello.
try:


regards

Edgar

-Oorspronkelijk bericht-
Van: Michael Mangeng [mailto:[EMAIL PROTECTED]]
Verzonden: woensdag 1 mei 2002 9:20
Aan: [EMAIL PROTECTED]
Onderwerp: Re: Actions Programming


Hi

here more information...

my hello_world.xsp:
---

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

Hello .

---

=> There is no typo and the XSP Namespace is declared...

sitemap:

 
...
  

  
...


   

   

  
  

...
--

HelloWorldAction.java:
---
... package declaration, bunch of imports, class start, method start

Map sitemapParams = new HashMap();
sitemapParams.put("world", "hello");

Request request = (Request) objectModel.get(Constants.REQUEST_OBJECT);
request.setAttribute("hello", "world");
return sitemapParams;
---

i hop this will help..

greetings mike


-
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: Howto xsp process in C2 ?

2002-05-01 Thread Graaf, Edgar de (fin)
Title: Howto xsp process in C2 ?



1) I 
never worked with C1. But that is a problem, because C2 chooses the right 
logicsheet with that namespace. Wait a minute..ah the 'wrong way' as described 
in earlier examples does work...it didn't work in earlier versions of C2 or I 
did something wrong then (months ago). Okay then you could do as 
follow:

This: 
        
 
     
     
          
Has to 
be:
    
     
     

 

    
          

2) This should also be solved with the answer given in 
1)
Regards,
Edgar
    [Graaf, Edgar de 
(fin)] 
 -Oorspronkelijk bericht-Van: 
Alejandro Raiczyk [mailto:[EMAIL PROTECTED]]Verzonden: maandag 
29 april 2002 15:48Aan: 
'[EMAIL PROTECTED]'Onderwerp: RE: Howto xsp process in C2 
?

  Hi 
  Edgar, thanks for your answer. I tried this and it works, but I have another 
  problems:
   
  1) I 
  don't want to define a namespace for this logicsheet, because I have my site 
  done and already running under C1 without using a namespace and now I 
  want to migrate it to C2. How can I do this ?
   
  2) 
  Under C1, the logicsheet was applied before compilation time, so the .java 
  generated had the logicsheet code in it. I saw that under C2 this doesn't 
  happen and it's a problem for me, because I use variables and other stuff 
  declared in the logicsheet. Any solutions ?
   
  Thanks again.
  
    -----Mensaje original-De: Graaf, Edgar de (fin) 
[mailto:[EMAIL PROTECTED]]Enviado el: Lunes 29 de Abril de 
2002 4:50 AMPara: '[EMAIL PROTECTED]'Asunto: 
RE: Howto xsp process in C2 ?
Yeah cocoon:/cotizacion_xsp.xsl. If I understand 
you correctly But don't you want to use logicsheets a configured in 
cocoon.xconf? (builtin-logicsheet)
 
(the wrong way) You have to make a 
pipeline:

     
  
 
     
And:
        
 
     
     
          
The 
hard part is that when I tried it cocoon:/ could not be used in generate. So 
if that is still true you have to make a inbetween.xsl that transforms index 
to what you want.
(the 
right way) !!!BUT the best way to do this is to make a builtin-logicsheet. 
That goes like this:!!!
1. 
you have a data file ( a xml)
2. 
You insert a tag for example: 
3. 
You construct a xsl that replaces this with logic
4. 
You add to cocoon.xconf:
   
5. 
Add the namespace http://www.holland.nl/queensday/whatever 
to your data.xml
6. 
By the way your data.xml is a XSP page..

 -Oorspronkelijk bericht-Van: 
Alejandro Raiczyk [mailto:[EMAIL PROTECTED]]Verzonden: 
donderdag 25 april 2002 17:18Aan: 
'[EMAIL PROTECTED]'Onderwerp: Howto xsp process in C2 
?

  Hi, I'm migrating from C1 to C2, and I guess I've get the 
  idea but I still can't make it work. 
  How can I do if I want to define a pipeline where I have a 
  source file wich is a XSP page, after generating it I have to transform it 
  by a logicsheet (XSL), then by the XSP processor and finally a stylesheet 
  (XSL).
  I did this: 
                               
   
  but it didn't work. Is there any whay to do shomething 
  like     
       
  ? 
  thanks in advance 
  Alejandro D. Raiczyk Desarrollo de 
  Proyectos Technisys Informática S.R.L. 
  Tel./Fax: +54(11)4322-7100 int 133 [EMAIL PROTECTED] 



RE: Problem with transformer "src" attribute

2002-04-29 Thread Graaf, Edgar de (fin)



must be

-Oorspronkelijk bericht-
Van: Tilman Rassy [mailto:[EMAIL PROTECTED]]
Verzonden: maandag 29 april 2002 16:01
Aan: [EMAIL PROTECTED]
Onderwerp: Problem with transformer "src" attribute



Hi,

I wrote s simple transformer and called it in my
sitemap as follows:


  
  
  
  


When I want to acces the corresponding URL, I get the following
error message:

  Cocoon 2 - Internal server error

  type fatal

  message Stylesheet URI can't be null

  description org.apache.cocoon.ProcessingException: Stylesheet URI can't be
null

  sender org.apache.cocoon.servlet.CocoonServlet

  source Cocoon servlet

  request-uri

  /cocoon/mumie/test/transformers/SimpleTransformer

  path-info

  mumie/test/transformers/SimpleTransformer

It seems that the src="test/xsl/test.xsl" statement in the sitemap
has no effect. When I ommit my own transformer, everythimg works fine.
My transformer's setup method does nothing. May this be the problem?
But why do the two transformers influence each other?

Many thanks in advance,
Tilman

-
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: Cocoon use

2002-04-29 Thread Graaf, Edgar de (fin)

Thanks! And to all who respond in the future.

Regards

Edgar

-Oorspronkelijk bericht-
Van: Artur Bialecki [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 26 april 2002 18:28
Aan: [EMAIL PROTECTED]
Onderwerp: RE: Cocoon use



In my company cocoon is used as the only user interface
to enerprise/network management/fulfillment (OSS,BSS) system
that includes order entry/management (workflow), inventory,
activation, etc. Since we use XML at the core of our J2EE
application and we need the ability to "brand" our interfaces
Cocoon is perfect for the job. Ability to output to multiple
devices and i18n allows for future expansion. I've written
logicsheets (tag libraries) to communicate with our j2ee beans,
so now even our gui developers can create/modify our XSPs.

Also because of MVC separation, I can hand-craft XML page
and give it to gui developer so he/she can start on the XSLT
while I create and test XSPs, java, tags, whatever to generate
that XML.

Artur...


> -Original Message-----
> From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 26, 2002 11:34 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Cocoon use
>
>
> Okay, but in what kind of a project is it used. I have to explain why
other
> people in my company should use it and I have some ideas but I could use
> some help answering the following question:
>
> In what kind of a project is it used? In particular in what kind of a
> project do you people use it...
>
> For example a weather providing site where customers can get the
information
> from the web and via other devices...
>
> Thanks already,
>
> Edgar
>
> -Oorspronkelijk bericht-
> Van: Jörn Heid [mailto:[EMAIL PROTECTED]]
> Verzonden: vrijdag 26 april 2002 11:56
> Aan: [EMAIL PROTECTED]
> Onderwerp: AW: Cocoon use
>
>
> 1. Open Standards
> 2. Output independency
> 3. True MVC
> 4. Open Source
> 5. Java (plattform independency)
> 6. Fast (regarding the points above)
>
> The question is if there's an alternative product on the market?
> I think not. Cocoon uses as much open standards as it can.
> No other product I know has those advantages.
>
> -Ursprüngliche Nachricht-
> Von: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 26. April 2002 09:45
> An: '[EMAIL PROTECTED]'
> Betreff: Cocoon use
>
>
> People,
>
> I would like to know why you use Cocoon?
>
> Thank you,
>
> Edgar
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


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

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

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

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




RE: newbe database question

2002-04-29 Thread Graaf, Edgar de (fin)

Christopher,

It wasn't original my question. I try to help someone else a bit. But thanks
anyway! In the future I might try it out...

Regards,

Edgar

-Oorspronkelijk bericht-
Van: Christopher Watson [mailto:[EMAIL PROTECTED]]
Verzonden: maandag 29 april 2002 10:38
Aan: [EMAIL PROTECTED]
Onderwerp: RE: newbe database question


Edgar

The documentation is out of date. Someone helped me with this earlier.
It needs some different Avalon type stuff
Try this example xsp page which gets the URL from the metadata (or the
Exception) as a check
For XSP at least, it NEEDS to be in a try block or it won't compile.


http://apache.org/xsp";
>
 

String fish="flounder";
try {
ComponentSelector mySelector = (ComponentSelector)
manager.lookup(DataSourceComponent.ROLE + "Selector");
// edit following line as necessary
DataSourceComponent myDatasource =
(DataSourceComponent)mySelector.select("myCocoonXconfEntry");
  java.sql.Connection myConnection = myDatasource.getConnection();
  java.sql.DatabaseMetaData dbmd = myConnection.getMetaData();
  fish = dbmd.getURL();
} catch (Exception esqlFail) {
fish="" + esqlFail;
}
fish




Which is adapted from looking at the file generated from an esql xsp.

I think the point in the docs about leaving the connection open still
stands,
I imagine the pooling delas with this
though perhaps someone more knowing could comment?

Christopher Watson


-Original Message-
From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
Sent: 29 April 2002 08:18
To: '[EMAIL PROTECTED]'
Subject: RE: newbe database question


I can't find roles in the cocoon jar either. But it is in j2ee.jar (maybe
you have to get it from Sun first). Maybe it is not the one you search for,
but then again I have never tried to make a database connection like this.
(by the way: com.sun.enterprise.deployment.Roles)
www.cocooncenter.de may offer some help.

http://www.cocooncenter.de/cc/documents/resources/db-app/index.html

Regards,

Edgar
-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Verzonden: zondag 28 april 2002 0:09
Aan: [EMAIL PROTECTED]
Onderwerp: newbe database question


I just started developing with cocoon and I have a basic question (I think).

I'm trying to use the datasource pooled connection like what is detailed in
the cocoon user guide but I'm having trouble location the
org.apache.cocoon.Roles class. I have the web.xml files and the cocoon.xconf
files configured correctly because I can see the connections being created
when I start cocoon. But my import statement fails when I try to compile my
class that implements Avalon Composable ifc because it can't find the
Roles.class file in any of the jars.

Can someone please let me know where I can find it.

Thanks in advance.

matt


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

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

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

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




RE: Howto xsp process in C2 ?

2002-04-29 Thread Graaf, Edgar de (fin)
Title: Howto xsp process in C2 ?



Yeah 
cocoon:/cotizacion_xsp.xsl. If I understand you correctly But don't you want 
to use logicsheets a configured in cocoon.xconf? 
(builtin-logicsheet)
 
(the 
wrong way) You have to make a pipeline:

     
  
 
     
And:
        
 
     
     
          
The hard 
part is that when I tried it cocoon:/ could not be used in generate. So if that 
is still true you have to make a inbetween.xsl that transforms index to what you 
want.
(the 
right way) !!!BUT the best way to do this is to make a builtin-logicsheet. That 
goes like this:!!!
1. you 
have a data file ( a xml)
2. You 
insert a tag for example: 
3. You 
construct a xsl that replaces this with logic
4. You 
add to cocoon.xconf:
   
5. Add 
the namespace http://www.holland.nl/queensday/whatever 
to your data.xml
6. By 
the way your data.xml is a XSP page..

 -Oorspronkelijk bericht-Van: 
Alejandro Raiczyk [mailto:[EMAIL PROTECTED]]Verzonden: 
donderdag 25 april 2002 17:18Aan: 
'[EMAIL PROTECTED]'Onderwerp: Howto xsp process in C2 
?

  Hi, I'm migrating from C1 to C2, and I guess I've get the idea 
  but I still can't make it work. 
  How can I do if I want to define a pipeline where I have a 
  source file wich is a XSP page, after generating it I have to transform it by 
  a logicsheet (XSL), then by the XSP processor and finally a stylesheet 
  (XSL).
  I did this: 
       
                          
   
  but it didn't work. Is there any whay to do shomething 
  like     
       
  ? 
  thanks in advance 
  Alejandro D. Raiczyk Desarrollo de 
  Proyectos Technisys Informática S.R.L. 
  Tel./Fax: +54(11)4322-7100 int 133 [EMAIL PROTECTED] 


RE: newbe database question

2002-04-29 Thread Graaf, Edgar de (fin)



I 
can't find roles in the cocoon jar either. But it is in j2ee.jar (maybe you have 
to get it from Sun first). Maybe it is not the one you search for, but then 
again I have never tried to make a database connection like this. (by the way: 
com.sun.enterprise.deployment.Roles)
www.cocooncenter.de may offer some 
help.
 
http://www.cocooncenter.de/cc/documents/resources/db-app/index.html
 
Regards,
 
Edgar

  -Oorspronkelijk bericht-Van: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]Verzonden: zondag 28 april 2002 
  0:09Aan: [EMAIL PROTECTED]Onderwerp: newbe 
  database questionI just started developing with cocoon and I have a 
  basic question (I think).I'm trying to use the datasource pooled 
  connection like what is detailed in the cocoon user guide but I'm having 
  trouble location the org.apache.cocoon.Roles class. I have the web.xml files 
  and the cocoon.xconf files configured correctly because I can see the 
  connections being created when I start cocoon. But my import statement fails 
  when I try to compile my class that implements Avalon Composable ifc because 
  it can't find the Roles.class file in any of the jars.Can someone 
  please let me know where I can find it.Thanks in 
  advance.matt 


RE: Problems with XSP

2002-04-26 Thread Graaf, Edgar de (fin)

Well now I have to go to the work directory and search the XSP. It would be
easy if I just can jump to the right line number...

Regards

-Oorspronkelijk bericht-
Van: Torsten Curdt [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 26 april 2002 14:26
Aan: [EMAIL PROTECTED]
Onderwerp: RE: Problems with XSP


On Fri, 26 Apr 2002, Vadim Gritsenko wrote:
> > From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
> >
> > Great...
> >
> > when I code XSP and when I make some error in the logic I get (of
> course) an
> > error. An error contains a line number. Now I have to go to the work
> > directory and look at the generated java file to find the error. Isn't
> it
> > possible to display the line number of the error in the XSP?
>
> Suggest how it is possible.

I have thought about this a while ago, too. We should be able to extract
that from the exception stacktrace. It should also be even possible to
display that line's sourcecode (preferable with some surrounding lines).

But I wasn't sure if this is really worth the work...
...is there a need for it?
--
Torsten


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

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

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

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




RE: Cocoon use

2002-04-26 Thread Graaf, Edgar de (fin)

Okay, but in what kind of a project is it used. I have to explain why other
people in my company should use it and I have some ideas but I could use
some help answering the following question:

In what kind of a project is it used? In particular in what kind of a
project do you people use it...

For example a weather providing site where customers can get the information
from the web and via other devices...

Thanks already,

Edgar

-Oorspronkelijk bericht-
Van: Jörn Heid [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 26 april 2002 11:56
Aan: [EMAIL PROTECTED]
Onderwerp: AW: Cocoon use


1. Open Standards
2. Output independency
3. True MVC
4. Open Source
5. Java (plattform independency)
6. Fast (regarding the points above)

The question is if there's an alternative product on the market?
I think not. Cocoon uses as much open standards as it can.
No other product I know has those advantages.

-Ursprüngliche Nachricht-
Von: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 26. April 2002 09:45
An: '[EMAIL PROTECTED]'
Betreff: Cocoon use


People,

I would like to know why you use Cocoon?

Thank you,

Edgar

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

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


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

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

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

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




Cocoon use

2002-04-26 Thread Graaf, Edgar de (fin)

People,

I would like to know why you use Cocoon?

Thank you,

Edgar

-
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: Problems with XSP

2002-04-26 Thread Graaf, Edgar de (fin)

Great... 

when I code XSP and when I make some error in the logic I get (of course) an
error. An error contains a line number. Now I have to go to the work
directory and look at the generated java file to find the error. Isn't it
possible to display the line number of the error in the XSP?

-Oorspronkelijk bericht-
Van: cyril vidal [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 25 april 2002 23:34
Aan: [EMAIL PROTECTED]
Onderwerp: Re: Problems with XSP


Thanks Vadim!
It's now OK...


- Original Message -
From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 25, 2002 11:14 PM
Subject: RE: Problems with XSP


> From: cyril vidal [mailto:[EMAIL PROTECTED]]
>
> I've put away the language attribute on the namespace.
> So I have:
> 
> http://www.apache.org/1999/XSP/Core";>

You still have wrong namespace.

>From hello.xsp:


http://apache.org/xsp";>

  
...
  




Vadim

> 
> static private int counter = 0;
>
> private synchronized int count(){
> return counter++;
> }
> 
>
> 
>  J'ai été visitée count() fois. 
> 
> 
>
> but it still doesn't work...
>
> - Original Message -
> From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, April 25, 2002 9:52 PM
> Subject: RE: Problems with XSP
>
>
> 1. Check XSP namespace. It is not correct.
> 2. Is this valid UTF-8? Or ISO-8859-1? Specify encoding in 
> instruction.
>
>
> Vadim
>
> -Original Message-
> From: cyril vidal [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 25, 2002 2:41 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Problems with XSP
>
> I've checked the Tomcat work directory, and there's just
> compteur_xsp.java.
> So compteur.xsp must not be correct. The code is the following:
> 
>  xmlns:xsp="http://www.apache.org/1999/XSP/Core";>
> 
> static private int counter = 0;
>
> private synchronized int count(){
> return counter++;
> }
> 
>
> 
>  J'ai été visitée count() fois. 
> 
> 
>
> Someone could tell me where's the error, please?
> Best,
> Cyril.
> - Original Message -
> From: Graaf, Edgar de (fin)
> To: '[EMAIL PROTECTED]'
> Sent: Wednesday, April 24, 2002 11:22 AM
> Subject: RE: Problems with XSP
>
> Your XSP was not compiled because it contains some error. Then you
don't
> have a class and get a ClassNotFoundException.
>
> Search in the Tomcat work directory for compteur. Do you only find
> compteur_xsp.java? Or also compteur_xsp.class?
>
> Regards
>
> Edgar
> -Oorspronkelijk bericht-
> Van: cyril vidal [mailto:[EMAIL PROTECTED]]
> Verzonden: dinsdag 23 april 2002 21:55
> Aan: [EMAIL PROTECTED]
> Onderwerp: Problems with XSP
> HY!
>
> I would like to execute a very simple XSP sample. Here is my sitemap:
>
> http://apache.org/cocoon/sitemap/1.0";>
> 
> 
>  src="org.apache.cocoon.generation.FileGenerator"/>
>  src="org.apache.cocoon.generation.ServerPagesGenerator"/>
> 
>
> 
>  src="org.apache.cocoon.transformation.TraxTransformer"/>
> 
>
> 
>  src="org.apache.cocoon.reading.ResourceReader"/>
> 
>
> 
>  src="org.apache.cocoon.serialization.XMLSerializer"/>
>  src="org.apache.cocoon.serialization.HTMLSerializer"/>
>  src="org.apache.cocoon.serialization.SVGSerializer"
> mime-type="image/png"/>
>  src="org.apache.cocoon.serialization.FOPSerializer"
> mime-type="application/pdf"/>
> 
>
> 
>  src="org.apache.cocoon.matching.WildcardURIMatcher"/>
> 
>
> 
>
> 
> 
> 
> 
> 
> 
>
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
> 
> 
> 
> 
> 
>
> 
>
> 
>
> Unfortunately, when I execute the file compteur.xsp, I get the
following
> error message:
> type fatal
> message Language Exception
> description org.apache.cocoon.ProcessingException: Language Exception:
> org.apache.cocoon.components.language.LanguageException: Could not
load
> class for program 'org\apache\cocoon\www\transforms\compteur_xsp' due
to
> a java.lang.ClassNotFoundException:
> org.apache.cocoon.www.transforms.compteur_xsp
> sender org.apache.cocoon.servlet.CocoonServlet
> source Cocoon servlet
> request-uri
> /essai/compteur.xsp
> path-info
> compteur.xsp
> Someone could help me, please?
> Thanks,
> Cyril.
>
>
> -
> Please check that your question has not al

RE: Problems with XSP

2002-04-24 Thread Graaf, Edgar de (fin)



Your 
XSP was not compiled because it contains some error. Then you don't have a class 
and get a ClassNotFoundException.
 
Search 
in the Tomcat work directory for compteur. Do you only find compteur_xsp.java? 
Or also compteur_xsp.class?
 
Regards
 
Edgar

  -Oorspronkelijk bericht-Van: cyril vidal 
  [mailto:[EMAIL PROTECTED]]Verzonden: dinsdag 23 april 2002 
  21:55Aan: [EMAIL PROTECTED]Onderwerp: Problems 
  with XSP
  HY!
   
  I would like to execute a 
  very simple XSP sample. Here is my sitemap:
   
  http://apache.org/cocoon/sitemap/1.0">  
          
  
   
    
   
    
   
      
    
    
   
    
   
  
   
    
       
   
    
   
    
          
     
      
    
   
          
     
        
  
   
     
  
   
  Unfortunately, when I execute the 
  file compteur.xsp, I get the following error message:
  
  type 
  fatal
  message 
  Language Exception
  description 
  org.apache.cocoon.ProcessingException: Language Exception: 
  org.apache.cocoon.components.language.LanguageException: Could not load class 
  for program 'org\apache\cocoon\www\transforms\compteur_xsp' due to a 
  java.lang.ClassNotFoundException: 
  org.apache.cocoon.www.transforms.compteur_xsp
  sender 
  org.apache.cocoon.servlet.CocoonServlet
  source 
  Cocoon servlet
  request-uri/essai/compteur.xsp
  
  path-infocompteur.xspSomeone could help me, please?Thanks,Cyril.


RE: Newbie Question

2002-04-19 Thread Graaf, Edgar de (fin)

You could do it with a parser like Xerces. (xml.apache.org)

public void parseXml(String xml) throws SAXException, IOException{
 try {
XMLReader parser = XMLReaderFactory.createXMLReader(
"org.apache.xerces.parsers.SAXParser");
parser.setContentHandler(this.xmlConsumer);
parser.setErrorHandler(this);
try {
//if (validate && parser instanceof
XMLReader)
if ( parser instanceof XMLReader ){

((XMLReader)parser).setFeature( "http://xml.org/sax/features/validation";,
true

((XMLReader)parser).setFeature( "http://xml.org/sax/features/namespaces";,
true

((XMLReader)parser).setFeature("http://apache.org/xml/features/validation/sc
hema",true );

((XMLReader)parser).setFeature(
"http://apache.org/xml/features/nonvalidating/load-external-dtd";,

true );

((XMLReader)parser).setFeature(
"http://apache.org/xml/features/validation/schema-full-checking";,

true );

}
} catch (Exception ex) {
}
parser.parse(new InputSource( new StringReader(xml))
);
} catch (org.xml.sax.SAXParseException spe) {
spe.printStackTrace(System.err);
  }

}

You have to do the right import etc..

regards,

Edgar
-Oorspronkelijk bericht-
Van: Sorin Marti [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 19 april 2002 11:23
Aan: [EMAIL PROTECTED]
Onderwerp: Newbie Question


Hello toghether

I'm a XML newbie and a Cocoon newbie, too...

I wrote an example XML File and the appropriate XML schema.
How to validate the XML File? (I guess I have to validate it because
there are rules that you can't fill in this or that in a certain element...

every advice would be helpful...

thanks in advance mas


-
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: Command line interface

2002-04-19 Thread Graaf, Edgar de (fin)

Maybe I should have asked my question differently... I didn't know there was
a command line interface and where it is used for. I wanted to know how it
should be called and where the output goes. I didn't know there was a help
parameter available... Apparently it is used to use Cocoon without tomcat. I
have been told it is used during the build of Cocoon, to generate
documentation.

Thank. This is enough information.

Regard,

Edgar

-Oorspronkelijk bericht-
Van: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 18 april 2002 14:26
Aan: [EMAIL PROTECTED]
Onderwerp: RE: Command line interface


> From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
> 
> Hi!
> 
> Can someone explain how the command line interface works? When I try
to run
> it to see what happens I only get (in the end):
> DEBUG   10189   [manager ] (): JVM total Memory: 2220032
> DEBUG   10189   [manager ] (): JVM free Memory: 826256
> DEBUG   10189   [manager ] (): Memory is low = false

When I run it (using run.bat), I get:

ERROR   10191   [] (): Please, specify at least one starting
URI.
Please, specify at least one starting URI.


When I run it with -help parameter I get:


Apache Cocoon 2.1-dev
Copyright (c) 1999-2002 Apache Software Foundation. All rights reserved.


Usage: java org.apache.cocoon.Main [options] [targets]

Options:
-b, --brokenLinkFile 
send a list of broken links to a file (1 uri per line)
-f, --uriFile 
use a text file with uris to process (1 uri per line)
-h, --help
print this message and exit
-v, --version
print the version information and exit
-k, --logKitconfig 
use given file for LogKit Management configuration
-l, --Logger 
use given logger category as default logger for the
Cocoon e
ngine
-u, --logLevel 
choose the minimum log level for logging (DEBUG, INFO,
WARN,
 ERROR, FATAL_ERROR) for startup logging
-c, --contextDir 
use given dir as context
-d, --destDir 
use given dir as destination
-w, --workDir 
use given dir as working directory
-P, --precompileOnly
generate java code for xsp and xmap files
-a, --userAgent 
use given string for user-agent header
-p, --accept 
use given string for accept header
-r, --followLinks 
process pages linked from starting page or not (boolean
argu
ment is expected, default is true)
-C, --configFile 
specify alternate locatin of the configurationfile
(default
is ${contextDir}/cocoon.xconf)
Note: the context directory defaults to './webapp'


Isn't this information enough?

Vadim

> 
> Thank you,
> 
> Edgar
> 


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

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

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

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




Command line interface

2002-04-17 Thread Graaf, Edgar de (fin)

Hi!

Can someone explain how the command line interface works? When I try to run
it to see what happens I only get (in the end):
DEBUG   10189   [manager ] (): JVM total Memory: 2220032
DEBUG   10189   [manager ] (): JVM free Memory: 826256
DEBUG   10189   [manager ] (): Memory is low = false

Thank you,

Edgar


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

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




Re: AW: Re: [C2] Using XSP inside XSL

2002-02-21 Thread Graaf, Edgar de (Fin)

That's realy nice, but I have still the Problem that the stylesheet depends
on the request parameters, but they are not available! Is it a bug, not the
way it should work or my mistake? I did the following (from my sitemap):
 
>   using the latest cocoon2 from the CVS. The
request parameter should be processed in stylesheet.xsp If somebody know
about that, please let me know. Please help me, Carsten!! Christoph Gaffga 

Did you think about this:
"cocoon:" is a pseudo protocol and refers to another
  pipeline. "cocoon:/" refers to a pipeline from the current
  sitemap while "cocoon://" refers to a pipeline from the root
  sitemap.

Its a bit late so I guess you found out by now :-)

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