Help. I've posted before and have got no reply. been trying for 3 days so far but haven't really find any way to fix this. I have understood the problem better:
config
---
Java : 1.4
Velocity : 1.4
SunAppServer : 7
web app config
---
Templates placed in WEB-INF/classes/ so that they are loadable via classLoader.
Description
---
Application was trying to generate a report using Velocity. The .init() calls fails. The code have been modified to be like such:
Exception message
---
This is obtained when I use the Properties object.
Initially, the code is like such:
And I get a StringIndexOutOfBoundException on the extendedProperties collection instead:
HELP According to the Velocity tutorial, the 2 approach should be identical. When attempted on local workstation running java 1.5 and appServer 8.2, the problem doesn't happen. But on development server running java 1.4 and appServer 7, the same code causes problem mentioned above.
I am not sure whether Java/AppServer configuration is the one that causes this. Pls help if you can.
[ May 31, 2006: Message edited by: Zenikko Sugiarto ]