On 23.Jul.2001 -- 03:16 PM, Max Larsson wrote:
>
> >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.
>
> It's no problem with the classpath. Cocoon loads the class and executes it.
> I've checked it in the logs. The problem is in the sitemap, but i don't
> find enough documentation to solve it. This piece:
>
> > <map:match pattern="*.html">
> > <map:generate type="serverpages" src="helpdesk.xsp"/>
> > <map:serialize/>
> > </map:match>
>
> works fine. OK the LoginAction class isn't called. But if if change it to
> use it in the following way:
>
> > <map:match pattern="*.html">
> > <map:act set="helpdesk">
> > <map:generate type="serverpages" src="helpdesk.xsp"/>
> > <map:serialize/>
> > </map:act>
> > </map:match>
>
> C2 delivers resource not found. It's not a problem with the LoginAction
> class.
> It gets loaded and executed without any problems. I can post the source if
> needed.
Mmmh, does it make sense to nest a subpipeline in a action *set* ?
Perhaps you wanted to use a single action? E.g.
<map:match pattern="*.html">
<map:act type="helpdesk">
<!-- ^^^^ -->
<map:generate type="serverpages" src="helpdesk.xsp"/>
<!-- no transformation needed ? -->
<map:serialize/>
</map:act>
<!-- you should have an "else case" here, since what happens if
the action did not complete successfully ? -->
</map:match>
Chris.
--
C h r i s t i a n H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>