On Sat, 6 Jul 2002 14:40, you wrote:
> Folks,
>
> I'm really stuck. I've posted some queries regarding this and in the
> meantime I've been banging my head against a wall (this hurts, don't try
> it at home). When running the Servlet example in 2.1 I get the
> following error:
>
> Fri Jul 05 21:18:48 PDT 2002 [warn]
> org.apache.velocity.runtime.exception.ReferenceException: reference :
> template = screens/ServletInfo.vm [line 3,column 1] : $serverName is not
> a valid reference.
This is a known bug with TDK 2.1... I don't have that TDK installed at the
moment, but have you followed the TDK-Howto which explains how you can edit
the screen class (ie: ServletInfo.java)?
If you edit the doBuildTemplate(RunData data, Context context) method and add
this line; context.put("serverName", data.getRequest().getServerName()); then
recompile the ServletInfo class and restart Tomcat, you should see everything
working correctly.
Hope that helps,
-- Rodney
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>