Thanks for your quick reply, Walter.

Please take a look at my code:
------------------------------------------------------
package ro.level7.cms.modules.screens;

import org.apache.turbine.modules.screens.VelocityScreen;
import org.apache.turbine.util.RunData;
import org.apache.velocity.context.Context;

class Login extends VelocityScreen
{

  public Login()
  {
  }

  public void doBuildTemplate(RunData data, Context context)
  {
    context.put("haba", "This is a haba string");
    System.out.println("Login.doBuildTemplate(RunData data, 
                                                Context context)");
  }

}
----------------------------------------------------------

In my TR.properties I have:
.........
module.packages=ro.level7.cms.modules,org.apache.turbine.flux.modules
.........
template.homepage=/Index.vm
screen.homepage=
template.login=/Login.vm
screen.login=
template.error=/Error.vm
..........

Where there is no value after equal the default value are set.
Please tell me were I'm wrong.
Thanks for your help.

-------------------
Daniel Moldovan
Java Developer
LEVEL 7
Bucovinei 59D
1900 Timisoara
tel. 056/224872
-------------------


-----Original Message-----
From: Bartek Walter [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 06, 2001 9:58 AM
To: Daniel Moldovan
Subject: Re[2]: Login.class

DM> I don't understand why the doBuildTemplate(RunData data, Context
context)
DM> from my Login.class does  not execute.
DM> I have a layout template Login.vm, a screen template Login.vm and a
class
DM> Login.class

Turbine uses a term 'template' for a .vm, and 'screen' for .class.

DM> The layout and screen gets executed, but the Login.class doesn't.

First thoughts:
Is your Login class placed in an appropriate package
(com.yourcompany.yourapp.modules.screens) and does it extend VelocityScreen?

Probably you should modify your TR.props - there the login templates
and screens are defined.

Regards,
Bartek Walter



---------------------------------------------------------------------
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