import org.apache.turbine.services.intake.IntakeTool; import org.apache.turbine.services.intake.model.*;
Btw - You class name of your action might need to be Test instead of TEST. You will want to follow the standard naming conventions for packages and class names for Turbine to correctly load the classes for you. > -----Original Message----- > From: Eigen Technology Pty Ltd [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 23, 2002 5:33 AM > To: [EMAIL PROTECTED] > Subject: RE: Intake Example > > > I think I have followed things correctly. In that action > file, what packages do I need to import so that IntakeTool > becomes part of it? I compile a file as given in the > intake-howto, errors occur. > > compile: > [javac] Compiling 4 source files to > /usr/local/tdk/webapps/medici/WEB-INF/cl > asses > [javac] > /usr/local/tdk/webapps/medici/WEB-INF/src/java/org/mycompany/medici/ > modules/actions/TEST.java:22: cannot resolve symbol > [javac] symbol : class IntakeTool > [javac] location: class org.mycompany.medici.modules.actions.TEST > [javac] IntakeTool intake = > (IntakeTool)context.get("intake"); > [javac] ^ > [javac] > /usr/local/tdk/webapps/medici/WEB-INF/src/java/org/mycompany/medici/ > modules/actions/TEST.java:22: cannot resolve symbol > [javac] symbol : class IntakeTool > [javac] location: class org.mycompany.medici.modules.actions.TEST > [javac] IntakeTool intake = > (IntakeTool)context.get("intake"); > [javac] ^ > [javac] > /usr/local/tdk/webapps/medici/WEB-INF/src/java/org/mycompany/medici/ > modules/actions/TEST.java:26: cannot resolve symbol > [javac] symbol : class Group > [javac] location: class org.mycompany.medici.modules.actions.TEST > [javac] Group group = intake.get("LoginGroup", > IntakeTool.DEFAULT_KEY > ); > > > The intake.xml file should be located in your WEB-INF/conf > directory. > > > > For the action, the name of the calls should match the > action name. > > It should be located in your modules.actions package. Make > sure that > > your setting for module.packages includes the name of your > > applications, modules as well as those for turbine. For > exmaple, if > > your actions are under com.mycompany.sampleapp.modules.actions, the > > entry in TurbineResource.properties should read: > > > > > module.packages=com.mycompany.sampleapp.modules,org.apache.turbine.mod > > ul > > es > > > > For all of the details on how actions work, look at the > Velocity Site > > how-to and the Action Events how-to. > > > > > >> -----Original Message----- > >> From: Eigen Technology Pty Ltd [mailto:[EMAIL PROTECTED]] > >> Sent: Monday, December 23, 2002 4:42 AM > >> To: [EMAIL PROTECTED] > >> Subject: Intake Example > >> > >> > >> I am learning how to use Intake. I am a bit confused by a > couple of > >> things. > >> > >> 1. The intake.xml file, I checked in the archive about its > location > >> in the file system. Britta Ladwig-Attinger on 28th June 2001 has > >> posted this exact question, but it does not seem to be conclusive. > >> So, where should this file be located? I have uncommented > the three > >> fields for Intake in TurbineResrouces.properties, tried adding a > >> intake.xml file under app/WBE-INF/conf and "ant init" again. Don't > >> know what to expect at this stage. > >> > >> 2. The Action file used in the Intake howto, where should > this file > >> be located? and What should the .java file be named? > Should I put it > >> under ./src/java/org/mycompany/medici/modules/actions/ and call it > >> myAction.java ... > >> > >> thanks > >> michael > >> > >> > >> > >> > >> -- > >> To unsubscribe, e-mail: > >> <mailto:turbine-user-> [EMAIL PROTECTED]> > >> For > >> additional commands, > >> e-mail: <mailto:[EMAIL PROTECTED]> > >> > >> > > > > > -- > To unsubscribe, e-mail: > <mailto:turbine-user-> [EMAIL PROTECTED]> > For > additional commands, > e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
