Re: How to obtain a java.sql.Connection object in a flowscript?

2008-09-10 Thread Tony Edwards
] For additional commands, e-mail: [EMAIL PROTECTED] -- Tony Edwards Mob: 0411 636 761 Skype: anthony.b.edwards email: [EMAIL PROTECTED] http://vomoir.blogspot.com/ begin:vcard fn:Tony Edwards n:Edwards;Tony adr:;;7 Freyberg Street;New Lambton;NSW;2305;Australia email;internet:[EMAIL PROTECTED] tel;work

Re: How to obtain a java.sql.Connection object in a flowscript?

2008-09-10 Thread Tony Edwards
] For additional commands, e-mail: [EMAIL PROTECTED] -- Tony Edwards Mob: 0411 636 761 Skype: anthony.b.edwards email: [EMAIL PROTECTED] http://vomoir.blogspot.com/ begin:vcard fn:Tony Edwards n:Edwards;Tony adr:;;7 Freyberg Street;New Lambton;NSW;2305;Australia email;internet:[EMAIL PROTECTED] tel;work

Re: Get Metadata from database

2008-09-01 Thread Tony Edwards
] -- Tony Edwards Mob: 0411 636 761 Skype: anthony.b.edwards email: [EMAIL PROTECTED] http://vomoir.blogspot.com/ begin:vcard fn:Tony Edwards n:Edwards;Tony adr:;;7 Freyberg Street;New Lambton;NSW;2305;Australia email;internet:[EMAIL PROTECTED] tel;work:0411 636761 url:http://vomoir.blogspot.com

Re: Simple cocoon distribution

2008-07-21 Thread Tony Edwards
it at your cocoon application. This would let you build a cocoon site without having to build war files or edit anything in them. Is anyone else interested in this approach? -- Tony Edwards Mob: 0411 636 761 Skype: anthony.b.edwards email: [EMAIL PROTECTED] http://vomoir.blogspot.com

Re: two submit buttons on the form

2008-03-12 Thread Tony Edwards
function cocoon.request.getParameter() I always obtain NULL. Pavel Navrkal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Tony Edwards Mob: 0411 636 761 Skype

Print Scheduling in Cocoon

2007-04-23 Thread Tony Edwards
Hi All, Does anyone have an example of print scheduling in Cocoon using Quartz or whatever? I have a requirement to print documents at a particular day and time etc and was just wondering if it was pretty straight forward to set up. Thanks for any advice, Tony

Re: Antw: Print Scheduling in Cocoon

2007-04-23 Thread Tony Edwards
@cocoon.apache.org/msg31015.html or similar postings from me. Regards Martin Tony Edwards [EMAIL PROTECTED] Montag, 23. April 2007 12:47 Hi All, Does anyone have an example of print scheduling in Cocoon using Quartz or whatever? I have a requirement to print documents at a particular

Re: Exiting flowscript by sending XML to a pipeline

2007-01-16 Thread Tony Edwards
I wrote a little item for the wiki a while back wherein I create and manipulate a dom document in flowscript then send the dom back to the sitemap for presentation. Hop onto the wiki and do a search for: FlowBasedXMLEditor

Re: Pipeline result in a flowscript?

2006-10-10 Thread Tony Edwards
of the webHierarchyLink matcher in the sitemap as a dom document which can be further processed etc. Hope this helps. Regards, Tony (Edwards) Joerg Heinicke wrote: On 10.10.2006 17:49, Dev at weitling wrote: What's the best way to get the result of a pipeline for further processing in a flowscript

Re: cocoon best editor ?

2006-10-05 Thread Tony Edwards
I use Eclipse with the JSEclipse plugin for my flow development plus the Sunbow plugin for Cocoon deployment. I'm still looking for a decent linux based xsl debugger (I use XSLerator from Marrowsoft. Its a Windows app but its bloody tops!) Eclipse has plugins aplenty for xml

Re: XSLT table formatting problem

2006-09-06 Thread Tony Edwards
Try this: xsl:for-each select=data/rows/row You're already at the /page element when you call the for-each so it can't find a /page child. (I don't know why it would work in XML-Spy, maybe its more lenient??) See how you go. Regards Tony Manuel Ottaviano wrote: *Hello cocoon users , I've a

Re: IE filepath error in flowscript - tried getName

2006-02-27 Thread Tony Edwards
(); } uploadWidget.getValue().copyToFile(userDir + java.io.File.separator + fileName); } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Tony Edwards Analyst

Re: IE filepath error in flowscript - tried getName

2006-02-27 Thread Tony Edwards
Tony Edwards wrote: Hi Daniel, I recall having the same problem a while back. I trolled around and found some javascript that would remove all but the filename (work from the end of the string until you find the first '\' kind of thing). Its pretty dodgy but then again, so's IE!! If you get stuck

Re: is there a BrowserAction?

2006-02-16 Thread Tony Edwards
] For additional commands, e-mail: [EMAIL PROTECTED] -- Tony Edwards Analyst/Programmer Dip Teach PE Dip Comp. Studies p: 02 4941 9400 f: 02 4941 9499 -- This email is from Civica Pty Limited and it, together with any attachments, is confidential to the intended recipient(s

Re: Create hsqldb tables

2005-11-20 Thread Tony Edwards
. http://hsqldb.org/doc/guide/apb.html Best Regards, Antonio Gallardo. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Tony Edwards Analyst/Programmer Dip Teach PE

Cocoon and Slide

2005-10-23 Thread Tony Edwards
through the slide api. Has anybody tried this? What's the secret? I'm trying to fiddle with the slide.xconf but to no avail. Regards, Tony -- Tony Edwards Analyst/Programmer Dip Teach PE Dip Comp. Studies p: 02 4941 9400 f: 02 4941 9499 -- This email is from Civica Pty Limited

Re: dateTime widget ?

2005-09-26 Thread Tony Edwards
I'm interested! Any addition to the pool of cforms 'widgetry' is welcome!! Jean-Christophe Kermagoret wrote: Hello, I finally developed the datetime widget from the mattkruse lib. It merely adds 3 drop-down lists that may be used to select hours/minutes/seconds Anybody interested ?

Re: How to evaluate an xpath expression against a dom tree in flow ?

2005-09-12 Thread Tony Edwards
Tony Edwards a écrit : Hi Marc, I use the XPathAPI to navigate a DOM. eg: importClass(org.apache.xpath.XPathAPI); nl = XPathAPI.selectNodeList(document, sXpath); where sXpath could be something like xPath = //authorityLink[linkNumber=' + linkNum + ']; I don't know if this is what you're after

Re: idea: log utility

2005-08-21 Thread Tony Edwards
Didn't version 2.0.4 have the ability to output log files as XML? (or am I dreaming!) I can vaguely remember setting a parameter somewhere that would enable log files to be rendered as xml. Has anybody else had this dream??? Regards, Tony Marc Salvetti wrote: Hello, it sounds a bit complex

Closing Oracle database resultsets

2005-07-17 Thread Tony Edwards
Hello all, I've got a recurring problem with Oracle and flow. I know I'm doing this completely wrong and should be utilising a data persistence layer but that gets a bit new fangled for some of the managers around here so we're stuck with doing things 'the good old way'. I'm using flow to

Re: Closing Oracle database resultsets

2005-07-17 Thread Tony Edwards
Its OK! Version 2.1.7 closes the statement handles in the ScribtableConnection class! Fortunately it also seems to be backwards compatible with 2.1.5.1. Thanks anyway. Regards, Tony Tony Edwards wrote: Hello all, I've got a recurring problem with Oracle and flow. I know I'm doing

Re: using sendmail action

2005-06-27 Thread Tony Edwards
Sergio, Here's the content of the email: I had to include mail functionality just last week and I approached the task with some trepidation as it seems that both the sendmail action and logicsheet are starting to lose favour with the advent of Cforms and flow. What to do? I did some scouring and

Re: using sendmail action

2005-06-26 Thread Tony Edwards
Hi Sergio, I went for the send mail transformer as it was only thing I managed to get going. I gave up on the action. I wrote a response to a similar query on the 10 of February this year if you want to get some background and code on using the transformer. Regards, Tony [EMAIL PROTECTED]

Re: Obtaining sitemap globals in flow

2005-06-16 Thread Tony Edwards
= cocoon.getComponent(InputModule.ROLE + Selector).select(global); var webdavSource = global.getAttribute(webdav-source,null,null); Cheers, Geert Tony Edwards wrote: Hi folks, Is there a simple way of obtaining a variable set up in the sitemap global-variables section? At the moment I'm passing

Re: AW: CForms and Modular Database Actions

2005-06-15 Thread Tony Edwards
Hi Derek, I understand your dilemma as I'm not a Java developer by any stretch. One of the good things about Cocoon is that it allows you to achieve an objective in many ways. One of the bad things about Cocoon is that it allows you to achieve an objective in many ways! I think the task for

Obtaining sitemap globals in flow

2005-06-15 Thread Tony Edwards
Hi folks, Is there a simple way of obtaining a variable set up in the sitemap global-variables section? At the moment I'm passing the value through every time a flow function is called which can't be good: map:match pattern=*.do map:call function=main

Re: cocoon on websphere 5

2005-05-19 Thread Tony Edwards
Hi Ben, I got one of the tech heads here at work to get it running under WSAS 5. There are a few things to consider: Under the Enterprise Application's Configuration tab, make sure you set Classloader Mode to 'Parent First'. Under the Local Topology tab, select the cocoon.war item and make sure

Re: Good Databases Tutorial?

2005-05-08 Thread Tony Edwards
Hi Chris, When I was starting a project that needed to hit databases and use CForms I picked apart the Petstore sample application. It shows how you can query databases from flow and push the results to and from cocoon forms. Its a bit heavy and overwhelming at first but if you take the time to

Re: get-remote-address - get-remote-host

2005-04-26 Thread Tony Edwards
Hi Beya, I use it to sort of 'log' remote users of the application (deployed across an intranet) and it does report the correct address of the requesting client. 127.0.0.1 is entered probably because you called the app through localhost. Hope this helps. Regards, Tony beyanet.com wrote: Hi, Try

Re: Email Capability

2005-04-11 Thread Tony Edwards
Title: Re: Email Capability Hey Adam, Have you had a look at the sendmail transformer? I cram stuff as a session attribute from within flow then call a pipeline which transforms it using the sendmail transformer. It works a treat. I included some details on the process on this list on the

Re: WebService Proxy

2005-03-01 Thread Tony Edwards
Title: Re: WebService Proxy Hi Andrea, I use the webservicesproxy generator (wspg) to call a struts action which returns the result as xhtml to be displayed by cocoon. Basically we're trying to incorporate chunks of an existing web application into my new cocoon app. Cocoon calls the struts

Re: Dispatching flowscript commands

2005-02-15 Thread Tony Edwards
Title: Re: Dispatching flowscript commands Hi Mark, Is this similar to what you're after? //If user selects 'newUser', display new user form if (newUser.equals (userForm.submitId)) { print(New User selected!); newUser(); return; } else if (userSearch.equals (userForm.submitId)){

Re: alternative to sendmail logicsheet?

2005-02-10 Thread Tony Edwards
Title: Re: alternative to sendmail logicsheet? Hi Rick, Glad to help. Its always good to contribute at least something to such a great community as this! Cocoon is brilliant and the amount of support derived from this list I find is outstanding. I didn't get the samples to work out of the

Re: alternative to sendmail logicsheet?

2005-02-09 Thread Tony Edwards
Title: Re: alternative to sendmail logicsheet? Rick, I had to include mail functionality just last week and I approached the task with some trepidation as it seems that both the sendmail action and logicsheet are starting to lose favour with the advent of Cforms and flow. What to do? I did

Multivalue field - setting values

2005-01-12 Thread Tony Edwards
Title: Multivalue field - setting values Hello All, I'm trying to set the values of a multivalue listbox from flow and I 'm having a few issues. I've read a few entries in various blogs and Wiki pages but I just can't seem to get the thing to fly. Reading multiple values set in the

Re: Multivalue field - setting values

2005-01-12 Thread Tony Edwards
Title: Re: Multivalue field - setting values And while we're at it: I've set the list contents from an XSP which obtains the data from the database, how do you get the unselected list items from within flow? Tony Edwards wrote: Hello All, I'm trying to set the values of a multivalue

Re: Multivalue field - setting values

2005-01-12 Thread Tony Edwards
, Tony Tony Edwards wrote: And while we're at it: I've set the list contents from an XSP which obtains the data from the database, how do you get the unselected list items from within flow? Tony Edwards wrote: Hello All, I'm trying to set the values of a multivalue listbox from flow

Re: Manipulating the DOM in flowscript

2004-11-29 Thread Tony Edwards
Title: Re: Manipulating the DOM in flowscript Hi guys, I wrote a simple wiki page about creating and editing xml documents using flow: http://wiki.apache.org/cocoon/FlowBasedXMLEditor I attached a little flowscript file which exposes most of the DOM api calls in flow. It might be a little

log4j or Chainsaw in Cocoon

2004-09-28 Thread Tony Edwards
Hello all, Has anyone incorporated Chainsaw as the default logger for Cocoon as an alternative to the now seemingly defunct LF5? And/Or how does one use Log4J as the primary logger in Cocoon? Thanks, Tony - To unsubscribe,

Re: loading xml from webdav

2004-09-27 Thread Tony Edwards
Hello François, I use webdav to store a bunch of xml files for our help/documentation system. I had a similar problem but I solved by using http://webdav/slide/ as well as webdav://...!! If you're getting errors with the webdav: protocol, try using http: I'll dig through my code and work out

Cayenne in Cocoon

2004-09-27 Thread Tony Edwards
Hi People, I'm trying to incorporate the Cayenne ORM system into Cocoon and am getting an error when the Cocoon servlet starts up. The error message is: java.lang.NoSuchMethodError:

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

Re: Flow Control - XML Editing

2004-08-24 Thread Tony Edwards
Hi Eric, I had a brief mail exchange with Mark Lundquist on the 5th August outlining my approach to flow based XML editing. Have a look and see if its detailed enough to get you started, otherwise let me know. Regards, Tony JACOB, ERIC wrote: Hi, Is it possible to edit/modify a XML file with

Re: generate XML from flowscript

2004-08-04 Thread Tony Edwards
Hi Mark, I'm using flow to create and modify an xml document which I then send through a pipeline for display. I've forgotten where I pinched the code from but here's an example: importClass(org.apache.xpath.XPathAPI); importClass(javax.xml.parsers.DocumentBuilderFactory);

Re: generate XML from flowscript

2004-08-04 Thread Tony Edwards
cobbled together from the flowscript. Hope this helps! Tony Mark Lundquist wrote: On Aug 4, 2004, at 6:18 PM, Tony Edwards wrote: Hi Mark, I'm using flow to create and modify an xml document which I then send through a pipeline for display. I've forgotten where I pinched the code from

Re: [CForms] Setting dynamic values in selection-list?

2004-07-19 Thread Tony Edwards
Hi Stephan, I use good old xsp to query a database and return the results as fd-selection items. Behold: esql:results esql:row-results xsp:logic int hcy_num = esql:get-int column=hcy_num/;

Re: Accessing global config values in sitemap through flow scripts

2004-07-15 Thread Tony Edwards
Hi Kranga, If you look in the slide sample's flow, its opening stanza has some code that extracts the globals form the sitemap, to wit: //Obtain reference to the global section of the sitemap: var global = cocoon.getComponent(InputModule.ROLE + Selector).select(global); //get global values from

Cocoon FOM objects

2004-05-13 Thread Tony Edwards
Hi Cocooners, I'm a little confused. I'm trying to upload an xml file and process it through the sitemap using Flow. I've hacked the file upload example to suit my needs and I've got the file being uploaded to my 'upload-dir' which I've set in web.xml. I've got some code from an xsp I had lying

Woody Calendar Dropdown position

2004-03-04 Thread Tony Edwards
Morning all, I was fiddling with an application that I had ported form 2.1.3 to 2.1.4 and noticed a curious thing: the woody dropdown calendar widget was now being displayed in the top left corner of the screen and not underneath the text input as usual. This characteristic is only evident in

Re: 2.1.4-dev -- 2.1.4 release No languages defined!

2004-03-03 Thread Tony Edwards
People, I mistakenly removed this line from my sitemap after moving to 2.1.4 and it worked! Look for this line in the components section and comment it out and see what happens. map:flow-interpreters default=javascript / Regards, Tony Peter Lerche wrote: Hi Bertrand, I, also suspected the

Continuation Not Defined Error

2004-02-29 Thread Tony Edwards
Hello all, I've been running 2.1.3 and 2.1.4 under the bundled Jetty servlet with no problems but the time has come to get my application into production under Tomcat 4.1.24. I built a war file and installed it but whenever I run a flow application it throws up a 'Continuation is not defined'

Re: Continuation Not Defined Error

2004-02-29 Thread Tony Edwards
the Woody flowscript sample and everything worked fine! Thanks heaps. Regards, Tony Antonio Gallardo wrote: Hi Tony: Are you put the endorsed libs in $TOMCAT/commons/endorsed dir? Also, better use Tomcat 4.1.30 Best Regards, Antonio Gallardo Tony Edwards dijo: Hello all, I've been running

Re: Error running 2.1.3 app in 2.1.4

2004-02-29 Thread Tony Edwards
AM Subject: Re: Error running 2.1.3 app in 2.1.4 hi tony i'm just suggesting, but if you're using flow-script, try to add an explicit declaration of the used language: map:flow language=javascript map:script src=path to your js-flow-files/ /map:flow greetings stefan Tony Edwards wrote

Problem with transform of aggregation

2004-02-25 Thread Tony Edwards
Hi Cocooners, Sorry about the lengthy post but I'm flummoxed! I have a somewhat perplexing issue in that I'm aggregating the output of 3 XSPs that collectively return information about an asset's booking and date details. If I save the XML generated from the aggregation and run it through the

Re: .

2004-02-25 Thread Tony Edwards
Lads, I stuck a CocoonUserGroupAustralia entry on the Wiki just the other night. I'm using Cocoon in various projects up here in Newcastle. There's a few people I've noticed on the user list making submissions so its starting to blossom. Read the suggestions I made on the wiki and get in touch!

Re: Realtime generation of Woody Forms

2004-02-16 Thread Tony Edwards
. thanks for all your input! Tony Bruno Dumon wrote: On Sun, 2004-02-15 at 23:31, Tony Edwards wrote: Thanks for your responses, people. I added cocoon:/ to the URL but got this error: uri is not allowed to contain a scheme (cocoon:/ is always automatically used) Any thoughts, I

Re: Realtime generation of Woody Forms

2004-02-15 Thread Tony Edwards
Thanks for your responses, people. I added cocoon:/ to the URL but got this error: uri is not allowed to contain a scheme (cocoon:/ is always automatically used) Any thoughts, Thanks, Tony Bruno Dumon wrote: On Fri, 2004-02-13 at 06:52, Tony Edwards wrote: Cocooners, I'm trying to generate

Error running 2.1.3 app in 2.1.4

2004-02-15 Thread Tony Edwards
Folks, I'm still interested to hear if I can generate woody forms on the fly - but it isn't really a show stopper at this stage (I'm quite happy to just insert a configuration step that generates the necessary forms and move these to a 'production' area). In the meantime, I just downloaded the

Realtime generation of Woody Forms

2004-02-12 Thread Tony Edwards
Cocooners, I'm trying to generate a woody form definition and template in real time from a Torque xml database schema. I read somewhere that it was theoretically possible to do this but I'm getting an error: Could not parse form definition from

Re: Problem with date format for a woody widget in xsp

2004-02-10 Thread Tony Edwards
Hi Alex, I had a similar problem saving data back to a MySql database. The database only recognises dates in -MM-dd format and the flowscript was outputting dates like so: EEE, d MMM HH:mm:ss Z (the same as your issue). I fiddled with the wd:convertor settings but it didn't change the

Re: FLOW inserting data to SQL

2004-01-27 Thread Tony Edwards
Hi Joose, check out the Petstore example for ideas on how to access databases from flow. I'm using flow to access an Informix database and a MySql database. Its a snap. I take Joerg's point about the separation of concerns, however but if you design your flowscripts carefully you can still

Re: InflatedFileGenerator

2003-11-19 Thread Tony Edwards
Hi Jean, We use the OpenOffice format a fair bit here for other projects. I did write a simple generator to extract the 'content.xml' from the .sxw file but it was a bit of a kludgey hack as my java skills are still a bit infantile! I'd be interested in utilising your offering if that's

Re: Problems building 2.1.2

2003-11-06 Thread Tony Edwards
org.mozilla.javascript.tools.debugger.Main db.setOptimizationLevel(OPTIMIZATION_LEVEL); ^ 2 errors Thanks, Tony Tony Edwards wrote: Good Morning People, I downloaded the latest release (version 2.1.2) last night and tried to build the war file but it returned the following

Re: Problems building 2.1.2

2003-11-06 Thread Tony Edwards
, Tony Edwards wrote: Hello again, Still no joy compiling 2.1.2 obtained from cocoon-latest-srs.zip in the downloads section of the web site. Previous version built without incident. The difficulty is I'm not a java programmer and I get a little nervous when things don't work straight

Problems building 2.1.2

2003-10-27 Thread Tony Edwards
Good Morning People, I downloaded the latest release (version 2.1.2) last night and tried to build the war file but it returned the following error: C:\cocoon-2.1.2\src\java\org\apache\cocoon\components\flow\javascript\JavaScriptInterpreter.java:198: cannot resolve symbol symbol : method

Re: xslt/transformer question

2003-10-16 Thread Tony Edwards
Title: Re: xslt/transformer question Hi Geert, I have written a basic xml editor in cocoon that can result in large files in region of 150 to 200kb +. Obviously at the upper end of the file size it gets a bit sluggish but works none the less. I use the source writing transformer to output

RE: Castor

2003-07-29 Thread Tony Edwards
Ralph, We use Castor to generate xml from beans using an xsp-action to create an instance of the bean then we use the generator to point to the castor config xml file: ?xml version=1.0? civica xmlns:castor=http://castor.exolab.org/cocoontransfomer; castor:InsertBean name=lodgement

RE: Beans as input for cocoon

2003-07-16 Thread Tony Edwards
Title: RE: Beans as input for cocoon Uwe, Its in the cocoon-scratchpad.jar. You initialise it thus: map:transformer name=castor logger=sitemap.transformer.castor src=""> mappingxml/test-mapping.xml/mapping /map:transformer My pipeline segment for the castor bit looks like this:

Web services best practice

2003-07-11 Thread Tony Edwards
Title: Web services best practice Hi guys, I've been trying to get a handle on establishing a cocoon based application as a web service (ie a web service server). My question is this: What's the best way to implement this? Do I use the WebServiceProxyGenerator or the AxisRPCReader and what