cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Pötz <reinhard_po...@gmx.net>
Subject AW: Help! Where to put Action classes?
Date Fri, 11 Jan 2002 17:21:30 GMT
Did you put the class in the right package (com.mycompany.app)?

If the answer is yes and it doesn't work try making a jar-file.

Regards,
Reinhard

 > -----Ursprüngliche Nachricht-----
 > Von: Miller, Grant [mailto:Grant.Miller@COGNOS.com]
 > Gesendet: Freitag, 11. Jänner 2002 14:58
 > An: 'cocoon-users@xml.apache.org'
 > Betreff: Help! Where to put Action classes?
 >
 >
 > Hi,
 > I am using tomcat 4 and cocoon2. I have written an action class (almost
 > exactly the same as the Hello World example) and added it to my sitemap.
 > However I get a sitemap error as the class cannot be found. I cannot find
 > anything in the documentation to say where the class should be.
 > The action is to add the current date as a string to the
 > parameters map so
 > that it can be accessed via xsp-request.
 > My package is called 'com.mycompany.app' and my action is defined as:
 >
 > <map:actions>
 >    <map:action name="get_date" class="com.mycompany.app.DateAction"/>
 > </map:actions>
 >
 > Reading other postings I get the impression that my class should be
 > automatically be picked up if I put the DateAction.class file in:
 >
 > web-inf\classes\com\mycompany\app
 >
 > but this doesn't work.
 > Please help!
 >
 > Cheers,
 >
 > Grant
 >
 >
 > ---------------------------------------------------------------------
 > 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: <cocoon-users-unsubscribe@xml.apache.org>
 > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
 >


---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message