ScarabConstants.INTAKE_TOOL equals the string "intake"

I had to grab the source to figure that out.

-----Original Message-----
From: Jonathan Porterfield [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 2:21 PM
To: [EMAIL PROTECTED]
Subject: Intake doc...


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]

Reply via email to