>> Using any of the two variants in my own flowscripts gives me an error:
>>
>> "Must be used in a block context
>>
> servlet:forms:/resource/internal/flow/javascript/Form.js"
>
> Can you show configuration of servlet bean from your block? It's located
> at src/main/resources/META-INF/cocoon/spring. I believe problem is there.
>
>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:servlet="http://cocoon.apache.org/schema/servlet"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://cocoon.apache.org/schema/servlet
http://cocoon.apache.org/schema/servlet/cocoon-servlet-1.0.xsd">
<bean id="com.myApp" class="org.apache.cocoon.sitemap.SitemapServlet">
<servlet:context mount-path="my-app"
context-path="blockcontext:/my-app/">
<servlet:connections>
<entry key="ajax"
value-ref="org.apache.cocoon.ajax.impl.servlet" />
<entry key="forms"
value-ref="org.apache.cocoon.forms.impl.servlet" />
</servlet:connections>
</servlet:context>
</bean>
</beans>