You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Anna Bikkina <an...@pinksheets.com> on 2004/02/20 22:48:37 UTC

Error:action logicsheet cannot be used in generators

Hi,

I am trying to use ServerPagesAction in cocoon. I have a wierd problem where I 
get an error saying 

org.apache.cocoon.ProcessingException: action logicsheet cannot be used in 
generators

My sitemap goes like this 
 <map:match pattern="security.xsp">
        <map:act type="validator">
                <map:parameter name="descriptor" value="/usr/local/jboss/
tomcat/webapps/
cocoon/server/styles/descriptor.xml"/>
                <map:parameter name="validate-set" value="securityquote"/>
                <map:act type="xsp-action">
               		 <map:generate type="serverpages" src="securityresult.xsp"/>
                <map:transform src="search.xsl"/>     
                  <map:serialize/>    
                </map:act>
        </map:act>
     <map:generate src="security.xsp" type="serverpages"/>
     <map:transform src="search.xsl"/>     
     <map:serialize/>    
   </map:match>


Can we not use actions with generators. I have the following code in my xsp 
file.

 <map:action 
    logger="sitemap.action.xsp-action" 
    name="xsp-action" 
    src="org.apache.cocoon.acting.ServerPagesAction"/>

and then I have a xsp:logic part of code which does success and failure stuff. 

Can someone please tell me what I am doing wrong here. 

Thanks,
Anna.


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


Re: Error:action logicsheet cannot be used in generators

Posted by "John L. Webber" <Jo...@jentro.com>.

Anna Bikkina wrote:

>Hi,
>
>I am trying to use ServerPagesAction in cocoon. I have a wierd problem where I 
>get an error saying 
>
>org.apache.cocoon.ProcessingException: action logicsheet cannot be used in 
>generators
>
>  
>
This is correct -- you can't use actions in generators. You can use 
different generators in your pipeline based on the results of the action.


>Can we not use actions with generators. I have the following code in my xsp 
>file.
>
> <map:action 
>    logger="sitemap.action.xsp-action" 
>    name="xsp-action" 
>    src="org.apache.cocoon.acting.ServerPagesAction"/>
>  
>

You have <map:action> in your xsp? If I'm not greatly mistaken, that 
should be in your sitemap. But I'm not a real Cocoon guru, I've only 
been using it for a few months.

John

-- 
---------------------------------------------------------
 Jentro Technologies GmbH
 John L. Webber, Software Development
---------------------------------------------------------




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