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:[EMAIL PROTECTED]] > Gesendet: Freitag, 11. Jänner 2002 14:58 > An: '[EMAIL PROTECTED]' > 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: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > --------------------------------------------------------------------- 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]>