Hi,
in the screen I put sth in the context like this:

navi = new Hashtable();
navi.put("test",data.getParameters().getInteger("mainmenu",0));
ctx.put("navigation",navi);
Log.info("test="+navi.get("test")); --> returns 0 correctly
ctx.put("hello", new String("world")); --> is available in context

Now when I try to access the Hashtable in my vm-template like this:
#if ($navigation.get("test")==0) ...

Velocity reports:
Left side ($navigation.get("test")) of '==' operation has null value. If a
reference, it may not be in the context. Operation not possible.
navigations/MainMenu.vm [line 8, column 35]

What's wrong here?

Marc


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to