Steinar Jonsson | 1 Dec 01:50 2003
Picon
Picon

Re: Nested flowscripts

On Friday 28 November 2003 09:58, Christian Hoofe wrote:
> From: Steinar Jonsson <sjonsson <at> online.no>
>
> >Subject: Nested flowscripts
> >Newsgroups: gmane.text.xml.cocoon.user
> >Date: Wed, 26 Nov 2003 20:40:13 +0100
> >
> >I have a flowscript that does a sendPageAndWait( request ),
> >and the request happens to start a second flowscript.
> >
> >When that second flowscript has completed its work,
> >how do I return to where the first one left off?
>
> Try:
>
>     // save the actual continuation object
>     var scriptCont = cocoon.continuation;
>
>    cocoon.sendPageAndWait(...);
>
> 	// reset the original continuation object
> 	cocoon.continuation = scriptCont;
>
> This worked for a Woody-Form call instead of  cocoon.sendPageAndWait() in
> my flowscript program. This is a result of trial and error may be someone
> knows a better solutions. I found nothing in the documentation.
>

Couldn't get that to work, cocoon.continuation is undefined.

(Continue reading)

Geoff Howard | 1 Dec 01:59 2003

Re: Upload with incorrect encoding

Christian Haul wrote:

> O.Vobejda <at> sh.cvut.cz wrote:
> 
>> Db supports BLOBs, but I never did anything with them in java, less so 
>> cocoon :) Is it possible to use ESQL someways? Probably not, isn't it :) 
> 
> 
> ESQL and (modular) database actions support blob, clob types.
> AFAIR ESQL can only get them while the actions can insert and
> update them.

And there's an example of configuring the modular database actions 
(mod-db) to accept an uploaded file directly into a db blob.  No code - 
just configuration.  It's in the database block examples.

Geoff
Phil Blake | 1 Dec 04:01 2003
Picon

nested selectors

Hi Everyone,

I am having a problem with nested "resource-exists" selectors.

The wacky symptom is: When there is a nested resource-exists selector 
in a matcher, our sitemap does not appear to be used  - ie, the sitemap 
from the folder above returns a "resource not found".

As soon as I remove the nested resource-exists selector, the correct 
matcher in the correct sitemap is used.

I can't find any log entries that help me much.

Has anyone seen this behavior? Does anyone use nested resource-exists 
selectors?

Thanks for your time,

Phil
gounis | 1 Dec 09:21 2003
Picon

cocoon - slide block

hi people 

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

thx

--stavros
Olivier Billard | 1 Dec 10:04 2003
Picon

Re: XSP pages being rendered without the text content in the text nodes!!! SOS

Hi Amaresh,

I think it comes from your XSL, that doesn't propagates the content of elements.
Try with no other template than :

<xsl:template match=" <at> *|*|text()" priority="-1">
   <xsl:copy>
     <xsl:apply-templates select=" <at> *|*|text()"/>
   </xsl:copy>
</xsl:template>

it should work

--
Olivier Billard

On 28/11/2003 15:35, Amaresh Wakkar wrote:
> 
> Hi Everyone,
> I am using cocoon-2.1 on Win2000 with Websphere5 and WSAD(websphere 
> studio 5.0 using IBM Java 1.3.1 compatible VM).
> Basically I am trying to get a simple XSP page working..
>  
> <?xml version="1.0"?>
> <xsp:page language="java"
> xmlns:xsp="http://apache.org/xsp"
> xmlns:esql="http://apache.org/cocoon/SQL/v2"
>  >
> <page>
> <test>hello world..again..gdfgdfgdg</test>
(Continue reading)

Amaresh Wakkar | 1 Dec 10:25 2003
Picon

Re: XSP pages being rendered without the text content in the text nodes!!! SOS


Bonjour Olivier,
Thanks for your reply..
I am not using any stylesheet of my own..I was using it earlier but then I commented it out to see where the problem is?? The only stylesheet which is being used is xsp.xsl which comes with the cocoon distribution. I had a look at the logicsheet(xsp.xsl) and the template you mentioned does not exist as a single match, however there are 2 separate templates for text() and <at> * and they use the XSL-extension methods which apparently escape the text content..I commented out the calls to extension methods and simply replaced them with <xsl:value-of select="." /> and it appeared to work but I am not sure if that is such a good idea because it may break something else somewhere..I am not sure how to proceed??

Merci,
Amaresh.
P.S: I have also tried with the latest cocoon 2.1.3 build..with the sample xsp which is shipped...same problem..
Thomas Nichols | 1 Dec 10:29 2003
Picon

Re: Docs or examples for modular database actions?

At 18:03 29/11/2003 +0100, Christian Haul wrote:

>Thomas Nichols wrote:
>
>>>BTW I've been reading docs on SOFIA recently
>>  From salmonllc.com? Looks interesting on paper - RAD for J2EE...
>
>Yep. Although I believe Cocoon is well up to the job ;-)

So I am finding.

>>>  and am wondering if we
>>>should provide a _second_, less powerful but simpler interface to esql:
>>>   [...snip...]
>>>Thoughts?
>>>
>>>         Chris.
>>
>>The <esql:row-results> approach took me a little time to get my head 
>>around - and the alternative syntax is a good deal simpler. Would this be 
>>an alternative syntax, with the old syntax still supported?
>
>It's not really "old" vs "new" -- it would be an additional tag that
>would expand to the very same code as the current combination. Hence,
>it could be fully combined with all other esql tags that may appear
>inside a esql:row-results. Well, that would be the plan.

Ok, in that case it sounds useful.

>>Unless you can mix the old and new code together, though, this represents 
>>yet another choice between simplicity and power, of which there are 
>>several already :-)
>
>Indeed. But maybe the current ESQL usage is a little too complex to just
>list the contents of a table?

I didn't find it so, but then I'm reasonably familiar with SQL.

>>To be honest, I don't have a problem with embedding SQL SELECTs directly 
>>into the XSP or logicsheet. The row-results logic, once grasped, is also 
>>straightforward enough. More of an issue is the insert/update/delete 
>>logic. In your GT2003 slides, IIUC, you recommended against doing these 
>>using ESQL or SQLTransformer: this is my instinct also, but what are your 
>>reasons? And could these problems be overcome by an alternate "simple 
>>ESQL" interface? If so, that would to me make a more compelling reason 
>>for an "ESQL Simple" interface.
>
>Nope. What I don't like about manipulating tables from XSP is that a)
>application logic appears on the page

Agreed - generally horrid.

>  b) different results (eg errors)
>lead to different pages or ask for redirects which makes the pages too
>complex to maintain.

You mean the process flow is defined within XSPs? Ok, I can see this is a 
problem.

>Actions are a good step in the right direction if used correctly.
>
>Honestly, the flow + o/r apprach is so much more elegant for complex
>logic. Especially if you add CocoonForms aka Woody to it.

I'll check this out more carefully.

>>Cocoon has the best architecture I've worked with for a very long time - 
>>thanks for all your work.
>
>Thank you! Now go and spread the word :-)

I already am :-)

>         Chris.

Thanks again,
Thomas.
Patrick Hess | 1 Dec 10:43 2003

Re: drive site with cocoon on sun e450

Robert Andersson wrote:

> we, well i, want to set up cocoon and lenya to drive
> http://sprakteknologi.se/ on our sun e450, 4x300Mhz ultrasparc II,
> 4GB. yes it's an old machine but it's rather nice i think. :)

On a similar machine cocoon is running fine here on tomcat 4.1.x and 
weblogic 7 (flowscript not possible). Both setups needed no tweaking 
just install the webapp like described in the manual. I don't know about 
using jetty in this config. Hope this helps a bit!

Patrick
Olivier Billard | 1 Dec 10:45 2003
Picon

Re: XSP pages being rendered without the text content in the text nodes!!! SOS

- Try with other element names
- check the xml serializer configuration in <map:serializers>

With the sample you gave, I don't see what could block. You should have a look at the 
samples, some of those use XSPs.

On 01/12/2003 10:25, Amaresh Wakkar wrote:

> 
> Bonjour Olivier,
> Thanks for your reply..
> I am not using any stylesheet of my own..I was using it earlier but then 
> I commented it out to see where the problem is?? The only stylesheet 
> which is being used is xsp.xsl which comes with the cocoon distribution. 
> I had a look at the logicsheet(xsp.xsl) and the template you mentioned 
> does not exist as a single match, however there are 2 separate templates 
> for text() and  <at> * and they use the XSL-extension methods which 
> apparently escape the text content..I commented out the calls to 
> extension methods and simply replaced them with <xsl:value-of select="." 
> /> and it appeared to work but I am not sure if that is such a good idea 
> because it may break something else somewhere..I am not sure how to 
> proceed??
> 
> Merci,
> Amaresh.
> P.S: I have also tried with the latest cocoon 2.1.3 build..with the 
> sample xsp which is shipped...same problem..

--

-- 
Olivier BILLARD
Kai Benndorf | 1 Dec 10:52 2003
Picon
Picon

Re: Spaces in request parameters: Problems with raw-request-param

Hi Tony,

i've opened  the following bug:

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

Best Regards

Kai

Tony Collen schrieb:

> Kai Benndorf wrote:
>
>> Hi all,
>>
>> in my Cocoon application i process a HTML formular and request XML 
>> data from an http request using the standard FileGenerator: Something 
>> similar to:
>>
>>     <map:generate 
>>
src="http://localhost/FMPRO?-db=KD_Produkt_DB&amp;producer={raw-request-param:SEARCH-producer} 
>> label="content"/>
>>
>> I 've problems if the parameter SEARCH-producer contains white space, 
>> like 'Agon GmbH'. I was glad when i found the 
>> RawRequestParameterModule, which should exactly do what i needed 
>> here, delivering the parameters as delivered from the  web client 
>> 'Agon+GmbH'. But it doesn't work! The parameter comes still as 'Agon 
>> GmbH'.
>>
>> Many thanks in advance for any hint.
>
>
> Kai,
>
> I've recently noticed this problem, too.... unfortunately I haven't 
> had a lot of time to look into this... I may have some time to 
> investigate in the coming week or so.
>
> In the meantime, would you mind opening a bug in bugzilla with your 
> test case?
>
> Regards,
>
> Tony
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe <at> cocoon.apache.org
> For additional commands, e-mail: users-help <at> cocoon.apache.org
>
>
>

--

-- 
----------------------------------------------------------------
Dipl.-Inf. Kai Benndorf
Fraunhofer-Institut für Zuverlässigkeit und Mikrointegration IZM
Abteilung: Advanced System Engineering
Technologiepark 34                   PHONE: (++49) 5251 5402-131
33100 Paderborn                             (++49) 5261 920832
Germany                              FAX:   (++49) 5251 5402-105
                       E-MAIL: kai.benndorf <at> pb.izm.fraunhofer.de
                       URL: http://www.pb.izm.fraunhofer.de/kmsd
----------------------------------------------------------------

Gmane