I just checked the velocity-site howto
http://jakarta.apache.org/turbine/turbine-2/howto/velocity-site-howto.html
You have your method named as "doBuild", shouldn't it be "doBuildTemplate"
?
|--------+------------------------->
| | Matthew S. |
| | Woodworth |
| | <mswoodwo@unity|
| | .ncsu.edu> |
| | |
| | 05-05-02 09:31 |
| | AM |
| | Please respond |
| | to "Turbine |
| | Users List" |
| | |
|--------+------------------------->
>-----------------------------------------------------------------------|
| |
| To: "Turbine Users List" <[EMAIL PROTECTED]> |
| cc: (bcc: manu manickalal/PRTGROUP) |
| Subject: Re: I can't seem get a basic turbine/velocity page |
| to work |
>-----------------------------------------------------------------------|
I did that. It doesn't seem to be getting called (my text didn't get to
the console). Here are the file names
/Users/vanguard/src/tdk/webapps/newapp/templates/app/screens/MSWFirstVM.vm
/Users/vanguard/src/tdk/webapps/newapp/WEB-
INF/classes/org/mycompany/newapp/modules/screens/MSWFirstVM.class
Once again, here's the code:
public class MSWFirstVM extends VelocityScreen {
public void doBuild(RunData data, Context context) {
System.out.println("In the doBuild method");
context.put("mswtag", new String("Hello World"));
}
}
========================================
<html>
$page.setTitle("MSW test page")
<body>
This is a test
<BR><BR>
mswtag = $mswtag
<BR><BR>
</body>
</html>
Any idea why the doBuild isn't getting called?
Matt W.
On Sunday, May 5, 2002, at 07:30 AM, akmal Sarhan wrote:
>
> try to put a debug statement in your doBuild() to see if it gets called
> at all, it might just be a problem of capitalization issue of the class
> name ;)
> akmal
--
To unsubscribe, e-mail: <
mailto:[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]>