You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Hugh Sparks <hu...@csparks.com> on 2008/07/31 17:48:23 UTC

When are servlet connections required?

I'm confused about when servlet connections need to be
specified and when the servlet:/ protocol must be used.

For example, I have a demo webapp that depends on one block, 'myBlock'.
When I run the webapp, the content from myBlock is displayed by this browser url:

    http://localhost:8888/myBlock

For this to work, it isn't necessary to specify a servlet connection
in the webapp's SitemapServlet bean.

But if the webapp uses forms, it is necessary to specify these connections:

<servlet:connections>
    <entry key="ajax" value-ref="org.apache.cocoon.ajax.impl.servlet"/>
    <entry key="forms" value-ref="org.apache.cocoon.forms.impl.servlet"/>
    <entry key="style-default" value-ref="org.apache.cocoon.samples.style.default.servlet"/>
</servlet:connections>

I'm sure I have a misconception about how these entry keys are used.
Could someone explain when and why these expressions are required
to reach a block? (And sometimes why not.)

Thanks,

-Hugh Sparks


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org