Hi Frans,
Be careful not to cross-post questions. That gets some people very angry.
Velocity's "resource.loader" property is a comma separated value
Struts sets up a VelocityManager, the manager loads velocity.properties
from a various locations in the webapp/classpath, the VelocityManager
creates a VelocityEngine, the result prepares a VelocityContext and the
engine renders the outuput. The VelocityEngine instance loads the
Template's.
So, you've setup a velocity.properties file. I think it needs to
include something like this:
resource.loader=class,jar
class.resource.loader.class=org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
jar.resource.loader.class =
org.apache.velocity.runtime.resource.loader.JarResourceLoader
jar.resource.loader.path = jar:file:myjar1.jar
Frans Thamura wrote:
jeromy
i got this JarResourceLoader
but my problem here, i use both the classpath and jarResource
is it possible to mixed both ?
F
------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.518 / Virus Database: 269.21.6/1318 - Release Date: 7/03/2008 2:01 PM
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]