velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Rodriguez" <jr...@columbia.edu>
Subject RE: problem reading template file from velocityservlet
Date Sun, 19 Sep 2004 14:26:09 GMT
Shinobu,

Thanks for the suggestion, I'll definitely look into it.
However, is there a way to do it with FileResourceLoader...just for my
learning experience :)

-John

-----Original Message-----
From: Shinobu Kawai [mailto:shinobu.kawai@gmail.com] 
Sent: Sunday, September 19, 2004 10:05 AM
To: Velocity Users List
Subject: Re: problem reading template file from velocityservlet

Hi John,

> This makes sense to me, because I thought that the FileResourceLoader
> class is what is used to load a template file.  Am I wrong?  Is it
> actually the ClasspathResourceLoader?
Don't worry, it's FileResourceLoader.

Try using WebappLoader.  Very nice for servlets.
 
http://jakarta.apache.org/velocity/tools/javadoc/org/apache/velocity/too
ls/view/servlet/WebappLoader.html

Best regards,
-- Shinobu Kawai

-- 
Shinobu Kawai(shinobu.kawai@gmail.com)

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message