cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ulrich Mayring <>
Subject Internal Flow Control
Date Thu, 04 Apr 2002 10:21:28 GMT
Hello folks,

I have a "philosophical" question that relates to web apps:

Suppose for the sake of this example that the smallest component of a
web app is an XSP page and that I want to do something like this:

	if (test==true) {
	else {

I call this internal flow control, because it occurs within a component.
In contrast to that, external flow control would be between components,
such as HTTP redirects from one XSP page to another or HTML forms that
make a POST request to another XSP page.

As far as I understand, for external flow control there are some things
out there, namely a forms processing framework that uses the Action
framework and Schecoon.

However, what are my options for internal flow control? Here are some
answers that come to my mind:

1) Use the implementation language (here: Java) for flow control like it
is shown in the example above.

2) Write a logic taglib that wraps the Java code in order to make it
independent from the implementation language.

3) Invent a Sitemap-like central repository, where individual components
or groups of components are selected and their internal flow control is

4) Avoid internal flow control altogether. If a component needs internal
flow control, this is a sure sign that it should be split up into
several smaller components and external flow control should be used
between them.

To me none of these answers are really satisfactory. Is there a
"Cocoon-way" for internal flow control or is it stipulated that Cocoon
should leave this to the individual preferences of the user?

Thank you very much in advance for any comments,


Ulrich Mayring
DENIC eG, Systementwicklung

To unsubscribe, e-mail:
For additional commands, email:

View raw message