velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frans Thamura" <>
Subject Load Template from Jar
Date Sat, 08 Mar 2008 06:07:15 GMT
hi all

i use struts2 with velocity

i just do several testing , the template is velocity, and freemarker :)

i got this

if we put the template in the source, and deploy to WEB-INF/classes

the template loaded perfectly

but when i try to move all the file inside the classes to a .jar and put in
the WEB-INF/lib

i got errror, the template is not found

anyone have this issue, i read and google, and get we must put ObjectFactory
of XWork, i see that struts-default.xml have that bean, so in my opinion, we
dont need it.

right now, my conculsion, velocity / freemarker can be implemented in web
location path or classpath, but still cannot use the jar classpath, must the
folder based classpath, is this opinion right?

anyone can help me out.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message