You are trying to access a parameter that's actually one level up, when
going a level up you must use ../.
Try {../1}/{../2}/{tempname}
Sebastien Gabel wrote:
Hi !
I'm surprised.and I'm going to explain my problem ;
I would like to write a pipeline using action and flowscript :
map:match
You probably want logging instead of plain output, to do this in XSP:
getLogger().debug(your message here);
Look for your logs under your cocoon/WEB-INF/logs directory. I guess it should
pop-up in core.log or sitemap.log.
(You can also use .info() , .warn() and .error() with that getLogger()
On Tue, 24 Aug 2004, Rick Wayne wrote:
What do you Cocoon mavens consider to be the canonical practice for
automatically building a deployable Cocoon application? In the past, I
usually download a distribution, build it excluding as many blocks as I
can stand, and then hand-edit things from there
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
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
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
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
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
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
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:
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 your
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 this
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
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
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 =
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
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:
document
jx:macro name=A
Output something
/jx:macro
jx:macro name=B
A/
/jx:macro
B
/document
regards,
Thomas Kjeldahl Nilsson
Oslo, Norway
i have a file read.xsp which is called for the url
http://xx/mail?key=login=user=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' should
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
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
I found it!!!
Need to enable uploads in web.xml!!
init-param
param-nameenable-uploads/param-name
param-valuetrue/param-value
/init-param
..I think it was working before upgrading the cocoon...
Cheers, Juha
Juha Muilu wrote:
Hi
Sorry to bother this can be something trivial...
For
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
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
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?
Jorg Heymans writes:
is http://marc.theaimsgroup.com/?l=xml-cocoon-devm=109231177110588w=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 to
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 load
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
map:match pattern=xx/mail/login
map:generate src=read.xsp type=generator/
or
map:match pattern=xx/mail/no-login
map:generate
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-devm=109231177110588w=2. Now I
know that the reason was in container.
BTW, using
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
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
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:
map:match pattern=result2
map:generate src=requetes.xml /
map:transform src=result2.xsl
map:parameter name=use-request-parameters value=true/
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
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,
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:
map:match pattern=result2
map:generate
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
Timur Izhbulatov wrote:
Jorg Heymans writes:
is
http://marc.theaimsgroup.com/?l=xml-cocoon-devm=109231177110588w=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
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
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
In 2.1.3, this used to work:
map:parameter name=image-path
value={global:app-path}\resources\images\/
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
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
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:
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 you need
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
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
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
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
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
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
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
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
50 matches
Mail list logo