Re: Jar files

2004-08-25 Thread KOZLOV Roman
Hi, Jones A wrote: > I have a jar file \"test.jar\" which i have placed in the WEB-INF/ lib directory. > > The jar contains a class com/test/mail/send.class > > How can this class be used in xsp? > http://apache.org/xsp";> com.test.mail.send ... > Is it necessary to include the name of the j

Re: realpath module and subsitemaps

2004-08-25 Thread KOZLOV Roman
Hi Steve, It seems to be due to different web application's contexts. You can try to use {realpath:/}../a/templates/ - it should always to be the .../webapps/a/tempates Roman Steve Butcher wrote: > Ack. I sent the last one with the wrong email...I'm not sure if it will > go through or not. I ap

Jar files

2004-08-25 Thread Jones A
I have a jar file \"test.jar\" which i have placed in the WEB-INF/ lib directory. The jar contains a class com/test/mail/send.class How can this class be used in xsp? Is it necessary to include the name of the jar file in the xsp ?

Tools for Portal ahd User Administration ?

2004-08-25 Thread Vladimir Lisin
Hi all In  sample of  Portal-fw  I  see  the tools for  Portal  ahd  User  Administration but don't  find its in Portal engine. In Portal engine this tools everybody must  develop himself ? What  advantage have  Portal engine  above   Portal-fw ? Thanks advance. VL

Re: xsp call url

2004-08-25 Thread Adriano Smith
In this case i cannot change the input. ie the parameters are passed from the url and it contains the keyword along with 2 other parameters. The keyword can be login,read,reply,send etc... Therefore the only access i have to the keyword is through the url. So i do something like or

WEBDAV to manage file system(how can i move one file to other place)

2004-08-25 Thread sreenivas reddy
hi My problem is to move file from one location to other. WebDAV uses source writing transform.My problem is how can i move from one place to other plz give me one example __ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phon

Re: Best practices for building cocoon applications

2004-08-25 Thread Ralph Goers
At 8/25/2004 12:18 PM, you wrote: This is sort of how I worked it before. > In both cases you should use the XConfToolTask to patch cocoon.xconf and > the main sitemap as necessary. I know, I know, I'm just one of those spoon-feeding-dependent goofballs, but are there any docs on that (besides Yo

Oracle 10g XDB

2004-08-25 Thread Corin Moss
Hi All, Has anyone here integrated Oracle 10g XDB functionality with Cocoon? I'd be keen to talk to you off-list if possible about your specific implementation. Thanks, Corin CAUTION: This e-mail and any attachment(s) contains

Re: generate XML from flowscript

2004-08-25 Thread Tony Edwards
Hi guys, I sent Eric my function off list but I'll add the contents and serving suggestion to the Wiki. Stand by Tony [EMAIL PROTECTED] wrote: its an interesting point can you create a wiki page? -- stavros On Wed, 25 Aug 2004, JACOB, ERIC wrote: Hi Tony, I can't attest as to its effi

realpath module and subsitemaps

2004-08-25 Thread Steve Butcher
Ack. I sent the last one with the wrong email...I'm not sure if it will go through or not. I apologize if it duplicates. Dear all, I'm using Cocoon 2.1 and Tomcat 5. I have two webapps running in tomcat 5, A and B. Webapp A works as an independent webapp however I am including the functionality

Re: Best practices for building cocoon applications

2004-08-25 Thread Rick Wayne
On Tue, 2004-08-24 at 17:44, Ralph Goers wrote: > There are several methods that I've seen. Here are 2 I know of: > 1. Package your stuff as a block. Move it into Cocoon's directory and use > the Cocoon build process to build it. Are there docs on so packaging? I can try to adapt an existing block

RE: generate XML from flowscript

2004-08-25 Thread gounis
its an interesting point can you create a wiki page? -- stavros On Wed, 25 Aug 2004, JACOB, ERIC wrote: > Hi Tony, > > > I can't attest as to its efficiency but it seems to go OK so far. I've > > got a whole bunch of other functions to add, move, copy nodes and > > attribute etc. > > If yo

Re: Flow : File class delete() pb?

2004-08-25 Thread JD Daniels
try: delFile["delete"]; oceatoon wrote: Hi every one I have been using the java.io.File class to manipulate uploads in the flow, every thing was fine till now as I need to use the delete() method on my object. I get Message: missing name after . operator Description: org.apache.avalon.framewor

Scheduler how to?

2004-08-25 Thread Jeff Sexton
I'd like to look at the scheduler features included with Cocoon but I'm having some trouble getting started. I've looked at http://wiki.apache.org/cocoon/Scheduler and the list archives. It seems like there's nothing that matches recent Cocoon setups. I can not find the strings exclude.webapp.scr

CInclude and cocoon:/ pseudo-protocol

2004-08-25 Thread Jonathan Linczak
Hi, I created a pipeline for a document that grabs one news item out of a database. The actual news content has HTML tags in it that I need to have displayed, not escaped. When using: It escapes everything for you, so that the HTML tags actually display on the screen. So, to combat this, I

Bug in 2.1.5 input modules ?

2004-08-25 Thread Luca Morandini
In 2.1.3, this used to work: While in 2.1.5 it gives: << Message: Failed to load sitemap from file:/c:/web/noria/noriadev215/sitemap.xmap Description: org.apache.cocoon.ProcessingException: Failed to load sitemap from file:/c:/web/noria/noriadev215/sitemap.xmap: org.apache.avalon.framework.conf

Flow : File class delete() pb?

2004-08-25 Thread oceatoon
Hi every one I have been using the java.io.File class to manipulate uploads in the flow, every thing was fine till now as I need to use the delete() method on my object. I get Message: missing name after . operator Description: org.apache.avalon.framework.CascadingRuntimeException: missing name

XForms / JXForms / CForms - itemset with copy?

2004-08-25 Thread Thomas Nichols
Hi, I'm looking for a way to allow user selection of an XML fragment (with a couple of fragments to choose between), with this fragment then being incorporated into the returned output document. At its simplest, this is a selection widget of some kind, depending on the selection I'll see one of

Re: Cocoon request decoding

2004-08-25 Thread Marc Portier
Timur Izhbulatov wrote: Jorg Heymans writes: is http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=109231177110588&w=2 of any help to you? Thanks you. Now I know the cause. However, I have just tried Jetty. When I start it with "java -jar start.jar" the whole thing works just like it does with T

Re: Cocoon request decoding

2004-08-25 Thread Jorg Heymans
Timur Izhbulatov wrote: Jorg Heymans writes: strange, i start jetty from cygwin with (all on one line) java -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -Dorg.mortbay.util.URI.charset=UTF-8 -jar start.jar etc/custom.xml and it works fine. I mean Jetty itself works, but -

RE: SourceWritingTransformer Problem

2004-08-25 Thread JACOB, ERIC
Hi Andreas, In fact, here the full picture: The first transformer gets the node I want to update, then modify (increment by 1) and insert it in the source:fragment element... Maybe there is another way to do this? But you're right: I'm trying to write to the same file I'm reading f

Re: fop2pdf through chained transformers

2004-08-25 Thread KOZLOV Roman
You have to create fo (formatted objects) xml input instead of html for fo2pdf serializer. Roman Matt Rich wrote: > Hello! > > I'm trying to export in pdf the result of an SQL request > that has been passed through a chain of transformers like this: > > > > > >

Re: SourceWritingTransformer Problem

2004-08-25 Thread Jorg Heymans
there is a way of doing this in flow if you're interested. var resolver = cocoon.getComponent(Packages.org.apache.excalibur.source.SourceResolver.ROLE); var source = resolver.resolveURI("URI for your modifiable source"); var outputstream = source.getOutputStream(); cocoon.processPipelineTo("page",

Re: Cocoon request decoding

2004-08-25 Thread Timur Izhbulatov
Jorg Heymans writes: strange, i start jetty from cygwin with (all on one line) java -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -Dorg.mortbay.util.URI.charset=UTF-8 -jar start.jar etc/custom.xml and it works fine. I mean Jetty itself works, but -Dorg.mortbay.util.UR

fop2pdf through chained transformers

2004-08-25 Thread Matt Rich
Hello! I'm trying to export in pdf the result of an SQL request that has been passed through a chain of transformers like this: - Calling "result2pdf" from the resulting hml page should give a

Re: SourceWritingTransformer Problem

2004-08-25 Thread Andreas Hartmann
JACOB, ERIC wrote: Hi, It seems that I cannot use the SourceWritingTransformer to write document that is in use by the pipeline. I get the following error: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException: org.apache.cocoon.ProcessingException: Could no

Re: Cocoon request decoding

2004-08-25 Thread Jorg Heymans
strange, i start jetty from cygwin with (all on one line) java -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -Dorg.mortbay.util.URI.charset=UTF-8 -jar start.jar etc/custom.xml and it works fine. Timur Izhbulatov wrote: Jorg Heymans writes: is http://marc.theaimsgroup.com

Re: Cocoon request decoding

2004-08-25 Thread Timur Izhbulatov
KOZLOV Roman writes: Hi Timur, You can use SetCharacterEncodingAction. I have tried this approach and it doesn't work. Jorg Heymans (thanks Jorg!) has pointed me to http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=109231177110588&w=2. Now I know that the reason was in container. BTW, using

Re: xsp call url

2004-08-25 Thread Derek Hohls
smith why use key as a parameter... if you make it part of the uri, you can setup different matches for it, each of which could be calling the same generator or etc. The XSP can access the parameters 'ud' and 'pwd' as per normal. Think outside the box... think Cocoon! >>> [EMAIL

RE: generate XML from flowscript

2004-08-25 Thread JACOB, ERIC
Hi Tony, > I can't attest as to its efficiency but it seems to go OK so far. I've > got a whole bunch of other functions to add, move, copy nodes and > attribute etc. > If you need any of this, let me know and I'll send it to you. I would be interested by your "flowscript" functions. I need to

Re: Cocoon request decoding

2004-08-25 Thread Timur Izhbulatov
Jorg Heymans writes: is http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=109231177110588&w=2 of any help to you? Thanks you. Now I know the cause. However, I have just tried Jetty. When I start it with "java -jar start.jar" the whole thing works just like it does with Tomcat. But when I try

Re: request params are lost with multipart forms

2004-08-25 Thread Jorg Heymans
i stumbled accross this behaviour as well. Even though you're not uploading anything, if your form has set the enctype and uploads is not enabled then the parameters are lost. I don't know if this is desired behaviour. Maybe cocoon could still accept the form but reject the uploaded files? Fee

RE: Flow Control - XML Editing

2004-08-25 Thread JACOB, ERIC
Thanks Tony. It helps a lot! Eric -Original Message- From: Tony Edwards [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 24, 2004 6:51 PM To: [EMAIL PROTECTED] Subject: Re: Flow Control - XML Editing Hi Eric, I had a brief mail exchange with Mark Lundquist on the 5th August outlining my

SourceWritingTransformer Problem

2004-08-25 Thread JACOB, ERIC
Hi, It seems that I cannot use the SourceWritingTransformer to write document that is in use by the pipeline. I get the following error: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException: org.apache.cocoon.ProcessingException: Could not process your d

Re: request params are lost with multipart forms

2004-08-25 Thread Juha Muilu
I found it!!! Need to enable uploads in web.xml!! enable-uploads true ..I think it was working before upgrading the cocoon... Cheers, Juha Juha Muilu wrote: Hi Sorry to bother this can be something trivial... For some reason I cannot get request parameters in flowscript when su

Problem with PDF generation

2004-08-25 Thread Reynald Borer
Hi everybody, I'm facing a problem with cocoon 2.1.5.1: it cannot create any pdf file. It's currently running inside tomcat 5.0.27 on a Gentoo Linux, and has been deployed into tomcat as a war file. Everything work fine for xml -> xhtml but not for pdf generation. Here is the error message in th

request params are lost with multipart forms

2004-08-25 Thread Juha Muilu
Hi Sorry to bother this can be something trivial... For some reason I cannot get request parameters in flowscript when submitted form has enctype="multipart/form-data" -definition. only null is returned (and getParameterNames returns empty list) When I remove the def then the cocoon.request.get

xsp call url

2004-08-25 Thread Adriano Smith
i have a file read.xsp which is called for the url http://xx/mail?key=login&ud=user&pwd=pass ie read.xsp is the generator. 3 parameters are passed in the url. Now from the xsp, is it possible to redirect to another url based on the value of parameter 'key'. However the parameters 'ud' and 'pwd'

Calling jx macro from another macro?

2004-08-25 Thread Thomas Kjeldahl Nilsson
Hello, I have a short question regarding jx template macros. Is there some problem with calling a macro from within the body of another macro? Example: Output something regards, Thomas Kjeldahl Nilsson Oslo, Norway - T

Re: RV: Custom transformer

2004-08-25 Thread Lionel Crine
Hi, did you try to use the startPrefixMapping Method. There are some examples in the source classes of Cocoon. See fragmentExtractorGenerator for example. Lionel Perez Carmona, David wrote: Sorry, maybe I used the wrong term... Here an example: public class CustomTransformer extends AbstractSAXTran

Re: How to get Document from DOMResult

2004-08-25 Thread Lionel Crine
Hi, For my part, sometimes I use the DOMBuilder which I serialize with XMLUtils.serializeNode() to get a String. I also have created a transformer which get a W3C DOM from a database. Here is a sample, It may be useful : /** Create the resulting Document */ Document docResult = DOMUtil.createDocu

Re: generate passwords in xsp

2004-08-25 Thread Derek Hohls
Robby It should be possible to use java.util.Random class to generate numbers and then use this to create a string of, say, 8 alpha-numeric characters, using a loop to pick each character from the base string. If your password is case sensitive, this gives you 62 characters in the base string t

error when I try to access to the Cocoon welcome page

2004-08-25 Thread Massimiliano Savoldelli
Hi, I have a problem when I call the Cocoon welcome page on my localhost after I have installed it. I get this error: org.apache.cocoon.ProcessingException: Failed to generate program code (this may happen if you use Xalan in incremental processing mode). Please check log file and/or console for

Re: generate passwords in xsp

2004-08-25 Thread sudhir reddy
Hi robby,    You can write one java program which genrates new password  import  java program into xsp    I hope this solves yr problem.   Thanks & Regards Sud[EMAIL PROTECTED] wrote: Hi,i would like to write an xsp that generates random passwords with some kindof algorithm... Anyone any ideas on

AW: retrieving client browser's IP in action

2004-08-25 Thread Jens Maukisch
hi, > I want to access the client browser's IP in my action class. > I want to retrieve country name based on the IP > and return it as output parameter and finally pass this parameter to my > xsl where the country specific information will be displayed. you should do something like this in yo

generate passwords in xsp

2004-08-25 Thread robby . pelssers
Hi, i would like to write an xsp that generates random passwords with some kind of algorithm... Anyone any ideas on this topic? Kind regards, Robby - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

retrieving client browser's IP in action

2004-08-25 Thread Pratik Das
I want to access the client browser's IP in my action class. Can anyone help me out with this? I want to retrieve country name based on the IP and return it as output parameter and finally pass this parameter to my xsl where the country specific information will be displayed. regards Pratik

Using OS X Server 10.3.5 with Cocoon 2.1.5?

2004-08-25 Thread Derek Hohls
If anyone out there is is running this setup: OS X Server 10.3.5 using Cocoon 2.1.5 please drop me a line... we are trying to solve a particularly strange bug with it... Thanks Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

Re: Best practices for building cocoon applications

2004-08-25 Thread Antony Quinn
Rick Wayne wrote: 1) The process isn't at all automated, and can't be reliably regenerated from scratch. Yes, and it looks like it's going to stay that way for a while: "In the future there may be a skeletal distribution such as I have shown here. It is on the rather lengthy 'to do' list for the

RE: Antwort: Forms with "conditional" parts

2004-08-25 Thread Bart Molenkamp
Thanks, I've got it working using unions and structs now. :) -Original Message- From: Stephane Delort [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 24, 2004 5:36 PM To: [EMAIL PROTECTED] Subject: Antwort: Forms with "conditional" parts Hi Bart, I guess you should have a look at clas

Sendmail error

2004-08-25 Thread Frank Daly
Hi I've written a java application, using the JavaMail api, with which I can send emails. I'm trying to use the sendmail logicsheet to send an email but I get the following error: An error occurred: Sending failed; nested exception is: class javax.mail.MessagingException: Could not connect to SM

Re: Forms/document-editing application

2004-08-25 Thread Derek Hohls
rw I would go with forms - I think there are some tricky issues as your forms get more complex (witness a lot of traffic in the last few months) but, in general, they should be able to handle all the use cases you describe here. Start with the samples in the Cocoon distro, including the hyperson