RE: encoding, UTF-8

2003-11-27 Thread gounis
i'm allmost sure that the entire cocoon has UTF-8 as default encoding

corect me 


--stavros 



On Thu, 27 Nov 2003, Nicolas Toper wrote:

> Are you sure, the viewer is UTF8?
> 
> -Message d'origine-
> De : Lionel Crine [mailto:[EMAIL PROTECTED]
> Envoyι : jeudi 27 novembre 2003 11:58
> ΐ : [EMAIL PROTECTED]
> Objet : encoding, UTF-8
> 
> 
> Hi,
> 
> I want to put the entire plateform into UTF-8. For now, cocoon is using
> ISO-8859-1.
> 
> Here what I've already done :
> 
> mime-type="text/html" name="html" pool-grow="4" pool-max="32"
>pool-min="4"
>src="org.apache.cocoon.serialization.HTMLSerializer">
>  1024
>  UTF-8
> 
> 
> 
> But that's not enough because I have many problem with the form.
> When I reload it with some request parameter (using xsl:value-of).
> 
> The characters are not display good.
> 
> For example the ι become Γ?Β© .
> Any idea ?
> 
> I use Cocoon 2.0.4
> 
> Lionel
> 
> 
> 
> 
> Lionel CRINE
> Ingιnieur Systθmes documentaires
> Sociιtι : 4DConcept
> 22 rue Etienne de Jouy 78353 JOUY EN JOSAS
> Tel : 01.34.58.70.70 Fax : 01.39.58.70.70
> 
> 
> -
> 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: encoding, UTF-8

2003-11-27 Thread gounis
we have solve the same problem using action




...
...
...


























-- stavros

On Thu, 27 Nov 2003, Boris Althaus wrote:

> Hallo Lionel,
> 
> we had problems with this issues several times.
> Play arround with these two initparams.
> The strange thing was, that on different engines we had to change the 
> container-encoding to avoid encoding problems. 
> Now we do not have any problems with encoding anymore and we don't need entries in 
> the sitemaps.
> 
> 
> form-encoding
> UTF-8
> 
> 
> container-encoding
> ISO-8859-1
> 
> Boris
>   - Original Message - 
>   From: Lionel Crine 
>   To: [EMAIL PROTECTED] 
>   Sent: Thursday, November 27, 2003 11:57 AM
>   Subject: encoding, UTF-8
> 
> 
>   Hi,
> 
>   I want to put the entire plateform into UTF-8. For now, cocoon is using 
>   ISO-8859-1.
> 
>   Here what I've already done :
> 
> mime-type="text/html" name="html" pool-grow="4" pool-max="32"
>  pool-min="4"
>  src="org.apache.cocoon.serialization.HTMLSerializer">
>1024
>UTF-8
>   
> 
> 
>   But that's not enough because I have many problem with the form.
>   When I reload it with some request parameter (using xsl:value-of).
> 
>   The characters are not display good.
> 
>   For example the ι become ΓfΒ© .
>   Any idea ?
> 
>   I use Cocoon 2.0.4
> 
>   Lionel
> 
> 
> 
> 
>   Lionel CRINE
>   Ingιnieur Systθmes documentaires
>   Sociιtι : 4DConcept
>   22 rue Etienne de Jouy 78353 JOUY EN JOSAS
>   Tel : 01.34.58.70.70 Fax : 01.39.58.70.70
> 
> 
>   -
>   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]



document-v10 transformation rules to HTML and PDF

2003-11-27 Thread gounis

hi people 

i have look in cvs's to find .xsl files that transform 
document-v10 (document-v10.dtd) xml files to html and pdf
at once but without to find somenthing

exist those file i'm looking for or not?

i want to make our project (othello) ready to accept document-v10.dtd 
valid content files

thnx 


--stavros



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



RE: Uploading files with Cocoon 2.1 (one more)

2003-11-28 Thread gounis
hi roman 

your action is great but cause a problem in windows

if i select c:\temp\myfile.zip for upload for example

the upload work fine until tomcat's working directory but when you are try 
to copy the file to destination dir the path is like 

"c:\...\WEB-INF\myupload\test1\c:\temp.myfile.zip"

that can not be saved

i have make a litle chagne to strip-out the source file path 

i'll post this patch here soon.


--stavros




On Thu, 27 Nov 2003, Roman Hrivik wrote:

> 
> I wrote my own action and it works correctly, you can use it.
> See attached fileuploadsample.zip
> 
> 
> You will specify those parameters to action
> number-of-files - number of uploaded files - number of input file fields
> file-form-field-prefix - form field prefix for file field i.e. "myFile"
>   the file field names must be always be
>   myFile1, myFile2, myFile3, ...
> upload-directory - relative or physical path where to save file
> overwrite-file - it can be deny, allow, rename
> 
> 
> In your sitemap you will put 
>   
>   logger="sitemap.action.fileupload" 
>   name="file-upload-action" 
>   src="com.mypackage.FileUploadAction"/>
>   
> 
> than use i.e.
> 
> 
>   
>  
>  
>  
> 
>   
>name="upload-directory" 
>   value="/WEB-INF/myupload/test1"/>
> value="rename"/>
>   
> 
> 
> 
> 
> 
> 
> 
> Roman
> 
> 
> 
> 
> 
> 
> -Pωvodnν zprαva-
> Od: Josep Riudavets [mailto:[EMAIL PROTECTED] 
> Odeslαno: 27. novembra 2003 16:06
> Komu: [EMAIL PROTECTED]
> Pψedmμt: Fw: Uploading files with Cocoon 2.1 (one more)
> 
> Hi all ...
> 
> Geoff... thanks for your help all these days, and for your interest
> about my
> problems for uploading files in Cocoon 2.1.
> 
> Steven ... thanks for posting your upload action. It's very important to
> colaborate in this way, sharing the knowledges we have.
> 
> About your upload action, I think it contains an error, that causes you
> can't upload a file if there have been uploaded another file before
> 
> Here's the code of your upload action:
> 
> 
> 
> 
> File folder = new File (uploadfolder);
> if (!folder.exists()){
> 
> folder.mkdirs();
> //code for uploading and saving a file
> 
> }
> 
> That generates the next problem: if you upload a file, a folder is
> created,
> and the file is saved into this folder. If you want to upload a second
> file,the folder is already created, and !folder.exists() is false , and
> no
> code is executed in order to upload and save the file.
> 
> I have used next if condition:
> 
> if (true) {
> ...
> }
> 
> In this way, the code inside the "if condition" is always executed, and
> files are saved without problem. If you mantain if(!folder.exists()),
> the
> code is only executed first time .. because second time the folder
> already
> exists.
> 
> Am I wrong???
> 
> 
> 
> -
> 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: Uploading files with Cocoon 2.1 (one more)

2003-11-28 Thread gounis

upload example using action patched to work on windows

--stavros



fileuploadsample_modified.zip
Description: Zip archive
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

working examples

2003-11-28 Thread gounis
hi people

considering a previews thread about small code examples for cocoon 
i have create a Recipes page in wiki
with working samples for common problems

the idea is to keep there most of working examples i have in my hard disk 
and will be usefull for other people

the first post is  Hrivik's upload example using action 

---stavros



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



cocoon - slide block

2003-12-01 Thread gounis
hi people 

do you  know from where jta.jar can be downloaded?


thx

--stavros


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



Re: Insert an image

2003-12-01 Thread gounis
for example 


...





...



-- stavros
On Mon, 1 Dec 2003, Josep Riudavets wrote:

> Hi all ... 
> 
> How can I do for inserting an image into an XSL stylesheet???
> 
> Thanks all 
> 


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



Re: Insert an image

2003-12-01 Thread gounis


xml
---





xsl
---


 ...
 
 
 
 
 
 ...



--stavros
On Mon, 1 Dec 2003, Josep Riudavets wrote:

> And ... what about the source? Could you post it?
> 
> David ... I need the code in order to insert it into an XSL page, because
> the image is part of a web page ...
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, December 01, 2003 5:20 PM
> Subject: Re: Insert an image
> 
> 
> > for example
> >
> >
> > ...
> > 
> > 
> > 
> > 
> > 
> > ...
> >
> >
> >
> > -- stavros
> > On Mon, 1 Dec 2003, Josep Riudavets wrote:
> >
> > > Hi all ...
> > >
> > > How can I do for inserting an image into an XSL stylesheet???
> > >
> > > Thanks all
> > >
> >
> >
> > -
> > 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]



woody - a start point

2003-12-02 Thread gounis
hi 

last days woody is the most active area in cocoon
except the samples is there any other start point to check someone all 
this stuff of  .java code woddy block ?

any hint how to start scratch woody ?

--stavros 


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



RE: woody - a start point

2003-12-02 Thread gounis


how to start paly with the code ?



On Tue, 2 Dec 2003, Jan Hoskens wrote:

> Try the wiki's
> http://wiki.cocoondev.org/Wiki.jsp?page=Woody
> 
> -Oorspronkelijk bericht-
> Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Verzonden: dinsdag 2 december 2003 13:01
> Aan: [EMAIL PROTECTED]
> Onderwerp: woody - a start point 
> 
> hi 
> 
> last days woody is the most active area in cocoon
> except the samples is there any other start point to check someone all 
> this stuff of  .java code woddy block ?
> 
> any hint how to start scratch woody ?
> 
> --stavros 
> 
> 
> -
> 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: Cocoon 2.1.3 - Build error

2003-12-03 Thread gounis
On Wed, 3 Dec 2003, Derek Hohls wrote:

> Geoff
> 
> Well... I went back and ran the "build" file, and 9 min and 
> 51 seconds later, I had a BUILD SUCCESSFUL !
> 
> So I am not sure why it failed the first time around, as I
> have not changed anything (yes, I did unzip with Winzip
> and perhaps the first failure overcame that ?!)
> 
> Anyway, thanks for taking the time and trouble to make
> the suggestions you did.
> 
> Two more points:
> 
> 1. does one actually need to download and
> install Ant as I did, or is Cocoon self-building??
i dont have install Ant never but i build cocoon from CVS every day

> 
> 2. to deploy Cocoon 2.1.3 under Tomcat, can I just copy
> over the 'webapp' directory located under D:\cocoon-2.1.3\build\ ?
> (and will I still be able to run the older 2.0.x version of 
> Cocoon - currently located under $TOMCAT\webapps\'Cocoon' ?)

1.just rename the cocoon.war to cocoon21.war

or 

2. create e folder under tomcat's webapp 
and copy there all the content of webapp folder under \cocoon-2.1.3\build 
...

--stavros
> 
> Thanks!
> Derek
> 
> >>> [EMAIL PROTECTED] 2003/12/03 03:03:18 PM >>>
> Derek Hohls wrote:
> 
> > While I have been using Cocoon 1 and 2.0.x for some years
> > now, I am a total "newbie" with regard to 2.1.x and all 
> > that is involved in setting it up.
> > 
> > I am running on a Windows XP, under JDK 1.3
> > 
> > I have downloaded the Cocoon 2.1.3 source files, and unzipped
> > them into D:\cocoon-2.1.3.  I have also downloaded Ant 1.5.4
> > and set it up (setting ANT_HOME and the PATH variables).
> 
> See below.
> 
> > When I go to D:\cocoon-2.1.3 to attempt to build Cocoon,
> > simply by typing "ant", I get the log/error shown below as 
> > output.
> > 
> > I have no idea what the error means or how to fix it;
> > and could not spot any past "fixes" in the archives.
> 
> It means you haven't set up your classpath to include the xml jars 
> located under lib\endorsed\.  build.bat does nothing more than set up 
> your environment correctly and then call ant correctly.  I'd strongly 
> suggest using it instead of trying to reinvent the wheel.  See below.
> 
> > Please help!
> > Thanks
> > Derek
> > 
> > PS I also tried the build.bat file; but got a whole lot
> > of "file not found" errors.
> 
> The first time you build, the build script looks in several locations 
> for the required xml libraries - usually it reports "file not found" in
> 
> the first places it looks and then does find it in the third IIRC.  It
> 
> should do this for each of three jars, for a total of 6 fnf "errors" at
> 
> the beginning of the build.  If you ignore them and let the build go
> on, 
> you'll see BUILD SUCCESSFUL at the end.
> 
> Another possibility is that you are getting the problem with empty 
> directories not being preserved by WinZip.  I think this only applies 
> when unzipping the tar.gz with winzip: 
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23588.  If this is
> the 
> problem, the file not found(s) will probably be a bunch of lib 
> directories.
> 
> If neither of these are the case and the build aborts with BUILD FAILED
> 
> then send the exact error you're getting here.
> 
> Geoff
> 
> > 
> > 
> > D:\cocoon-2.1.3>ant
> > Buildfile: build.xml
> > 
> > init:
> > 
> > init-tasks:
> >   [mkdir] Created dir: D:\cocoon-2.1.3\tools\anttasks
> >   [javac] Compiling 2 source files to D:\cocoon-2.1.3\tools\anttasks
> >   [mkdir] Created dir: D:\cocoon-2.1.3\tools\loader
> >   [javac] Compiling 1 source file to D:\cocoon-2.1.3\tools\loader
> > 
> > prepare:
> >  [echo]
> +---+
> >  [echo]  Apache Cocoon 2.1.3 [1999-2003]
> >  [echo]
> +---+
> >  [echo]  Building with Apache Ant version 1.5.4 compiled on August
> 12
> > 2003
> >  [echo]  using build file D:\cocoon-2.1.3\build.xml
> >  [echo]  Compiling with debug on, optimize on, deprecation off
> >  [echo] +| W A R N I N G
> |--+
> >  [echo]This build is targeted for use with JVM 1.3
> >  [echo]  Using this build on a virtual machine other than the one
> >  [echo]it is targeted for may result in runtime errors.
> >  [echo]
> +---+
> > [mkdir] Created dir: D:\cocoon-2.1.3\build\cocoon-2.1.3
> > 
> > compile-core:
> >  [copy] Copying 40 files to
> D:\cocoon-2.1.3\build\cocoon-2.1.3\classes
> >  [copy] Copied 36 empty directories to
> > D:\cocoon-2.1.3\build\cocoon-2.1.3\classes
> >  [mkdir] Created dir: D:\cocoon-2.1.3\build\cocoon-2.1.3\mocks
> >  [javac] Compiling 1 source file to
> > D:\cocoon-2.1.3\build\cocoon-2.1.3\mocks
> >  [javac] Compiling 555 source files to
> > D:\cocoon-2.1.3\build\cocoon-2.1.3\classes
> > 
> > compile-deprecated:
> >  [mkdir] Created dir: D:\cocoon-2.1.3\build\cocoon-2.1.3\deprecated
> > 
> > BUILD FAILED
> > javax.xml.transform.TransformerFactoryConfigu

cocoon project deploy

2003-12-03 Thread gounis

last day i had to send a cocoon based project to a friend without computer 
experience

i have pack the project with jetty container
the problem was not how to start cocoon (just a .bat file) but how to 
prepeare the computer  (windows XP) to accept a java application (cocoon)

i had to give step-by step instructions how to set up java, set JAVA_HOME 
and add java to path

all this are impossible from someone that want a final product 

from you experience is any way to automate all this procedure or to create 
an "Install Shield" that will 

run from a CD
-install JAVA
-set paths and variables
-install cocoon (on jetty maybe)
-create a shortcut :-)

any idea or hint?

-- stavros



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



Re: Cocoon 2.1.3 - Build error

2003-12-03 Thread gounis
On Wed, 3 Dec 2003, Derek Hohls wrote:

> Stavros
> 
> Thanks!
> 
> It does not seem that the build created a 'cocoon.war' file
> so I will use your option (2) instead.


try build war


> 
> Derek
> 
> >>> [EMAIL PROTECTED] 2003/12/03 03:39:54 PM >>>
> On Wed, 3 Dec 2003, Derek Hohls wrote:
> 
> > Geoff
> > 
> > Well... I went back and ran the "build" file, and 9 min and 
> > 51 seconds later, I had a BUILD SUCCESSFUL !
> > 
> > So I am not sure why it failed the first time around, as I
> > have not changed anything (yes, I did unzip with Winzip
> > and perhaps the first failure overcame that ?!)
> > 
> > Anyway, thanks for taking the time and trouble to make
> > the suggestions you did.
> > 
> > Two more points:
> > 
> > 1. does one actually need to download and
> > install Ant as I did, or is Cocoon self-building??
> i dont have install Ant never but i build cocoon from CVS every day
> 
> > 
> > 2. to deploy Cocoon 2.1.3 under Tomcat, can I just copy
> > over the 'webapp' directory located under D:\cocoon-2.1.3\build\ ?
> > (and will I still be able to run the older 2.0.x version of 
> > Cocoon - currently located under $TOMCAT\webapps\'Cocoon' ?)
> 
> 1.just rename the cocoon.war to cocoon21.war
> 
> or 
> 
> 2. create e folder under tomcat's webapp 
> and copy there all the content of webapp folder under
> \cocoon-2.1.3\build 
> ...
> 
> --stavros
> > 
> > Thanks!
> > Derek
> > 
> > >>> [EMAIL PROTECTED] 2003/12/03 03:03:18 PM >>>
> > Derek Hohls wrote:
> > 
> > > While I have been using Cocoon 1 and 2.0.x for some years
> > > now, I am a total "newbie" with regard to 2.1.x and all 
> > > that is involved in setting it up.
> > > 
> > > I am running on a Windows XP, under JDK 1.3
> > > 
> > > I have downloaded the Cocoon 2.1.3 source files, and unzipped
> > > them into D:\cocoon-2.1.3.  I have also downloaded Ant 1.5.4
> > > and set it up (setting ANT_HOME and the PATH variables).
> > 
> > See below.
> > 
> > > When I go to D:\cocoon-2.1.3 to attempt to build Cocoon,
> > > simply by typing "ant", I get the log/error shown below as 
> > > output.
> > > 
> > > I have no idea what the error means or how to fix it;
> > > and could not spot any past "fixes" in the archives.
> > 
> > It means you haven't set up your classpath to include the xml jars 
> > located under lib\endorsed\.  build.bat does nothing more than set up
> 
> > your environment correctly and then call ant correctly.  I'd strongly
> 
> > suggest using it instead of trying to reinvent the wheel.  See
> below.
> > 
> > > Please help!
> > > Thanks
> > > Derek
> > > 
> > > PS I also tried the build.bat file; but got a whole lot
> > > of "file not found" errors.
> > 
> > The first time you build, the build script looks in several locations
> 
> > for the required xml libraries - usually it reports "file not found"
> in
> > 
> > the first places it looks and then does find it in the third IIRC. 
> It
> > 
> > should do this for each of three jars, for a total of 6 fnf "errors"
> at
> > 
> > the beginning of the build.  If you ignore them and let the build go
> > on, 
> > you'll see BUILD SUCCESSFUL at the end.
> > 
> > Another possibility is that you are getting the problem with empty 
> > directories not being preserved by WinZip.  I think this only applies
> 
> > when unzipping the tar.gz with winzip: 
> > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23588.  If this is
> > the 
> > problem, the file not found(s) will probably be a bunch of lib 
> > directories.
> > 
> > If neither of these are the case and the build aborts with BUILD
> FAILED
> > 
> > then send the exact error you're getting here.
> > 
> > Geoff
> > 
> > > 
> > > 
> > > D:\cocoon-2.1.3>ant
> > > Buildfile: build.xml
> > > 
> > > init:
> > > 
> > > init-tasks:
> > >   [mkdir] Created dir: D:\cocoon-2.1.3\tools\anttasks
> > >   [javac] Compiling 2 source files to
> D:\cocoon-2.1.3\tools\anttasks
> > >   [mkdir] Created dir: D:\cocoon-2.1.3\tools\loader
> > >   [javac] Compiling 1 source file to D:\cocoon-2.1.3\tools\loader
> > > 
> > > prepare:
> > >  [echo]
> > +---+
> > >  [echo]  Apache Cocoon 2.1.3 [1999-2003]
> > >  [echo]
> > +---+
> > >  [echo]  Building with Apache Ant version 1.5.4 compiled on August
> > 12
> > > 2003
> > >  [echo]  using build file D:\cocoon-2.1.3\build.xml
> > >  [echo]  Compiling with debug on, optimize on, deprecation off
> > >  [echo] +| W A R N I N G
> > |--+
> > >  [echo]This build is targeted for use with JVM 1.3
> > >  [echo]  Using this build on a virtual machine other than the one
> > >  [echo]it is targeted for may result in runtime errors.
> > >  [echo]
> > +---+
> > > [mkdir] Created dir: D:\cocoon-2.1.3\build\cocoon-2.1.3
> > > 
> > > compile-core:
> > >  [copy] Copying 40 files to
> > D:\co

Re: sitemap - if file exist pipeline selection

2003-12-04 Thread gounis

 i supose that this selector is not available in 2.0.4?



On Thu, 4 Dec 2003, Antonio Gallardo wrote:

> Hi:
> 
> What about this?
> 
> http://wiki.cocoondev.org/Wiki.jsp?page=ResourceExistsSelector
> 
> Best Regards,
> 
> Antonio Gallardo
> 
> [EMAIL PROTECTED] dijo:
> > hi people
> >
> > let me explain my problem
> >
> > i want to get a request
> >
> > http://my.cocoon.server/page
> >
> > then if page.xml exist i need to to use this .xml as generation source
> > and go on with a specific transformation
> >
> > otherwise
> >
> > i want to look if page.xhtml exist and use it as xml generation source but
> > with other transformation
> >
> > is it possible into sitemap
> >
> > any hint?
> >
> >
> > thnx
> >
> > --stavros
> >
> >
> > -
> > 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]



sitemap - if file exist pipeline selection

2003-12-04 Thread gounis
hi people 

let me explain my problem

i want to get a request 

http://my.cocoon.server/page

then if page.xml exist i need to to use this .xml as generation source 
and go on with a specific transformation

otherwise 

i want to look if page.xhtml exist and use it as xml generation source but 
with other transformation

is it possible into sitemap

any hint?


thnx

--stavros


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



Re: Listing files from a directory

2003-12-05 Thread gounis

look for directory generator

--stavros

On Thu, 4 Dec 2003, [iso-8859-2] Jan Wielgus wrote:

> Hello,
> 
> is there an action that performs listing files of a specific
> directory given (as parameter for example)? 
> 
> Jan
> 
> 
> -
> 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: FW: Escaping in XSP Logic

2003-12-05 Thread gounis


this is a point discused in the future again 
without a solution (if i remeber right)

--stavros


On Thu, 4 Dec 2003, Yves Vindevogel wrote:

> nobody ?
> 
> -Original Message-
> From: Yves Vindevogel [mailto:[EMAIL PROTECTED]
> Sent: woensdag 3 december 2003 19:21
> To: [EMAIL PROTECTED]
> Subject: Escaping in XSP Logic
> 
> 
> Hi,
> 
> I have this syntax ...
> 
> 
> String sMessageNoResultsOther = "Pas de produits qui commenηent avec
> 1-...-9, ..." ;
> 
> 
> When I use the  to put the string there, I lose my "η".  It's
> represented as "?".
> I have this with all characters from "Iso-8859-1" with "strange" chars.
> 
> My XSP is declared with correct encoding
> 
> 
> Is there a way to avoid this, or to use escaping in xsp:logic ?
> I tried with ç   but that's no help.
> 


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



mime type wher read .htc

2003-12-07 Thread gounis

hi people

i have notice that .htc work when i read them using 

mime-type="text/plain" 

but not using

mime-type="text/javascript"


but .htc are nothing more than javascript text files 

is something i missed or is it not a normal situation ?


--stavros 



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



calling pipeline from parent sitemap

2003-12-09 Thread gounis

hi people 

in my case i have 4 lever sub-sitemap

sitemap (1)
  sub-sitemap (2) 
sub-sitemap (3)
 sub-sitemap (4)


the question is how can i use as src in sub-sitemap(4) a pipeline that 
exist in sub-sitemap(3) or (2) ?

i have try cocoon:/ or cocoon:// protocol without success

thanx 

-stavros

 


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



Re: calling pipeline from parent sitemap

2003-12-09 Thread gounis
On Tue, 9 Dec 2003, Upayavira wrote:

> [EMAIL PROTECTED] wrote:
> 
> >hi people 
> >
> >in my case i have 4 lever sub-sitemap
> >
> >sitemap (1)
> >  sub-sitemap (2) 
> >sub-sitemap (3)
> > sub-sitemap (4)
> >
> >
> >the question is how can i use as src in sub-sitemap(4) a pipeline that 
> >exist in sub-sitemap(3) or (2) ?
> >  
> >
> Yes. Each request is handled by Cocoon, with cocoon:/ mapping to the 
> current sitemap. So sitemaps can refer to their children by the URI 
> relative to their parent's URI-prefix. E.g.
> 
> sitemap 1: mounted on cocoon
> sitemap: 2: mounted on site
> sitemap: 3: mounted on foo
> sitemap: 4 : mounted on bar, has a matcher for "page"
> 
>  From sitemap 2, you'd access the 'page' matcher as cocoon:/foo/bar/page
>  From sitemap 3, you'd access it as cocoon:/bar/page
> Etc.
> 

Upayavira thnx for your reply but what im looking is the opposite
in your example

sitemap 2:, has a matcher for "page" 

and i want to access from sitemap 4:




> Regards, Upayavira
> 
> 
> 
> -
> 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: calling pipeline from parent sitemap

2003-12-09 Thread gounis

antonio

this could be a solution for specific avery time cases

i dont want to start from context because i dont know how deep is my 
"sub-sitemap-ing"

i'm looking something similar to ../../../ in file system


On Tue, 9 Dec 2003, Antonio Gallardo wrote:

> [EMAIL PROTECTED] dijo:
> >
> > hi people
> >
> > in my case i have 4 lever sub-sitemap
> >
> > sitemap (1)
> >   sub-sitemap (2)
> > sub-sitemap (3)
> >  sub-sitemap (4)
> >
> >
> > the question is how can i use as src in sub-sitemap(4) a pipeline that
> > exist in sub-sitemap(3) or (2) ?
> >
> > i have try cocoon:/ or cocoon:// protocol without success
> 
> Try context://
> 
> Best Regards,
> 
> Antonio Gallardo
> 
> >
> > thanx
> >
> > -stavros
> >
> >
> >
> >
> > -
> > 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: calling pipeline from parent sitemap

2003-12-09 Thread gounis


so i suppose that calling parent from child without trick is not 
implemented (maybe in future)

i have in my mind somthing that will be not relative to context 

for example 

i'm not sure if my small application's root sitemap will be sub-mounted 
and in which level in existin cocoon runing instance. so i dont know the 
full path from context to application's root sitemap.

i'll try to find somenthing in input modules maybe!?

thanx for your replies

--stavros


On Tue, 9 Dec 2003, Marco Rolappe wrote:

> hi stavros,
> 
> you just have to assure that each sitemap is reachable by a context.
> sitemap(1) (I assume it's the root sitemap) is reachable via cocoon://, i.e.
> a resource 'foo' in that sitemap/context can be reached via cocoon://foo.
> 
> so what you do now is to make each subsitemap reachable by its parent; let's
> name the subsitemaps after the pattern 'ss?'. in the root sitemap you match
> on 'ss2' and mount sub-sitemap(2)'s sitemap;
> 
> in sitemap(1):
> 
> ...
>   
>   
>   
> ...
> 
> 
> you do the same for the other sitemaps.
> 
> 
> then, for example, from sub-sitemap(4) you can reach resource 'ronin' in
> sub-sitemap(2) via 'cocoon://ss2/ronin', and so on.
> 
> > -Ursprungliche Nachricht-
> > Von: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Auftrag
> > von [EMAIL PROTECTED]
> > Gesendet: Dienstag, 9. Dezember 2003 09:04
> > An: [EMAIL PROTECTED]
> > Betreff: calling pipeline from parent sitemap
> >
> >
> >
> > hi people
> >
> > in my case i have 4 lever sub-sitemap
> >
> > sitemap (1)
> >   sub-sitemap (2)
> > sub-sitemap (3)
> >  sub-sitemap (4)
> >
> >
> > the question is how can i use as src in sub-sitemap(4) a pipeline that
> > exist in sub-sitemap(3) or (2) ?
> >
> > i have try cocoon:/ or cocoon:// protocol without success
> >
> > thanx
> >
> > -stavros
> >
> >
> >
> >
> > -
> > 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: maybe bug in xsltc

2003-12-09 Thread gounis
On Tue, 9 Dec 2003, Frederic Gaus wrote:

> Hi! 
> 
> I asked once allready, but I get no answer. So I try again. 
> 
> I'm using xsltc als my default xslt-parser because xalan has problems
> with umlauts in version 2.1.3
> 
> But using xsltc, I get problems with the sql-transformer using this
> pipeline:
> 
>  
>
>  
>  
>  
>
>
>
>  
>  
>
>
>  
>
>
>
>  
> 
> It works fine after removing all umlauts and using xalan. 
> When I comment the sql-transformer out, it works fine with xstlc and
> umlauts.
> 
> Using xsltc and the sql-transformer, I get the following error:
> 
> The Error I get is 
> org.apache.xalan.xsltc.TransletException:
> org.apache.xalan.xsltc.TransletException: java.lang.NullPointerException

i use to have similar problems caused by encoding. mixed ISO and UTF xml 
files in cocoon with UTF as default encoding

and this only when i have greek charakters


--stavros

> 
> Finally, there are two parser (xsltc und xalan), both have problems :(. 
> So, I need a fix of umlauts in xalan or a fix of sql-transformer in
> xsltc. What can I do?
> 
> Thanks 
> 
> Freddy
> 
> My Stacktrace:
> 
> Original Exception: javax.xml.transform.TransformerException: 
> org.apache.xalan.xsltc.TransletException: org.apache.xalan.xsltc.TransletException: 
> java.lang.NullPointerException
>   at 
> org.apache.xalan.xsltc.trax.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:273)
>   at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
>   at 
> org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:579)
>   at 
> org.apache.cocoon.sitemap.ContentAggregator.generate(ContentAggregator.java:168)
>   at 
> org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:541)
>   at 
> org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:196)
>   at 
> org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:693)
>   at 
> org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.java:463)
>   at org.apache.cocoon.components.source.SourceUtil.parse(SourceUtil.java:261)
>   at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:141)
>   at 
> org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:557)
>   at 
> org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:196)
>   at 
> org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:501)
>   at 
> org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:147)
>   at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
>   at 
> org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
>   at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
>   at 
> org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:176)
>   at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
>   at 
> org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
>   at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
>   at 
> org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:163)
>   at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
>   at 
> org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:152)
>   at 
> org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:354)
>   at 
> org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:307)
>   at 
> org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:133)
>   at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
>   at 
> org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:176)
>   at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
>   at 
> org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNod

Re: calling pipeline from parent sitemap

2003-12-09 Thread gounis
On Tue, 9 Dec 2003, Upayavira wrote:

> [EMAIL PROTECTED] wrote:
> 
> >On Tue, 9 Dec 2003, Upayavira wrote:
> >
> >  
> >
> >>[EMAIL PROTECTED] wrote:
> >>
> >>
> >>
> >>>hi people 
> >>>
> >>>in my case i have 4 lever sub-sitemap
> >>>
> >>>sitemap (1)
> >>> sub-sitemap (2) 
> >>>   sub-sitemap (3)
> >>>sub-sitemap (4)
> >>>
> >>>
> >>>the question is how can i use as src in sub-sitemap(4) a pipeline that 
> >>>exist in sub-sitemap(3) or (2) ?
> >>> 
> >>>
> >>>  
> >>>
> >>Yes. Each request is handled by Cocoon, with cocoon:/ mapping to the 
> >>current sitemap. So sitemaps can refer to their children by the URI 
> >>relative to their parent's URI-prefix. E.g.
> >>
> >>sitemap 1: mounted on cocoon
> >>sitemap: 2: mounted on site
> >>sitemap: 3: mounted on foo
> >>sitemap: 4 : mounted on bar, has a matcher for "page"
> >>
> >> From sitemap 2, you'd access the 'page' matcher as cocoon:/foo/bar/page
> >> From sitemap 3, you'd access it as cocoon:/bar/page
> >>Etc.
> >>
> >>
> >>
> >
> >Upayavira thnx for your reply but what im looking is the opposite
> >in your example
> >
> >sitemap 2:, has a matcher for "page" 
> >
> >and i want to access from sitemap 4:
> >  
> >
> Ahh. No, you can't do a relative reference back to a parent sitemap. You 
> have to know the path from the root, using cocoon://. You could set a 
> variable in the sitemap and use that as the URI path to the parent 
> sitemap, so you have something like cocoon://{global:parent}/path/to/page.
> 
> This way, you have to tell each subsitemap where it is mounted (or where 
> its parents are), but you only have to do this once per sitemap.
> 
> Make sense?
> 


clearly ... thnx

BTW i'm the only one i need this ?

--stavros

> Regards, Upayavira
> 
> >
> >
> >
> >  
> >
> >>Regards, Upayavira
> >>
> >>
> >>
> >>-
> >>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: calling pipeline from parent sitemap

2003-12-09 Thread gounis

On Tue, 9 Dec 2003, Antonio Gallardo wrote:

> [EMAIL PROTECTED] dijo:
> > BTW i'm the only one i need this ?
>  Good question. Can you explain in more detail, why you need this?


sure, why not

i design a small application
my application will have a main-sitemap with pipelines for common purposes 
and will automount all subsitemap

each sub-sitemap i want to be able to use as src in generators some 
"common" pipelines from main-sitemap

until now everithing is OK, i can use cocoon:// 

my main-sitemap i want to be able to placed anywhere (automounted maybe) 
in a cocoon instalation

so i was thinking instead to reach a resource in my main-sitemap starting 
from cocoon context 

(think about cocoon samples, this application  will be either in 
/samples or /samples/scratchpad or everywhere else)

to reach this resource going backward

[main-sitemap]


..

 

.. mount */** ..


[application sub-sitemap ]
..

..

this is what i'm thinking about 


why not ? :-)


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



RE: calling pipeline from parent sitemap

2003-12-09 Thread gounis


think about the case you need this resource in every this sitemap's
sub-sitemap

i dont care if this will be resource or just a match

--stavros

On Tue, 9 Dec 2003, Roman Hrivik wrote:

> 
> Why don't you use resource
> 
> 
> 
>
>   ...anything...ie...
>   
>   
>   
>
> 
> 
> 
> 
>   
>   
>   
>
>   
> 
> 
> 
> 
> 
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, December 09, 2003 12:29 PM
> To: [EMAIL PROTECTED]
> Subject: Re: calling pipeline from parent sitemap
> 
> 
> On Tue, 9 Dec 2003, Antonio Gallardo wrote:
> 
> > [EMAIL PROTECTED] dijo:
> > > BTW i'm the only one i need this ?
> >  Good question. Can you explain in more detail, why you need this?
> 
> 
> sure, why not
> 
> i design a small application
> my application will have a main-sitemap with pipelines for common
> purposes 
> and will automount all subsitemap
> 
> each sub-sitemap i want to be able to use as src in generators some 
> "common" pipelines from main-sitemap
> 
> until now everithing is OK, i can use cocoon:// 
> 
> my main-sitemap i want to be able to placed anywhere (automounted maybe)
> 
> in a cocoon instalation
> 
> so i was thinking instead to reach a resource in my main-sitemap
> starting 
> from cocoon context 
> 
> (think about cocoon samples, this application  will be either in 
> /samples or /samples/scratchpad or everywhere else)
> 
> to reach this resource going backward
> 
> [main-sitemap]
> 
>   
>   ..
>   
>  
> 
> .. mount */** ..
> 
> 
> [application sub-sitemap ]
> ..
> 
> ..
> 
> this is what i'm thinking about 
> 
> 
> why not ? :-)
> 
> 
> --stavros
> > 
> > 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]
> 
> 
> 
> 
> -
> 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: Configuring Cocoon with Apache and TomCat

2003-12-14 Thread gounis

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

this works for us 

check first if your webapp work asking content directly form tomcat 

http://..:8008/examples/test.xml (maybe)

--stavros

On Sat, 13 Dec 2003, Krishna wrote:

> Hi,
> 
> I have installed Tomcat (tomcat4-4.0.1-1) , Cocoon-2.1 and
> Apache_1.3.23. The installation of these packages went fine.
> Tomcat configuration files are in /var/tomcat4, Cocoon in
> /var/tomcat4/webapps/cocoon/ and Apache in /usr/local/apache
> 
> This is my VirtualHost directive
>
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot /usr/local/apache/htdocs
> ServerName www.domain.net
> WebAppConnection conn warp localhost:8008
> WebAppDeploy examples conn /examples/
>
> 
>so, If I access http://203.xxx.xxx.yyy/examples/ , I can see the files
> placed under /var/tomcat4/webapps/examples and the servlets are
>executing.
>However when I made a test xml page it does not execute?
> 
>Any idea? how I should configure it so that everything works under the
> DocumentRoot /usr/local/apache/htdocs/ for both xml and jsp pages!
> 
> 
> regards,
> Krishna
> 
> Krishna Shekhar, RHCE
> Network/Systems Engineer
> Spectranet
> http://www.spectranet.com
> 
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.550 / Virus Database: 342 - Release Date: 12/9/2003
> 
> 
> 
> -
> 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: Configuring Cocoon with Apache and TomCat

2003-12-15 Thread gounis








this is my pipeline in cocoon's main sitemap that handle all 
/cocoon/domain.gr











so i can get any http://:8080/cocoon/{domain}.gr/

be carefull to put the last / (slash)


this snip of code is in my local develop machine  (winXP) in the same way 
is configured my production linux server


but first of all try to get diferent sites from your cocoon instalation
:8080/cocoon/{domain}/ 







if this works then go to setup apache virtual hosting


-- stavros
On Sun, 14 Dec 2003, Krishna wrote:

> Hi,
> 
>   Let me explain what I have,
>   Tomcat is installed in /var/tomcat4/
>   Cocoon is installed in /var/tomcat4/webapps/cocoon/
>   and main cocoon sitemap is in /var/tomcat4/webapps/cocoon/sitemap.xmap
> 
>   I have now installed apache 2.0.48 and enabled all modules.
>   It is in /usr/local/apache/
> 
>   DocumentRoot for my website is in /usr/local/apache/domain.net/htdocs/
> 
>   I can access tomcat by doing.
>   http://203.xxx.xxx.yyy:8180
>   and cocoon by doing
>   http://203.xxx.xxx.yyy:8180/cocoon
>   They are all working!
>   But I can't access http://203.122.59.60:8180/cocoon/domain.net !!!
> 
> How do I configure this??
> 
> Sitemap.xmap in entry /var/tomcat4/webapps/cocoon/sitemap.xmap under
> pipelines for domain.net is
> 
> 
>  src="/usr/local/apache2/{1}.net/htdocs/sitemap.xmap" check-reload="yes"/>
>  
> 
> This is my virtualhost configuration in apache.
> 
> 
> 
> Options -Indexes
> order allow,deny
> allow from all
> 
> 
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot /usr/local/apache2/domain.net/htdocs
> ServerName www.domain.net
> ServerAlias domain.net www.domain.net
> ErrorLog /usr/local/apache2/logs/error_log
> CustomLog /usr/local/apache2/logs/access_log combined
> 
> 
> Order deny,allow
> Deny from all
> 
> 
> #static content is served from apache
> #ProxyPass /media/ !
> #ProxyPass /stats/ !
> #ProxyPass /images/ !
> #ProxyPass /themes/images/ !
> 
> #all the rest are passed to cocoon
> ProxyPass / http://203.xxx.xxx.yyy:8180/cocoon/domain.net/
> ProxyPassReverse / http://203.xxx.xxx.yyy:8180/cocoon/domain.net/
> 
> ProxyErrorOverride On
> 
> 
> 
> regards,
> Krishna
> 
> Krishna Shekhar, RHCE
> Network/Systems Engineer
> spectranet
> http://www.spectranet.com
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Sunday, December 14, 2003 3:28 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: Configuring Cocoon with Apache and TomCat
> 
> 
> 
> http://wiki.cocoondev.org/Wiki.jsp?page=VirtualHost
> 
> this works for us
> 
> check first if your webapp work asking content directly form tomcat
> 
> http://..:8008/examples/test.xml (maybe)
> 
> --stavros
> 
> On Sat, 13 Dec 2003, Krishna wrote:
> 
> > Hi,
> >
> > I have installed Tomcat (tomcat4-4.0.1-1) , Cocoon-2.1 and
> > Apache_1.3.23. The installation of these packages went fine.
> > Tomcat configuration files are in /var/tomcat4, Cocoon in
> > /var/tomcat4/webapps/cocoon/ and Apache in /usr/local/apache
> >
> > This is my VirtualHost directive
> >
> > ServerAdmin [EMAIL PROTECTED]
> > DocumentRoot /usr/local/apache/htdocs
> > ServerName www.domain.net
> > WebAppConnection conn warp localhost:8008
> > WebAppDeploy examples conn /examples/
> >
> >
> >so, If I access http://203.xxx.xxx.yyy/examples/ , I can see the files
> > placed under /var/tomcat4/webapps/examples and the servlets are
> >executing.
> >However when I made a test xml page it does not execute?
> >
> >Any idea? how I should configure it so that everything works under the
> > DocumentRoot /usr/local/apache/htdocs/ for both xml and jsp pages!
> >
> >
> > regards,
> > Krishna
> >
> > Krishna Shekhar, RHCE
> > Network/Systems Engineer
> > Spectranet
> > http://www.spectranet.com
> >
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.550 / Virus Database: 342 - Release Date: 12/9/2003
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.550 / Virus Database: 342 - Release Date: 12/9/2003
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.550 / Virus Database: 342 - Release Date: 12/9/2003
> 
> 
> 


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

Re: Launching 2 cocoons simultenaously

2003-12-16 Thread gounis
i dont know about 2 or more containers 
but in tomcat you can have as many different cocoons as you like 
just rename cocoon.war to cocoon{1,2,3}.war and put them in tomcat's 
webapp dir


--stavros

On Tue, 16 Dec 2003, David Hello wrote:

> Hi,
> 
> Is there a way to launch two cocoons servlet container of differents 
> versions simultenaously on two differents ports.
> I've tried
> set JETTY_PORT=8080
> cocoon.bat servlet.
> and for the other
> set JETTY_PORT=
> cocoon.bet servlet,
> but it seems it doesn't work
> If someone has an idea...
> 
> thanks
> David
> 
> 
> -
> 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: Quick Install Question

2003-12-16 Thread gounis



you dont have to ask for http://localhost:/cocoon/
but for

http://localhost:/



On Tue, 16 Dec 2003, Charles Williams wrote:

> Sorry for the repeat...
> 
> I'm trying to install Cocoon. I'm following the instructions supplied in the 
> distribution and I get the following output when I start cocoon from the command line
> 
> command: cocoon servlet
> 
> results:
>  Loading 
> Processing repository: .\tools\jetty\lib
> Adding jar: .\tools\jetty\lib\jetty-4.2.9.jar
> Adding jar: .\tools\jetty\lib\servlet-2.3.jar
> Processing repository: .\lib\endorsed
> Adding jar: .\lib\endorsed\xalan-2.5.2.jar
> Adding jar: .\lib\endorsed\xercesImpl-2.5.0.jar
> Adding jar: .\lib\endorsed\xml-apis.jar
>  Executing -
> Main Class: org.mortbay.jetty.Server
> 00:03:10.380 EVENT  Checking Resource aliases
> 00:03:10.941 EVENT  Starting Jetty/4.2.9
> 00:03:11.071 WARN!! No WEB-INF/web.xml in .\build\webapp. Serving files and defa
> ult/dynamic servlets only
> 00:03:11.081 EVENT  Started WebApplicationContext[/,.\build\webapp]
> 00:03:11.111 EVENT  Started SocketListener on 0.0.0.0:
> 00:03:11.111 EVENT  Started [EMAIL PROTECTED]
> 
> I cannot get to my main cocoon page (http://localhost:/cocoon/). My guess is 
> this is the problem:
> 
> 00:03:11.111 EVENT  Started SocketListener on 0.0.0.0:
> 
> How do I correct it?
> 
> Running on Win2K pro with JDK 1.4.2. (obvisously built it with that version too!)
> 
> Thanks to all in advance,
> 
> 
> 
> Chuck Williams
> [EMAIL PROTECTED]
> Why Wait? Move to EarthLink.


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



Re: FW: Configuring Cocoon with Apache and TomCat (blank page!)

2003-12-16 Thread gounis

maybe you have to put endorsed lib in tomcat endorsed lib directory

-- stavros




On Thu, 13 Jan 2000, Krishna wrote:

> Hi,
> 
> Now I copied the whole domain's document root domain.net to 
> /var/tomcat4/webapps/cocoon and created a sitemap
> in /var/tomcat4/webapps/cocoon/domain.net/sitemap.xmap
> 
> I am testing with two test xml and xsl pages.
> This is test.xml
> 
> 
> 
> http://www.w3.org/1999/XSL/Transform";>
> 
>  name="cocoon-format">type="text/html"
> Hello ! This is test page
> 
> 
> 
> and this is test_h.xsl
> 
> 
> 
> 
> http://www.apache.org/1999/XSP/Core";>
>  
>  
> 
>  
>  
> 
> 
> 
> I then edited /var/tomcat4/cocoon/domain.net/sitemap.xmap and under 
> pipeline section, added this:
> 
>  
>  
>  
>  
>
> 
> Now when I load http://203.xxx.xxx.zzz:8180/cocoon/domain.net/test , I get 
> a blank page!!!
> I copied the sitemap.xmap from 
> /var/tomcat4/webapps/cocoon/xsp/sitemap.xmap. This is my sitemap.xmap under
> /var/tomcat4/cocoon/domain.net/
> 
> 
> 
> 
> http://apache.org/cocoon/sitemap/1.0";>
> 
> 
> 
>
>  
>
>  
> 
>  
>
>
>  
> 
>  
>
>  
>
> 
> 
> 
>
>  
> 
>
>  
>  
>  
>  
>
> 
>
>  
>   src="context://samples/stylesheets/dynamic-page2html.xsl">
>
>
>
>
>
>  
>  
>
> 
>
>  
>
>  
>   src="context://samples/stylesheets/dynamic-page2html.xsl">
>
>
>
>
>
>  
>  
>
> 
>
>  
>
>  
>   src="context://samples/stylesheets/dynamic-page2html.xsl">
>
>
>
>
>
>  
>  
>
> 
>  
>
> 
> 
> regards,
> Krishna
> 
> Krishna Shekhar, RHCE
> Network/Systems Engineer
> Spectranet
> http://www.spectranet.com
> 
> 
> 
> 
> 
> >this is my pipeline in cocoon's main sitemap that handle all
> >/cocoon/domain.gr
> >
> >
> > 
> > 
> >  >src="file://c:/Server/xwww/{1}.gr/conf/sitemap.xmap" uri-prefix="{1}.gr"/>
> > 
> > 
> > 
> > 
> > 
> >
> >so i can get any http://:8080/cocoon/{domain}.gr/
> >
> >be carefull to put the last / (slash)
> >
> >
> >this snip of code is in my local develop machine  (winXP) in the same way
> >is configured my production linux server
> >
> >
> >but first of all try to get diferent sites from your cocoon instalation
> >:8080/cocoon/{domain}/ 
> >
> >
> >
> >
> >
> >
> >
> >if this works then go to setup apache virtual hosting
> >
> >
> >-- stavros
> >On Sun, 14 Dec 2003, Krishna wrote:
> >
> > > Hi,
> > >
> > >   Let me explain what I have,
> > >   Tomcat is installed in /var/tomcat4/
> > >   Cocoon is installed in /var/tomcat4/webapps/cocoon/
> > >   and main cocoon sitemap is in /var/tomcat4/webapps/cocoon/sitemap.xmap
> > >
> > >   I have now installed apache 2.0.48 and enabled all modules.
> > >   It is in /usr/local/apache/
> > >
> > >   DocumentRoot for my website is in /usr/local/apache/domain.net/htdocs/
> > >
> > >   I can access tomcat by doing.
> > >   http://203.xxx.xxx.yyy:8180
> > >   and cocoon by doing
> > >   http://203.xxx.xxx.yyy:8180/cocoon
> > >   They are all working!
> > >   But I can't access http://203.122.59.60:8180/cocoon/domain.net !!!
> > >
> > > How do I configure this??
> > >
> > > Sitemap.xmap in entry /var/tomcat4/webapps/cocoon/sitemap.xmap under
> > > pipelines for domain.net is
> > >
> > > 
> > >  > > src="/usr/local/apache2/{1}.net/htdocs/sitemap.xmap" check-reload="yes"/>
> > >  
> > >
> > > This is my virtualhost configuration in apache.
> > > 
> > >
> > > 
> > > Options -Indexes
> > > order allow,deny
> > > allow from all
> > > 
> > >
> > > ServerAdmin [EMAIL PROTECTED]
> > > DocumentRoot /usr/local/apache2/domain.net/htdocs
> > > ServerName www.domain.net
> > > ServerAlias domain.net www.domain.net
> > > ErrorLog /usr/local/apache2/logs/error_log
> > > CustomLog /usr/local/apache2/logs/access_log combined
> > >
> > > 
> > > Order deny,allow
> > > Deny from all
> > > 
> > >
> > > #static content is served from apache
> > > #ProxyPass /media/ !
> > > #ProxyPass /stats/ !
> > > #ProxyPass /images/ !
> > > #ProxyPass /themes/images/ !
> > >
> > > #all the rest are passed to cocoon
> > > ProxyPass / http://203.xxx.xxx.yyy:8180/cocoon/domain.net/
> > > ProxyPassReverse / http://203.xxx.xxx.yyy:8180/cocoon/domain.net/
> > >
> > > ProxyErrorOverride On
> > >
> > > 
> > >
> > > regards,
> > > Krishna
> > >
> > > Krishna She

Re: flow javascript class variable

2003-12-17 Thread gounis



Upayavira

talking about flowscrip, what method do you use to work with flowscript 
and i'm talking about testin, debuging, .. etc

i think that its terrible to work without some tools just using an editor
thnx

--stavros


On Wed, 17 Dec 2003, Upayavira wrote:

> Stefan Dehnert wrote:
> 
> > Hi,
> > I try to programme some Objecs in javascript using the MVC pattern, 
> > but have no idea how to implement and use class  variables
> > in Flow javascript ( i tried it in several ways but got only local 
> > variables)
> > thanks for help 
> 
> The recommended way is to create Java classes for your business models, 
> and access them from flow. I've been doing this lately, and adding unit 
> tests to test my Java classes before I use them from flow, and finding 
> it an absolutely delightful way to work.
> 
> Regards, Upayavira
> 
> 
> 
> -
> 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: flow javascript class variable

2003-12-17 Thread gounis
On Wed, 17 Dec 2003, Upayavira wrote:

> [EMAIL PROTECTED] wrote:
> 
> >Upayavira
> >
> >talking about flowscrip, what method do you use to work with flowscript 
> >and i'm talking about testin, debuging, .. etc
> >
> >i think that its terrible to work without some tools just using an editor
> >thnx
> >  
> >
> For flowscript itself, I just use a text editor and a browser, and 
> print("") statements (that print to the servlet container console).
> 
> But my flowscripts are relatively simple, calling methods on Java classes.
> 
> Those Java classes I write within Eclipse. I also write unit tests 
> within Eclipse that call all of the methods that I use from Flow. That 


i have never try eclipse .. i use to run whole cocoon servlet in netBeans 
.. but in a 2.4 P4 laptop .. some time i need to wait more than a half 
minute to reach a break point

are things in eclipse better ?



> way, before I try to use the class from flow, I've seen the class work 
> when running and debugging my unit tests (at which point I've got access 
> to a full Java debugger). Also, running the test compiles the classes 
> into the WEB-INF/classes folder, so that when I restart my servlet 
> container, the classes are already there and waiting.
> 
> As to debugging flow, there is a flowscript debugger, but I don't really 
> use it. See this link for more info:
> 
> http://wiki.cocoondev.org/Wiki.jsp?page=DebugFlowScripts
> 
> Hope this helps.
> 
> Upayavira
> 
> >--stavros
> >
> >
> >On Wed, 17 Dec 2003, Upayavira wrote:
> >
> >  
> >
> >>Stefan Dehnert wrote:
> >>
> >>
> >>
> >>>Hi,
> >>>I try to programme some Objecs in javascript using the MVC pattern, 
> >>>but have no idea how to implement and use class  variables
> >>>in Flow javascript ( i tried it in several ways but got only local 
> >>>variables)
> >>>thanks for help 
> >>>  
> >>>
> >>The recommended way is to create Java classes for your business models, 
> >>and access them from flow. I've been doing this lately, and adding unit 
> >>tests to test my Java classes before I use them from flow, and finding 
> >>it an absolutely delightful way to work.
> >>
> >>Regards, Upayavira
> >>
> >>
> >>
> >>-
> >>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: How to write a file from cocoon

2003-12-18 Thread gounis



if you want to write this file in file system check sourceWrite 
transformer


--stavros


On Thu, 18 Dec 2003, Johan Kok wrote:

> Would like to know how to output a  file instead of  pushing the output 
> to a browser, e.g. XML or HTML
> 
> JK
> 
> 
> -
> 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 practice for delivering nested data to XSP ? (was: How to co nvert a hierarchical structure to xml in java?)

2003-12-18 Thread gounis

it's not the same but i have the need to create nestet xml elements with 
data from a data table 

the solution was to create a recursive function into my xsp

hope that this can help you to figure a solution 



http://apache.org/xsp"; 
xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
xmlns:xsp-request="http://apache.org/xsp/request/2.0";>
 
void getChilds(String parent_id, AttributesImpl xspAttr){
try{

hotpoints



select * from tblElements WHERE 
element_Parent=parent_id



   

parent_id = ;



getChilds(parent_id, xspAttr); 
 


 


done


  
}
catch (Exception e)
{
}
}   

  


String root_element =;
getChilds(root_element,xspAttr);







--stavros




On Thu, 18 Dec 2003 [EMAIL PROTECTED] wrote:

> Hi,
> 
> Maybe rephrasing the problem makes it clearer:
> 
> I'm building an XSP page that calls a Java Helper class which gets the data
> in a hierarchical form. What I'd like to know is: what's the best way of
> delivering the result to the calling XSP page without having to traverse the
> hierarchy twice.
> 
> Example:
> 
> class MyClass {
> public WhichDataType getData() {
> 
>   return result;
> }
> 
> When I would serialize the result data it could look like this:
> 
>   some id
>   
>   nameOfElement
>   someValue
>   
>   
>   anotherElement
>   
>   aSubElement
>   this Element's value
>   
>   
>   This could also be nested
>   just a simple value
>   
>   
> 
> 
> The "xml" above is not the data I get from the data source, I have to
> manipulate it to make it easier to process in Cocoon. If I do that I might
> as well use a datatype that I don't have to manually parse again in XSP to
> build the above structure using ?
> 
> Does anyone have ideas about the best way to handle this?
> 
> I've thought about putting everything in a long String, but I don't know how
> to parse the String in XSP to the corresponding XML.
> 
> Bye, Helma
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED] 
> > Sent: Thursday, 18 December 2003 16:43
> > To: [EMAIL PROTECTED]
> > Subject: How to convert a hierarchical structure to xml in java?
> > 
> > 
> > Hi,
> > 
> > I'm in the middle of building an XSP page that can retrieve 
> > information from
> > my CORBA-based server. I'm now writing a helper class in Java 
> > that can take
> > the output of the server and transform it into something I 
> > can easily manage
> > in the XSP page.
> > However, I'm stuck. The results are in a hierarchical 
> > structure based on
> > Vector and String or String[]. I want to manipulate this 
> > before returning it
> > to the XSP page, but I don't want to traverse the structure for the
> > manipulation and then once more in the XSP page to build the XML.
> > 
> > Can anyone help?
> > 
> > Bye, Helma
> > 
> > -
> > 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: Cocoon/Tomcat failed to access localhost:8080/cocoon

2003-12-19 Thread gounis

try to put in tomcat's common/endorsed 
new libs from your cocoon instance (removing existings)


thats the main reason cocoon dont wor my k on tomcat

--stavros



On Fri, 19 Dec 2003, Budi Mulyono wrote:

> Hi All
> 
> I am a newbie trying to get cocoon work for the 1st time.
> 
> I have the following problem for Tomcat 4.1.8 and Cocoon 2.0.4 binary
> running on windows 2000 sp4 pro
> using jdk 1.3.0_02
> 
> Attached is the log file from web-inf/log of cocoon.
> 
> What I did was to copy the cocoon.war into the webapps directory
> and start tomcat.
> 
> I got the following error when trying to access http://localhost:8080/cocoon   
> 
> type fatal
> message Exception during processing of jar:file:/C:/Program Files/Apache 
> Group/Tomcat 
> 4.1/webapps/cocoon/WEB-INF/lib/cocoon-2.0.4.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl
> 
> description org.apache.cocoon.ProcessingException: Exception during processing of 
> jar:file:/C:/Program Files/Apache Group/Tomcat 
> 4.1/webapps/cocoon/WEB-INF/lib/cocoon-2.0.4.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl:
>  java.lang.ClassCastException: org.apache.xpath.functions.FuncContains
> 
> sender org.apache.cocoon.servlet.CocoonServlet
> 
> source Cocoon servlet
> 
> Could someone enlightened me please?
> 
> Thank you very much :)
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.552 / Virus Database: 344 - Release Date: 12/15/2003
> 
> Notice : 
> The ECS url has been changed. It is http://www.ecs.com.sg  E-mail addresses of staff 
> take the 
> following format, [EMAIL PROTECTED] While you will still be able to reach the 
> intended recipient 
> using the old e-mail address, you are advised to update your records to the new 
> format.
> 
> Disclaimer Clause :
> The information in this e-mail (including attachments) is confidential and is only 
> intended 
> for use by the addressee. If you are not the intended recipient or addressee, please 
> notify 
> us immediately. Any unauthorised disclosure, use or dissemination either in whole or 
> in part 
> is prohibited. Opinions, conclusions and other information contained in this message 
> are 
> personal opinions of the sender and do not necessarily represent the views of ECS. 
> 


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



output escaping in xslt transformation

2003-12-25 Thread gounis

hi people
(i know that this is a most xslt related question but maybe the people 
here have a answer)

i use the classic template match:








to copy all the elements i dont want to transform. in the final step of my 
transformation i get xhtml content serialized as html. the problem is that 
this copy method generate html code with all my greek characters escaped.
I dont know how to to disable output escaping in this method. 

note: 
in my sub sitemap i have set html serializer encoding to iso-8859-7 
(greek). when i comment this then i get my html output without escaped 
characters but in utf encoding something i want to avoid.


any hint?


thx

--stavros



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



last cvs build failed

2003-12-27 Thread gounis
hi people

the last cvs [27.12.2003] build failed with the message:

Processing: 
C:\Repository\cocoon-2.1\src\blocks\woody\conf\woody-target.xlog
Writing: C:\Repository\cocoon-2.1\build\webapp\WEB-INF\logkit.xconf
Processing: 
C:\Repository\cocoon-2.1\src\blocks\hsqldb\conf\hsql.driver.xweb
Error in: C:\Repository\cocoon-2.1\src\blocks\slide\conf\slide-auth.xweb

BUILD FAILED
C:\Repository\cocoon-2.1\tools\targets\webapp-build.xml:70: Following 
error occu
red while executing this line
C:\Repository\cocoon-2.1\build\cocoon-2.1.4-dev\temp\blocks-build.xml:8611: 
IOEx
ception: java.io.IOException: XPath (mime-mapping[position() = last()]) 
returned
 not one node, but 43 nodes

Total time: 6 minutes 12 seconds

platform:
winxp
java 1.4


--stavros



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



wiki page : WyonaXopusEditor

2004-01-08 Thread gounis
hi 

i thing that something wrong is happen here.

--stavros


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



Re: Html issue

2004-01-08 Thread gounis


you dont give information of your transofrmations (xslt) so i can not help 
you a lot but some hints

1. use xml serialization for your support/beya-menu
2. check your support/beya-menu match direclty from your browser to see if 
the output is what you expect
3. create your  ... xml fragment using xml serialization for 
all parts and transform this fragment to html.

note:
check othello sample in cocoon scratchpad area to see a similar aproach


--stavros


On Thu, 8 Jan 2004, beyaRecords - The home Urban music wrote:

> Hi,
> I have a pipe line that does some aggregation:
> 
>   
>   
>   
>   
>   
>   
> 
> The line of issue is , for 
> which the code is:
> 
>   
>   
>   
>   
>   
>   
> 
> The xsp code is:
> 
> 
> 
>   
>   
>   
>href="/temp/home">menu item 
> 1
>   
>   
>href="/temp/home">menu item 
> 2
>   
>   
>   
> 
> 
> 
> 
> What is happening at the moment is that the html between the menu tags 
> is being stripped and only menu item 1 and 2 are being written to the 
> screen, when in fact I want the integrity of the html kept intact so 
> that when written to the screen the links are available to be clicked. 
> Could someone please inform me how to do this?
> 
> 
> regards
> 
> 
> Uzo
> 
> 
> -
> 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]



IE's xml2xml.xsl stylesheet

2004-01-09 Thread gounis
hi 

when you try to view a xml file using IE without assign a custom xsl to 
this xml file 
thn IE generate a node view of the xml file giving the expand colapse 
ability. i think that IE use an internal .xsl file to do this.

know anyone where this .xsl can be found, or is out there any .xsl file 
tha do somenthing similar, or maybe exist something like this in cocoon 
distribution?

what i want to do is just to display the xml content of an xml fragment in 
a html page.


thnx 

--stavros



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



WrappedRuntimeException

2004-01-12 Thread gounis

hi people 

after a system update i can not run cocoon.204 on tomcat 4.1.24

id dont have make any change in my .xml files or my sitemaps but i get the 
follow error:

type fatal

message Failed to execute pipeline.

description org.apache.cocoon.ProcessingException: Failed to execute 
pipeline.: org.apache.xml.utils.WrappedRuntimeException: The output format 
must have a '{http://xml.apache.org/xalan}content-handler' property!


the only new in my new setup is java from 1.4.1_01 to 1.4.2_03

i can not find a start point to begin a troubleshooting 


any help will be welcome 


thnx 


-stavros



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



Re: project directory in

2004-01-13 Thread gounis

i use  using relative file system path to the .xsl where the 
 is without any problem

--stavros


On Tue, 13 Jan 2004, Joerg Heinicke wrote:

> On 13.01.2004 02:16, Mark Lundquist wrote:
> > Hi all,
> > 
> > I need to include a stylesheet using , and I would very 
> > much like to be able to locate the included stylesheet relative to my 
> > Cocoon project directory.  Is there a way to do that?
> 
> There is using the Cocoon protocols cocoon:/ (access two a pipeline in 
> current sitemap using one slash or root sitemap using two slashes) or 
> context:// (on filesystem relative to webapp context).
> 
> Joerg
> 
> 
> -
> 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: Why can't I put html tags in message catalogs?

2004-01-14 Thread gounis

i think that you mas change your approach, give a solution to your problem 
geting just text from message catalogs and use .xsl for presentation 
format

--stavros


On Tue, 13 Jan 2004, Fraser, Diane wrote:

> Hi,
> 
> This doesn't work:
> 
> Copyright  color="#FF">1996-2004 Any Corporation. All Rights 
> Reserved.
> 
> I get the error, "Unable to locate resource: messages (key [messages])"
> (with the long stacktrace below).
> 
> Diane
> 
> -Original Message-
> From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 13, 2004 3:54 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Why can't I put html tags in message catalogs?
> 
> 
> The i18n transformer shall be mixed content aware, i.e. you *can* put 
> *XML* content in it. But you put the tags in text form in it, not as 
> XML. The error is the try to escape the quotes via back slash. You must 
> simply write them as they are. This should work:
> 
> Copyright  color="#FF">1996-2004 Any Corporation. All Rights 
> Reserved.
> 
> Joerg
> 
> On 14.01.2004 00:10, Fraser, Diane wrote:
> 
> > Hi,
> > 
> > I want to put html formatting tags in my localized message catalogs
> > but cocoon throws an internal server error when I do (stacktrace below).
> > The error message is "Unable to locate resource: messages (key
> [messages])".
> > If I expand the < and > to &<; and &>; I no longer get the server error,
> but
> > the tags are displayed in the browser.
> > I am using cocoon-2.1.2, tomcat-4.1.18 and j2sdk1.4.1_02 on Windows
> > 2000.
> > 
> > An example of my message catalog file follows:
> > 
> > 
> > 
> > Copyright  > color=\"#FF\">1996-2004 Any Corporation. All Rights
> > Reserved.
> > 
> > 
> > and I also tried:
> > Copyright  > color="#FF">1996-2004  Xerox Corporation.
> All
> > Rights Reserved.
> > 
> > I really need this capability; any thoughts?
> > 
> > Thank you,
> > Diane Fraser
> 
> 
> -
> 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 Lost between Tomcat and Cocoon

2004-01-14 Thread gounis


hi

we loose session information only because mod_proxy (to use apache at 
front), so i think that the problem is not between tomcat - cocoon but in 
connection with apache

i have post a similar message some time ago and the only solution was to 
use cookies to store information instead of session.

--stavros


On Wed, 14 Jan 2004, Markus Heussen wrote:

> MessageHi Jay,
> 
> maybe we have the same problem. Actually till now we did not assume that
> Cocoon could be the problem but maybe it is. We use Tomcat 4.1.28, Cocoon
> 2.0.3, Sun JDK 1.3.1_07b, Windows 2K Server, Apache 1.3 with mod_jk1 in
> front to load balance.
> 
> Our application stores all form values of the user in session attributes of
> type string and two axis soap responses in a dom session using
> read/writeDOMsessionTransformer. We have two complex matchers in our
> pipeline. At first we check if there is a valid session using the
> session-isvalid action before anything else will be processed. So there must
> be a valid session otherwise the user cannot access the page.
> 
> The page itselfs starts with a xsp generator using the xsp-session
> logicsheet to get the session attribute values. Sometimes it occures that
> session attributes are lost. The problem occurs even at times there is no
> load on our page.
> 
> We send a post to the tomcat users list but anybody seems to have the same
> problems. Can anyone give us a hint?
> 
> Markus
>   -Ursprungliche Nachricht-
>   Von: Jay
>   Gesendet: Dienstag, 13. Januar 2004 23:34
>   An: [EMAIL PROTECTED]
>   Betreff: Session Lost between Tomcat and Cocoon
> 
> 
>   Versions being used:Tomcat 4.0.6, Cocoon 2.1.3, Sun JDK 1.4.2_02,
> Linux Gentoo 1.4
> 
>   Our basic problem is that our application, which is run on Tomcat (just a
> collection of .jsp files mostly) calls Cocoon (via a call to
> http://ipaddress:/reportx.pdf) to generate .pdf reports. But once that
> happens, the session information is lost. Specifically, you still have a
> session, but with a different session id than before (and all of the
> previously saved information is gone).
> 
>   So it appears the the session is now overridden by Cocoon. So is there a
> way to configure Cocoon to not do so?
> 
>   We also tried running Cocoon under a separate JVM but got the same
> results. You must refresh the app at this point because it no lost all
> information stored about itself.
> 
>   Thanks,
> 
>   Jay
> 
> 
> 


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



Re: [OT] Re: I'm searching for good tutorial about creating XSP logicsheets

2004-01-14 Thread gounis
On Wed, 14 Jan 2004, rufio wrote:

> on Wed, 14 Jan 2004 12:13:42 -0500 Christopher Painter-Wakefield
> <[EMAIL PROTECTED]> wrote:
> 
> > 
> > |-+-->
> > | |   "Hubert Trzewik|
> > | |   \(Prosystel\)" |
> > | |   <[EMAIL PROTECTED]|
> > | |   tel.com.pl>|
> > | |  |
> > | |   01/14/2004 12:04 PM|
> > | |   Please respond to users|
> > | |  |
> > |-+-->
> >   >--
> >   >|
> >   |   
> > |
> >   |   To:   <[EMAIL PROTECTED]> 
> > |
> >   |   cc: 
> > |
> >   |   Subject:  I'm searching for good tutorial about creating XSP
> >   logicsheets   |
> >   >--
> >   >|
> 
> will you stop sending this junk?


we dont need to be so aggresive, maybe it's not Christofer's choice this 
part of message because the "Please respond to users"..

--stavros

> 
> Regards, Rufio
> 


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



CVS - linotype example error

2004-01-14 Thread gounis
hi people

in last cvs (today)

linotype sample give the folow error msg

 did not send a response, at 
file:/C:/Repository/cocoon-2.1/build/webapp/samples/linotype/sitemap.xmap:213:31

when try to get private/news

playing with that i have found that 

from pipeline:








function main is called but everything stop in login function in


function login(){
..
..
cocoon.sendPageAndWait("screen/login", { username : name, userError : userError, 
passError : passError});

{a print("ooo") here never executed}
..
..

}


sorry but i can not go further  (pure flowscript knowledge)


any hint?

--stavros



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



Re: HTML Editor for Woody

2004-01-19 Thread gounis
On Mon, 19 Jan 2004, Patrick Hess wrote:

> 
> Hi,
> 
> I've spend the last 2 hours in integrating the HTMLArea (the free
> customizable online editor, http://dynarch.com/htmlarea/) into my 
> project which worked pretty smooth compared with my tests yesterday with 
> midas from the Mozilla project (or even worse: the typo3 RTE editor...)
> 
> In my company we've integrated eWebEditPro from ektron which is quite 
> powerful but costs nearly $300 per year/10 users... :-((( I need 
> something free and HTMLArea seems to be a good replacement as it is 
> released under a BSD-style license and works under Internet Explorer 5.5 
> or better for Windows and Mozilla 1.3 or better (any platform).
> 
> As you can see (http://microbic.de/dav/htdocs/htmlarea/htmlarea2.gif) 
> integration in Woody was quite successful and I wonder if someone is 
> also looking for such thing. I prepared a small demo based on the 
> "registration" example 
> (http://microbic.de/dav/htdocs/htmlarea/htmlarea.gif) which can be 
> tested here: http://microbic.de/dav/htdocs/htmlarea/htmlarea2.zip
> 
> Don't expect to much as it is a proove of concept and change 
>  in
> woody-field-styling.xsl to the right path inside your cocoon app.
> Sample is available under http://youhost/yourapp/htmlarea/.
> 
> I still have one problem left:
> 
> In my current project 
> (http://microbic.de/dav/htdocs/htmlarea/htmlarea2.gif) I'm using the 
> woody binding for my article show in the screenshot. Basic problem is 
> (independent from the html editor) that using any XML markup is 
> converted to  so that my XML looks like this after saving:
> 
> ...
> 
>   hello world
> 
> ...
> 
> when I would like to have:
> 
> ...
> 
>   hello world
> 
> ...

i'm not sure for that but if you try to convert html code to xhtml using 
html generator and Jtidy. in a work in progress example i post the html 
content from a text area to a pipeline and save it as .xml (xhtml) in 
filesystem without escaped characters. i'll publish this soon as part of 
othello sample in scratchpad

btw your htmlarea idea to replace my plain textarea is very interesting

--stavros

> 
> For the HTML editor this seems to be perfectly alright because editing 
> such a file (as 1st example) is ok! So might need to escape the tags 
> again when preparing the form after solving my current problem. Is there 
> a solution available?
> 
> Thanks for reading,
>Patrick
> 
> 
> 
> 
> 
> -
> 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: HTML Editor for Woody

2004-01-19 Thread gounis
On Mon, 19 Jan 2004, Upayavira wrote:

> Patrick Hess wrote:
> 
> >
> > Hi,
> >
> > I've spend the last 2 hours in integrating the HTMLArea (the free
> > customizable online editor, http://dynarch.com/htmlarea/) into my 
> > project which worked pretty smooth compared with my tests yesterday 
> > with midas from the Mozilla project (or even worse: the typo3 RTE 
> > editor...)
> >
> > In my company we've integrated eWebEditPro from ektron which is quite 
> > powerful but costs nearly $300 per year/10 users... :-((( I need 
> > something free and HTMLArea seems to be a good replacement as it is 
> > released under a BSD-style license and works under Internet Explorer 
> > 5.5 or better for Windows and Mozilla 1.3 or better (any platform).
> 
> Have you looked at Linotype? It is in the Cocoon Linotype block, and has 
> a client side Javascript editor built in. Stefano wrote it, and it has 
> been suggested that this should be made into a Woody widget. If you were 
> able to create a Woody widget of the Linotype editor, I'm sure you'd 
> make lots of people happy, as it fits into bigger plans that exist for 
> Cocoon (editor in front of repository, allowing a powerful content 
> management framework...)

this javascript editor support IE or not yet ?
btw linotype sample does not work for a long time

--stavros

> 
> I'm afraid I'm too new to Woody to be able to help you with your binding 
> problem. I'm sure someone else here can help.
> 
> Regards, Upayavira
> 
> >
> > As you can see (http://microbic.de/dav/htdocs/htmlarea/htmlarea2.gif) 
> > integration in Woody was quite successful and I wonder if someone is 
> > also looking for such thing. I prepared a small demo based on the 
> > "registration" example 
> > (http://microbic.de/dav/htdocs/htmlarea/htmlarea.gif) which can be 
> > tested here: http://microbic.de/dav/htdocs/htmlarea/htmlarea2.zip
> >
> > Don't expect to much as it is a proove of concept and change 
> >  in
> > woody-field-styling.xsl to the right path inside your cocoon app.
> > Sample is available under http://youhost/yourapp/htmlarea/.
> >
> > I still have one problem left:
> >
> > In my current project 
> > (http://microbic.de/dav/htdocs/htmlarea/htmlarea2.gif) I'm using the 
> > woody binding for my article show in the screenshot. Basic problem is 
> > (independent from the html editor) that using any XML markup is 
> > converted to  so that my XML looks like this after saving:
> >
> > ...
> >
> > hello world
> >
> > ...
> >
> > when I would like to have:
> >
> > ...
> >
> > hello world
> >
> > ...
> >
> > For the HTML editor this seems to be perfectly alright because editing 
> > such a file (as 1st example) is ok! So might need to escape the tags 
> > again when preparing the form after solving my current problem. Is 
> > there a solution available?
> >
> > Thanks for reading,
> >   Patrick
> >
> >
> >
> >
> >
> > -
> > 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: Passing parameter from sitemap

2004-01-20 Thread gounis
On Tue, 20 Jan 2004, Dmitry Diskin wrote:

> Hi,
> 
> I'm looking for a way to pass some constant parameter from sitemap to 
> all my xsl styles. Basically I need to replace multiple occurences (bad 
> design! not mine :)) of "(c) 2001-2003" to something like "(c) 
> 2001-${currentyear}", where "currentyear" will be defined in single 
> place (sitemap, sub-sutemap?).
> 
in sitemap
...





...


in .xsl

http://www.w3.org/1999/XSL/Transform";>




..
..
 

--stavros


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



Best practice - use db xmldb of or file system for simple xml (xhtml) documents

2004-01-20 Thread gounis
i just copy from Marcin's mail

> But coming to character escaping. I'm not sure what you exactly do, but 
> I store the article in relational DB (HSQLDB) and use ESQL logic sheet 
> to take it out of there. And what I had to do, to was to use 
>  instead of  (hopefully HTMLArea 
> produces XHMLT).
> 

so the question here is:
if i want to store xml (xhtml) document (or fragment) the best way is to 
use a relational db system, xml db system or just the file system

there is no need for xpath queries, just to get tha xml content or same it 
back

i think that for simplicity reasons filesystem win points, but i dont know 
about performance issues..



--stavros


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



Re: HTML Editor for Woody

2004-01-20 Thread gounis

is it possible to include a sample that use htmlarea in cocoon 
distribution. Are they licence problems or not ?

--stavros 

On Tue, 20 Jan 2004, Marcin Okraszewski wrote:

> I'm also using HTMLArea in project, and it works fine. I had problems 
> with freezing when I used tabbed group styling (I have multilanguage 
> articles), but version from CVS is fine.
> 
> But coming to character escaping. I'm not sure what you exactly do, but 
> I store the article in relational DB (HSQLDB) and use ESQL logic sheet 
> to take it out of there. And what I had to do, to was to use 
>  instead of  (hopefully HTMLArea 
> produces XHMLT).
> 
> As you probably write the content directly to XML, maybe you should also 
> first parse the input and than add the node set instead of string ?
> 
> I hope I helped in some way.
> 
> Regards,
> Marcin Okraszewski
> 
> > In my current project 
> > (http://microbic.de/dav/htdocs/htmlarea/htmlarea2.gif) I'm using the 
> > woody binding for my article show in the screenshot. Basic problem is 
> > (independent from the html editor) that using any XML markup is 
> > converted to  so that my XML looks like this after saving:
> > 
> > ...
> >
> > hello world
> >
> > ...
> > 
> > when I would like to have:
> > 
> > ...
> >
> > hello world
> >
> > ...
> 
> 
> -
> 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 make back button on woody form (flow)?

2004-01-21 Thread gounis

maybe a button tha call javascript history function?

--stavros

On Wed, 21 Jan 2004, Hubert Trzewik (Prosystel) wrote:

> How to make back button on woody form (flow)?
> Can I define any widget for that?
> --
> Hubert Trzewik
> Prosystel Sp. z o.o.
> [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]



map:part create a root element

2004-01-22 Thread gounis

hi people 

i need to aggregate xml from 3 xml fragments

in map:aggregate i create a root element (element="site")

what i need is to create a root (parent) element for each map:part 

something like 







so the result from this aggregation be like



..


..


..




is something like this already implemented?
is it possible to hach cocoon code in my webapp to add element attribute 
in map:part (any hint where i have to look for?)

thnx

--stavros


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



Re: Licensing options on cocoon extensions

2004-01-22 Thread gounis
On Thu, 22 Jan 2004, Oleg Dulin wrote:

> As far as I understand, you can pick whatever license you want as long as
> you don't redistribute Cocoon classes under a non-Apache license.
>
> Oleg

a good license issue !!!

is it possible to be commercial a product based on cocoon?
or every cocoon based product MUST be opensource

for example we need to develop a solutin for one customer. this customer 
do not want this product to be open source or free to use

we have to do with licences confict here?

what other people do when develop something for a customer?


--stavros

> 
> > Hi
> >
> > Pardon me if this is not the right forum for my question.
> >
> > As part of a school project I have developed an extension to Cocoon
> > that wraps a circuit simulator in a cocoon pipeline. I have subclassed
> > some of cocoons abstact classes to do this. I'm currently thinking of
> > opensourcing the system, but not being to familiar with opensource
> > licenses and the Apache License I am not sure what licensing
> > possibillities I have. I would be happy if sombody could give me some
> > poniters on this.
> >
> > regards
> > Johannes
> > Electronics student and Cocoon fan
> >
> >
> > - 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: How to convert HTML fragment to XHTML fragment - something like JTidy?

2004-01-26 Thread gounis


why u dont use jdity and then grab only the content of the body element?

--stavros
On Sun, 25 Jan 2004, Marcin Okraszewski wrote:

> Hi,
> I want to convert HTML document fragment to XHTML fragment. I tried with 
> JTidy, but it seems to work only with full HTML document, while I need 
> only a fragment, like "this is example of fragment".
> 
> Is there anything like JTidy to tidy only fragments? Or maybe is there 
> any way to tidy fragments with JTidy (well, maybe without wrapping 
> fragment with  and than striping it) ?
> 
> Regards,
> Marcin Okraszewski
> 
> 
> -
> 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: [module] how to get cookie?

2004-01-27 Thread gounis


using a custom action tha will read the cookie value and return it in 
sitemap 

--stavros


On Tue, 27 Jan 2004, Laurent Trillaud wrote:

> Hi all
> How can I get a cookie value with input module in a sitemap.
> The only stuff I found is
> 
> or
> 
> but it return me java object, and I can't specify any cookie name!!!
> Any idea?
> Laurent Trillaud
> 
> 
> -
> 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]



build targets

2004-01-28 Thread gounis
hi 

are somewhere (in any file in cocoon distribution) all available build 
targets 

build
build war ?? 
build ??



thanx 

--stavros


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



cookie input module

2004-01-28 Thread gounis
hi

is anyone working on a cookie module just like the way request parameter 
module work?


--stavros


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



RE: [module] how to get cookie?

2004-01-29 Thread gounis
what cocoon version  R U  using ?

i can not find a cookie input module 

or its part of request module ?



On Thu, 29 Jan 2004, Laurent Trillaud wrote:

> OK, I got it. It's just JXPath syntax.
> {request:cookieMap/MyCookie/value} return the string.
> Thanks to Sylvain Wallez for his help.
> Laurent Trillaud
> 
> > My dream is becoming reality
> > The {request:cookieMap/name} return me just an object instead of the full
> > map with {request:cookieMap} (hope it's the good one)
> > The only thing I need now is to cast object into String.
> > Laurent
> > 
> > > Huummm. I'am already in an action.
> > > The real deal is to give parameter to the auth-login action
> > > 
> > >   
> > >   
> > >   
> > >   
> > > 
> > > I'am looking for something like
> > >   
> > > with of course name a regular cookie
> > > Laurent
> > >
> > > > using a custom action tha will read the cookie value and return it in
> > > > sitemap
> 
> 
> -
> 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: multiple match in the sitemap

2004-01-29 Thread gounis

using regexp as matching method?

--stavros
On Thu, 29 Jan 2004, Nicolas Toper wrote:

> I"ve tried it but never manager to make it working...
> Le Jeudi 29 Janvier 2004 16:14, Lionel Crine a ιcrit :
> > Hi all,
> >
> > I'm trying to write this :
> >
> > 
> > 
> >
> > but it's not working.
> >
> > Is it possible ?
> >
> > Lionel CRINE
> > Ingιnieur Systθmes documentaires
> > Sociιtι : 4DConcept
> > 22 rue Etienne de Jouy 78353 JOUY EN JOSAS
> > Tel : 01.34.58.70.70 Fax : 01.39.58.70.70
> >
> >
> > -
> > 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: A notebook for Cocoon development

2004-02-07 Thread gounis
On Tue, 3 Feb 2004, John L. Webber wrote:

> Hi Mirko,
> 
> That'll probably work, but I'd advise going to at least 256 MB if 
> possible. I updated my old Celeron 433 notebook running SuSE 8.2 from 64 
> MB to 256 MB and it made a huge difference.

R U kiding?

i'm using a 2.4 P4 with 512MB laptop and some times i have to restart 
tomcat, because a request is never completed!!!

:-)

but all this in a winXP 

--stavros


> 
> mirko wrote:
> 
> > Hi,
> > I just need a notebook that will be sufficient to make my work in 
> > Cocoon (besides of my primary desktop computer) when I'm outside 
> > (spring is comming :) ).
> > Will a PIII 500, 128MB notebook be OK for this?
> >
> >
> 
> 


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



Re: Sentiment and gratitude to all Cocoon developers

2004-02-07 Thread gounis
On Tue, 3 Feb 2004, Alfredas Chmieliauskas (junior) wrote:

> 
> Hi, everyone!
> 
> I just wanted to share my sentiment and express my gratitude to all Cocoon
> developers for a wonderful piece of technology!
> The first site (w/ content management system) I built on Cocoon has (as of
> today) been running Cocoon 1.x for 3 years: the document load has since
> increased 50 times (!); the number of users has increased at least twice. And to
> my surprise there hasn't been a single breakdown or any kind of technological
> problem related to stability or increased usage for those three years. 
> 
> Thanks a lot and keep up the good work!
> 
> Alfredas Chmieliauskas  
> 
> PS. the site is at http://www.sseriga.edu.lv

great

just a question:
how do you have implement the searching ?


--stavros

> 
> --
> Stockholm School of Economics
> phone: +46735739889
> email: [EMAIL PROTECTED]
> 
> 
> 


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



aggregate files that match in a request

2004-02-11 Thread gounis

hi people 

i just want to ask if it's posible to aggregate 
an (unknown) number of .xml files that match in a request

for example all the .xmls that are in a specific folder
or all files that match /content/*.xml


any hint?

--stavros



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



Re: aggregate files that match in a request

2004-02-11 Thread gounis
On Wed, 11 Feb 2004, Jan Hoskens wrote:

> You can get a filelist through the directory generator, then apply an
> xsl-stylesheet to create cinclude or xinclude tags and then apply the
> transformer for that include:
> 
> 1) generate your filelist by directory generator
> 2) apply xsl that creates something like  or
> xinclude elements
> 3) map:transform type="cinclude" or "xinclude"
> 
> Got it? (if not, just say so:), see cocoon docs/wiki for more info!)
> 
> So that's a yes;-)
> 
> Greetz,
> Jan
> 

GREAT, GREAT

an other one time that u have just to keep jour think simple
thnx

--stavros
> 
> - Original Message - 
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, February 11, 2004 9:14 AM
> Subject: aggregate files that match in a request
> 
> 
> >
> > hi people
> >
> > i just want to ask if it's posible to aggregate
> > an (unknown) number of .xml files that match in a request
> >
> > for example all the .xmls that are in a specific folder
> > or all files that match /content/*.xml
> >
> >
> > any hint?
> >
> > --stavros
> >
> >
> >
> > -
> > 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: How can I make IE display html in auto encoding utf-8?

2004-02-12 Thread gounis
we have to setup the default encoding in our web server (apache)
to be set the encoding of ie automaticly

i dont know if this is the only somlution,but it's work

--stavros 



On Wed, 11 Feb 2004, [gb2312] »Ζ Ί£Ά¬ wrote:

> Hi,all:
> I want to use Chinese chacter in the page and don't want it to be encoded as 
> someting like ⌗.
> So I change configurations in web.xml:
>
>container-encoding
>utf-8
>
>
>form-encoding
>utf-8
>
> and I also change HTMLSerializer config in root sitemap.
>  name="html" pool-grow="4" pool-max="32" pool-min="4"
> src="org.apache.cocoon.serialization.HTMLSerializer"> 
> utf-8
> 
> Now I can see Chinese in the page,but IE still auto encode it with iso-8859-1,
> I must change the encoding to "unicode" manully.How can I make IE auto select
> encoding in "unicode"?
> the html generated list here:
> 
> 
> 
> Thanks in advance.
>  
> roy huang
> guangzhou guangdong China.
> [EMAIL PROTECTED] or [EMAIL PROTECTED]  
> 
> __
> ΚΉΣΓ MSN Messenger ΣλΑ?»ϊ΅ΔΕσΣΡ½ψΠΠ½»Αχ 
> - 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: IE explorer problem

2004-02-17 Thread gounis

they arre 2 issues when IE display just a blank page (if you look for 
source, u can notice that the code is there) 

1. check the encoding 
2. check for script tags
if script tag adn like  then you have (IE6 
problem) change it tou 

--stavros

On Mon, 16 Feb 2004, Nicolas Toper wrote:

> It's an HTML/XHTML problem. see wiki on HTML Serializer (and/or encoding 
> problem)
> Le Lundi 16 Fιvrier 2004 11:24, Andrey Almirov a ιcrit :
> > Hello All!
> >
> > 1. I have problem with using Cocoon 2.1-M1.
> >
> > I have the pipeline login.
> >
> > 
> >  
> >   
> >   
> >  
> > 
> >
> > After success login it redirects to choose project pipeline which is
> > similar to login.
> >
> > redirector.redirect(true,REDIRECT_PAGE);
> >
> > All works fine, but when I use IE 6 after login IE shows just empty
> > screen. If one looks to source code -- all is fine (source code is
> > fine). If you press Refresh  the page is renders fine.
> >
> > This is doing in IE 6 only.
> >
> > 2. The second problem is that some time IE shows the message: "Internet
> > Explorer cannot open the site ... Operation aborted"
> >
> > When I press Refresh --- all is fine.
> >
> > The main strangeness of this problem is that it happens in IE 6 only.
> > In IE 5 all is fine.
> >
> > Does anybody help me?
> >
> > Thanks in advance.
> >
> > Configuration.
> >
> > Cocoon 2.1-M1, Tomcat 4.1.24, JDK 1.4, Winfows 2000 Prof.
> >
> >
> > Andrey  mailto:[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: Sendmail.xsp and whitespace gives error ?

2004-02-17 Thread gounis


there is a problem in stylesheet (xsls)
i have notice this probelmm some months ago and was discussed here, i 
have try to make some modification to xsls but they are too complex for me

ps 
you can cet up your xmlSpy to not split line for specific elements


--stavros
On Tue, 17 Feb 2004, Stefan Geelen wrote:

> Hi,
> 
> following sendmail action (partially reproduced) runs fine:
> 
> 
>   request.get("from")
> ...
> 
> ==> Note that you should read the  as one line (in case your mail 
> program wraps it).
> 
> Now, with following an Lanaguage Expeption is generated:
> 
> 
>   
> request.get("from")
>   
> ..
> 
> Note that the sendmail:from is now split over 3 lines.
> 
> The error I get is :
> 
>  org.apache.cocoon.ProcessingException: Language Exception: 
> org.apache.cocoon.components.language.LanguageException: Error compiling 
> update_announcement_list_xsp: ERROR 1 
> (org\apache\cocoon\www\xmlmill\xsp\update_announcement_list_xsp.java): .. 
> _sendmail_mms.setFrom(String.valueOf( "" // start error (lines 545-545) "String 
> literal is not properly closed by a double-quote" + " // end error " + ... Line 545, 
> column 0: String literal is not properly closed by a double-quote 
> 
> This is quite annoying as xmlSpy will automatically split these lines each time I 
> open this .xsp file.
> 
> What I want to know: Is this normal Cocoon behavior and/or is there a simple way to 
> solve this problem ?
> 
> Regards,
> 
> Stefan
> 
> 
> 
> 
> 


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



Re: having fun with wiki ?

2004-02-24 Thread gounis


try this :

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

it's working 


--stavros

On 22 Feb 2004, [ISO-8859-1] Stιphane Delort wrote:

> Hello,
> 
> As I'm trying to understand how to run actions, I had a look at this
> wiki page :
> http://wiki.cocoondev.org/Wiki.jsp?page=FileUploadWithAction
> 
> Once I downloaded the file attached I had the surprise to discover that
> the .jsp was in fact a .jpeg :
> 
> $file cnoteDetails.jsp 
> cnoteDetails.jsp: JPEG image data, JFIF standard 1.01
> 
> If there was originally a real interesting .jsp file that have been
> replaced please, upload it and remove this winter's image.
> 
> Thanks,
> Stephane
> 
> 
> -
> 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: Is there a sitemap DTD?

2004-02-25 Thread gounis
On 25 Feb 2004, Martin Holz wrote:

> Hello Jim,
> 
> "Jim Bloggs" <[EMAIL PROTECTED]> writes:
> 
> > Where can I find the sitemap DTD for cocoon 2.1.3, please. I have been
> > looking everywhere for it, including google. I could have sworn I saw it
> > somewhere in passing, but now I can't find it again. Is there such a
> > thing?
> 
> There is a Relax NG schema for the sitemap at 
> ./src/webapp/WEB-INF/entities/sitemap-v06.rng.
> If you find a DTD, it is probably out of date
> and not powerful enough to be really useful.
i have make a try to use sitemap schema (xsd) but was out of date (in xml 
spy)

is it possible to use RelaxNG schema in xml spy?


--stavros

> 
> Martin
> 
> --
> Martin Holz <[EMAIL PROTECTED]>
> 
> Softwareentwicklung / Vernetztes Studium - Chemie
> FIZ CHEMIE Berlin
> Franklinstrasse 11
> D-10587 Berlin 
> 
> 
> 
> 
> -
> 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: Newbie's question: skills required?

2004-02-25 Thread gounis

sure .

--stavros

On Wed, 25 Feb 2004, Matthias Fischer wrote:

> Hi,
> 
> is it possible to run a Cocoon server without having any knowledge in
> Java propgramming, or is it necessesary to be an expert to do this?
> 
> Matthias Fischer
> 
> 
> -
> 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]



ESQL update and select statements in the same map:match problem

2004-02-25 Thread gounis

hi people

i have the folow code :






where i call 2 .xsp 

1. update_point.xsp
where i update a record in my database

2. get_point.xsp
where i get the updated record

the problem is that this aggregation update the database record (i have 
check the content) but generate output (get_point) with the before update 
values

is this a caching mechanism case, is it possible to bypass this problem or 
it's just a bug?


--stavros




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



Re: ESQL update and select statements in the same map:match problem

2004-02-25 Thread gounis

this is what i try to do:






   
  












i use the same pipeline to retrieve and update my data

this match just check if updated data are posted, and if yes call an 
update xsp and then ask for content from db

othewise just ask for content from db

the problem is that when updated data are posted exec.update_point (that 
call an xsp, put the data in db) but exec.design dont get the updated data

what i'm trying to do is to have one form to view and update 

any hint?

--stavros


On Wed, 25 Feb 2004, Christopher Painter-Wakefield wrote:

> 
> 
> 
> 
> I don't know anything about the internal workings of the map:aggregate, but
> I would guess it is not waiting for the first part to complete before
> opening a connection for the second part.  This would make sense, for
> performance reasons, and there is no particular reason for cocoon to expect
> the parts to be dependent on each other.  So I don't think it is
> necessarily a bug, nor a caching mechanism, just that map:aggregate doesn't
> imply sequential processing.
> 
> Just curious, should the map:aggregate have an "element" attribute
> specifying the root element for the combined output?  Also, what does
> "strip-root='yes'" do?  I couldn't find it in the documentation
> (http://cocoon.apache.org/2.1/userdocs/concepts/sitemap.html#Aggregating).
> 
> You could probably make things sequential (and still achieve aggregation)
> by using either a cinclude transformer, or even more simply by using an
> XSLT transform step with the document() function, e.g.,
> ...
> 
>   
> 
> 
>   
> 
> ...
> 
> with a sitemap like
> 
> 
> 
> or some such.
> 
> -Christopher
> 
> 
> 
> |-+>
> | |   [EMAIL PROTECTED]|
> | ||
> | |   02/25/2004 01:56 |
> | |   PM   |
> | |   Please respond to|
> | |   users|
> | ||
> |-+>
>   
> >--|
>   |  
> |
>   |   To:   [EMAIL PROTECTED]
>   |
>   |   cc:
> |
>   |   Subject:  ESQL update and select statements in the same map:match problem  
> |
>   
> >--|
> 
> 
> 
> 
> 
> hi people
> 
> i have the folow code :
> 
> 
>   strip-root="yes"/>
>  
> 
> 
> where i call 2 .xsp
> 
> 1. update_point.xsp
> where i update a record in my database
> 
> 2. get_point.xsp
> where i get the updated record
> 
> the problem is that this aggregation update the database record (i have
> check the content) but generate output (get_point) with the before update
> values
> 
> is this a caching mechanism case, is it possible to bypass this problem or
> it's just a bug?
> 
> 
> --stavros
> 
> 
> 
> -
> 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: ESQL update and select statements in the same map:match problem

2004-02-26 Thread gounis
On Wed, 25 Feb 2004, Geoff Howard wrote:

> It's not a bug -- and I wouldn't recommend using a workaround like the 
> one below (which would probably work).  Don't try to modify the data 
> model while it's being turned into sax (the job of the generator).  
> Other non-MVC friendly frameworks force this but Cocoon almost forces 
> you not to because of all the problems it can cause in real-world 
> applications.
> 
> In your case, either use flow to call logic which modifies your database 
> (beyond scope of my response) or use an action.  Actions and flow are 
> both guaranteed to execute before the pipeline is assembled and are 
> designed to be the place for data manipulation (with the exception of 
> the side-effect transformers like the SQLTransformer, also out of 
> scope).  If you already have an xsp which does the job, turn it into an 
> xsp action and you're done.
> 
thnx for the hint

i have never touch flow until now so action is te solution i'll choose. 
but my xsp use ESQL to reach the connection pool an update the content
is out there any example or doc, how to reach connection pool using java 
code ?

--stavros

> Geoff
> 
> 
> Christopher Painter-Wakefield wrote:
> 
> >
> >
> >I don't know anything about the internal workings of the map:aggregate, but
> >I would guess it is not waiting for the first part to complete before
> >opening a connection for the second part.  This would make sense, for
> >performance reasons, and there is no particular reason for cocoon to expect
> >the parts to be dependent on each other.  So I don't think it is
> >necessarily a bug, nor a caching mechanism, just that map:aggregate doesn't
> >imply sequential processing.
> >
> >Just curious, should the map:aggregate have an "element" attribute
> >specifying the root element for the combined output?  Also, what does
> >"strip-root='yes'" do?  I couldn't find it in the documentation
> >(http://cocoon.apache.org/2.1/userdocs/concepts/sitemap.html#Aggregating).
> >
> >You could probably make things sequential (and still achieve aggregation)
> >by using either a cinclude transformer, or even more simply by using an
> >XSLT transform step with the document() function, e.g.,
> >...
> >
> >  
> >
> >
> >  
> >
> >...
> >
> >with a sitemap like
> >
> >
> >
> >or some such.
> >
> >-Christopher
> >
> >hi people
> >
> >i have the folow code :
> >
> >
> >  >strip-root="yes"/>
> > 
> >
> >
> >where i call 2 .xsp
> >
> >1. update_point.xsp
> >where i update a record in my database
> >
> >2. get_point.xsp
> >where i get the updated record
> >
> >the problem is that this aggregation update the database record (i have
> >check the content) but generate output (get_point) with the before update
> >values
> >
> >is this a caching mechanism case, is it possible to bypass this problem or
> >it's just a bug?
> >
> >  
> >
> 
> 
> 
> -
> 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: Site with dynamic header, columns and footer

2004-02-26 Thread gounis
On Thu, 26 Feb 2004, Ralph Goers wrote:

> A good example is at
> 
> http://wiki.cocoondev.org/Wiki.jsp?page=LayoutTemplatePattern

u can take a look at othello sample at scratchpad samples area that is 
based in the same idea 

they are some information in wiki too

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


--stavros

>  
> -Original Message-
> From: beyaNet Consultancy [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 26, 2004 7:52 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Site with dynamic header, columns and footer
>  
> Lamy, 
> use aggregation and xsp for dynamic content. 
> On 26 Feb 2004, at 15:48, franck LAMY wrote: 
>  
>   
> I want to develop a site with severals sections : a header, columns(menus,
> body) and a footer. 
> Sections like menus, body and header have dynamic content. 
>   
> What is the best way to do it with cocoon (version 2.1.4) ? 
> Can you indicate me an example. 
>   
> THANKS 
>   
>   
> 


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



RE: .

2004-02-27 Thread gounis
ohh an other one greek here ...


kalos tin tin patrida !!!

--stavros


On Fri, 27 Feb 2004, Konstantinidis, Greg wrote:

> Yes, we are also using cocoon.
> We're based in Sydney.
> 
> 
> -Original Message-
> From: Richard Huegill [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 26 February 2004 16:24
> To: [EMAIL PROTECTED]
> Subject: .
> 
> 
> Hi, 
>  
> We're using cocoon at the moment, and we're feeling a little isolated.
>  
> Is there anyone in Australia who's also using it ?
>  
> it might be nice to be able to bounce ideas and discuss issues with omeone
> who is local.
>  
> Thanks.
>  
> Richard
> 
> 


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



XSP generated .java debuging

2004-03-01 Thread gounis
hi people

is it possible to set break points in .java files that are generated from 
xsp. i have try using netbeans to open a generated from xsp .java file and 
set a breakpoint but unsuccesfull.


is any other way to debug those files?



your hints?



thnx


--stavros


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



Re: HELP: redirection to home page doesn't work under apache/tomcat/c ocoon

2004-03-03 Thread gounis

i had the same problem solved changing the position in main sitemap where 
sub sitemap is mounted..


hope that this can help you

--stavros



On Tue, 2 Mar 2004 [EMAIL PROTECTED] wrote:

> Hello,
> 
> could someone shed a light on the following:
> 
> apache 2.???
> tomcat 4.1.27
> cocoon 2.1.1
> on red hat linux
> 
> What we've done is build a webapp in a subdir of cocoon under tomcat, i.e.
> //webapps/cocoon/myapp which has its own sitemap.
> 
> everything is handled in this sitemap, i.e. there are only references to
> files in or below the myapp dir. 
> 
> We've followed the instructions in the Cocoon wiki ApacheModProxy and added
> the following lines to the VirtualHost section (forgive the syntax errors, I
> can't remember the correct terms):
> 
> ProxyPass / http://localhost:8080/cocoon/myapp/
> ProxyPassLocation / http://localhost:8080/cocoon/myapp/
> 
> This results in correct urls (i.e. http://myapp.mydomain.com/whatever.html),
> except for the normal redirections to the homepage.
> 
> In detail:
> 
> http://myapp.mydomain.com/home.html -> shows homepage
> 
> But these give errors about pipelines not found:
> http://myapp.mydomain.com
> http://myapp.mydomain.com/
> 
> while the sitemap contains redirects to home.html for "" and for "/". It
> seems as if the "" pipeline in the root sitemap is trying to handle this,
> but removing that one doesn't solve the problem.
> 
> I hope some of you have an idea.
> 
> thanks and bye, Helma
> 
> 
> -
> 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: Server Side Includes in Cocoon??

2004-03-03 Thread gounis
hi Jim

you must change the way you try to solve your problem

use cinclude
or pipeline aggregation

its the perfect way in cocoon

-- stavros


ps
--
btw using cocoon u have to change everything in your mind about web
development. After 2-3 years of cocoon-ing, it's not possible yet for me
to work with asp, php, or other thechonologies.

maybe in few year we'll have to do with "The Cocoon Syndrome" that effect
web developers. :-)


On Wed, 3 Mar 2004, Jim Emerson wrote:

> I'm running Cocoon on Windows 2000 (don't ask) with Tomcat 4.1
> 
> When I print a server side include in my XSLT script, the results are 
> ignored in the output.
> 
> Here's my xslt code:
> #include virtual="/includes/newsnav.inc" 
> 
> What i'm expecting to be in the output is the contents of newsnav.inc but 
> it's being ignored.
> 
> SSI is working fine when i call a regular html page in Tomcat.
> 
> Are SSI's possible in Cocoon? Does anyone have a workaround or solution for 
> this?
> 
> cheers
> Jim Emerson
> 
> 
> 
> -
> 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]



CLI after 2.1.2 is broken ?

2004-03-04 Thread gounis
hi all

playing around with some cocoon installation in my computer
i have notice tha CLI dont work after 2.1.2 version
is this a known bug or something else is happend here ?


--stavros


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



Re: CLI after 2.1.2 is broken ?

2004-03-04 Thread gounis
i a fresh 2.1.4 installation without to touch anything 
just try to run 

cocoon cli -x cli.xconf


i get an error about [portlet]


i have try to test a cvs snapshot (yesterday night) with tha same result


-- stavros

- the stack trace -
..
..

Opening database: 
C:\Server\2.1-production\2.1.4\build\webapp\WEB-INF\db\cocoondb
HSQLDB server 1.7.1 is running
Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly
Thu Mar 04 14:14:42 EET 2004 Listening for connections ...
ERROR   2004-03-04 14:14:43.816 [cli.mana] (): Could not set up Component 
for hint [ portlet]
org.apache.avalon.framework.context.ContextException: Unable to resolve 
context
key: servlet-config
at 
org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:157)
at 
org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:160)
at 
org.apache.cocoon.components.ComponentContext.get(ComponentContext.java:144)
at 
org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter.contextualize(PortletAdapter.java:109)
at 
org.apache.avalon.framework.container.ContainerUtil.contextualize(ContainerUtil.java:154)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:281)
at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
at 
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:738)
at 
org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:268)
at 
org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:239)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:305)
at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:558)
at 
org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:547)
at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
at org.apache.cocoon.Cocoon.initialize(Cocoon.java:340)
at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
at 
org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:186)
at 
org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:132)
at org.apache.cocoon.Main.main(Main.java:349)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at Loader.invokeMain(Unknown Source)
at Loader.run(Unknown Source)
at Loader.main(Unknown Source)
ERROR   2004-03-04 14:14:43.816 [cli.mana] (): Could not load class 
org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter for component 
named 'portlet' at
 
file:/C:/Server/2.1-production/2.1.4/build/webapp/WEB-INF/cocoon.xconf:1565:121

org.apache.avalon.framework.component.ComponentException: Could not set up 
Compo
nent for hint [ portlet] (key [portlet])
at 
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:756)
at 
org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:268)
at 
org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:239)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:305)
at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:558)
at 
org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:547)
at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
at org.apache.cocoon.Cocoon.initialize(Cocoon.java:340)
at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
at 
org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:186)
at 
org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:132)
at org.apache.cocoon.Main.main(Main.java:349)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.

Re: CLI after 2.1.2 is broken ?

2004-03-04 Thread gounis

sory but there is not portlet block in blocks.properties.

ro do you mean whole the portal block ?


thnx 

--stavros 

On Thu, 4 Mar 2004, Upayavira wrote:

> [EMAIL PROTECTED] wrote:
> 
> >i a fresh 2.1.4 installation without to touch anything 
> >just try to run 
> >
> >cocoon cli -x cli.xconf
> >
> >
> >i get an error about [portlet]
> >  
> >
> Yup. Portlet block breaks CLI, which is bad. Exclude it from build and 
> you'll be fine.
> 
> Upayavira
> 
> >
> >i have try to test a cvs snapshot (yesterday night) with tha same result
> >
> >
> >-- stavros
> >
> >- the stack trace -
> >..
> >..
> >
> >Opening database: 
> >C:\Server\2.1-production\2.1.4\build\webapp\WEB-INF\db\cocoondb
> >HSQLDB server 1.7.1 is running
> >Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly
> >Thu Mar 04 14:14:42 EET 2004 Listening for connections ...
> >ERROR   2004-03-04 14:14:43.816 [cli.mana] (): Could not set up Component 
> >for hint [ portlet]
> >org.apache.avalon.framework.context.ContextException: Unable to resolve 
> >context
> >key: servlet-config
> >at 
> >org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:157)
> >at 
> >org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:160)
> >at 
> >org.apache.cocoon.components.ComponentContext.get(ComponentContext.java:144)
> >at 
> >org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter.contextualize(PortletAdapter.java:109)
> >at 
> >org.apache.avalon.framework.container.ContainerUtil.contextualize(ContainerUtil.java:154)
> >at 
> >org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:281)
> >at 
> >org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
> >at 
> >org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:738)
> >at 
> >org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:268)
> >at 
> >org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:239)
> >at 
> >org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:305)
> >at 
> >org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
> >at 
> >org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:558)
> >at 
> >org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:547)
> >at 
> >org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
> >at org.apache.cocoon.Cocoon.initialize(Cocoon.java:340)
> >at 
> >org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
> >at 
> >org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:186)
> >at 
> >org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:132)
> >at org.apache.cocoon.Main.main(Main.java:349)
> >at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >at 
> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >at 
> >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >at java.lang.reflect.Method.invoke(Method.java:324)
> >at Loader.invokeMain(Unknown Source)
> >at Loader.run(Unknown Source)
> >at Loader.main(Unknown Source)
> >ERROR   2004-03-04 14:14:43.816 [cli.mana] (): Could not load class 
> >org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter for component 
> >named 'portlet' at
> > 
> >file:/C:/Server/2.1-production/2.1.4/build/webapp/WEB-INF/cocoon.xconf:1565:121
> >
> >org.apache.avalon.framework.component.ComponentException: Could not set up 
> >Compo
> >nent for hint [ portlet] (key [portlet])
> >at 
> >org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:756)
> >at 
> >org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:268)
> >at 
> >org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:239)
> >at 
> >org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:305)
> >at 
> >org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
> >at 
> >org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:558)
> >at 
> >org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:547)
> >at 
> >org.apache.avalon.framework.container.Containe

Re: xsp upload nightmare

2004-03-04 Thread gounis

take a look here

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

it working 




On Thu, 4 Mar 2004, Zamek wrote:

> Hello All,
> 
> I try to use upload with xsp.
> Sample is working well, and I try to move uploaded file to my path.
> 
> here is my xsp (based upload.xsp):
> 
> 
> 
> 
> 
>xmlns:xsp="http://apache.org/xsp";
>   xmlns:xsp-request="http://apache.org/xsp/request/2.0";
>   xmlns:xsp-response="http://apache.org/xsp/response/2.0";
>   xmlns:log="http://apache.org/xsp/log/2.0";>
> 
>   
>
> org.apache.cocoon.components.language.markup.xsp.XSPUtil
>org.apache.avalon.framework.context.ContextException
>java.io.File
>org.apache.cocoon.environment.*
>org.apache.cocoon.components.request.multipart.*
>   
> 
>   
> version 1.
> String filename=request.getParameter("upload-file");  
> 
> here I am get an error: java.lang.NullPointerException 
> It is ok, because there is no upload-file parameter, but I have to handle 
> empty parameters.
> 
> and then I try to test it:
> 
> version 2.
> if (request.getParameter("upload-file") != null) {
>String filename=request.getParameter("upload-file");  
> }
> 
> Once more error:
> // end error String filename=request.getParameter("upload-file"); } File 
> uploadDir = null; ... Line 76, column 0: Syntax error on keyword "if"; 
> "boolean", "void", "byte", "short", "int", "long", "char", "float", 
> "double", "Identifier", "interface", "class" expected
> I don't know what is it, but another try:
> 
> version 3.
>String filename=;
> 
> and another error:
> . Line 77, column 0: Syntax error on token ";", "{", "+", "-", "--", "++", 
> "boolean", "void", "byte", "short", "int", "long", "char", "float", 
> "double", "(", "true", "false", "IntegerLiteral", "LongLiteral", 
> "FloatingPointLiteral", "DoubleLiteral", "CharacterLiteral", 
> "StringLiteral", "null", "~", "!", "super", "this", "new", "Identifier" 
> expected
> 
> 
> File uploadDir = null;
> /** Contextualize this class */
> public void contextualize(Context context) throws ContextException {
>   uploadDir = (File) context.get(Constants.CONTEXT_UPLOAD_DIR);
> }
>   
> 
> 
> So can anybody send me a working xsp which is move uploaded file to any 
> path?
> 
> 


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



Re: CLI after 2.1.2 is broken ?

2004-03-04 Thread gounis
OK That's it 

to make cli work i have to 
1. exclude portal block from build
2. copy servlet_2_2.jar form lib/optional to build/webapp/web-inf/lib


thnx all





On Thu, 4 Mar 2004, Upayavira wrote:

> [EMAIL PROTECTED] wrote:
> 
> >sory but there is not portlet block in blocks.properties.
> >
> >ro do you mean whole the portal block ?
> >  
> >
> Sorry, yes.
> 
> Upayavira
> 
> >
> >thnx 
> >
> >--stavros 
> >
> >On Thu, 4 Mar 2004, Upayavira wrote:
> >
> >  
> >
> >>[EMAIL PROTECTED] wrote:
> >>
> >>
> >>
> >>>i a fresh 2.1.4 installation without to touch anything 
> >>>just try to run 
> >>>
> >>>cocoon cli -x cli.xconf
> >>>
> >>>
> >>>i get an error about [portlet]
> >>> 
> >>>
> >>>  
> >>>
> >>Yup. Portlet block breaks CLI, which is bad. Exclude it from build and 
> >>you'll be fine.
> >>
> >>Upayavira
> >>
> >>
> >>
> >>>i have try to test a cvs snapshot (yesterday night) with tha same result
> >>>
> >>>
> >>>-- stavros
> >>>
> >>>- the stack trace -
> >>>..
> >>>..
> >>>
> >>>Opening database: 
> >>>C:\Server\2.1-production\2.1.4\build\webapp\WEB-INF\db\cocoondb
> >>>HSQLDB server 1.7.1 is running
> >>>Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly
> >>>Thu Mar 04 14:14:42 EET 2004 Listening for connections ...
> >>>ERROR   2004-03-04 14:14:43.816 [cli.mana] (): Could not set up Component 
> >>>for hint [ portlet]
> >>>org.apache.avalon.framework.context.ContextException: Unable to resolve 
> >>>context
> >>>key: servlet-config
> >>>   at 
> >>>org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:157)
> >>>   at 
> >>>org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:160)
> >>>   at 
> >>>org.apache.cocoon.components.ComponentContext.get(ComponentContext.java:144)
> >>>   at 
> >>>org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter.contextualize(PortletAdapter.java:109)
> >>>   at 
> >>>org.apache.avalon.framework.container.ContainerUtil.contextualize(ContainerUtil.java:154)
> >>>   at 
> >>>org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:281)
> >>>   at 
> >>>org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
> >>>   at 
> >>>org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:738)
> >>>   at 
> >>>org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:268)
> >>>   at 
> >>>org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:239)
> >>>   at 
> >>>org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:305)
> >>>   at 
> >>>org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
> >>>   at 
> >>>org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:558)
> >>>   at 
> >>>org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:547)
> >>>   at 
> >>>org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
> >>>   at org.apache.cocoon.Cocoon.initialize(Cocoon.java:340)
> >>>   at 
> >>>org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
> >>>   at 
> >>>org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:186)
> >>>   at 
> >>>org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:132)
> >>>   at org.apache.cocoon.Main.main(Main.java:349)
> >>>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>   at 
> >>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >>>   at 
> >>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >>>   at java.lang.reflect.Method.invoke(Method.java:324)
> >>>   at Loader.invokeMain(Unknown Source)
> >>>   at Loader.run(Unknown Source)
> >>>   at Loader.main(Unknown Source)
> >>>ERROR   2004-03-04 14:14:43.816 [cli.mana] (): Could not load class 
> >>>org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter for component 
> >>>named 'portlet' at
> >>>
> >>>file:/C:/Server/2.1-production/2.1.4/build/webapp/WEB-INF/cocoon.xconf:1565:121
> >>>
> >>>org.apache.avalon.framework.component.ComponentException: Could not set up 
> >>>Compo
> >>>nent for hint [ portlet] (key [portlet])
> >>>   at 
> >>>org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:756)
> >>>   at 
> >>>org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:268)
> >>>   at 
> >>>org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:239)
> >>>   at 
> >>>org.apache.avalon.excalibur

Re: xsp upload nightmare

2004-03-08 Thread gounis

hi marcius

can i add your modification in a new wiki page ?

can you describe what else is this code make ?


--stavros


On Sat, 6 Mar 2004, Z.Z. wrote:

> Hello All,
> 2004. mαrcius 4. 14.47 dαtummal [EMAIL PROTECTED] ezt νrta:
> > take a look here
> >
> > http://wiki.cocoondev.org/Wiki.jsp?page=RecipeUploadUsingAction
> >
> > it working
> 
> Thanks a lot, it working really.
> 
> I use it in Linux and my context is my home directory, link is: 
> server/cocoon/~zamek/app/
> 
> I cannot pass it to Fileupload. I think I try to pass cocoon:/ but it doesn
> ΄t works. 
> 
> I modified your code to accept cocoon:/ protocoll:
> 
> declarations section:
> 
>/* cocoon:/ */
>private static final String COCOON_ENTRY = "cocoon:/";
>private final static String FILE_ENTRY = "file:";
> 
> and act method:
> 
> originally:
>   if (req instanceof HttpRequest) {
> 
>   HttpRequest request = (HttpRequest) req;
> 
>   /* create necessary directory structure  */
>   File uplDir = new File(parUploadDirectory);
>   if (isDebugEnabled) {
>   myLogger.debug(
>   "upload directory is: " + 
> uplDir.getAbsolutePath());
>   }
> 
>   if (uplDir.isAbsolute() == false) {
>   // check for first relative slash
>   if (parUploadDirectory.indexOf('/') != 0) {
>   parUploadDirectory = "/" + parUploadDirectory;
>   }
>   
>   uplDir = new 
> File(context.getRealPath(parUploadDirectory));
>   }   
> 
>   if (isDebugEnabled) {
>   myLogger.debug(
>   "absolute upload directory is: "
>   + uplDir.getAbsolutePath());
>   }
> 
> modified:
>   if (req instanceof HttpRequest) {
> 
>   HttpRequest request = (HttpRequest) req;
> 
>   /* create necessary directory structure  */
>   File uplDir = new File(parUploadDirectory);
>   if (isDebugEnabled) {
>   myLogger.debug(
>   "upload directory is: " + 
> uplDir.getAbsolutePath());
>   }
> 
>   if (parUploadDirectory.startsWith(COCOON_ENTRY) ) {
>   parUploadDirectory = 
> parUploadDirectory.substring(COCOON_ENTRY.length());
>   Source inputSource = resolver.resolveURI("");
>   String sysId = inputSource.getURI();
>   sysId = sysId.substring(new 
> String(FILE_ENTRY).length());
>   uplDir = new File (sysId+parUploadDirectory);
>   }
> else {
> 
>   if (uplDir.isAbsolute() == false) {
>   // check for first relative slash
>   if (parUploadDirectory.indexOf('/') != 0) {
>   parUploadDirectory = "/" + 
> parUploadDirectory;
>   }
>   
>   uplDir = new 
> File(context.getRealPath(parUploadDirectory));
>   }   
>   }
> 
>   if (isDebugEnabled) {
>   myLogger.debug(
>   "absolute upload directory is: "
>   + uplDir.getAbsolutePath());
>   }
> 
> 
> and need to import 
> import org.apache.excalibur.source.Source;
> 
> in sitemap you can use:
> 
>   
> 
> 
>  value="upload-file"/>
>  value="cocoon:/{request-param:upload-dir}"/>
> 
> 
> 
> 


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



Re: Generating XML from s String containing XML content

2004-03-10 Thread gounis
On Wed, 10 Mar 2004 [EMAIL PROTECTED] wrote:

> Hi,
> Inside my XSP I am calling a method which returns a String with XML 
> content. When I try to output the content of the string, it is treated as 
> CDATA.
> 
> eg. String xml = "Hello
> 
>   xml
> 
> 
somethink like


  
 variable
  



dont feet in your case?

-- stavros

> What I need from the example above is to generate the xml:
> 
>   Hello
> 
> 
> and pass it to an XSLT transformer from the sitemap.
> 
> Can anyone help me with this?
> 
> Thanks and Regards,
> Marco.


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



Re: Search engine indexing and Cocoon

2004-03-10 Thread gounis

no problem

http://www.kottakis.gr
http://www.rodopi-sa.gr

and other cocoon livesites 
are indexed fro google without problem

for example search in google for "kottakis"


--stavros

On Wed, 10 Mar 2004, Schultz, Gary - COMM wrote:

> Can search engines such as Google, Inktomi, etc. index a Cocoon site? I'm
> testing Cocoon (http://commerce.wi.gov/housing/) and have tried several
> searches on resources, but did not find results from the major search
> engines. Any direction on this is greatly appreciated.
> 
> Gary T. Schultz
> Web Technical Administrator / GIS Coordinator
> Wisconsin Department of Commerce
> 6th Floor
> P.O. Box 7970
> Madison, WI 
> 1-608-266-1283
> 
> 
> -
> 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: Indexing cocoon for search engines

2004-03-11 Thread gounis
On Thu, 11 Mar 2004, Geoff Howard wrote:

> Schultz, Gary - COMM wrote:
> 
> >After trying to get this working, I've determined I'm having trouble getting
> >cocoon indexed properly outside of the Lucene example. Eventually I need to
> >have Cocoon indexed by Google, Inktomi etc. Yesterday someone posted a reply
> >showing that something served by Cocoon can be indexed by Google. But how
> >does one get this setup? I've looked at the Wiki and other documents without
> >success. If I can't get indexing to work, management will force me away from
> >Cocoon to a Microsoft ASP based solution, which I would prefer to avoid. Any
> >and all assistance is greatly appreciated.

spiders dont care about the way u gennerate your pages
the output is pure html with html link so there is indexing is not a 
problem for search engines

some time ago i have a problem because the utf encoding but know i think 
that all search engines support it.

i think that u'r a litle confused: the problem you have with lucene has 
nothing to do with tha ability of other search engines to index your site 

-- stavros


> >  
> >
> 
> Can you explain what is going wrong and how you know it is?  Do you see 
> google's bot showing up in your logs?  Is it not spidering out to your 
> other pages?  Do the links in your output html look like normal html  href="..."> links? 
> 
> Geoff
> 
> >Gary T. Schultz
> >Web Technical Administrator / GIS Coordinator
> >Wisconsin Department of Commerce
> >6th Floor
> >P.O. Box 7970
> >Madison, WI 
> >1-608-266-1283
> >
> >
> >-
> >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]



esql select max() | how to get result

2004-03-15 Thread gounis

hi people

i try to run this sql query


SELECT max(id_Elements) AS id_Elements FROM  
tblElements




no record was found



but i dont know hot to get the resutl in  ... 

any hint 

i have try 




but without success


thanx


--stavros 


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



How can I get ID number after insert a new record?

2004-03-30 Thread gounis
i'm executing an Insert SQL statement using a custom xsp action

is it possible to get the new id number (auto increment) inside the action 
or inside the my pipeline's match?


any idea ?

--stavros


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



Re: How can I get ID number after insert a new record?

2004-03-30 Thread gounis


oh sorry

i use msAccess throgh ODBC

-- stavro

On Tue, 30 Mar 2004, Yves Vindevogel wrote:

> What database ?
> 
> I generally do this by using a function in postgresql.
> You execute the function and in the function you get the new id.
> That ID is returned as value (and 0 for failure)
> 
> Same for MS Sql.  You can use a stored procedure there.
> That's kind of the same as a postgresql function
> 
> 
> On 30 Mar 2004, at 18:31, [EMAIL PROTECTED] wrote:
> 
> > i'm executing an Insert SQL statement using a custom xsp action
> >
> > is it possible to get the new id number (auto increment) inside the 
> > action
> > or inside the my pipeline's match?
> >
> >
> > any idea ?
> >
> > --stavros
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> Met vriendelijke groeten,
> Bien ΰ vous,
> Kind regards,
> 
> Yves Vindevogel
> Implements
> 
> Mail: [EMAIL PROTECTED]  - Mobile: +32 (478) 80 82 91
> 
> Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76
> Markt 18c  -  9700 Oudenaarde  -  Tel: +32 (55) 30 55 76
> 
> Web: http://www.implements.be
> 
> First they ignore you.  Then they laugh at you.  Then they fight you.  
> Then you win.
> Mahatma Ghandi.
> 


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



Re: How can I get ID number after insert a new record?

2004-03-30 Thread gounis

yves 
thnx for your answer


i'm using eslq to make queries and it was unable to run a select max(id) 
.. querie...


is it possible to write java code to make my queries. if yes how can i get 
access to connection pool configured in xconf?


thnx


--stavros
On Tue, 30 Mar 2004, Yves Vindevogel wrote:

> Not possible in one shot  IMHO
> You'll need to do the Insert and in the same page, run a second query 
> to get the Max(id).
> If you're afraid of getting the wrong one (because somebody is doing 
> the same thing on the same table), use a where clause (like adding the 
> name of the company you just inserted)
> 
> On 30 Mar 2004, at 19:08, [EMAIL PROTECTED] wrote:
> 
> >
> >
> > oh sorry
> >
> > i use msAccess throgh ODBC
> >
> > -- stavro
> >
> > On Tue, 30 Mar 2004, Yves Vindevogel wrote:
> >
> >> What database ?
> >>
> >> I generally do this by using a function in postgresql.
> >> You execute the function and in the function you get the new id.
> >> That ID is returned as value (and 0 for failure)
> >>
> >> Same for MS Sql.  You can use a stored procedure there.
> >> That's kind of the same as a postgresql function
> >>
> >>
> >> On 30 Mar 2004, at 18:31, [EMAIL PROTECTED] wrote:
> >>
> >>> i'm executing an Insert SQL statement using a custom xsp action
> >>>
> >>> is it possible to get the new id number (auto increment) inside the
> >>> action
> >>> or inside the my pipeline's match?
> >>>
> >>>
> >>> any idea ?
> >>>
> >>> --stavros
> >>>
> >>>
> >>> -
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >> Met vriendelijke groeten,
> >> Bien Ξ° vous,
> >> Kind regards,
> >>
> >> Yves Vindevogel
> >> Implements
> >>
> >> Mail: [EMAIL PROTECTED]  - Mobile: +32 (478) 80 82 91
> >>
> >> Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76
> >> Markt 18c  -  9700 Oudenaarde  -  Tel: +32 (55) 30 55 76
> >>
> >> Web: http://www.implements.be
> >>
> >> First they ignore you.  Then they laugh at you.  Then they fight you.
> >> Then you win.
> >> Mahatma Ghandi.
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> Met vriendelijke groeten,
> Bien Γ  vous,
> Kind regards,
> 
> Yves Vindevogel
> Implements
> 
> Mail: [EMAIL PROTECTED]  - Mobile: +32 (478) 80 82 91
> 
> Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76
> Markt 18c  -  9700 Oudenaarde  -  Tel: +32 (55) 30 55 76
> 
> Web: http://www.implements.be
> 
> First they ignore you.  Then they laugh at you.  Then they fight you.  
> Then you win.
> Mahatma Ghandi.
> 


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



Re: How can I get ID number after insert a new record?

2004-03-30 Thread gounis

i dont know but this code make cocoon give to answer

hotpoints

select max(id_Elements) from tblElements 












On Tue, 30 Mar 2004, Yves Vindevogel wrote:

> Why are you unable to make a  select max(myfield) from mytable query ?
> I don't understand the problem.  Please explain.
> 
> On 30 Mar 2004, at 19:26, [EMAIL PROTECTED] wrote:
> 
> >
> > yves
> > thnx for your answer
> >
> >
> > i'm using eslq to make queries and it was unable to run a select  
> > max(id)
> > .. querie...
> >
> >
> > is it possible to write java code to make my queries. if yes how can i  
> > get
> > access to connection pool configured in xconf?
> >
> >
> > thnx
> >
> >
> > --stavros
> > On Tue, 30 Mar 2004, Yves Vindevogel wrote:
> >
> >> Not possible in one shot  IMHO
> >> You'll need to do the Insert and in the same page, run a second query
> >> to get the Max(id).
> >> If you're afraid of getting the wrong one (because somebody is doing
> >> the same thing on the same table), use a where clause (like adding the
> >> name of the company you just inserted)
> >>
> >> On 30 Mar 2004, at 19:08, [EMAIL PROTECTED] wrote:
> >>
> >>>
> >>>
> >>> oh sorry
> >>>
> >>> i use msAccess throgh ODBC
> >>>
> >>> -- stavro
> >>>
> >>> On Tue, 30 Mar 2004, Yves Vindevogel wrote:
> >>>
>  What database ?
> 
>  I generally do this by using a function in postgresql.
>  You execute the function and in the function you get the new id.
>  That ID is returned as value (and 0 for failure)
> 
>  Same for MS Sql.  You can use a stored procedure there.
>  That's kind of the same as a postgresql function
> 
> 
>  On 30 Mar 2004, at 18:31, [EMAIL PROTECTED] wrote:
> 
> > i'm executing an Insert SQL statement using a custom xsp action
> >
> > is it possible to get the new id number (auto increment) inside the
> > action
> > or inside the my pipeline's match?
> >
> >
> > any idea ?
> >
> > --stavros
> >
> >
> > --- 
> > --
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>  Met vriendelijke groeten,
>  Bien ~{&.!c~} vous,
>  Kind regards,
> 
>  Yves Vindevogel
>  Implements
> 
>  Mail: [EMAIL PROTECTED]  - Mobile: +32 (478) 80 82 91
> 
>  Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76
>  Markt 18c  -  9700 Oudenaarde  -  Tel: +32 (55) 30 55 76
> 
>  Web: http://www.implements.be
> 
>  First they ignore you.  Then they laugh at you.  Then they fight  
>  you.
>  Then you win.
>  Mahatma Ghandi.
> 
> >>>
> >>>
> >>> -
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >> Met vriendelijke groeten,
> >> Bien ~{&#~}  vous,
> >> Kind regards,
> >>
> >> Yves Vindevogel
> >> Implements
> >>
> >> Mail: [EMAIL PROTECTED]  - Mobile: +32 (478) 80 82 91
> >>
> >> Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76
> >> Markt 18c  -  9700 Oudenaarde  -  Tel: +32 (55) 30 55 76
> >>
> >> Web: http://www.implements.be
> >>
> >> First they ignore you.  Then they laugh at you.  Then they fight you.
> >> Then you win.
> >> Mahatma Ghandi.
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> Met vriendelijke groeten,
> Bien ~{($~} vous,
> Kind regards,
> 
> Yves Vindevogel
> Implements
> 
> Mail: [EMAIL PROTECTED]  - Mobile: +32 (478) 80 82 91
> 
> Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76
> Markt 18c  -  9700 Oudenaarde  -  Tel: +32 (55) 30 55 76
> 
> Web: http://www.implements.be
> 
> First they ignore you.  Then they laugh at you.  Then they fight you.   
> Then you win.
> Mahatma Ghandi.
> 


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



Re: Using compiled XSP action classes

2004-03-31 Thread gounis

if someone just modify and compile xsp generated code
how can set cocoon to not regenerate thosejava files from .xsp
but just use the already compiled?

--stavros



On Wed, 31 Mar 2004, Joerg Heinicke wrote:

> On 04.03.2004 20:05, Oleg Dulin wrote:
> 
> > Is it possible to use a compile XSP action class? I.e. I want to first 
> > precompile my XSP actions and then use the as if they were normal 
> > actions written in Java ?
> 
> Yes, should be possible. They probably lie in the work directory of your 
> servlet conatiner.
> 
> Joerg
> 
> -
> 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]



HTML fragment from database come escaped

2004-04-16 Thread gounis
hi all

i try to post the html fragment as content  of a text area in a xsp-action 
that add this content to a database (msaccess), everything works fine and 
when i check the table's content i see the posted html fragment.

but when i use xsp to make a SELECT query, when i try to send this 
fragment to the browser, the content is escaped

so if the posted data are word instead i get a bold 
"word" i see 

"word"

because < and > came escaped.

has anyone try to do something similar?

any hint ?

thnx

--stavros



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



Re: Running Cocoon from CD

2004-04-22 Thread gounis
hi .. this is an interest thread
can i make some questions?

Tomcat and cocoon need a JVM
what happend if the client machine does not have JVM already installed?

i have make some tries puting a JVM in the CD with tomcat and cocoon. 
the startup string set path and java_home just before start the container 
jetty in my case. But in this approach i have to know the letter assigned 
to CDROM drive (win)

have u make this work using a diff way?


--stavros


On Thu, 22 Apr 2004, Ivo Limmen wrote:

> Hi,
> 
> Configure Cocoon+Tomcat to use a TEMP directory on the hard-drive and 
> everything should work fine.
> 
> Michael Faschinger wrote:
> 
> > Hello everyone!
> > I just try to set up Tomcat(4.0.6) + Cocoon (2.0) to run from CD. Tomcat
> > works perfectly fine but cocoon won't work as it tries to write some files
> > (WEB-INF\db\commondb.*) to the CD. Is there a way to avoid this? Are there
> > any further problems that might appear? I am not using database services,
> > only XML+XSLT -> HTML.
> > Regards, Michael
> > 
> 
> 


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



Re: xsp:logic question

2004-05-11 Thread gounis


use equals() instead


String o = ;
if (o.equals("localhost")){

... some code ...

}


--stavros



On Tue, 11 May 2004, Nils wrote:

> Hi there,
> 
> i have:
> 
>   if ( == "localhost") {
>   some code...
>   }
> 
> i know exactley, that  returns localhost, but
> "...some code..." never gets executed...
> 
> any hint?
> 
> bye,
> nils
> 
> 
> -
> 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: Displaying XML document as it is ??

2004-05-11 Thread gounis

if your client is IE then just call a pipeline that serialize content as 
xml otherwise use xml2html.xslt 









you can found xml2html.xslt in cocoon distr.
(stylesheets/system/)

--stavros

On 11 May 2004, Sam wrote:

> Hello ppl,

I would like to know the best practice to display a simple XML document as it is on 
the browser. say I have an XML document called vector.xml which looks like:




  
public class Vector
extends AbstractList
implements List, RandomAccess, Cloneable, Serializable

The Vector class implements a growable array of 
objects. Like an array, it contains components that can
be accessed using an integer index. However, the size 
of a Vector can grow or shrink as needed to accommodate
adding and removing items after the Vector has been 
created.





What would be the best practice to display the contents of  element on the 
browser as it is without disturbing the allignments, linebreaks etc etc ...

In other words just display it as it looks inside the  element.

Any body 

sam


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



ERROR: com.coyotegulch.jisp.DatabaseException

2004-04-28 Thread gounis

hi all

looking at core.log

i have notice this error:

ERROR   (2004-04-29) 02:10.36:561   [core.store.persistent] 
(/images/elements/DesignGroup.png) 
PoolThread-4/AbstractJispFilesystemStore: get(..): Exception
com.coyotegulch.jisp.DatabaseException: no indexes associated with this 
database
at 
com.coyotegulch.jisp.IndexedObjectDatabase.(IndexedObjectDatabase.java:88)
at 
org.apache.cocoon.components.store.impl.DefaultStore.parameterize(DefaultStore.java:174)
at 
org.apache.avalon.framework.container.ContainerUtil.parameterize(ContainerUtil.java:266)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:320)
at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:141)

but my application work fine (i think so)

has anyone any idea where to start looking for this ?

thnx

--stavros


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



  1   2   3   4   >