cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: Using Actions in Sitemaps
Date Mon, 23 Jul 2001 12:51:54 GMT
Max Larsson wrote:
> 
> Hello,
> 
> i have written my own Action for C2. It works fine.
> But somehow the C2 always report resource not found.
> With resource i think C2 means the file i am requesting,
> because i cannot find any ClassNotFoundExceptions in any logs.
> 
> I have configure in my sitemap the following to use the action
> 
>  ...
>   <map:actions>
>     <map:action name="login-request" src="LoginAction"/>
>     <map:action name="lang-select"
> src="org.apache.cocoon.acting.LangSelect"/>
>   </map:actions>
>  </map:components>
>  <map:action-sets>
>   <map:action-set name="helpdesk">
>    <map:act type="login-request"/>
>   </map:action-set>
>  </map:action-sets>
> 
> ...
> 
>   <map:match pattern="*.html">
>     <map:act set="helpdesk">
>       <map:generate type="serverpages" src="helpdesk.xsp"/>
>         <map:serialize/>
>     </map:act>
>   </map:match>
> 
> ...
> 
> The file helpdesk.xsp exists on my server. Because if i take the
> map:act element away like this it works fine:
> 
>   <map:match pattern="*.html">
>      <map:generate type="serverpages" src="helpdesk.xsp"/>
>      <map:serialize/>
>   </map:match>
> 
> Another question, how is the syntax to use the action directly without
> an action set. If i take the example from the documentation C2 always
> reports incomplete pipeline.

Is your LoginAction 1) without any package, and 2) in the classpath?
Anytime you alter your classpath in ANY servlet, the servlet engine needs
to be restarted.  It's a fact of life.
Mime
View raw message