Re: hostname lookup

2007-06-04 Thread Ralph Goers
Well, I see a call to getRemoteHost in Cocoon.java but only when debug is enabled. Is debug enabled in your system? I also see it used in a few other places such as the session framework, but there aren't that many. Frankly, if I was trying to troubleshoot this I'd just use a debugger and set

R: Convert to java flow?

2007-06-04 Thread leonardo . battagli
yes, cocoon 2.1.6 on weblogic 8.1 cocoon rhino package has been renamed from org.mozilla.rhino to org.nozilla.rhino version used has been rhino 1.5.4 branch, otherwise rhino 1.6.1 should work the same Leonardo -Messaggio originale- Da: "Gary Larsen" <[EMAIL PROTECTED]> [mailto:"Ga

RE: hostname lookup

2007-06-04 Thread Leonid Geller
IP->hostname is called reverse DNS lookup. The slowdown consistently occurs when the client's hostname does not have an "A" DNS record; having a "PTR" but no "A" record slows things down even further. Now, rather than worry about why some clients are set up this way, I want to make sure the

Re: hostname lookup

2007-06-04 Thread Joerg Heinicke
On 05.06.2007 02:41, Leonid Geller wrote: hostname of the http requestor/client. we have the lookup disabled in apache (2.2.4), so requests handled by the web server or our j2ee container/default web app do not experience this problem. we can tell that because 1) they result in access log entrie

RE: hostname lookup

2007-06-04 Thread Leonid Geller
hostname of the http requestor/client. we have the lookup disabled in apache (2.2.4), so requests handled by the web server or our j2ee container/default web app do not experience this problem. we can tell that because 1) they result in access log entries that have client ip, not hostname, and 2

RE: hostname lookup

2007-06-04 Thread Andrew Stevens
What hostname(s) is being looked up? The most common reason I've seen in our apps for name lookups (and subsequent outgoing HTTP requests) is when someone forgets to add a new DTD to the entity resolver's catalog. Andrew. -- http://pseudoq.sourceforge.net/ Open source java Sudoku __

hostname lookup

2007-06-04 Thread Leonid Geller
How can I disable hostname lookup in Cocoon 2.1.10? It slows down our application immensely! Thanks, -Leonid Geller

Convert to java flow?

2007-06-04 Thread Gary Larsen
I've never been able to get my Cocoon application running in BEA WebLogic, first with 2.1.7 and now with 2.1.9. I believe the only problem is the incompatibility of the Cocoon and WebLogic rhino*.jar implementations that has been discussed in this list before. I'm thinking a solution would be to c

RE: Discussion: Postponing XSL processing to browsers

2007-06-04 Thread Christian Schlichtherle
Hi Philippe, so far my results have been really great. I've written a complex style sheet by now which does all the grouping/sorting using strict XSL 1.0 (no Ajax yet). When the server detects an XSL-capable browser, it responds in about a 1/4 - 1/3 of the time, simply because it can serve the dat

Re: Discussion: Postponing XSL processing to browsers

2007-06-04 Thread Philippe Gauthier - INSERM SIRH
Hi Christian, I'm pretty new to Cocoon, but I think postponing the xslt styling is a great idea. After all, the browser is presenting the data, so let it do its job, no more, no less. Plus it'll greatly lighten http transferts by postponing caching to the clients. There might be some security

Re: Cocoon Forms vs. JSF

2007-06-04 Thread Alexander Klimetschek
I personally like the features of Cocoon Forms and the easy flow with continuations, but I see the problem of two many files for a single form as well. And if you don't need continuations then the advantages of Cforms melt... One of the key concepts of CForms is to be output-format neutral: so

RE: Cocoon and FOP

2007-06-04 Thread Kai Mütz
Edward S <> wrote: > hi, > > we are using Cocoon 2.1.9 > It comes with a FOP 0.20.5 jar and the FOP components are based on > that jar. > > I found out that FOP 0.93 has a lot of different features as compared > to 0.20.5 How can we use those features in Cocoon. I have replaced the fop jar with th

Re: Cocoon and FOP

2007-06-04 Thread Stephen Winnall
I ran up against an issue in this area too. 0.20.5 can't handle transparency whereas 0.93 can. However, I was unable to find a work- around which didn't involve reimplementing FOP for Cocoon (there are changes in the API between the two versions), and I didn't have enough time to do that. S

RE: Cocoon Forms vs. JSF

2007-06-04 Thread Christian Schlichtherle
Hi, I do know XSL/T, but that doesn't help with the Schema of any input to the XSL processor. Kind regards, Christian smime.p7s Description: S/MIME cryptographic signature

RE: Cocoon Forms vs. JSF

2007-06-04 Thread Christian Schlichtherle
Hi, > This is because they describe different aspects of a form. I appreciate this well (otherwise I wouldn't use Cocoon), but just wanted to make clear that XML by itself is little more than a string tokenizer. Without a DTD, Schema, or RELAX NG and the implied semantics an XML file says nothin

Re: Cocoon Forms vs. JSF

2007-06-04 Thread Baptiste Placé
Hi, Maybe you are still learning parts of xml/xslt, or you are just new to cocoon, but what is saying Florian is one unavoidable aspect of programming : be resistant against changes for the better. Moreover, pipelines should not be duplicated with widlcard/regexp :) Baptiste Christian Schlic

Re: Cocoon Forms vs. JSF

2007-06-04 Thread thomason
on 6/4/07 8:52 AM, Christian Schlichtherle at [EMAIL PROTECTED] wrote: > + On the other hand, I foresee productivity scalability issues: Suppose I > need to do ten forms. With Cocoon Forms, I would have to do ten Form > Definitions, plus ten JXTemplates, plus the controller logic plus a plethora >

Cocoon and FOP

2007-06-04 Thread Edward S
hi, we are using Cocoon 2.1.9 It comes with a FOP 0.20.5 jar and the FOP components are based on that jar. I found out that FOP 0.93 has a lot of different features as compared to 0.20.5 How can we use those features in Cocoon. -Ed.

Re: Cocoon Forms vs. JSF

2007-06-04 Thread Dev at weitling
>> And there are only really two technologies here: XML/XSLT >> and Javascript. But if you >> >> don't know either of these, then I agree that Cocoon can be >> difficult to assimilate... >> > > Wait a minute - a form definition uses a different XML schema than the view > template and the

RE: Cocoon Forms vs. JSF

2007-06-04 Thread Christian Schlichtherle
Hi, > And there are only really two technologies here: XML/XSLT > and Javascript. But if you > > don't know either of these, then I agree that Cocoon can be > difficult to assimilate... Wait a minute - a form definition uses a different XML schema than the view template and the sitemap and t

Re: Cocoon Forms vs. JSF

2007-06-04 Thread Derek Hohls
Agreed. I am not what the exact "productivity scalability issues" are: 10 forms are 10 forms - not sure how you can get around this in Cocoon (or how you get around this in any other framework?)... but I guess if there is enough similarity, you could always store their attributes in a database an

Re: Cocoon Forms vs. JSF

2007-06-04 Thread Dev at weitling
Hi Christian, I don't know JSF/MyFaces yet, but consider my 2 cents: You may put those ten forms into one, making "page" switches e.g. via Ajax/union widget. Though I would not recommend it :-) I'm at the moment forced to code forms via plain JSP. And it's ugly mixing view, logic, model. So it rea

RE: Cocoon Forms vs. JSF

2007-06-04 Thread Christian Schlichtherle
Hi, as I said I am new to Cocoon. My point was just that within Cocoon you could do Forms "the Cocoon way" with Cocoon Forms and either Actions or Flow or you could do them "the JSF way" with the MyFaces implementation. As you figured, with both approaches, I could build forms which produce XML a

Re: Cocoon Forms vs. JSF

2007-06-04 Thread Ralph Goers
Forgive me if I am misunderstanding, but I'm having a hard time understanding your question. JSF is essentially the controller in MVC - your faces config identifies the view states to go to based upon the view state you are currently in and the outcome of some actions. JSF provides no specific

Re: Redirect at the end of a form

2007-06-04 Thread Tobia
Jason Johnston wrote: > When the user hits refresh on the confirmation page, the database > operations will be skipped and the confirmation displayed again. Interesting, I had not thought of putting the flag variable in the main flowscript function. Although one advantage of the redirect is that

Re: Redirect at the end of a form

2007-06-04 Thread Baptiste Placé
Your solution looks quite concise. If you use flowscript for all DB transaction, couldn't you have the final page make the commit ? Maybe you can invalidate the continuation created before, not sure how to do that. Hope this help. -Baptiste Tobia a écrit : In my example I only had one form,

Re: Redirect at the end of a form

2007-06-04 Thread Tobia
Baptiste Placé wrote: > Have you tried stocking form data into a collection, and send it to > the final page? I'm not sure I understand > Refreshing the page re-executing the db actions mean the final page > triggers the DB part of your flowscript. Maybe your final page is > invoking the same f

Cocoon Forms vs. JSF

2007-06-04 Thread Christian Schlichtherle
Hi, I'm pretty new to Apache Cocoon, so this may be stupid question: I've looked at Cocoon Forms and JSF. Regarding form processing, both seem to be pretty equal in features - components, technology neutral, validation, binding, etc. Now I wonder why I should prefer Cocoon Forms over JSF. I d

Cocoon 2.1.10: Wrong encoding when using html or nekohtml generator

2007-06-04 Thread Christian Schlichtherle
Hi, when parsing HTML pages via HTTP using either the html or nekohtml encoder, it doesn't correctly decode the German diaeresis characters (äöüÄÖÜ) and others. If have checked the page. It doesn't specify an encoding in the header (plain HTML - maybe 3.2), but the page is delivered with the co

Re: Redirect at the end of a form

2007-06-04 Thread Jason Johnston
Tobia wrote: Cocoon users, I would like to get your feedback on a piece of flowscript I just wrote to solve what I believe to be a common problem. Suppose you have a form that asks the user for some data, validates it and inserts it into a database, using a DB access layer for flowscript, such

Re: Redirect at the end of a form

2007-06-04 Thread Baptiste Placé
Hi Tobia, Have you tried stocking form data into a collection, and send it to the final page ? Refreshing the page re-executing the db actions mean the final page triggers the DB part of your flowscript. Maybe your final page is invoking the same function than the first one ? -Baptiste Tobia

Redirect at the end of a form

2007-06-04 Thread Tobia
Cocoon users, I would like to get your feedback on a piece of flowscript I just wrote to solve what I believe to be a common problem. Suppose you have a form that asks the user for some data, validates it and inserts it into a database, using a DB access layer for flowscript, such as jdbi.js from

Cocoon Forms vs. JSF

2007-06-04 Thread Christian Schlichtherle
Hi, I'm pretty new to Apache Cocoon, so this may be stupid question: I've looked at Cocoon Forms and JSF. Regarding form processing, both seem to be pretty equal in features - components, technology neutral, validation, binding, etc. Now I wonder why I should prefer Cocoon Forms over JSF. I d

Cocoon 2.1.10: Wrong encoding when using html or nekohtml generator

2007-06-04 Thread Christian Schlichtherle
Hi, when parsing HTML pages via HTTP using either the html or nekohtml encoder, it doesn't correctly decode the German diaeresis characters (äöüÄÖÜ) and others. If have checked the page. It doesn't specify an encoding in the header (plain HTML - maybe 3.2), but the page is delivered with the co

Re: ImageReader not working on fedora 6

2007-06-04 Thread Jeroen Reijn
Hi Bhavya, did you check your log files? It might tell you the reason. The other thing I can think of is that you do not have window manager on you fedora box, so you will have to run your java application in headless mode. "java -Djava.awt.headless=true" This happens sometimes when you swit

Re: Simple JDBC scripting framework in Cocoon?

2007-06-04 Thread Andrew Savory
Hi, On 14 May 2007, at 14:39, ypomonh wrote: Is there one..? Take a look at http://cocoon.zones.apache.org/demos/release/samples/ blocks/forms/ and specifically the "Easy SQL database access" demo, which uses JDBI - this might be what you're looking for. Original Message -

Re: OpenSSO and cocoon

2007-06-04 Thread Andrew Savory
Hi Hanne, On 8 May 2007, at 14:54, Hanne Moa wrote: Has anyone experimented with OpenSSO (or more exactly OpenFederation) in cocoon? I've just started looking into it, as it's about to be a must in my organization. I did some work with the guys at Newcastle