Cocoon 2.1 CVS and Java 1.4.2

2003-07-01 Thread Antonio Gallardo
Hi:

Just reporting that Cocoon 2.1 CVS run using Sun Java 1.4.2. My config:

Red Hat Linux 9
Java 1.4.2
Tomcat 4.1.24
Cocoon 2.1 CVS

Best Regards,

Antonio Gallardo



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



Re: using xsp

2003-06-17 Thread Antonio Gallardo
Bößem dijo:
 hi,

 i am quite unexperienced within cocoon, espacially when it comes to the
 use of java within xsp documents.

 anyway, i am trying to do - in the fist step - a simple email
 validation. To test if and how xsp documents have to structured i wrote
 a simle code, to check if it works.

 Unfortunatly it doesn't

 the xsp code is the following:

   xsp:structure
   xsp:includejava.util.regex.Matcher/xsp:include
   xsp:includejava.util.regex.Pattern/xsp:include
   /xsp:structure

  page
   xsp:logic
 String msg = ;
 String input = [EMAIL PROTECTED] ;
 Pattern pattern = Pattern.compile(@);
 Matcher matcher = pattern.matcher( input );

   if (matcher.find()) {
 msg = valide email;
   }
   else {
 msg = not valid;

   }
 }
   /xsp:logic
   xsp:exprmsg/xsp:expr

To the last line add some HTML tags, for esample if you wish to see the
result, add something like:

p
  xsp:exprmsg/xsp:expr
/p


Also FYI, instead of write your own valitation, check the FormValidator
Action.

A very nice source of info is http://wiki.cocoondev.org/

Best Regards,

Antonio Gallardo



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



Re: session:getxml from an XSP page

2003-06-12 Thread Antonio Gallardo
The tag is not part of the Cocoon distribution. See error 13070 in bugzilla.

Antonio Gallardo.

 Is it possible (and how) to set session:getxml context=request
 path=/parameter/role/ into a variable in XSP? I tried
 String role = session:getxml context=request
 path=/parameter/role/;

 But cocoon returns the error
 Type mismatch: cannot convert from void to String

 thanks

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




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



RE: session:getxml from an XSP page

2003-06-12 Thread Antonio Gallardo
 So how can I get the user information from my portal?

I dont know. XSP does not support:

session:getxml context=request path=/parameter/role/

Because this is a transformer tag. I dont use portal block at all. This is
a good question that I posted last year and appears like nobody has
interest in use sesion tags with XSP.

I have a code that can help you but I never tried it with a tag like you:

xsp-session:getxml context=request path=/parameter/role/

I wrote the tag to use it just for access the authentication framework:

xsp-session:getxml context=authentication
path=/authentication/data/nombre_completo/

If you are interested in it, let me know and I can send you the lastest
code that work with current CVS.

Best Regards,

Antonio Gallardo.



 -Original Message-
 From: Antonio Gallardo [mailto:[EMAIL PROTECTED]  Sent:
 Thursday, June 12, 2003 1:58 PM
 To: [EMAIL PROTECTED]
 Subject: Re: session:getxml from an XSP page


 The tag is not part of the Cocoon distribution. See error 13070 in
 bugzilla.

 Antonio Gallardo.

 Is it possible (and how) to set session:getxml context=request
 path=/parameter/role/ into a variable in XSP? I tried
 String role = session:getxml context=request
 path=/parameter/role/;

 But cocoon returns the error
 Type mismatch: cannot convert from void to String

 thanks

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




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


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




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



Re: AW: session:getxml from an XSP page

2003-06-12 Thread Antonio Gallardo
Markus Heussen dijo:
 Did you try

 String role = session:getxml context=request
 path=/parameter/role/.toString();

 ?

I dont believe this can work. :(

But you can try! :)

Best Regards,

Antonio Gallardo


 -Ursprungliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Gesendet: Donnerstag, 12. Juni 2003 13:53
 An: [EMAIL PROTECTED]
 Betreff: session:getxml from an XSP page


 Is it possible (and how) to set session:getxml context=request
 path=/parameter/role/ into a variable in XSP? I tried
 String role = session:getxml context=request
 path=/parameter/role/;

 But cocoon returns the error
 Type mismatch: cannot convert from void to String

 thanks

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


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




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



RE: session:getxml from an XSP page

2003-06-12 Thread Antonio Gallardo
hi:

OKAY! I hear your voice :)

I attach 3 files:

1- bienvenidos.xsp  - a welcome page after authentication that get the
user name from the authentication framework. Is an example of how to use
it. Please check the XSP header.
2-XSPSessionHelper1.java - The Helper class that have a helper method for
the xsp-session:getxml tag.

You need to put this file into your cocoon CVS at:

src/blocks/session-fw/java/org/apache/cocoon/webapps/session/components

3-session.xsp - Include the new tag xsp-session:getxml. You need to
deploy it at:

src/java/org/apache/cocoon/components/language/markup/xsp/java

After deploying the XSPSessionHelper1.java and session.xsl rebuild
Cocoon.

That is it!

You now will be able to use the xsp-session:getxml tag from XSP!

BTW, I dont know why does not include this to the CVS. It is nearly a year
since the bug 13070 is there. I am too lazy to do the patch for this tag
again. Sorry.

I hope it would really help.

Best Regards,

Antonio Gallardo

 I get the error :
 The prefix xsp-session for element xsp-session:getxml is not bound

 I have a real problem! Because we have two applications with cocoon. I
 developped in XSP and the other with XML-Forms. He made the
 authentification and portal.
 Now in my application (there is a link between the two) I need the user
 name and role. How can I get them if I can't read an xml file???

 Help please!


 -Original Message-
 From: Antonio Gallardo [mailto:[EMAIL PROTECTED]  Sent:
 Thursday, June 12, 2003 2:09 PM
 To: [EMAIL PROTECTED]
 Subject: RE: session:getxml from an XSP page


 So how can I get the user information from my portal?

 I dont know. XSP does not support:

 session:getxml context=request path=/parameter/role/

 Because this is a transformer tag. I dont use portal block at all. This
 is
 a good question that I posted last year and appears like nobody has
 interest in use sesion tags with XSP.

 I have a code that can help you but I never tried it with a tag like
 you:

 xsp-session:getxml context=request path=/parameter/role/

 I wrote the tag to use it just for access the authentication framework:

 xsp-session:getxml context=authentication
 path=/authentication/data/nombre_completo/

 If you are interested in it, let me know and I can send you the lastest
 code that work with current CVS.

 Best Regards,

 Antonio Gallardo.



 -Original Message-
 From: Antonio Gallardo [mailto:[EMAIL PROTECTED]
 Sent:
 Thursday, June 12, 2003 1:58 PM
 To: [EMAIL PROTECTED]
 Subject: Re: session:getxml from an XSP page


 The tag is not part of the Cocoon distribution. See error 13070 in
 bugzilla.

 Antonio Gallardo.

 Is it possible (and how) to set session:getxml context=request
 path=/parameter/role/ into a variable in XSP? I tried
 String role = session:getxml context=request
 path=/parameter/role/;

 But cocoon returns the error
 Type mismatch: cannot convert from void to String

 thanks

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




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


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




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


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




bienvenidos.xsp
Description: Binary data


XSPSessionHelper1.java
Description: Binary data
?xml version=1.0?

!-- $Id: session.xsl,v 1.1 2003/03/09 00:08:57 pier Exp $--
!--

 
   The Apache Software License, Version 1.1
 

 Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.

 Redistribution and use in source and binary forms, with or without modifica-
 tion, are permitted provided that the following conditions are met:

 1. Redistributions of  source code must  retain the above copyright  notice,
this list of conditions and the following disclaimer.

 2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

 3. The end-user documentation included with the redistribution, if any, must
include  the following  acknowledgment:  This product includes  software
developed  by the  Apache Software Foundation  (http://www.apache.org

Re: Alias in database descriptor file

2003-06-11 Thread Antonio Gallardo
Amelie Cordier dijo:
 I want to describe a
 table in two different way and call the first one in one table-set and
 the other one in a second table-set...

Hi, check this:

http://wiki.cocoondev.org/Wiki.jsp?page=ModularDatabaseActions

Sorry, I can't explain in more detail this. I am too busy now. :(

Antonio Gallardo




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



Re: mod-db - Updating multiple rows

2003-06-09 Thread Antonio Gallardo
Hi Amelie:

Nice example!

This way we better explain things. The words sometimes are not too clear.
Here right now is 4:00 a.m. At 9:00 a.m. comes other people to the office.

We had a similar problem, but to be honest, I dont resolved it. The guru
is my coworker Carlos Chavez. When he comes I will ask him about this
stuff. And I promise to post to the list what he told. Of course he is on
the list too, but never sent a mail. I think he found another solution
using ESQL on XSP. Our problem was more related to insertion of files than
to the update. Anyway when he comes I will ask him about this stuff.

Best Regards,

Antonio Gallardo.



Amelie Cordier dijo:
 Hi again

 Christian Haul dijo:
 One thing is impossible, though: update may not affect key columns.
 This
  has been requested by Antonio but he didn't come up with a patch so
 far
 ;-)

 Yes, I read that on the mailing list archive last week :)



 Hi!

 I dont made the patch since it is posible to create and alias of the
 table and change the key values. I know this is a hack, but it works.
 :)

 I've tried all the solutions you suggested to me but it doesn't work and
 I can't find anything in the log files :(

 I may have badly explain my problem...because I don't want to update a
 key field. As my english is poor, I think that an example is better than
 a long explanation.

 In my table I've the following records :
 idA idB idC idD MyString
 
 1   3   5   6
 1   3   5   7
 1   5   5   9

 And after the update, I want something like that :

 idA idB idC idD MyString
 
 1   3   5   6   hello
 1   3   5   7   world
 1   5   5   9   !

 The four numbers of each rows are the key of the field and they are
 never modified during an update. Furthermore, during one update, only
 the idD key part varies and, of course, the attribute MyString...


 Here is a sample of code that I've tried. I've put idD either as a key
 or as a value but with no results.


table name=mytable
   keys
  key name=idA type=int
 mode name=request-param type=request/
  /key
key name=idB type=int
 mode name=request-param type=request/
  /key
  key name=idC type=int
 mode name=request-param type=request/
  /key
key name=idD type=int set=master
   mode name=request-param type=request/
   /key
   /keys
   values
value name=MyString type=string set=slave/
   /values
/table

 Once again, I'm lost
 Thanks in advance.



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




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



Re: cocoon2.1 causing ungraceful shutdown on Tomcat4.1.18 ?

2003-06-09 Thread Antonio Gallardo
e nio dijo:
   I have cocoon2.1dev and the newer cocoon2.1m2 which I observed
 when deployed on Tomcat 4.1.18, causes Tomcat not to shutdown
 gracefully. I get that status of Servlet did not call
 System.exit().  You can try and verify my observation if you
 have the Tomcat4.1.18 and start it with  ./catalina.sh start
 command. fyi i have jdk1.4.0_01.

There is also the J2SDK 1.4.1_03 it works a little more smooth. I use it
every day and seems to be stable.

   The only way I can kill the process is via a kill -15
 javathatstartedcocoonpid.

Hey?! are you tried kill -9? This is THE real killer! lol.

  The effect may not be apparent but it
 was causing a major headache for me because I also have
 Jetspeed1.4-b4 that does not come up on subsequent restart of
 Tomcat due to Tomcat ungraceful exit.
 Anyone else experience this?

Yes, everybody. This is a current bug. In Cocoon:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18131

A WORKAROUND is at the endo of the link. To developers, please confirm
this bug.

I also noted there is another bug in tomcat, but I am not sure if this is
total related to the above. In Tomcat:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17193

I am not a guru to tell if this is the same error.

Best Regards,

Antonio Gallardo




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



Re: mod-db - Updating multiple rows

2003-06-08 Thread Antonio Gallardo
Hi:

We had the same problem. Create and alias for your table and put the
variable keys element not into keys tag, but as values. It must work. We
have some tables with 5 keys fields and it works.

Antonio Gallardo.




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



Re: mod-db - Updating multiple rows

2003-06-08 Thread Antonio Gallardo
Amelie Cordier dijo:
 Hi Antonio,


 Thanks for your quick response :)
 I've tried your solution but it doesn't work :(

 Do I really need to use the sets too?

Yes, of course.

Antonio Gallardo.


 Hi:

 We had the same problem. Create and alias for your table and put the
 variable keys element not into keys tag, but as values. It must
 work. We have some tables with 5 keys fields and it works.

 Antonio Gallardo.




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




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




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



Re: mod-db - Updating multiple rows

2003-06-08 Thread Antonio Gallardo
Christian Haul dijo:
 One thing is impossible, though: update may not affect key columns. This
  has been requested by Antonio but he didn't come up with a patch so far
 ;-)

Hi!

I dont made the patch since it is posible to create and alias of the table
and change the key values. I know this is a hack, but it works. :)

Intentionally, change the changing keys to a value attribute. That is
all. It works. for us. Of course you need to use set=master where you
need.

Another way is to create a special action (maybe an XSP-Action) to do the
work. For more info: http://wiki.cocoondev.org/Wiki.jsp?page=XSPAction

Best Regards,

Antonio Gallardo.

For example to delete all the records from a table we did it. Please note
we define the alias just with the fields we are interested in. If a field
is not interesting in a given action just dont write it. The same apply to
the keys.

table name=auth_users_roles
  keys
key name=usr_id type=long
  mode name=request-param parameter=usr_id type=request-param/
  mode name=request-attr
parameter=org.apache.cocoon.components.modules.output.OutputModule:auth_users.usr_id[0]
   type=all/
/key
key name=rol_id type=int set=master
  mode name=request-param parameter=rol_id type=all/
/key
  /keys
/table

!-- Alias of the table just with ONE key to allow delete --
table name=auth_users_roles alias=auth_users_roles_borrar
  keys
key name=usr_id type=long
  mode name=request-param parameter=usr_id type=all/
/key
  /keys
/table





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



Please take care a virus is near of us!

2003-06-06 Thread Antonio Gallardo
Hi:

For all Windows users of the list,

Right now, I receved a rare mail from Upayavira. I want to warning all of
you that the mail can be virus. But I am not sure, because I am using
Linux. The topic was interesting since was got from this list.

Of course there was an attach with a .exe extension.

Be aware!

Best Regards,

Antonio Gallardo.



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



Re: recommed upgrading to Xalan 2.5 when using document() regularly

2003-06-05 Thread Antonio Gallardo
Joerg Heinicke dijo:
 Do you think the bug is fixed in current Xalan? If it's not we have it
 in  Cocoon 2.0  too ;-)
I am not sure about this, but people was waiting for the new Xalan that
will solve this problem. BTW, there is also a discusion about change Xalan
also in 2.0. I dont use 2.0 then I dont know is there is the same problem.

Antonio.

 Joerg

 Antonio Gallardo wrote:
 Joerg Heinicke dijo:

Antonio Gallardo wrote:

Joerg Heinicke dijo:

I upgraded Xalan to 2.5.1 and Xerces to 2.4.0 in the Cocoon 2.0 CVS,
 so they should be in the next Cocoon 2.0.x release - I guess the 5
 comes after the 4 ;-)

Cool! I think we can close the bug related to document() function!

Hello Anotnio,

to which one you refer?


 This?
 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20381

 Antonio

Joerg

 --

 System Development
 VIRBUS AG
 Fon  +49(0)341-979-7419
 Fax  +49(0)341-979-7409
 [EMAIL PROTECTED]
 www.virbus.de


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




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



Re: [HELP]Exception in ServerPagesGenerator.generate()

2003-06-04 Thread Antonio Gallardo
Thorsten Bökenkamp dijo:

 Description:org.apache.cocoon.ProcessingException: Exception in
 ServerPagesGenerator.generate(): java.lang.RuntimeException: Error
 loading driver: oracle.jdbc.driver.OracleDriver



 Was kann ich tun ???

??? I dont understand, but I guess you are asking, why?

Well you need to put your Oracle jar library inside cocoon. Concretly at:

WEB-INF/lib

More info at:
http://wiki.cocoondev.org/Wiki.jsp?page=DatabaseConnectionOverview
http://wiki.cocoondev.org/Wiki.jsp?page=Oracle

Best Regards,

Antonio Gallardo




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



Re: clear cache problems

2003-06-04 Thread Antonio Gallardo
Hi:

I saw this problem always in Explorer. Sometimes explorer is too smart
that prefer to not download the page. Instead it gets it from the local
disk cache.

I recommend you to change options of how IE manages the cache.

Best Regards,

Antonio Gallardo.

 Hello,
 I have problems with the cache. Sometimes I change a page (eg the
 sitemap) and it's still the old page that is displayed! Even if I
 restart the server, the computer, the client, IE's cache!

 How is it possible to take the changes

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




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



Re: clear cache problems

2003-06-04 Thread Antonio Gallardo
Bertrand Delacretaz dijo:
 The best thing if you're not sure about the browser's cache is to test
 without a browser - use wget or telnet to make requests and check the
 results.


hi:

Good advise. I use Mozilla instead! ;)

Antonio Gallardo.



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



RE: clear cache problems

2003-06-04 Thread Antonio Gallardo
 cocoon 2.0 and tomcat 4.1.18

Hi:

Try to upgrade to Tomcat 4.1.24. It is better stable than the 4.1.18 I had
many problems related as your with 4.1.18 like yours + others, like blank
pages after a while.

Also java version? We are using 1.4.1_03 and looks pretty stable. Running
since yesterday.

Antonio Gallardo.


 -Original Message-
 From: Antonio Gallardo [mailto:[EMAIL PROTECTED]  Sent:
 Wednesday, June 04, 2003 11:29 AM
 To: [EMAIL PROTECTED]
 Subject: RE: clear cache problems


 What versions are you using?

 Antonio Gallardo

 no, because if I take Opera and load any page that I have never
 requested I get the same error!
 The problem must be on the server. Do I have to reinstall it? I really
 tried to delete all cache-files! I don't see any other possibility

 -Original Message-
 From: Antonio Gallardo [mailto:[EMAIL PROTECTED]
 Sent:
 Wednesday, June 04, 2003 11:20 AM
 To: [EMAIL PROTECTED]
 Subject: Re: clear cache problems


 Hi:

 I saw this problem always in Explorer. Sometimes explorer is too smart
 that prefer to not download the page. Instead it gets it from the
 local
 disk cache.

 I recommend you to change options of how IE manages the cache.

 Best Regards,

 Antonio Gallardo.

 Hello,
 I have problems with the cache. Sometimes I change a page (eg the
 sitemap) and it's still the old page that is displayed! Even if I
 restart the server, the computer, the client, IE's cache!

 How is it possible to take the changes

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




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


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




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


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




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



Re: recommed upgrading to Xalan 2.5 when using document() regularly

2003-06-04 Thread Antonio Gallardo
Joerg Heinicke dijo:
 Hello Bruce,

 I upgraded Xalan to 2.5.1 and Xerces to 2.4.0 in the Cocoon 2.0 CVS, so
 they should be in the next Cocoon 2.0.x release - I guess the 5 comes
 after the 4 ;-)

Cool! I think we can close the bug related to document() function!

Antonio Gallardo.




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



Re: NullPointerException with action-sets

2003-06-03 Thread Antonio Gallardo
Hi:

This is an old know bug, please check it at:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9835

Best Regards,

Antonio Gallardo.




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



J2SDK 1.4.1_03 avaliable!

2003-06-03 Thread Antonio Gallardo
Hi:

The Sun j2SDk 1.4.1_03 is already avaliable to download. See:

http://java.sun.com/j2se/1.4.1/download.html

Best Regards,

Antonio Gallardo



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



Re: J2SDK 1.4.1_03 avaliable!

2003-06-03 Thread Antonio Gallardo
Hi:

Cocoon compiled and working on the new Sun j2SDk 1.4.1_03!

My config is:

Red Hat Linux 9
Java Sun J2SDK 1.4.1_03
Tomcat 4.1.24
Cocoon CVS 2.1M3 (downloaded 10 minuts ago.)

Antonio Gallardo.

Antonio Gallardo dijo:
 Hi:

 The Sun j2SDk 1.4.1_03 is already avaliable to download. See:

 http://java.sun.com/j2se/1.4.1/download.html

 Best Regards,

 Antonio Gallardo



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




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



Hello Open Office samples

2003-06-02 Thread Antonio Gallardo
Hi:

This Hello Office documents samples are great!

I think we can change the name to:

Hello OpenOffice.org

Best Regards,

Antonio Gallardo.




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



Re: Again: quot;forgottenquot; namespaces problem

2003-06-02 Thread Antonio Gallardo
Hi:

Check:
http://wiki.cocoondev.org/Wiki.jsp?page=RemoveNamespaces

Antonio Gallardo




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



Re: How to save a session context?

2003-06-02 Thread Antonio Gallardo
Hi:

There is no current built-in solution to your question in Cocoon.

But you can customize the session or authentication Manager to your needs.

Best Regards,

Antonio Gallardo



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



An IDIOT on WiKi!

2003-05-30 Thread Antonio Gallardo
Please check this page:

http://wiki.cocoondev.org/PageInfo.jsp?page=XSPSyntax

Surely an IDIOT was destroying our work. This is not fair. I think we must
take some actions against this type of STUPID things!

Best Regards,

Antonio Gallardo



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



Re: An IDIOT on WiKi!

2003-05-30 Thread Antonio Gallardo
Steven Cummings dijo:
 Of course it really can't be prevented, but
if a cookie is set and an IP
 grabbed, then perhaps that person can be blocked in the future.

Hi:

First sorry to all the list for the subject of the mail. I was the one
that started this thread. I was very upset because I needed to help
someone pointing to this wiki reference.

Also I dont see fair that some of us spend hours trying to put our best
effort writing the wiki docs and some IDIOT destroy the community work. We
really must take some kind of restriction to make a little bit hard to
this kind of people to enter the system and destroy the community work.

When I started to use wiki. I loved that was freely editable, but after
that I think we must find a mechanism to control contribution. I mean this
kind of nonsense contributions that only destroy the builded work.

What we can do?

Best Regards,

Antonio Gallardo



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



Re: XMLForm Question

2003-04-12 Thread Antonio Gallardo
I think the problem can be related with the improper shutdown of the
current CVS 2.1 with Tomcat. Try to kill the process after the shutdown.

Antonio Gallardo.

JD Daniels dijo:
 Yes, I guess I should have mentioned that I did in fact delete my tomcat
 work directory, shutdown and startup. It did not make a difference...
 hence my frustration :)

 I know that when I get this crap figured out, I will never hack php
 again :D The trick is getting it figured heh heh.

 JD
   - Original Message -
   From: David Kavanagh
   To: [EMAIL PROTECTED]
   Sent: Saturday, April 12, 2003 9:05 AM
   Subject: Re: XMLForm Question


   I think you just need to restart the container (in your case, tomcat).
 In theory, Tomcat use an adaptive classloader that you can configure
 (in server.xml) to reload classes when they change. I was able to use
 this feature when my web app was simple. Once I started having more
 statefull information in memory, I really needed to restart the whole
 app (and tomcat) when I changed my code.  BTW, If you were to use
 JBoss/Jetty, you should be able to take advantage of the JBoss
 hot-deploy feature. The idea being if you touch the web.xml under
 cocoon, jboss should redeploy the app, and pick up your code change.
 At this point, JBoss exits when I try this. I'm sure I'm doing
 something wrong.

   David

   JD Daniels wrote:

 Thanks for the answer Sylvain

 That was what I had thought... after I restarted my machine, it all
 started working.




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



Re: [ANN] sunBow 1.0

2003-03-28 Thread Antonio Gallardo
wow! Congratulations. I will try it.

Antonio Gallardo

Martin Dulisch dijo:
 The SN sunBow team are proud to announce version 1.0. This free
 version is available immediately for download at:
 http://radio.weblogs.com/0108489/. In addition to numerous bug-fixes,
 the new version now also supports sub-sitemaps and no longer requires a
 licence key.

 sunBow is a collection of Eclipse (2.1) plugins that make it easier to
 develop Cocoon based applications and XML solutions in general.

   * XML editor
 - completition proposals from associated schema
 - well formed check on save
 - automatic insertion of closing tags
 - formatting of the XML content

   * XSLT development
 - XSLT transformation
 - transformation trace

   * Cocoon
 - dialog orientated sitemap editor with drag and drop support
   and validation against a sitemap schema
 - management of sitemap fragments
 - configuration of the log level in logkit.xconf

   * Web application
 - deployment: automatic tracking of changes
 - testing: Apache Latka tests can be executed


 Regards
 Martin Dulisch
 -
 sn AG, Open Source Competence Center
 Tel.: 05251/1581-75
 Klingenderstr. 5mailto:[EMAIL PROTECTED]
 D-33100 Paderborn   http://www.s-und-n.de
 -



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




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



Re: wml generator ?

2003-03-14 Thread Antonio Gallardo
zze-MORY Nicolas FTRD/DMI/REN dijo:
 does exists a WML generator for cocoon ?
NO. There is only a HTML and a XML generator

Antonio Gallardo

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




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



RE: wml generator ?

2003-03-14 Thread Antonio Gallardo
OPss, you are right. :-).

I already checked some mail from http://w3c.org. it seems like we need to
find a converter from WML - XML.

Are you already tried with HTML Generator? Maybe it can work.

Antonio Gallardo.

zze-MORY Nicolas FTRD/DMI/REN dijo:
 Yves, yes we can serialize but my problem is th generato. I think that
 Antonio is rights, there's no WML generator...

 -Original Message-
 From: Yves Vindevogel [mailto:[EMAIL PROTECTED]
 Sent: vendredi 14 mars 2003 10:50
 To: [EMAIL PROTECTED]
 Subject: Re: wml generator ?



 Sorry to correct you, Antonio, but yes you can ...
 you can serialize with map:serialize type=wap

 Nicolas: The book Cocoon, building XML Applications from Langham and
 Ziegeler (both posters on this community too) has a chapter on it:
 chapter 5.   On page 131 you can see how they do it ...


 zze-MORY Nicolas FTRD/DMI/REN dijo:
  does exists a WML generator for cocoon ?

 NO. There is only a HTML and a XML generator

 Antonio Gallardo

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

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

 --
 Met vriendelijke groeten,
 Kind regards,
 Bien à vous,

 Yves Vindevogel

 Implements
 Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
 Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
 Mail: [EMAIL PROTECTED]  --  www.implements.be

 Quote: The winner never says participating is more important than
 winning.

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


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




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



Re: best Java for RedHat?

2003-03-13 Thread Antonio Gallardo
Hi:

I am happily using Sun JSDK 1.4.1_01 in Red Hat 8.0 without any problem

Antonio Gallardo

Jeremy Quinn dijo:
 Hi Folks,

 I am setting up Cocoon on a Linux box for the first time (I am new to
 Linux).

 Is this a good JVM to be running, or is there a stable 1.4.1 for this
 platform?

 % java -version
 java version 1.3.1
 jdkgcj 0.2.3 (http://www.arklinux.org/projects/jdkgcj)
 gcj (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
 Copyright (C) 2002 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.  There is
 NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
 PURPOSE.


 Thanks for any suggestions.

 regards Jeremy


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




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



Re: Forms

2003-03-11 Thread Antonio Gallardo
Hi:

Please be a little more specific. The forms will be filled online or just
printed by your customer and sended back to you via.

Best Regards,

Antonio Gallardo

Ines Robbers dijo:
 Hello list,

 We want to use Cocoon for our forms (application forms etc.).
 It should be something like a form center.
 What is the best approach to realise this?
 Are there any examples on the net?

 Many thanks!

 Ines



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




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



RE: Forms

2003-03-11 Thread Antonio Gallardo
The (X)HTML forms can be easily done using Cocoon. You can use the
FormValidator Transformer to Validate the forms.

If you wish database support you can also make use of Modular Database
Actions.

On the other hand. I have no experience in writting XSL-FO forms. I dont
know if we can use the PDF Serializer to create PDF Forms. :-(

I already use XSL-FO but not to create forms.

Best Regards,

Antonio Gallardo

Ines Robbers dijo:
 Dear Antonio,

 These forms should be available online as well as being printable.
 Depending on the form it can either be filled in and send back online or
 in case of serious issues such as an application the form should be
 printable so that people can send it back by post.
 Only in the future online applications will be allowed when the digital
 signature has been established.

 The current format of the forms are pdf (example:
 http://www.uni-potsdam.de/u/studium/formulare/a_wechsel_studiengang.pdf)

 I guess it would be nice to have versions in XHTML and PDF at least.

 The problem is that I have no idea how Cocoon handles forms and how I
 should go about this.

 I'd appreciate your help!

 Ines


 Antonio Gallardo:
 * Please be a little more specific. The forms will be filled
 * online or just printed by your customer and sended back to you via.


 Ines Robbers:
 *  We want to use Cocoon for our forms (application forms etc.). It  *
 should be something like a form center. What is the best
 *  approach to realise this? Are there any examples on the net?



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




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



Re: how to generate random numbers or strings?

2003-03-07 Thread Antonio Gallardo
Hello!

I meet this problem some months ago. I made a solution using XSP. I think
you can easily enhance this piece of code:

xsp:logic
String key = xsp-request:get-parameter name=table_id default=/;
while (key.equals()) {
Random aleatorio = new Random();
int new_key = aleatorio.nextInt(Integer.MAX_VALUE) + 1;
llave = String.valueOf(new_key);
/* Check into database if the key exist into the table */
esql:execute-query
esql:query
SELECT table_id FROM table WHERE 
table_id=esql:parameter
type=intxsp:exprnew_key/xsp:expr/esql:parameter
/esql:query
esql:results
esql:row-results
key = ;
/esql:row-results
/esql:results
/esql:execute-query
}
/xsp:logic
parameter name=table_idxsp:attribute
name=valuexsp:exprkey/xsp:expr/xsp:attribute/parameter

best regards,

Antonio Gallardo



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



Re: AW: encoding and xsp

2003-03-07 Thread Antonio Gallardo
Hi!

Please note that you must be sure that you are using the correct encoding
to save your files.

Antonio Gallardo.



 hi,

 thanks for your hints. i tried it, but it still does not work. i was not
 sure, if you mean to specifiy it within the map:components, or
 map:pipelines i did it in both. i also specified it within in the jdbc
 connection. but no success.

 Is it necessary to specify main sitemap, or is it also possible to put
 it into the sub-sitemap?

 here is how i added it:

  map:components
   map:generators default=file
encodingISO-8859-1/encoding
   /map:generators
  /map:components    i did the same for the serializer and
 transformer.

 and ...

map:match pattern=**.html
 map:generate type=serverpages src=reg/docs/{1}.xsp
  encodingISO-8859-1/encoding
 /map:generate
 map:transform src=reg/stylesheets/anmeldung.xsl
  encodingISO-8859-1/encoding
 /map:transform
 map:serialize
  encodingISO-8859-1/encoding
 /map:serialize
/map:match

 if i read through the outputtet html, there is still a tag like:

 META http-equiv=Content-Type content=text/html; charset=UTF-8



 -Ursprüngliche Nachricht-
 Von: Andres, Judith [mailto:[EMAIL PROTECTED]
 Gesendet: Freitag, 7. März 2003 09:42
 An: [EMAIL PROTECTED]
 Betreff: AW: encoding and xsp


 Try specifying an encoding inside the serializer declaration in your
 sitemap:

  map:serializer ...
 encodingISO-8859-1/encoding
   /map:serializer

 HTH Judith


 -Ursprüngliche Nachricht-
 Von: boessem [mailto:[EMAIL PROTECTED]
 Gesendet: Freitag, 7. März 2003 09:39
 An: Cocoon-Users
 Betreff: encoding and xsp


 hi,

 i do not understand why the encoding works different for words i use
 wihtin the xsp document and words i get via the url.

 an example:

 I have got a form, where students should be able to apply for a specific
 exame. wihtin this form (a xsp document) there are some explainations of
 how to use the form and what to fill in. characters within these
 sentences  like ä,ö,ü etc. are getting transformed into html
 perfectly. (so no trouble).

 but:

 i have got text fields where students are able to fill in their names.
 so if a name uses characters like ä,ö,ü etc. these names are
 transformed inot funny characters like e.g. Bößem into Bößem .

 i tried to solve this problem, by adding to the header of the xsp and
 xsl document the encoding sceme, like ?xml version=1.0
 encoding=ISO-8859-1?, but still the same problem.

 does anyone know how to solve this problem.

 thanks and regards




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



Re: AW: AW: encoding and xsp

2003-03-07 Thread Antonio Gallardo
Hi:

Take it easy! This is a standard problem when you start to using Cocoon. :-D

What I am trying to said is that only putting the header is not enough.
Just for reference. I use spanish and I had the same problem as you we I
started with Cocoon.

I dont use Windows anymore. But I can recommend you jEdit.
(http://www.jEdit.org) to write XML stuff.

In jEdit you have buffer options that allow you to define the character
encoding for your saved files. That means How the file will be encoded
BEFORE is saved into the hard disk. Of course the headers are importants
too.

Please feel free to ask if you have more questions. ;-)

Best Regards,

Antonio Gallardo


 I am not shure what you mean, but i added to the header of all xsp and
 xsl document the same encoding sceme!

 -Ursprüngliche Nachricht-
 Von: Antonio Gallardo [mailto:[EMAIL PROTECTED]
 Gesendet: Freitag, 7. März 2003 14:27
 An: [EMAIL PROTECTED]
 Betreff: Re: AW: encoding and xsp


 Hi!

 Please note that you must be sure that you are using the correct
 encoding to save your files.

 Antonio Gallardo.



 hi,

 thanks for your hints. i tried it, but it still does not work. i was
 not sure, if you mean to specifiy it within the map:components, or
 map:pipelines i did it in both. i also specified it within in the
 jdbc connection. but no success.

 Is it necessary to specify main sitemap, or is it also possible to put
  it into the sub-sitemap?

 here is how i added it:

  map:components
   map:generators default=file
encodingISO-8859-1/encoding
   /map:generators
  /map:components    i did the same for the serializer and
 transformer.

 and ...

map:match pattern=**.html
 map:generate type=serverpages src=reg/docs/{1}.xsp
  encodingISO-8859-1/encoding
 /map:generate
 map:transform src=reg/stylesheets/anmeldung.xsl
  encodingISO-8859-1/encoding
 /map:transform
 map:serialize
  encodingISO-8859-1/encoding
 /map:serialize
/map:match

 if i read through the outputtet html, there is still a tag like:

 META http-equiv=Content-Type content=text/html; charset=UTF-8



 -Ursprüngliche Nachricht-
 Von: Andres, Judith [mailto:[EMAIL PROTECTED]
 Gesendet: Freitag, 7. März 2003 09:42
 An: [EMAIL PROTECTED]
 Betreff: AW: encoding and xsp


 Try specifying an encoding inside the serializer declaration in your
 sitemap:

  map:serializer ...
 encodingISO-8859-1/encoding
   /map:serializer

 HTH Judith


 -Ursprüngliche Nachricht-
 Von: boessem [mailto:[EMAIL PROTECTED]
 Gesendet: Freitag, 7. März 2003 09:39
 An: Cocoon-Users
 Betreff: encoding and xsp


 hi,

 i do not understand why the encoding works different for words i use
 wihtin the xsp document and words i get via the url.

 an example:

 I have got a form, where students should be able to apply for a
 specific exame. wihtin this form (a xsp document) there are some
 explainations of how to use the form and what to fill in. characters
 within these sentences  like ä,ö,ü etc. are getting
 transformed  into html perfectly. (so no trouble).

 but:

 i have got text fields where students are able to fill in their names.
  so if a name uses characters like ä,ö,ü etc. these names are
  transformed inot funny characters like e.g. Bößem into
 Bößem .

 i tried to solve this problem, by adding to the header of the xsp and
 xsl document the encoding sceme, like ?xml version=1.0
 encoding=ISO-8859-1?, but still the same problem.

 does anyone know how to solve this problem.

 thanks and regards




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


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




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



Re: Zip File Generator

2003-03-07 Thread Antonio Gallardo

 Le Vendredi, 7 mars 2003, à 14:05 Europe/Zurich, Sylvain Wallez a écrit
 :

 ...The JDK natively suppors the jar: protocol with URLs of the form
 jar:url!/entry(see [1]) and as such is available in Cocoon.

 Wow, I didn't know that this was a standard JDK feature, thanks for
 pointing it out!
 Now I understand why I couldn't find the implementation of the jar:
 stuff in in Cocoon ;-)
lol :-D

 -Bertrand

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




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



Re: AW: AW: AW: encoding and xsp

2003-03-07 Thread Antonio Gallardo
Nice to hear that!

Thank you too and welcome to Cocoon!

Antonio Gallardo

 Hi, thanks for your hints. It works now. What i have done was to put
 into my main sitemap this:

 map:serializer logger=sitemap.serializer.html mime-type=text/html
 name=html pool-grow=4 pool-max=32 pool- min=4
 src=org.apache.cocoon.serialization.HTMLSerializer
   buffer-size1024/buffer-size
   encodingISO-8859-1/encoding
 /map:serializer

 I just changed it within a sub sitemap. Anyway thanks

 Best regard to you ;-)

 -Ursprüngliche Nachricht-
 Von: Antonio Gallardo [mailto:[EMAIL PROTECTED]
 Gesendet: Freitag, 7. März 2003 14:40
 An: [EMAIL PROTECTED]
 Betreff: Re: AW: AW: encoding and xsp


 Hi:

 Take it easy! This is a standard problem when you start to using Cocoon.
 :-D

 What I am trying to said is that only putting the header is not enough.
 Just for reference. I use spanish and I had the same problem as you we I
 started with Cocoon.

 I dont use Windows anymore. But I can recommend you jEdit.
 (http://www.jEdit.org) to write XML stuff.

 In jEdit you have buffer options that allow you to define the
 character encoding for your saved files. That means How the file will be
 encoded BEFORE is saved into the hard disk. Of course the headers are
 importants too.

 Please feel free to ask if you have more questions. ;-)

 Best Regards,

 Antonio Gallardo


 I am not shure what you mean, but i added to the header of all xsp and
  xsl document the same encoding sceme!

 -Ursprüngliche Nachricht-
 Von: Antonio Gallardo [mailto:[EMAIL PROTECTED]
 Gesendet: Freitag, 7. März 2003 14:27
 An: [EMAIL PROTECTED]
 Betreff: Re: AW: encoding and xsp


 Hi!

 Please note that you must be sure that you are using the correct
 encoding to save your files.

 Antonio Gallardo.



 hi,

 thanks for your hints. i tried it, but it still does not work. i was
 not sure, if you mean to specifiy it within the map:components, or
 map:pipelines i did it in both. i also specified it within in the
 jdbc connection. but no success.

 Is it necessary to specify main sitemap, or is it also possible to
 put  it into the sub-sitemap?

 here is how i added it:

  map:components
   map:generators default=file
encodingISO-8859-1/encoding
   /map:generators
  /map:components    i did the same for the serializer and
 transformer.

 and ...

map:match pattern=**.html
 map:generate type=serverpages src=reg/docs/{1}.xsp
  encodingISO-8859-1/encoding
 /map:generate
 map:transform src=reg/stylesheets/anmeldung.xsl
  encodingISO-8859-1/encoding
 /map:transform
 map:serialize
  encodingISO-8859-1/encoding
 /map:serialize
/map:match

 if i read through the outputtet html, there is still a tag like:

 META http-equiv=Content-Type content=text/html; charset=UTF-8



 -Ursprüngliche Nachricht-
 Von: Andres, Judith [mailto:[EMAIL PROTECTED]
 Gesendet: Freitag, 7. März 2003 09:42
 An: [EMAIL PROTECTED]
 Betreff: AW: encoding and xsp


 Try specifying an encoding inside the serializer declaration in your
 sitemap:

  map:serializer ...
 encodingISO-8859-1/encoding
   /map:serializer

 HTH Judith


 -Ursprüngliche Nachricht-
 Von: boessem [mailto:[EMAIL PROTECTED]
 Gesendet: Freitag, 7. März 2003 09:39
 An: Cocoon-Users
 Betreff: encoding and xsp


 hi,

 i do not understand why the encoding works different for words i use
 wihtin the xsp document and words i get via the url.

 an example:

 I have got a form, where students should be able to apply for a
 specific exame. wihtin this form (a xsp document) there are some
 explainations of how to use the form and what to fill in. characters
 within these sentences  like ä,ö,ü etc. are
 getting  transformed  into html perfectly. (so no trouble).

 but:

 i have got text fields where students are able to fill in their
 names.  so if a name uses characters like ä,ö,ü
 etc. these  names are  transformed inot funny characters like e.g.
 Bößem  into Bößem .

 i tried to solve this problem, by adding to the header of the xsp and
  xsl document the encoding sceme, like ?xml version=1.0
 encoding=ISO-8859-1?, but still the same problem.

 does anyone know how to solve this problem.

 thanks and regards




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


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




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

The new MS Office 2003

2003-02-26 Thread Ing. Antonio Gallardo
Sorry, for the SPAM ;-)

But i post this link, because in the first screenshots are some labels
related to XML/XSL stuff :)

http://www.activewin.com/screenshots/office2k3b2/

Antonio Gallardo



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



Re: How can I handle session expiration event

2003-02-24 Thread Ing. Antonio Gallardo

 Is there a way to handle session expiration events with cocoon ?

 I would like to launch some cleaning job when a session expires, is it
 possible ?

I think no. :-(

Antonio Gallardo





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



Re: mod-db postgresql and autoincrement

2003-02-23 Thread Antonio Gallardo
Hi Amelie:

I am glad you got this running. I had the same problems too.

 I think the name of the table user should be changed in the mod-db
 example of cocoon because it is a problem for those who want to run it
 with postgresql. And using a trick like user to create the table is
 not totally clear.

I totally agree with you. I suggested this too. Some months ago. But there
is still the same code. I think this is not a priority right now...

Antonio Gallardo



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



Re: mod-db postgresql and autoincrement

2003-02-21 Thread Antonio Gallardo
Hi Amelie:

Sorry for the delay. I was not clear what was you problem :-(

1-The pointed by Christian is correct, in cocoon.xconf check you have:


autoincrement-modules
  component-instance
logger=core.modules.auto
name=auto  
class=org.apache.cocoon.components.modules.database.PgsqlAutoIncrementModule/
/autoincrement-modules

2-IN order to make use of this module, you must to create on the database
SEQUENCES like this

-- Autonumerico de usuarios
CREATE SEQUENCE usuarios_usr_id_seq
  start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1;

Please check that the name of the SEQUENCE must be:

tableName_fielName_seq

To follow the example. The table usuarios is create by the following SQL
code:

*
CREATE TABLE Usuarios
  (
usr_id   int4unique not null default
nextval('usuarios_usr_id_seq'),
loc_id   int4not null,
usr_nombre   varchar(20) unique not null,
usr_nombre_completo varchar(50),
usr_password varchar(20),
usr_habilitado int4not null default 1,

primary key(usr_id),

foreign key(loc_id) references Localidades(loc_id) on update CASCADE,

CHECK(usr_habilitado BETWEEN 0 AND 1)
  );

CREATE INDEX UsuariosNDX1 ON Usuarios(loc_id);

***

I hope it will help you. :-D

Best Regards,

Antonio Gallardo



Amélie Cordier dijo:
 Hello everybody

 I'm trying to run mod-db example (the one with users and groups) using
 PostgreSQL.

 Currently, everything work perfectly except the autoincrement attribute.

 The error I have is this one :

  ---
 |org.apache.cocoon.components.modules.output.OutputModule:  =ERROR:
 parser: parse error at or near call 
  ---

 I read in the mailing list archive a lot of interesting things but I had
 not found any clue to solve my problem.

 Is there anybody who can help me?

 Regards,

 Amélie Cordier


 --
 My configuration :

 OS: Debian 3.0
 Tomcat 4.1.10
 Cocoon 2.1-dev (latest CVS HEAD version)
 JDK 1.4









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




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



[ANN] Hibernator - Eclipse Plugin

2003-02-21 Thread Antonio Gallardo
Since many people is trying to push the combination of XMLForms with
Hibernate. I think this link can be of special interest :-)

http://sourceforge.net/projects/hibernator/

I hope it will be useful.

Best Regards,

Antonio Gallardo



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



Re: get sunrise session values from an xsp page

2003-02-19 Thread Antonio Gallardo
Check this:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13070

Antonio Gallardo

Lionel Crine dijo:
 How can I get sunrise session values in an xsp page.

 I'm trying this ?

 My login page :

 ?xml version=1.0 encoding=UTF-8?

 page
 content
form
  urllogin?resource=ixia_demo/url
  field name=name type=text length=24 description=User/
 field name=password type=password length=10
 description=Password/
/form
 /content
 /page


 /xsp:page

 My xsp page :

 ?xml version=1.0 encoding=UTF-8?
 xsp:page xmlns:xsp=http://apache.org/xsp;
 xmlns:xsp-request=http://apache.org/xsp/request/2.0;
 xmlns:sunshine=http://cocoon.apache.org/sunshine/1.0;


 page
 content
 session-info
  sunshine:getxml context=session path=/parameter/name/
 /session-info
 /content
 /page
 xsp:page


 xsl document :

 xsl:template match=session_info
 xsl:apply-templates/
 /xsl:template


 The xsp page does not understand the  sunshine:getxml context=session
  path=/parameter/name/

 I'm kind of lost.


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

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




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

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




Re: R: MySQL date conversion with modular database action

2003-02-17 Thread Antonio Gallardo
Christian Haul dijo:
 On 17.Feb.2003 -- 03:31 PM, Marco Taiuti wrote:
 I have a DatabaseAction with the followed descriptor

 ?xml version=1.0?
 tabelle
  connectionline_db/connection
  table name=t_news
  keys
  key param=numprg dbcol=numprg type=int mode=manual/
  /keys
  values
  value param=datpub dbcol=datpub type=date 
   /value
  /values
  /table
 /tabelle

 How i can use the DateMetaInputModule or DateInputModule to format
 date datpub to 'dd/MM/'?
 Thanks,

 Short answer: Since you apparently do not use the modular database
 actions, you cannot.

 Long answer: There are two sets of database actions: one set in
 org.apache.cocoon.acting and another one in
 org.apache.cocoon.acting.modular They are similar to a great deal but
 differ in details. Configuration files from the original actions can
 mostly be used with the modular ones.

 Formating the date is an output issue, which is not handled by the
 actions. At least in case of the modular actions, they return a java
 date object, not a string. Parsing input data is an issue. Of my head I
 believe both Date*Module take a format parameter that is expected to
 conform to the SimpleDateFormat specs. See javadocs for details.

More info at: http://wiki.cocoondev.org/Wiki.jsp?page=DatabaseActions

Antonio Gallardo

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

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

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




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

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




[ANN] kxmleditor for KDE

2003-02-14 Thread Antonio Gallardo
Hi Cocooners!

I found this XML editor for KDE-Linux and I wanted to share it with you. :-D

http://kxmleditor.sourceforge.net/

Best Regards,

Antonio Gallardo



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

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




Re: Carriage returns in HTML serialization

2003-02-11 Thread Antonio Gallardo
Mark H dijo:
 I'm having problems with HTML serialization: it's putting tags on a new
 line which is making a DIV section higher than it should be i.e.

This is a browser issue, not a Cocoon issue. I recently buyed a nice book
of HTML because I getted this kind if UFO errors. ;-)

Source:HTML for the World Wide Web with XHTML and CSS: Visual QuickStart
Guide, Fifth Edition from Elizabeth Castro.
http://www.amazon.com/exec/obidos/ASIN/0321130073/

Best Regards,

Antonio Gallardo


 div style=...div align=right.../div/div

 turns into:

 div style=...
 div align=right
 ...
 /div
 /div

 Is there anyway to control the HTML output?

 BTW I'm very impressed with Cocoon. XML really is the way to go with
 content heavy websites.

 Mark




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

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




RE: DatabaseAddAction and unique or primary keys

2003-02-07 Thread Antonio Gallardo
Hi!

The problem is solved using Modular Database Actions. More info at:

http://wiki.cocoondev.org/Wiki.jsp?page=ModularDatabaseActions

Antonio Gallardo

Sheraz Sharif dijo:
 I am using postgresql 7.2..

 I am not sure what you mean.  Are you talking about making the database
 run a trigger before the insert happens?  If so, I do not think that
 will solve my problem.  I want cocoon to realize that there already
 exists that specific value in the table, and notify the user to try
 again. I think what I am trying to say is this.

 1. User sends form to cocoon.
 2. Cocoon processes form values.
 3. Form values are ok, check the database to make sure primary keys and
 unique keys do not already exist
 4. on success, insert values into database
 5. on failure, return failure

 I am thinking that I need make some additions to the DatabaseAddAction
 class to make this happen.

 Sheraz

 On Fri, 2003-02-07 at 05:43, Kazmir, Jaroslav wrote:
 Which type of database you use? Isn't it easily to use before insert
 trigger?

 JayKay

 -Original Message-
 From: Sheraz Sharif [mailto:[EMAIL PROTECTED]]
 Sent: Freitag, 07. Februar 2003 12:19
 To: [EMAIL PROTECTED]
 Subject: DatabaseAddAction and unique or primary keys

 Hello all,

 Sorry if this gets double-posted...

 I have been working on a website for a while.  Here is my problem - I
 can easily verify user input through forms and return any error
 messages through the xsp-formval tags.  After validation, the input is
 passed to the database.  However, I get an SQL exception :

 ProcessingException: Could not add record: java.sql.SQLException:
 ERROR: Cannot insert a duplicate key into unique index
 category_name_key

 This is happening because I am attempting to insert a value into a key
 column where that value already exists.  I am looking for a solution
 where cocoon will connect to the database and attempt to retreive the
 key value before the insert.  If it does not exist, it will insert it,
 otherwise it will fail and I can notify the user of the error.  Have I
 been verbose enough?  If no solution exists, I am thinking I can
 either extend or rewrite the DatabaseAddAction class to do this.  Or
 should I abandon logicsheets all together and move to xforms?  Thanks.





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

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




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

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




[ANN] - Tomcat /status information disclosure

2003-02-07 Thread Antonio Gallardo
Title: Tomcat /status information disclosure
 ID: 11218
 Category: Misc.
 URL: http://www.securityspace.com/smysecure/catid.html?id=11218
 Summary: Makes a request like http://www.example.com/server-status



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

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




Re: DatabaseAddAction and unique or primary keys

2003-02-07 Thread Antonio Gallardo
Hi,

Today morning I told you about the MODULAR Database Actions, also I
pointed you to:

http://wiki.cocoondev.org/Wiki.jsp?page=ModularDatabaseActions

There you can find ALL the info about how to do what you mean. Also I can
work with sequence (you told before you use PostgreSQL 7.2).

Sheraz Sharif dijo:
 Hello all,

 I have been working on a website for a while.  Here is my problem - I
 can easily verify user input through forms and return any error messages
 through the xsp-formval tags.  After validation, the input is passed to
 the database.  However, I get an SQL exception :

 ProcessingException: Could not add record: java.sql.SQLException: ERROR:
 Cannot insert a duplicate key into unique index category_name_key

 This is happening because I am attempting to insert a value into a key
 column where that value already exists.  I am looking for a solution
 where cocoon will connect to the database and attempt to retreive the
 key value before the insert.  If it does not exist, it will insert it,
 otherwise it will fail and I can notify the user of the error.

I think you can do a select before and check for the result of the select.
Sorry, I use XSP, but maybe the example will work:

esql:execute-query
 esql:query
SELECT the_key
FROM the_table
WHERE the_key=esql:parameter type=intxsp-request:get-parameter
name=mykey_id default=//esql:parameter
  /esql:query
  esql:no-results
!-- The key does not exist, we are going to insert a new record. --
esql:execute-query
  esql:query
INSERT INTO the_table(the_key, the_data1, the_data2) ..
  /esql:query
  esql:results/
/esql:execute-query
  esql:no-results
  esql:results
!-- Here the_key value exist! == SHOW YOUR ERROR AS YOU WANT! --
  /esql:results
/esql:execute-query

Best Regards,

Antonio Gallardo



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

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




Re: cocoon struts together

2003-02-04 Thread Antonio Gallardo
Robert Simmons dijo:
 I dont think that using struts would be useful within an efficient
 cocoon site. Cocoon takes another approach to web development that is,
 in my opinion, superior to the jsp/struts approach.

Thanks for the comment. I was trying to start learning about this stuff.

As a bean specialist (a book writer) what tools you recommend to manage
all the beans stuff (creation, changes, etc.)

Thanks for the comments.

Antonio Gallardo



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

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




Re: cocoon struts together

2003-02-04 Thread Antonio Gallardo
Thanks for the answer. Good speach. I saw you now as a Cocoon fan! :-)
You finally saw the light at the end of the pipeline. ;-)

Best Regards,

Antonio Gallardo.



Robert Simmons dijo:
 Actually I'm an EJB specialist and I don't generally work on projects
 conducive to web interfaces. The complexity level of the stuff I do is
 too high. (Pharmaceutical industry and genetic research). My customers
 generally require a higher range of functionality than a web interface
 can provide.

 That being said, I do, however, do some web work which is why I took up
 the idea of cocoon. I use the same technique that I use for GUI
 programming. Basically a command centric architecture. I hate to say
 struts is for amateurs but it kind of is. It has low complexity and
 thus low
 functionality. It also has high cost in terms of content delivery and
 maintenance costs. I personally chose to avoid all that and let Java
 objects do all the work and let the framework just concentrate on
 presentation. Enter cocoon.

 My programs consist of allot of specially designed generators that
 generate pure data. Then I use XSLT to translate that into the
 appropriate media. I also use XSLT to output the forms though I am
 experimenting with reflexive techniques that I have used in GUI
 applications to make generation of forms be based on reflexive command
 analysis.

 Frameworks like struts mix functionality with presentation, which IMHO
 is a very bad thing. Its a high maintenance cost solution with a low
 development cost. That is the wrong way around. To be professional you
 want high development cost and low maintenance cost. This causes your
 feature turn around, post release, to be much faster. Since you are able
 to react quickly to the demands of your users, your company or customers
 win. The guy that slapped it together with low development costs may
 make some sales coming out the door, but will bleed customers as they
 seek more stable solutions with faster turn-around time for new features
 and fault correction.

 I guess that is a long way of saying, put all your work into the back
 end. Cocoon is perfect for this because you can develop custom
 generators to deliver data and let a web designer with a couple weeks of
 training worry about the XSLT translation. In the meantime your valuable
 programmer resources are implementing new features and stabilizing the
 product.

 Well that's my opinion on the matter.

 -- Robert


 - Original Message -
 From: Antonio Gallardo [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, February 04, 2003 11:48 PM
 Subject: Re: cocoon  struts together


 Robert Simmons dijo:
  I dont think that using struts would be useful within an efficient
 cocoon site. Cocoon takes another approach to web development that
 is, in my opinion, superior to the jsp/struts approach.

 Thanks for the comment. I was trying to start learning about this
 stuff.

 As a bean specialist (a book writer) what tools you recommend to
 manage all the beans stuff (creation, changes, etc.)

 Thanks for the comments.

 Antonio Gallardo



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

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



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

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




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

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




Re: Link Livesites: CBIM (Cocoon 2.1-dev)

2003-02-03 Thread Antonio Gallardo
Congratulations Ugo!

First time it takes almost 16 secs. (DNS resolving, etc.)
Second time: 1.9 secs. (I think here was just cache issue.)
Third time: Pressing reload button - 4.95 secs.

I think this are nice times.

I am using Mozilla in Red Hat Linux 8.0.
Location: Managua, Nicaragua, Central America.

Best Regards,

Antonio Gallardo.

Ugo Cei dijo:
 Our new corporate website http://www.cbim.it/ is running on Cocoon
 2.1-dev since Feb 1st 2003.

 It's only in Italian at the moment, but we plan do deliver an English
 version shortly.

 Many thanks to all the Cocoon developers who made this possible.

   Ugo

 --
 Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
 P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
 Phone: +39.0382.525100 - E-mail: [EMAIL PROTECTED]


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

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




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

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




Re: Battling with null pointer exception

2003-02-03 Thread Antonio Gallardo
Derek Hohls dijo:
 I have an XSP page, containing ESQL; it works fine on my
 test machine which has a relatively small subset of data,
 but gives errors on the production machine with the full
 database.

OK. I suppose:
  1-You have 5,000+ rows in your current DB.
  2-The code in the XSP page works fine in your develpment machine.

Solution:
  1-Give more memory to Tomcat and Cocoon.

Detail:

  Suppose you can give 256 MB to Cocoon. then:

1-For Tomcat, in TOMCAT_ROOT/bin/catalina.sh:

 CATALINA_OPTS='-Xmx256m'

   Also you need to tell Cocoon about that. In cocoon.xconf, search
for store-janitor:

store-janitor logger=core.store.janitor
 parameter name=freememory value=1000/
 parameter name=heapsize value=25600/
 !-- How often shall the cleanup thread check memory --
 parameter name=cleanupthreadinterval value=15/
 !-- Indicates the thread priority of the cleanup thread --
 parameter name=threadpriority value=5/
 !-- How much percent of the elements of each registered Store shall
 be removed when low on memory. Default 10% --
 parameter name=percent_to_free value=10/
  /store-janitor

More recommendations:
  1- Upgrade to Tomcat 4.1.18

Finally Restart Tomcat! I hope it will help.

Best Regards,

Antonio Gallardo.



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

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




Re: Battling with null pointer exception

2003-02-03 Thread Antonio Gallardo
Derek Hohls dijo:
 Antonio

 Not sure we have more memory on the server, but I can try...

 The current  CATALINA_OPTS looks like:

 CATALINA_OPTS='-Xbootclasspath/a:/usr/local/pja/lib/pja.jar
 -Dawt.toolkit=com.eteks.awt.PJAToolkit
 -Djava2d.font.usePlatformFont=false
 -Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment
 -Djava.awt.fonts=/usr/java/jre/lib/fonts
 -Duser.home=/usr/local/pja -cp /usr/java/jre/lib/ext/pjatools.jar'

 Can I just add your parameter to the front or end of these commands?

Yes!

CATALINA_OPTS='-Xmx256m -Xbootclasspath/a:/usr/local/pja/lib/pja.jar
 -Dawt.toolkit=com.eteks.awt.PJAToolkit
 -Djava2d.font.usePlatformFont=false
 -Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment
 -Djava.awt.fonts=/usr/java/jre/lib/fonts
 -Duser.home=/usr/local/pja -cp /usr/java/jre/lib/ext/pjatools.jar'

Please check that you have memory enough emory. Cocoon is a memory eater.
lol :-D But be carefully to dont give it more memory as you have, because
you can start swaping on the server. If you start swapping = You will see
too slow responses time.

By the way currently memory is very cheap. If you can try to config your
sever with 512MB or more. I had the same problem:

A-First we used in production a old machine Pentium III 500MHz. with 128
MB. We always get the Out of memory.
B-Then we upgraded to 384 MB and tweaking the server to use 256MB as I
recommended you. That was a lot of improvement, but sometimes slow. I
think this server can be fineright now with all the performance check and
rewriting we did on the XSP code.
C-Now we are using a PIV 1.8GHz, 512MB and it is very fast and all is OK.
Always we setted for him 256MB for Cocoon. We done some test. If you are
trying to show a table with aprox 10,000 rows. It takes 1 minut.

Also be aware that you must tweak the parameters of you database to get
the best time response.

We are using PostgreSQL 7.2 (on Red Hat Linux 8.0). After tweaking some
params, then the responses does not take more than some milisecs. That
means that all the 1 minut of the HTML table with 10,000 is expended in
XSL transformations.

I will also add that XSL is fine, but try to make the stylesheets the most
simple as you can.

For example: Before we used XSL to build dates from the database format
TIMESTAMP to a more human format: 25/12/2003 8:15. It was taking too
much time.

Then we rewrite the query to let the database to give us the format as we
want.It was a really improvement. Why? simple: The Database Manager code
is compiled to machine code. There is no virtual machine between. Then it
runs faster.

By the way, I saw that this kind of tricks are hidden and almost no where
you can find about it. I spend more than 15 days investigating about
that until I found some trick in a Tomcat book. I own the 3 already
books about Cocoon. The best book that cover the tweaking for production
environment is the book from Lajos and Jeremy. It helps me to understand
all this stuff.

If all this helps, please write a page on wiki about this. ;-)

I hope it will help you.

Best Regards,

Antonio.



 Thanks
 Derek

 [EMAIL PROTECTED] 03/02/2003 01:54:16 
 Derek Hohls dijo:
 I have an XSP page, containing ESQL; it works fine on my
 test machine which has a relatively small subset of data,
 but gives errors on the production machine with the full
 database.

 OK. I suppose:
   1-You have 5,000+ rows in your current DB.
   2-The code in the XSP page works fine in your develpment machine.

 Solution:
   1-Give more memory to Tomcat and Cocoon.

 Detail:

   Suppose you can give 256 MB to Cocoon. then:

 1-For Tomcat, in TOMCAT_ROOT/bin/catalina.sh:

  CATALINA_OPTS='-Xmx256m'

Also you need to tell Cocoon about that. In cocoon.xconf,
 search
 for store-janitor:

 store-janitor logger=core.store.janitor
  parameter name=freememory value=1000/
  parameter name=heapsize value=25600/
  !-- How often shall the cleanup thread check memory --
  parameter name=cleanupthreadinterval value=15/
  !-- Indicates the thread priority of the cleanup thread --
  parameter name=threadpriority value=5/
  !-- How much percent of the elements of each registered Store
 shall
  be removed when low on memory. Default 10% --
  parameter name=percent_to_free value=10/
   /store-janitor

 More recommendations:
   1- Upgrade to Tomcat 4.1.18

 Finally Restart Tomcat! I hope it will help.

 Best Regards,

 Antonio Gallardo.



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

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



 --
 This message has been scanned for viruses and dangerous content by
 MailScanner, and is believed to be clean.

 The CSIR exercises no editorial control over E-mail messages and/or
 attachments

Re: IRC, SILC

2003-02-03 Thread Antonio Gallardo
Heiko Milke dijo:
 Hey folks,

 is there any channel on IRCNet or SILCNET for cocoon?

Good question. ;-)

Antonio

 Heiko Milke


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

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




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

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




Re: Building Cocoon 2.1-dev

2003-02-03 Thread Antonio Gallardo
Please downloaded the lastest version. Today morning Haul resolve the
problem with the sitemap.

Antonio Gallardo.

I am already running the lastest CVS and build fine.

Mark Eggers dijo:
 I just built CVS HEAD yesterday afternoon.  There are
 some problems with sitemap validation, so you will
 have to turn that off (validatefalse/validate) in
 properties.xml.

 One of the things I have to remember is to clear my
 custom CLASSPATH variable before I start the build
 process.

 To build, I do the following:

 set CLASSPATH=

 build -Dinclude.webapp.libs=yes
 -Dinclude.scratchpad.libs=yes
 -Dinstall.war=%TOMCAT_HOME%\webapps webapp

 I've also picked up the extra jars for mail, jta,
 xindice, and logging to enable those optional
 components.  One of these days I'll pick up the php
 servlet jar and see if I can't get that to compile as
 well.

 HTH

 /mde/
 just my two cents . . . .

 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com

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

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




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

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




Re: [OFF TOPIC] Are there any spanish cocoon user|developer?

2003-02-01 Thread Antonio Gallardo
Thorsten Scherler dijo:
 Hello everyone,
 I would like to know:
 Are there users|developers in Spain which are using|developing cocoon?
 ...I thought this would be the best place to ask. ;-)

 King regards
 Thorsten

Hi, I am not in Spain, but Spanish is my first language. ;-)

Antonio Gallardo.


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

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




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

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




[XML EDITOR] Netbeans

2003-02-01 Thread Antonio Gallardo
Is anyone here using netbeans? more info at: http://www.netbeans.org

It looks like netbeans has a built-in powerfull XML editor.

Can someone share his own experience with this?

Regards,

Antonio Gallardo



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

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




Re: Sitemap.xmap giving ugly errors

2003-02-01 Thread Antonio Gallardo
Two tips:

move the generators to the first place of the map:components. I dont
know what version you are using, but this was a bug sometime ago.

Also please define a defaul serializer.

Maybe it can helps,

please tell us more info about your problem.

Antonio Gallardo.

Jason Bruce dijo:
 I have atached what I beleive to be a extremly simple sitemap.xmap.  But
 when I try to use it I get an error.

 description org.apache.cocoon.ProcessingException: Language Exception:
 org.apache.cocoon.components.language.LanguageException: Error compiling
 sitemap_xmap: Line 324, column 54: '}' expected Line 63, column 11:
 class org.apache.cocoon.www.sitemap_xmap should be declared abstract; it
 does not define method
 process(org.apache.cocoon.environment.Environment,
 org.apache.cocoon.components.pipeline.StreamPipeline,
 org.apache.cocoon.components.pipeline.EventPipeline) in class
 org.apache.cocoon.sitemap.AbstractSitemap Line 0, column 0: 2 errors

 Anyone have any ideas?  If you want to see the error check out
 http://216.87.136.82:8080/cocoon2/20030130.html




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

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




Re: [POLL] JDK 1.2 Support

2003-02-01 Thread Antonio Gallardo
1.4.1_01 on Linux

Antonio Gallardo

Litrik De Roy dijo:
 1.3

 Litrik De Roy
 www.litrik.com


 - Original Message -
 From: Vadim Gritsenko [EMAIL PROTECTED]
 To: Cocoon Users [EMAIL PROTECTED]
 Cc: Cocoon Developers [EMAIL PROTECTED]
 Sent: Saturday, February 01, 2003 8:06 PM
 Subject: [POLL] JDK 1.2 Support


 Hi all:

 To better understand how you are using Cocoon product and serve your
 needs better ;-)
 Cocoon developers would like to know how many of our currect users are
  deploying Cocoon on JDK 1.2 and why they did not switch to JDK1.3 (or
  better).

 This information will help Cocoon developers community to decide on
 wether we should switch to JDK1.3 or continue JDK1.2 support for some
 more time. Thanks for the feedback :)

 Vadim


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

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




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

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




Re: Cocoon use worldwide

2003-01-31 Thread Antonio Gallardo
about the use of Linux as platform in goverments.

I thinked about this, then Java lose power. Why? Simple: I dont need a
multi OS language or a slow Virtual Machine. I will use only one
plataform: Linux.

But, from my point of view: I choosed Java mainly to let people choose
between Linux and Windows. I always try to setup Linux servers, but if the
people is hardcoded about MS, then I can install the same application on
Windows too. I think this part of the power that Cocoon give us. As
consultor I recommend my clients, but always the final word is from him.

 * Open Source is becoming a theme for large corporations in Europe. When
 we started our humble open source group 2 1/2 years ago - no-one was
 interested. Now the story is very different.

I think this is worldwide too. Just see the Linuxworld expo in NY.

By the way, writting this mail I was starting think about the pure concept
of the Apache Licence, maybe there is where we need to find the answer.
Some people dont like it.

I think the Apache model is somewhere between propietary and truly
OpenSource Licences.

And maybe the people leading the Open Sources movements are more
fundamentalist: They dont like things 'between', they are truly Open
Source.

I hope this will be usefull too. ;-)

Best Regards,

Antonio Gallardo.



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

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




Re: XML - XSL Editors?

2003-01-28 Thread Antonio Gallardo
Robert Simmons dijo:
 What are the best XML and XSLT editors on the market. I'm looking for
 something that is easy to use and offers the chance to edit XSL in a
 WYSIWYG style. I tried XML Spy but it is not so easy to use. I couldn't
 even figure out how to get an XSL preview to work properly. It wanted me
 to create an sps file in order to show the transformation but in their
 sps editor I couldn't even tell it to use a file that I had already
 written. Way weird. I also tried eXcelon with is much easier to use. I
 want to know what other options are out there.

I dont know if this is the best. But I use jEdit to write Cocoon projects.
It has a plug-in for XML, XSL highlighting and another plug-in for XSLT
tranformation that make it very easy to check what your XSLT stylesheet
do. Best of all is OpenSource and because it is coded in Java runs in any
platform. Also for file Save you can configure the diferents char formats:

ISO-8859-1, UTF-8 and more.

There is also a plug-in to manage all your project.

more info:

http://www.jedit.org/


Antonio Gallardo



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

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




Re: XML - XSL Editors?

2003-01-28 Thread Antonio Gallardo
Hey?!

Maybe and this article can be usefull for you and your work on the book:

http://community.jedit.org/modules.php?op=modloadname=newsfile=articlesid=202

By the way, what is the name of your future book?

Antonio Gallardo.

Antonio Gallardo dijo:
 Robert Simmons dijo:
 What are the best XML and XSLT editors on the market. I'm looking for
 something that is easy to use and offers the chance to edit XSL in a
 WYSIWYG style. I tried XML Spy but it is not so easy to use. I
 couldn't even figure out how to get an XSL preview to work properly.
 It wanted me to create an sps file in order to show the transformation
 but in their sps editor I couldn't even tell it to use a file that I
 had already written. Way weird. I also tried eXcelon with is much
 easier to use. I want to know what other options are out there.

 I dont know if this is the best. But I use jEdit to write Cocoon
 projects. It has a plug-in for XML, XSL highlighting and another plug-in
 for XSLT tranformation that make it very easy to check what your XSLT
 stylesheet do. Best of all is OpenSource and because it is coded in Java
 runs in any platform. Also for file Save you can configure the diferents
 char formats:

 ISO-8859-1, UTF-8 and more.

 There is also a plug-in to manage all your project.

 more info:

 http://www.jedit.org/


 Antonio Gallardo



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

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




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

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




Re: XML - XSL Editors?

2003-01-28 Thread Antonio Gallardo
Will you be checking jedit.org? Please almost include it as a usefull
link. I saw many books about Java and XML and all they use windows. And
they totally ignore some of the wonderfull applications that people can
use for free.

I hope you will speak good about Cocoon and is fabulous community with
7-24 support on-line. in your book. ;-)

Best Regards,

Antonio Gallardo.

Robert Simmons dijo:
 Hmm, well my book has very little to do with cocoon. Its an advanced
 java book. id be suprised if I mentioned more than a couple pages on
 cocoon. Basically the book will talk about various java enterprise
 programing and I will be using cocoon for the interface to the remote
 ejbs.


 -- Robert

 - Original Message -
 From: Antonio Gallardo [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, January 29, 2003 2:24 AM
 Subject: Re: XML - XSL Editors?


 Hey?!

 Maybe and this article can be usefull for you and your work on the
 book:


 http://community.jedit.org/modules.php?op=modloadname=newsfile=articlesid=
 202

 By the way, what is the name of your future book?

 Antonio Gallardo.

 Antonio Gallardo dijo:
  Robert Simmons dijo:
  What are the best XML and XSLT editors on the market. I'm looking
 for something that is easy to use and offers the chance to edit XSL
 in a WYSIWYG style. I tried XML Spy but it is not so easy to use. I
 couldn't even figure out how to get an XSL preview to work
 properly. It wanted me to create an sps file in order to show the
 transformation but in their sps editor I couldn't even tell it to
 use a file that I had already written. Way weird. I also tried
 eXcelon with is much easier to use. I want to know what other
 options are out there.
 
  I dont know if this is the best. But I use jEdit to write Cocoon
 projects. It has a plug-in for XML, XSL highlighting and another
 plug-in for XSLT tranformation that make it very easy to check what
 your XSLT stylesheet do. Best of all is OpenSource and because it is
 coded in Java runs in any platform. Also for file Save you can
 configure the diferents char formats:
 
  ISO-8859-1, UTF-8 and more.
 
  There is also a plug-in to manage all your project.
 
  more info:
 
  http://www.jedit.org/
 
 
  Antonio Gallardo
 
 
 
  -
 Please check that your question  has not already been answered in
 the FAQ before posting.
 http://xml.apache.org/cocoon/faq/index.html
 
  To unsubscribe, e-mail:
 [EMAIL PROTECTED] For additional commands,
 e-mail:   [EMAIL PROTECTED]




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

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



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

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




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

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




RE: Cocoon is too complex for consumption?

2003-01-25 Thread Antonio Gallardo
Alireza Fattahi dijo:
 I think cocoon needs some thing like blank web application( if it does
 not already have, I am new to Coocon:) ). There is one in Struts.

please check:

http://wiki.cocoondev.org/Wiki.jsp?page=Tutorials

It will helps you to understand the USER philosophy behind this incredible
web machine in less than 3 hours! (Sams does not publish a similar book!
lol). And you will after that start to build your own web application.

Best Regards,

Antonio Gallardo




 -Original Message-
 From: Steven Noels [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, January 25, 2003 6:14 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Cocoon is too complex for consumption?

 Jeff Turner wrote:

 http://wiki.cocoondev.org/Wiki.jsp?page=BlocksDefinition
 http://marc.theaimsgroup.com/?l=xml-cocoon-devm=101603335007960w=2
 http://marc.theaimsgroup.com/?l=xml-cocoon-devm=101732982704553w=2

 oh, but that is unfair since you are a Cocoon committer and you have
 easier access to such things... not! ;-)

 /Steven
 --
 Steven Noelshttp://outerthought.org/
 Outerthought - Open Source, Java  XML Competence Support Center
 Read my weblog athttp://blogs.cocoondev.org/stevenn/
 stevenn at outerthought.orgstevenn at apache.org


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

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

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

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




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

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




Re: WYSIWYG XSLT Editors?

2003-01-25 Thread Antonio Gallardo
Franck Lumpe dijo:
 Antonio Gallardo wrote:

 Well, you can see all the OpenOffice.org products as a big WYSIWYG
 XSLT editing.

 Uh?!

 I heard that the data format was XML but nothing more.

 As I am too lazy to investigate (and probably its interesting for
 others), could you please give us some hint on what OpenOffice has to do
 with XSLT.

Please check:

http://xml.openoffice.org/sx2ml/
http://xml.openoffice.org/saxecho/
http://www.xml.com/pub/a/2001/02/07/openoffice.html

Antonio Gallardo




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

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




A documents repository......

2003-01-25 Thread Antonio Gallardo
Yesterday, I was asked to find a solution for document repository and as a
Open Source fan I went to sourceforge.net and found Owl Intranet Engine:
http://owl.sourceforge.net/

But as a Cocoon addict I thinked it is a fine opportunity to test the
directory generator and a FileWriter interface that currently is in
Cocoon.

Can someone point me if this can be really easily done in Cocoon?

Best Regards,

Antonio Gallardo




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

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




Re: WYSIWYG XSLT Editors?

2003-01-25 Thread Antonio Gallardo
Franck Lumpe dijo:
 Antonio,

 Thanks for the pointers.

 Maybe we should set up a page on the Wiki for XML Editing Best Practices
 (solutions for client processing, browser-based solutions, practical
 WebDav, etc.)

 Not specifically a Cocoon issue but an important part of the
 implementation process.
 There is no publishing if there is no content!

Yes, it is true. These are the complement to Cocoon. How to tell people
about changing to XML if they does not have a easy way to publish his
work?
I think in this area OpenOffice is making a great job.

Best Regards,

Antonio Gallardo

 Regards,

 Franck Lumpe



 Please check:

 http://xml.openoffice.org/sx2ml/
 http://xml.openoffice.org/saxecho/
 http://www.xml.com/pub/a/2001/02/07/openoffice.html

 Antonio Gallardo




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

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




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

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




Re: A documents repository......

2003-01-25 Thread Antonio Gallardo
Julian, thanks for the tip. :-D

Antonio Gallardo

Julian Klein dijo:
 Antonio,

 Although my install seems a bit buggy, it may be worth
 your while to look into Slide and the slide webapp
 that is in the cocoon scratchpad.  I am sure it will
 be up to par shortly.  Besides, using different tools
 (e.g. POI), you could convert all your files into XML
 and then transform them as you please.

 -Julian

 --- Antonio Gallardo
 [EMAIL PROTECTED] wrote:
 Yesterday, I was asked to find a solution for
 document repository and as a
 Open Source fan I went to sourceforge.net and found
 Owl Intranet Engine:
 http://owl.sourceforge.net/

 But as a Cocoon addict I thinked it is a fine
 opportunity to test the
 directory generator and a FileWriter interface that
 currently is in
 Cocoon.

 Can someone point me if this can be really easily
 done in Cocoon?

 Best Regards,

 Antonio Gallardo





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

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



 =
 Live simply so others may simply live.

 -Ghandi

 Pluralitas non est ponenda sine neccesitate.
 Entities should not be multiplied unneccesarily

 -William of Occam

 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com

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

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




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

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




Re: Cocoon is complex, but worth it! Some Answers to your dilemma

2003-01-25 Thread Antonio Gallardo
You really does dont want the help people give you:

Please just click here:

http://wiki.cocoondev.org/Wiki.jsp?page=Tutorials

and you will be ready after 3 hours. Please read just the 1st tutorial
from IBM developerworks.

Antonio Gallardo.





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

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




Re: Cocoon is complex, but worth it! Some Answers to your dilemma

2003-01-25 Thread Antonio Gallardo
Robert Simmons dijo:
No professional dev wants, or has the time, to blow 2 to
 three weeks just to get separation of logic and presentation.

How you think a Professional developer do that? I ended my Master Degree
in Computer Science in 1995 just before Java hits the streets and Windows
95 was just at beta release? How do you think I am here now?

 Too high of a price for too little gain.

Please if you said that phrase you dont really understand what is in the
game. I recommend you to check how this little grain affect totally the
Web machinery at all. I recommend you to read the second chapter of the
Carsten Matthew book:  XML: Building XML Applications. You can find it at
amazon.com

 Powerful? I believe you. I believe its powerful. Scalable? I don't know.

Scalable? Please, just check JBoss.org and answer yourself the question.

 The Wiki page runs very slow for me and a tutorial linked to me from the
 IBM site (which was done in cocoon) was taking 10 to 15 seconds per page
 to render.

This is an issue for your computer and/or Internet connection. I live in
Managua, Nicaragua. Maybe it is so far that you dont know where is it. But
the wiki takes me less that 3 secs. Of course I use Red Hat Linux 8.0 and
Mozilla that is faster than MS IE. Sometimes I go down and use a Windows
machine, but I always use Mozilla, because it is faster.

Check http://www.mozilla.org


 Put that in production and your company can kiss sales
 goodbye. Internet users are impatient and any guy with a DSL isn't going
 to wait 15 seconds for your page.

This is a developers issue, not a Cocoon issue. There are many books
related about web design. How to improve performance using CSS, etc. Take
a look at that technology and tell me how slow it is.

 User friendly? You've got to be joking.

What? Cocoon? Well, here I think you must first understand the philosophy
behind Cocoon and after that we can talk about that.

Windows makes us too lazy, we want to do all just clicking a mouse.

 No, I don't want to take up any more time from folks. I just simply
 don't have the time to mess with it. Reading config files and figuring
 out how the hell to build a new application just isn't what I want to do
 a very trivial part of my project with.

I will see you back again. Maybe the next year, how knows, but if you will
stay at the development arena, you soon or late will be faced again with
this technology. Please, Take a note of that.

Best Regards,

Antonio Gallardo.



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

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




Re: Cocoon is complex, HOLD ON, WHY IS THIS BOILING UP ?

2003-01-25 Thread Antonio Gallardo
SAXESS - Hussayn Dabbous dijo:
 And especially the newbies can give so valuable insight, even if they
seem to be ignorant (they aren't ignorant at all. They are new to this
!!!)

Yes I know this point, but for this reason you cannot just come here and
after 12 hours, start attacking something you dont know. This is the worng
way. In place you can ask in another way.

Also, everyone of us had the same problem and feel when we started at
Cocoon. This is crazy, my first question was: When can I start?.

But this is not a good approach sign-in on the mail list and start
commenting about this. If you wish a well documented framework wait for
the release of MS .NET of mid 2005 and maybe at that time you will have
something that will looks that the current version of Cocoon. Of course
Cocoon in that time will be light-years ahead! I am not joking. MS already
has started a few months ago a similar project in the .NET arena.

In the OpenSources the things goes a diferent way. This is not a company
where are people getting money to support you. Then the less you can do is
thanks people that use his time to help you. How you will fell if somebody
stop you at the street and start attacking you just because you dont know
where is the street called X? This is ridiculous, right? I think some
people here had the same feel.

Nobody is forced to convince you stay and for tis reason I better stay
away of this class of thread. If he does not want to get this nice stuff.
His problem, not mine. ;-) But I bet he will come back. I saw it many
times in the timeline.

At the end,

I remember the times when some people was attacking GUI, just because
there does not understand it. It was at my students days. Some
collegues told things like:

Windows 3.1 requiere too many recurses and is so slow. This will never be
a good stuff At that time (1992) a 286 with 1 MB and HD 40 MB was a super
computer for a student like us. i386 was the Opteron of these days (the
new 32-bits technology - wow!, like now is the transition to the new
64-bits technology - wow again! :-).

I remember one teacher that told:

You think you are the 'great boys' just because you can open 30 windows
in your PC. I dont want to waste my eyes burning it with 640*468 pixel
lightning at my eyes!

Behind his back we joking if he has a room at his house with his own
saloon computer all just for him!. Because for him our computers was toys
and nothing more.

Maybe you will be loling about this comments. But this was what we meet at
the University at my times. People that all the time used text terminal
and with the GUI revolution just starting they does not understand what
happens around and just attacking GUI.

Another example of this, the long discusion about if Java will survive or
not? We have C and C++!

Well, we are know at the doors of the Web revolution called XML. Please
open your eyes!

Best Regards,

Antonio Gallardo


 Maybe we should calm down a bit and take this thread really
 serious. It contains much of material to think about.
 And in many senses the criticism here can't be discussed
 away.

I never got angry. I agree.

Antonio Gallardo.




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

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




Re: Cocoon is complex, HOLD ON, WHY IS THIS BOILING UP ?

2003-01-25 Thread Antonio Gallardo
 minutes, cocoon wont have a chance. So cocoon has really two options in
 my newbie opinion. 1) Start putting in that layer that attracts new
 users.

Maybe yes, maybe not. Who knows? Well, almost every thing in the world
have a cost and as the people are discovering Linux and it good tools they
are tempted to use it. Just see the lastest reports about

2) Die.

Hey?! It is not about money. This is the point that MS people is not
understanding here. This is not the case of Novell: Stop the selling and
you win. Cocoon as Linux and many other opensources projects started
without millons on bags.

 As for me personally, I'm already far behind schedule now. 2 days of
 dealing with this thing and getting nowhere. Ill give it a couple more
 hours of consideration and if I still cant get a hello-world up without
 knowing a thing about the internal architecture,

 I will move on and implement it all in JSP.

I will recomend you dont do it. Maybe you will save time now and you will
waste it when the changes will come. I really recomend you take a little
more patience and try it out. It is a worth. Currently my last client
asked me some improvements on the plataform and to be serious I am happy
because I know this is very easy now thanks to Cocoon.

When I started researching about a plataform I stoped at JSP too. But the
mess of code and tags take me away. This frustate every body when the
inevitable changes come.

 Scoff all you want. But a JSP hello-world page I was able to get up
 and working in 15 minutes.

Clear, because this is a continuity technology of the same approach. I
think in Cocoon you will start thinking in another way.

At the end, I just want to say that Cocoon is not my baby. I love it
because open a nice door in the current development effort. A
revolutionary effort.

I am not angry after all you are told about this. I dont have a clue why
can I be? ;-)

Every ones have the right to write his opinions. And I thank you because
you let me explain some of the Cocoon points here.

Best Regards,

Antonio Gallardo.





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

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




Thanks for the book!

2003-01-25 Thread Antonio Gallardo
Hi Lajos!

I just write you because I got your book on Jan, 20th and is the best of
the three about Cocoon 2. Thanks again to you and Jeremy. You are really
good writers!

I promise to post a review on amazon.com since there still are no one review.

Best Regards,

Antonio Gallardo.



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

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




RE: Cocoon Portal Framework for production use?

2003-01-24 Thread Antonio Gallardo
Carsten Ziegeler dijo:
 Martin Schimak wrote:

 I have a new Intranet project (In July 2003, a very first release
 should be ready) and
 would like to use Cocoon 2.1 with Portal Framework to implement  it. I
 would like to know
 your personal opinions: Is it safe now to use 2.1 for production?

 Personally, I see no problems in using 2.1 in production environment, we
 are using it and many others here on the list are using 2.1
 in production environments for many months.
 But, as 2.1 is currently alpha, you might have to deal with
 incompatible changes which might occur in the next weeks until
 a beta is available.

We are already using 2.1 in production environment since Octuber 2002. Now
it is very stable. I only recommend you that before changing from version
to the next CVS version, you must be carefully to test it before deploy it
in production.

The application in question is a Database Webapp in an Intranet
Environment, that currently has 45 users. The core of the application is
Cocoon 2.1 CVS (20-Ene-2003).


 I understand that End
 of February 2003 2.1 Beta 1 is available. Does exist a possible
 release day for 2.1-final?

 No, there are no real dates - the date for the beta 1 is currently only
 a wish - we will see by then if we can make it. But I think
 the beta will come in the next two or three months (but don't
 quote me on this).

I hope it! ;-)

Best Regards,

Antonio Gallardo
AG Software, S. A.

 HTH
 Carsten

 Carsten Ziegeler
 Open Source Group, SN AG




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

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




Re: XSLT debugger (was RE: .Net port of Cocoon)

2003-01-24 Thread Antonio Gallardo
Check:

http://xml.apache.org/cocoon/userdocs/transformers/log-transformer.html

Antonio

Mark H dijo:
AFAIK, there is no single debugger like this, only a patchwork of
 debuggers, one for XSLT, one for Java...

 Where can I get hold of a XSLT debugger to use with cocoon? a lot of
 times cocoon doesn't provide much debugging information when there is
 something wrong with your stylesheets.

 Mark

 -Original Message-
 From: Luca Morandini [mailto:[EMAIL PROTECTED]]
 Sent: 23 January 2003 17:09
 To: [EMAIL PROTECTED]
 Subject: RE: .Net port of Cocoon


 -Original Message-
 From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 23, 2003 5:05 PM
 To: [EMAIL PROTECTED]
 Subject: Re: .Net port of Cocoon

 
 Granted, there is no debugger in Cocoon,
 

 ... and shoud not be: all IDEs as well as JDK has debuggers. Use them
 remotely or start your servlet engine from under it - in either case
 you can put breakpoints and debug your Java.

 /me goes back to lurking
 Vadim

 Vadim,

 let's get this straight: since Cocoon is composed of many technologies,
 a Java debugger alone cannot do the work.

 I'd like to debug my XSLT, see the parameters' values as they flow from
 the sitemap to the XSLT, check every stage's XML output, set
 breakpoints in Actions... and more: this is what an ideal Cocoon
 debugger should do.

 AFAIK, there is no single debugger like this, only a patchwork of
 debuggers, one for XSLT, one for Java...


 Regards,

 -
Luca Morandini
GIS Consultant
   [EMAIL PROTECTED]
 http://utenti.tripod.it/lmorandini/index.html
 -


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

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





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

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




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

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




Re: XSLT debugger (was RE: .Net port of Cocoon)

2003-01-24 Thread Antonio Gallardo
I already tried sunBow and is very fine. Is at his early stages but
promise a good future.

I am also looking for a XSP debbuger. Where I can find it?

Antonio Gallardo.

Martin Dulisch dijo:
 sunBow (a plug in for eclipse) has a XSLT Trace feature. It is not
 binded to cocoon. But it is very helpfull to find bugs in stylesheets.
 You can find it here: http://radio.weblogs.com/0108489/

 Martin

 - Original Message -
 From: Mark H [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, January 24, 2003 12:20 PM
 Subject: XSLT debugger (was RE: .Net port of Cocoon)


 AFAIK, there is no single debugger like this, only a patchwork of
 debuggers, one for XSLT, one for Java...

 Where can I get hold of a XSLT debugger to use with cocoon? a lot of
 times
 cocoon doesn't provide much debugging information when there is
 something
 wrong with your stylesheets.

 Mark

 -Original Message-
 From: Luca Morandini [mailto:[EMAIL PROTECTED]]
 Sent: 23 January 2003 17:09
 To: [EMAIL PROTECTED]
 Subject: RE: .Net port of Cocoon


  -Original Message-
  From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, January 23, 2003 5:05 PM
  To: [EMAIL PROTECTED]
  Subject: Re: .Net port of Cocoon

  
  Granted, there is no debugger in Cocoon,
  
 
  ... and shoud not be: all IDEs as well as JDK has debuggers. Use
 them
  remotely or start your servlet engine from under it - in either
 case you
  can put breakpoints and debug your Java.
 
  /me goes back to lurking
  Vadim

 Vadim,

 let's get this straight: since Cocoon is composed of many
 technologies, a
 Java debugger alone cannot do the work.

 I'd like to debug my XSLT, see the parameters' values as they flow
 from the
 sitemap to the XSLT, check every stage's XML output, set
 breakpoints in Actions... and more: this is what an ideal Cocoon
 debugger
 should do.

 AFAIK, there is no single debugger like this, only a patchwork of
 debuggers,
 one for XSLT, one for Java...


 Regards,

 -
Luca Morandini
GIS Consultant
   [EMAIL PROTECTED]
 http://utenti.tripod.it/lmorandini/index.html
 -


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

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





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

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



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

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




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

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




RE: XMLForm Xindice Howto added to Wiki [please, att. Ivelin]

2003-01-23 Thread Antonio Gallardo
Hi!

I strongly believe in XForms, but the sample you pointed show that the use
with Java Beans for DB connectivity and data validation is currently too
complex. I am thinking in what will happen if every form will be code like
the example in a huge application? What about changes in the large DB
application?

Can a generator build the Java Beans automatically what about the Action
automatically generated? Maybe we can find the answer in this area.

Please dont take this email in the wrong sense. I know this is a very new
technology and you are doing your best effort to get it run under Cocoon.

But maybe we can find another way to make it easier.

If this is the currently way to work with the XForms with Db connectivity.
I think many people will stay at the current model:

XML Form + stylesheet + validation form + DB modular actions.

Maybe we can find something similar.

Best Regards,

Antonio Gallardo.

P.D: I know this is a cruel critic to the current work developed in this
area. But I think it must to be told. Please dont take me bad. I strongly
believe in Cocoon.


Sorry

Josema Alonso dijo:
 Ouch...I forgot to include the URL. I'm sorry.

 http://wiki.cocoondev.org/Wiki.jsp?page=XMLFormXindice

 Thanks :)

 -Mensaje original-
 De: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
 Enviado el: jueves, 23 de enero de 2003 4:24
 Para: [EMAIL PROTECTED]
 Asunto: Re: XMLForm Xindice Howto added to Wiki [please, att. Ivelin]



 What is the URL?

 -=Ivelin=-


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

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




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

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




RE: cvs2.1 snapshot download date jan 22 2003 - gives me out of memory error

2003-01-23 Thread Antonio Gallardo
Just for the register:


I am using Red Hat Linux 8.0 and Java 1.4.1_01 and dont need to use:

ANT_OPTS=-Xms100m -Xmx228m

Antonio Gallardo


Geoff Howard dijo:
 There are some changes happening in the build (blocks, validation, etc)
 that are taking more memory these days.  You should search the archives
 (dev archive will have more I think) for recent postings on the subject.
  For instance, see
 http://marc.theaimsgroup.com/?t=10432127333r=1w=2.  The brief
 summary of suggestions is :

 1) Increase the amount of memory available to the build jvm by setting
 the ANT_OPTS environment variable to as large as you can.
  ANT_OPTS=-Xms100m -Xmx228m is what I'm currently using.
 2) Reduce the amount of things the build has to do at once.  For
 instance, use webapp-local to skip building the war.  Disable javadocs.
 Disable validation.  Options for the build can be set by modifying
 properties.xml, or by using a .ant.properties file to override the
 defaults.  You can add skipped steps back in later after the compiling
 is already done.

 I only needed step one, but depending on your systems memory you'll have
 options.  There is also a very recent (within the last 12 hours) patch
 that may make these steps less necessary, though I haven't tried it yet.

 Geoff Howard

 -Original Message-
 From: e nio [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 23, 2003 6:19 PM
 To: [EMAIL PROTECTED]
 Subject: cvs2.1 snapshot download date jan 22 2003 - gives me out of
 memory error


   Anyone else experiencing this OutOfMemory when compiling the
 development snapshot dated Jan 22 2003 -
 xml-cocoon2_2003012305238_tar.gz ? I compiled it as such:

 ./build.sh  -Dinclude.webapp.libs=yes
 -Dinclude.installscratchpadwar.libs=yes webapp

 Didnt have this problem on a download 1st week of Jan 2003.
 Something significant that requires more memory this time?

 enio

 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com

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

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





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

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




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

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




Re: XMLForm Xindice Howto added to Wiki [please, att. Ivelin]

2003-01-23 Thread Antonio Gallardo
Hi, I think that Xforms will be mainy used for web DB app.

I am using this opensource tool that can be extended to build other
formats from an database design. His name is Druid you can find it at:

http://sourceforge.net/projects/druid

I  can said that I already build my postgresql database using this
excelent tool.


Best Regards,

Antonio Gallardo.

Josema Alonso dijo:
 Excelent document.
 Thank you.

 I would like to suggest a slight improvement.
 The Model part can be improved quite a bit if you use a DOM object
 directly
 instead of a JavaBean wrapper.
 more specificly:
 ...
 Wow. It sounds very very good. I really need to learn much more about
 JXPath.
 I'll try to code it this weekend or early next week and update the Wiki
 accordingly.

 I'll post my results and/or doubts here, too.

 Thanks a lot for your help.



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

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




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

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




RE: cvs2.1 snapshot download date jan 22 2003 - gives me out of memory error

2003-01-23 Thread Antonio Gallardo
Are you done a:

./build.sh clean

before you started? I ask because some sources was changed of place.

Antonio Gallardo

e nio dijo:
Thanks for the responses.  My compile was getting stuck near
 the very end, creating the war file.  Anyhow, after setting the
 env varexport ANT_OPTS=-Xms100m -Xmx228m   and rerunning
 same build command i had earlier, worked.  Fyi, the war file
 created is now25245720 Jan 23 17:25 cocoon.war.. this is
 huge, 25meg.  Not all samples work still, and like the slide
 show which was working for me not too long ago. Oh well.

 Regards,
 enio
 --- Antonio Gallardo [EMAIL PROTECTED] wrote:
 Just for the register:


 I am using Red Hat Linux 8.0 and Java 1.4.1_01 and dont need
 to use:

 ANT_OPTS=-Xms100m -Xmx228m

 Antonio Gallardo


 Geoff Howard dijo:
  There are some changes happening in the build (blocks,
 validation, etc)
  that are taking more memory these days.  You should search
 the archives
  (dev archive will have more I think) for recent postings on
 the subject.
   For instance, see
  http://marc.theaimsgroup.com/?t=10432127333r=1w=2.
 The brief
  summary of suggestions is :
 
  1) Increase the amount of memory available to the build jvm
 by setting
  the ANT_OPTS environment variable to as large as you can.
   ANT_OPTS=-Xms100m -Xmx228m is what I'm currently using.
  2) Reduce the amount of things the build has to do at once.
 For
  instance, use webapp-local to skip building the war.
 Disable javadocs.
  Disable validation.  Options for the build can be set by
 modifying
  properties.xml, or by using a .ant.properties file to
 override the
  defaults.  You can add skipped steps back in later after the
 compiling
  is already done.
 
  I only needed step one, but depending on your systems memory
 you'll have
  options.  There is also a very recent (within the last 12
 hours) patch
  that may make these steps less necessary, though I haven't
 tried it yet.
 
  Geoff Howard
 
  -Original Message-
  From: e nio [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, January 23, 2003 6:19 PM
  To: [EMAIL PROTECTED]
  Subject: cvs2.1 snapshot download date jan 22 2003 - gives
 me out of
  memory error
 
 
Anyone else experiencing this OutOfMemory when compiling
 the
  development snapshot dated Jan 22 2003 -
  xml-cocoon2_2003012305238_tar.gz ? I compiled it as such:
 
  ./build.sh  -Dinclude.webapp.libs=yes
  -Dinclude.installscratchpadwar.libs=yes webapp
 
  Didnt have this problem on a download 1st week of Jan 2003.
  Something significant that requires more memory this time?
 
  enio
 
  __
  Do you Yahoo!?
  Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
  http://mailplus.yahoo.com
 
 

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

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





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

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



 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com

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

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




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

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




RE: cvs2.1 snapshot download date jan 22 2003 - gives me out of memory error

2003-01-23 Thread Antonio Gallardo
Geoff Howard dijo:

 Antonio, you've hit on an interesting issue.  I am still using a 1.4.0x
 version of java.  I have 1.4.1 downloaded but haven't even bothered to
 extract it yet.  I wonder if there's something there?

 Geoff

I think yes, there must be something bacause if you check the released
notes there are many bugs patched since the first version of 1.4. I can
said that it looks stable now thanks to the lastest Carsten patch to the
cache in Cocoon 2.1 dev (mid of January 2003). Now, I can run Apache
Tomcat 4.1.18 all the day without restarting every midnight.

I encorage you to upgrade to Java 1.4.1_01 if you are experience some
unexplained errors. I am using it since it was posted on sun web site.

Best Regards,

Antonio Gallardo





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

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




RE: Logicsheet problems - global XSLT variables

2003-01-23 Thread Antonio Gallardo
Mark H dijo:
 Thanks Antonio, I'll try it out. How does the reload-method=synchron
 improve things?

It will check if there are some changes before serving the request. For
development environment it is fine since we are always changing the
sources.

Antonio Gallardo.

 -Original Message-
 From: Antonio Gallardo [mailto:[EMAIL PROTECTED]]
 Sent: 20 January 2003 06:34
 To: [EMAIL PROTECTED]
 Subject: Re: Logicsheet problems - global XSLT variables


 Also, do others find working with Cocoon very frustrating? When you
 make a change it takes forever for the web-app to reload and
 re-compile the java class, espcially when it takes up so much memory.

 You need to add in your cocoon.xconf file:

 sitemap reload-method=synchron check-reload=yes
 config=resource://org/apache/cocoon/components/treeprocessor/treeprocessor-
 builtins.xml
 file=context://sitemap.xmap logger=sitemap/

 Search for the sitemap tag and add the attributes:

 reload-method=synchron
 check-reload=yes

 Antonio Gallardo


 Thx in advance,
 Mark



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

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




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

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






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

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




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

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




Re: 10 basic survival tips for cocoon users (was: Logicsheet problems - global XSLT variables)

2003-01-20 Thread Antonio Gallardo
SAXESS - Hussayn Dabbous dijo:

 Mark Horgan wrote:

 Also, do others find working with Cocoon very frustrating? When you
 make a change it takes forever for the web-app to reload and
 re-compile the java class, espcially when it takes up so much memory.
 Also even when using the logs its very hard to track down bugs in ones
 code especially logicsheets. But generally I like Cocoon though I wish
 it was more straight-forward to develop with it.

 Thx in advance,
 Mark


 Hy,

 When i started with cocoon i got really mad with hunting errors
 and understanding, how all this fits together. But after about
 three months of working with the beast, i built up some
 survival strategies. It is how I do it. It may help as a guide,
 but it does not claim to be the best approach:

 1.) Instead of restarting the whole container, i only restart
  the cocoon app, when needed. This takes a few seconds with
  tomcat 4.1.* (~300 MHz sparc dual processor, solaris 2.8)
 2.) During development i use tomcat and i set the reloadable=true
  within the Context/ of my webapp. By this any changes in the
 classpath causes an automatic webapp restart.
 3.) use released versions if possible (cocoon-2.0.4 seems quite mature)
 4.) Proceed in baby steps when changing things in your cocoon app 5.)
 follow KISS (keep it simple, stupid) i keep as much as possible
  with the basics of cocoon and don't use (yet) the more fancy stuff.
 6.) Separate your app into subsitemaps and subdirs with related issues
 7.) use the cocoon-wiki
  Especially the search function unhides
  interesting docs
 8.) I started using the coocon developers handbook
  It's written from Lajos Moczar and some other active
  cocoon developers...

 Here are two of my personal favorites. I have documented this in
 our company wiki:

 9.) For XSLT processing i have added Saxon-6.5.2. It's not
  straight forward to install, but sometimes it can be
  utilised with less pain, than xalan (just a matter of taste)
  Look into cocoon wiki for a quick description or look at
  http://www.saxess.com/JSPWiki/Wiki.jsp?page=Install
  for a quickinstall step by step instruction.

9.01) I use jEdit.org to all my development in Cocoon. jEdit has a plugins
called XML and XSLT. The XML plugin helps writing XML stuff checking the
tags. The XSLT pluging helps to see the results of applying 1 or more
Stylesheets to a page. This is useful to check what are the stylesheets
doing.

comment
I think it will be fine to write a survival guide in wiki. :-)
/comment

Antonio Gallardo

 10.)use entity resolver wherever possible.
  look at the cocoon docs for the basics or at
  http://www.saxess.com/JSPWiki/Wiki.jsp?page=EntityResolver
  for a quickinstall description.

 hope, that helps someone ...

 regards, hussayn

 --
 Dr. Hussayn Dabbous
 SAXESS Software Design GmbH
 Neuenhöfer Allee 125
 50935 Köln
 Telefon: +49-221-56011-0
 Fax: +49-221-56011-20
 E-Mail:  [EMAIL PROTECTED]


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

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




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

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




RE: XSP : control structures

2003-01-20 Thread Antonio Gallardo
XSP should at most be used to transfer data from request attributes into
to the SAX stream.

 Artur...

Good point! I do the same too.

Antonio Gallardo.



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

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




Re: serializing inside a transformer

2003-01-20 Thread Antonio Gallardo
hi:

I am not a pro in Cocoon. How do this the log transformer? check the
sources of

org.apache.cocoon.transformation.LogTransformer

And maybe there you can found your answer.

Antonio Gallardo.

Oskar Casquero dijo:
 Hi,

 I would like to serialize SAX events to a file inside a transformer, so
 that I can validate the file with the parser. The problem is that I
 don't how to set the serializer in order to make it able to receive the
 SAX events which the transformer is receiving from the previous
 component (a generator or another transformer). Here is a code snippet
 that shows what I'm trying to do: public class MyValidationTransformer
 extends AbstractSAXTransformer {

 XMLSerializer serializer = (XMLSerializer)
 this.manager.lookup(XMLSerializer.ROLE);

FileOutputStream fos = new FileOutputStream(/tmp/tmp.xml);

 serializer.setOutputStream(fos);

 /*???

 HOW TO SEND THE SAX EVENTS THE TRANSFORMER IS RECEIVING TO THE
 SERIALIZER

  *???/

 FileInputStream fis = new FileInputStream(/tmp/tmp.xml);

 InputSource is = new InputSource(fis);

 Parser parser = (Parser)this.manager.lookup(Parser.ROLE);

 boolean validation = parameters.getParameterAsBoolean(validation,
 false);

 parser.myParse(this.inputSource, super.xmlConsumer, validation);

 }

 Oskar




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

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




RE: Not loading the HSQLDB?

2003-01-20 Thread Antonio Gallardo
Stephan Michels dijo:


 On Mon, 20 Jan 2003, Geoff Howard wrote:

 Sorry you never got an answer here - I don't have much to add but the
 following:

 1) I don't think HSQLDB is necessary for proper internal working of
 cocoon. 2) I'm pretty sure I managed to disable it by modifying
 cocoon.xconf (and maybe something else).  Unfortunately, I don't have
 time to track down what I did.  If you provide more information on
 what's happening when cocoon does not work properly that may help
 me/others figure out what's happening. For instance, if you've removed
 the jar from WEB-INF/lib but failed to remove the reference to the
 hsqldb class in web.xml you may have problems right there.

 HTH,
 Geoff Howard

  -Original Message-
  From: Mark Horgan [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 15, 2003 10:13 AM
  To: [EMAIL PROTECTED]
  Subject: Not loading the HSQLDB?
 
 
  Hi there,
 
  I'm trying to not load the HSQLDB on startup to save memory. I've
 tried commenting the hsqldb-server tag in cocoon.xconf but it
 still loads and causes cocoon not to work properly. Is HSQLDB
 required for proper/internal working of cocoon and if not how does
 one not load it?

 Do you also removed the entry in web.xml?

 Stephan.

And after that you can remove the .jar from the WEB-LIB.

Antonio Gallardo


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

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




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

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




Re: 10 basic survival tips for cocoon users (was: Logicsheet problems - global XSLT variables)

2003-01-20 Thread Antonio Gallardo
Its. OK.

Start an XML-authoring tools.

Antonio Gallardo



SAXESS - Hussayn Dabbous dijo:
 hy Antonio;

 What about adding your contrib directly to

 http://wiki.cocoondev.org/Wiki.jsp?page=SurvivalTips

 or related pages ;-) ?

 Maybe you could contrib a link to jEdit.org ?
 Maybe it is even worthwhile to add a new wikipage for
 XML-authoring tools ...
 What do you mean ?

 regards, hussayn


 9.01) I use jEdit.org to all my development in Cocoon. jEdit has a
 plugins called XML and XSLT. The XML plugin helps writing XML stuff
 checking the tags. The XSLT pluging helps to see the results of
 applying 1 or more Stylesheets to a page. This is useful to check what
 are the stylesheets doing.

 comment
 I think it will be fine to write a survival guide in wiki. :-)
 /comment

 Antonio Gallardo


 --
 Dr. Hussayn Dabbous
 SAXESS Software Design GmbH
 Neuenhöfer Allee 125
 50935 Köln
 Telefon: +49-221-56011-0
 Fax: +49-221-56011-20
 E-Mail:  [EMAIL PROTECTED]


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

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




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

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




Running instrumentation-client....

2003-01-20 Thread Antonio Gallardo
Hi.

Can someone help me to make run again the instrumentation client?

I had it running before the lastest CVS updates (end of dic-2002). I
downloaded the new excalibur CVS, because the once that is in Cocoon CVS
run for me, but does not connect to the servlet.

Also it does not write nothing on the output console. Just said:

[Not Connected]

I have configured the web.xml:

init-param
  param-nameenable-instrumentation/param-name
  param-valuetrue/param-value
/init-param

init-param
  param-nameinstrumentation-config/param-name
  param-value/WEB-INF/instrumentation.xconf/param-value
/init-param

And of course the default instrumentation.xconf file is placed it this
place. What can be my fault?

I am using:

Red Hat Linux 8.0 (full patched).
Tomcat 4.1.18
Java 1.4.1_01
Cocoon 2.1 CVS (lastest).

Thanks in advance,

Antonio Gallardo.




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

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




Re: Running instrumentation-client....

2003-01-20 Thread Antonio Gallardo
Really I dont know what happened but after reading your mail and starting
Tomcat I runned again the CVS version and it works!

I dont know why yesterday it does not work. I think Java sometimes retain
the jars on memory and this cause some errors.

Antonio Gallardo.

Marcus Crafter dijo:
 Hi Antonio,

 On Mon, Jan 20, 2003 at 02:19:22PM -0600, Antonio Gallardo wrote:
 Hi.

 Can someone help me to make run again the instrumentation client?

   Yes, I'll help you get it running. :)

 I had it running before the lastest CVS updates (end of dic-2002). I
 downloaded the new excalibur CVS, because the once that is in Cocoon
 CVS run for me, but does not connect to the servlet.

   Your configuration looks ok, but according to the avalon-dev
   archives, you'll need to run the instrumentation client from the
   Cocoon CVS in tools/instrumentation when connecting to the Cocoon
 webapp. The issue lies in the altrmi jars.

   According to the archives the -common.jar needs to be the same on  both
 the server and client, which is the change I made recently
   (and an update to the latest code).

   Does the instrumentation client work correctly when you run the
   runclient.sh script from tools/instrumentation/bin in Cocoon CVS ?

   Cheers,

   Marcus

 --
 .
  ,,$,  Marcus Crafter
 ;$'  ':Computer Systems Engineer
 $: :   ManageSoft GmbH
  $   o_)$$$:   82-84 Mainzer Landstrasse
  ;$,_/\ :'   60327 Frankfurt Germany
' /( 
\_'
   .
 :

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

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




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

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




Re: XSP Redirection HELP!!!

2003-01-20 Thread Antonio Gallardo
Rajasekhar Atchutuni dijo:

 Hi,

 I am using cocoon 2.0.3 with tomcat 4.1.

 In my xsl form submit I call an action that generates an xsp. The xsp
 writes the form data to sql; After this I need an auto redirect to the
 home  page.  How do I do this?

 Thanks for the help.

 Raj

Hi:

I understand that you generate a request that use the XSP Generator.
(Please, dont get me wrong here. I am just trying to explain what I
understanded from your mail). If this is true

You can change the pipeline to make the update to the SQL database using
Database Actions (there are two flavors) and after sucessfull update, you
redirect the page where you need it.

Any Action is executed inmediately as they are readed from the sitemap.
Please read between lines:

before the selected pipeline is executed.

For more info about Database Actions see:

http://wiki.cocoondev.org/Wiki.jsp?page=DatabaseActions

By the way, If you can, update to 2.0.4 that is more stable...

Note: I dont know if Modular Database Actions works in 2.03 I think no,
but check for some examples if this flavor of DB Actions are included or
not. Original Database Actions are fine too.

I hope It will helps you.

Best Regards,

Antonio Gallardo.



 _
 The new MSN 8: smart spam protection and 2 months FREE*
 http://join.msn.com/?page=features/junkmail


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

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




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

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




Re: XSP Redirection HELP!!!

2003-01-20 Thread Antonio Gallardo
Rajasekhar Atchutuni dijo:
 Hi,

 I am sorry I framed my question wrong.

 I am already successfully saving my form data to oracle using esql:query
 in  my xsp page.

 What I need to know is how I can send/redirect the user to the home
 page,  after I close the esql:connection.

 Thanks
 Raj

Hi again!

Yes, but in order to do that you need to use and action. Can you send the
snip of your code? It is still dont clear to me.

There are 2 approach:

A- One page:

** 1 page that is always called and show the data (edit mode).

B- more pages:

** 1 for show a clean form (insert)
** 1 for show the data in a filled form (edit mode)
** 1 for confirm

Can you tell me what approach are you using?

Antonio Gallardo








 Original Message Follows
 From: Antonio Gallardo [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: XSP Redirection HELP!!!
 Date: Mon, 20 Jan 2003 17:31:19 -0600 (CST)
 MIME-Version: 1.0
 Received: from apache.org ([63.251.56.142]) by mc6-f24.law1.hotmail.com
 with  Microsoft SMTPSVC(5.0.2195.5600); Mon, 20 Jan 2003 15:29:37 -0800
 Received: (qmail 48698 invoked by uid 500); 20 Jan 2003 23:29:25 -
 Received: (qmail 48685 invoked from network); 20 Jan 2003 23:29:23 -
 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
 Precedence: bulk
 list-help: mailto:[EMAIL PROTECTED]
 list-unsubscribe: mailto:[EMAIL PROTECTED]
 list-post: mailto:[EMAIL PROTECTED]
 Delivered-To: mailing list [EMAIL PROTECTED]
 X-Authentication-Warning: ags01.agsoftware.dnsalias.com: apache set
 sender  to [EMAIL PROTECTED] using -f
 Message-ID:
 [EMAIL PROTECTED]
 In-Reply-To: [EMAIL PROTECTED]
 References: [EMAIL PROTECTED]
 X-Priority: 3
 Importance: Normal
 X-Mailer: SquirrelMail (version 1.2.9)
 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
 Return-Path:
 [EMAIL PROTECTED]
 X-OriginalArrivalTime: 20 Jan 2003 23:29:37.0819 (UTC)
 FILETIME=[CC537EB0:01C2C0DB]

 Rajasekhar Atchutuni dijo:
  
   Hi,
  
   I am using cocoon 2.0.3 with tomcat 4.1.
  
   In my xsl form submit I call an action that generates an xsp. The xsp
 writes the form data to sql; After this I need an auto redirect to
 the home  page.  How do I do this?
  
   Thanks for the help.
  
   Raj

 Hi:

 I understand that you generate a request that use the XSP Generator.
 (Please, dont get me wrong here. I am just trying to explain what I
 understanded from your mail). If this is true

 You can change the pipeline to make the update to the SQL database using
 Database Actions (there are two flavors) and after sucessfull update,
 you redirect the page where you need it.

 Any Action is executed inmediately as they are readed from the sitemap.
 Please read between lines:

 before the selected pipeline is executed.

 For more info about Database Actions see:

 http://wiki.cocoondev.org/Wiki.jsp?page=DatabaseActions

 By the way, If you can, update to 2.0.4 that is more stable...

 Note: I dont know if Modular Database Actions works in 2.03 I think no,
 but check for some examples if this flavor of DB Actions are included or
 not. Original Database Actions are fine too.

 I hope It will helps you.

 Best Regards,

 Antonio Gallardo.


  
   _ The
 new MSN 8: smart spam protection and 2 months FREE*
   http://join.msn.com/?page=features/junkmail
  
  
   -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
  
   To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]




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

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


 _
 The new MSN 8: smart spam protection and 2 months FREE*
 http://join.msn.com/?page=features/junkmail


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

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




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

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




about instrumentation client.

2003-01-20 Thread Antonio Gallardo
Hi Marcus!

Thanks again!

I am back for some advise from the instruments guru. ;-)

Where I can find some explaination about the aditional info in the
instrument manager?

For example the authentication manager has:

authentication-manager
  pool  - The pool of the manager
blocks  - ?
creates - Create() a component in the pool
decommissions   - Destroy() components in the pool
gets- Already created and getted?
puts- Already in the pool and returned?
ready-size  - ?
size- ? in KB or number of components?
  gets  - ?
  puts  - ?
  references- Sum of the calls to
manager.lock(auth-manager.ROLE) in the code.

I know that the components must be declared as instrumentable. But I
think currently there are no many components declared as needed.

Best Regards,

Antonio Gallardo






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

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




Re: AW: XSP Redirection HELP!!!

2003-01-20 Thread Antonio Gallardo
Marco Rolappe dijo:
 are you using your xsp as an action via ServerPagesAction?

 are you using your xsp as the target for the form action? like this:

   form action=save-form-data ...

 in your sitemap:

   map:match pattern=save-form-data
   map:generate type=serverpages src=save-form-data.xsp/
   ...
   /map:match

 you could redirect after the generation step via map:redirect-to but
 this is kind of ugly.

This will does not work because you have one generator in the pipeline. A
strict rule in any version af Cocoon told:

Just ONE generator for pipeline

then the another generator on the target of the redirection will not be
loaded. I think it will throw a Exception. (Gurus, please shine us and
tell us what will happen). I never tried to do somethig like this. See
more comments down.



 another alternative would be to use your xsp via the already mentioned
 ServerPagesAction (if you must use xsp):

   form action=save-form-data ...

 in your sitemap:

   map:match pattern=save-form-data
   map:act type=serverpages src=save-form-data.xsp/
   ...
   /map:match

 for this, you must have the serverpages action declared in the sitemap.
 then you can redirect via map:redirect-to in the sitemap or you can
 redirect from within the xsp via action:redirect-to (action logicsheet).

 third alternative would be to directly code the action, invoke it in
 your 'save-form-data' pipeline, after which you redirect.

I think this is a good aproach too. But I dont see why to waste a XSP when
any flavor of Database Action (Original or Modular) can do this for you.
Listen:

If you think you need your special XSP page because you need to validate
the form data that you received from the user request. The answer is:

Why reinvent the cool water? There is another fine action that can do this
for you, please check the following snip from my sitemap:

!-- catalog of Table --
map:match pattern=*-table.html
  !-- Create --
  map:match type=request-parameter pattern=cocoon-action-Create
  map:act action=crear type=form-validator
map:parameter name=descriptor value=docs/{../1}-form.xml/
map:parameter name=validate-set value=add/
!-- Here data are safely validated --
map:act type=dbAdd
  map:parameter name=descriptor value=docs/{../../1}-form.xml/
!-- At this point the data are already stored in the database --
  map:redirect-to uri=where_ever_you want/
/map:act
!-- Here was wa problem. Data are not into the database, but validated --
  /map:act
!-- Here Data are not passed the validation check --
!-- You can let it empty, since if no other pipeline match it, the handle
error will take care of what happened --
/map:match

For more info about form Validation Action, please check:

http://wiki.cocoondev.org/Wiki.jsp?page=FormValidationUsingCocoon

I hope it will help you. ;-)

Antonio Gallardo


 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]Im
 Auftrag von Rajasekhar Atchutuni
 Gesendet: Dienstag, 21. Januar 2003 00:44
 An: [EMAIL PROTECTED]
 Betreff: Re: XSP Redirection HELP!!!


 Hi,

 I am sorry I framed my question wrong.

 I am already successfully saving my form data to oracle using esql:query
 in my xsp page.

 What I need to know is how I can send/redirect the user to the home
 page, after I close the esql:connection.

 Thanks
 Raj









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

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




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

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




Re: AW: AW: XSP Redirection HELP!!!

2003-01-20 Thread Antonio Gallardo
Marco Rolappe dijo:
 well, it does work, I tried it out.

 only one generator per pipeline, that's right (only one generator can be
 set at pipeline setup time). but in this case, there is only one
 pipeline, that is the ServerPagesGenerator. the redirect is to another
 pipeline.

Sorry I dont know and I think that as you told. This is a ugly solution.
And I dont know if the code can be used in future releases of Cocoon.

Anyway I recomend to use the correct approach. Solutions are always many,
but we need to use the best.

The Cocoon gurus said that the XSP-Action for databases is not the best:

http://xml.apache.org/cocoon/userdocs/concepts/databases.html

Actions are especially great for inserting, changing, or deleting data.
Employing the pipeline-switching features of actions will simplify your
pages. Such actions are concerned with only one view: either the success
or failure of an operation.

ESQL is great when reading data from a database. However, it is less
attractive to use when it has to react to operation failures. This is due
to the fact that it adds a layer of complexity to an XSP file, making it
more difficult to understand and maintain. 


Best Regards,

Antonio Gallardo


 anyway, I can imagine the use of XSP actions for prototyping (apart from
 generating and using XML fragments).

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]Im
 Auftrag von Antonio Gallardo
 Gesendet: Dienstag, 21. Januar 2003 03:03
 An: [EMAIL PROTECTED]
 Betreff: Re: AW: XSP Redirection HELP!!!


 This will does not work because you have one generator in the pipeline.
 A strict rule in any version af Cocoon told:

 Just ONE generator for pipeline

 then the another generator on the target of the redirection will not be
 loaded. I think it will throw a Exception. (Gurus, please shine us and
 tell us what will happen). I never tried to do somethig like this. See
 more comments down.



 another alternative would be to use your xsp via the already mentioned
 ServerPagesAction (if you must use xsp):

  form action=save-form-data ...

 in your sitemap:

  map:match pattern=save-form-data
  map:act type=serverpages src=save-form-data.xsp/
  ...
  /map:match

 for this, you must have the serverpages action declared in the
 sitemap. then you can redirect via map:redirect-to in the sitemap or
 you can redirect from within the xsp via action:redirect-to (action
 logicsheet).

 third alternative would be to directly code the action, invoke it in
 your 'save-form-data' pipeline, after which you redirect.

 I think this is a good aproach too. But I dont see why to waste a XSP
 when any flavor of Database Action (Original or Modular) can do this for
 you. Listen:

 If you think you need your special XSP page because you need to validate
 the form data that you received from the user request. The answer is:

 Why reinvent the cool water? There is another fine action that can do
 this for you, please check the following snip from my sitemap:

 !-- catalog of Table --
 map:match pattern=*-table.html
   !-- Create --
   map:match type=request-parameter pattern=cocoon-action-Create
 map:act action=crear type=form-validator
 map:parameter name=descriptor value=docs/{../1}-form.xml/
 map:parameter name=validate-set value=add/
 !-- Here data are safely validated --
 map:act type=dbAdd
   map:parameter name=descriptor value=docs/{../../1}-form.xml/
 !-- At this point the data are already stored in the database --
   map:redirect-to uri=where_ever_you want/
 /map:act
 !-- Here was wa problem. Data are not into the database, but validated
 --
   /map:act
 !-- Here Data are not passed the validation check --
 !-- You can let it empty, since if no other pipeline match it, the
 handle error will take care of what happened --
 /map:match

 For more info about form Validation Action, please check:

 http://wiki.cocoondev.org/Wiki.jsp?page=FormValidationUsingCocoon

 I hope it will help you. ;-)

 Antonio Gallardo



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

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




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

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




Re: Logicsheet problems - global XSLT variables

2003-01-19 Thread Antonio Gallardo
 Also, do others find working with Cocoon very frustrating? When you make
 a change it takes forever for the web-app to reload and re-compile the
 java class, espcially when it takes up so much memory.

You need to add in your cocoon.xconf file:

sitemap reload-method=synchron check-reload=yes
config=resource://org/apache/cocoon/components/treeprocessor/treeprocessor-builtins.xml
file=context://sitemap.xmap logger=sitemap/

Search for the sitemap tag and add the attributes:

reload-method=synchron
check-reload=yes

Antonio Gallardo


 Thx in advance,
 Mark



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

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




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

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




Re: Vir: Re: XSP : control structures

2003-01-19 Thread Antonio Gallardo
No problem. I use Linux. ;-D

Antonio Gallardo

CARLETTA ANGELO dijo:
 --- Reçu de   INFETUDE.G145193 02/250.96.71  20-01-03
 07.57   ---



 
*


 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Date: Sat, 18 Jan 2003 20:21:42 +0100
 Subject: Vir: Re: XSP : control structures

 The virus SirCAM have been detected in a message from:
 [EMAIL PROTECTED] to:
 [EMAIL PROTECTED]

 It has been quarantined in: Dirty Messages

  20-01-03 07.57  Envoyé à
 --
   - [EMAIL PROTECTED]


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


 [EMAIL PROTECTED]
 ***


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

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




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

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




RE: Send directly to printer....?

2003-01-18 Thread Antonio Gallardo
I mean on the cliente. I was ”researching” and found a solution using
javascript:

newwindow.open()
newwindow.print()
newwindow.close()

This are not the exactly commands, but it can work. I will try it. But if
you know another solution, please let me know. :-)

Best Regards,

Antonio Gallardo



Geoff Howard dijo:
 Do you mean a printer on the client, or the server?

 -Original Message-
 From: Antonio Gallardo [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, January 18, 2003 2:55 AM
 To: [EMAIL PROTECTED]
 Subject: Send directly to printer?


 Hi,

 Is there a way to send a document directly to printer?

 I am using XSL-FO and serializing to PDF. But now I need to send a
 document directly to printer without presenting it first in the client
 browser first. Is there a way to do that?

 Thanks in advance.

 Antonio Gallardo.




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

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




  1   2   3   4   5   >