John McNally
Mon, 24 Sep 2001 11:43:45 -0700
ScarabConstants.INTAKE_TOOL is set to "intake" which is the handle given to the intake tool for use within templates. The handle is set in TR.props. john mcnally Jonathan Porterfield wrote: > > In the intake service document located at: > http://jakarta.apache.org/turbine/turbine-2/services/intake-service.html > There is an example of java code that makes use of intake; partially clipped > here... > > ----------------------------------------- > > public void doLogin( RunData data, Context context ) throws Exception > { > IntakeTool intake = (IntakeTool)context > .get(ScarabConstants.INTAKE_TOOL); > > if ( intake.isAllValid() && checkUser(data, context) ) > { > String template = data.getParameters() > .getString(ScarabConstants.NEXT_TEMPLATE, > TurbineResources.getString > TurbineResources.getString("template.homepage", "Start.vm") ); > setTemplate(data, template); > > ... > } > > ----------------------------------------- > > When grabbing an instance of the intake tool, there is a reference to > "ScarabConstants.INTAKE_TOOL." > > Question: Obviously I have no ScarabConstants defined. Is this actually > "[MyProj]Constants.INTAKE_TOOL" > > OR > ??? > > Thanks > -JP > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]