<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:www.nabble.com,2006:forum-347</id>
	<title>Nabble - Velocity - User</title>
	<updated>2008-07-15T08:23:52Z</updated>
	<link rel="self" type="application/atom+xml" href="http://www.nabble.com/Velocity---User-f347.xml" />
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Velocity---User-f347.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:www.nabble.com,2006:post-18468027</id>
	<title>[ANNOUNCE] VelocityTools 2.0-beta2 Release</title>
	<published>2008-07-15T08:23:52Z</published>
	<updated>2008-07-15T08:23:52Z</updated>
	<author>
		<name>Nathan Bubna-3</name>
	</author>
	<content type="html">The Velocity developers are pleased to make the second beta release of
&lt;br&gt;VelocityTools 2.0 available for download.
&lt;br&gt;Downloads are available here:
&lt;br&gt;&amp;nbsp; &lt;a href=&quot;http://velocity.apache.org/download.cgi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://velocity.apache.org/download.cgi&lt;/a&gt;&lt;br&gt;&lt;br&gt;Major development in VelocityTools 2.0 has been essentially complete
&lt;br&gt;for some time, and the focus is on fixing the remaining bugs,
&lt;br&gt;completing the documentation, and providing clear migration paths for
&lt;br&gt;users of VelocityTools 1.x. &amp;nbsp;Significant new features in 2.0 include
&lt;br&gt;very flexible, composable toolbox configuration (via either java, xml,
&lt;br&gt;and/or properties), lazy-loading/initialization of tools, the
&lt;br&gt;VelocityViewTag for embedding Velocity within JSP, simplified
&lt;br&gt;embedding of VelocityTools in other frameworks, an assortment of new
&lt;br&gt;and improved tools, and much more.
&lt;br&gt;&lt;br&gt;This should be useable as a drop in replacement for Tools 1.4, with a
&lt;br&gt;few minor exceptions where things already deprecated earlier in 1.x
&lt;br&gt;have been removed. &amp;nbsp;The 2.x series of VelocityTools also requires both
&lt;br&gt;Velocity 1.5+ and JDK 1.5+.
&lt;br&gt;&lt;br&gt;At this point, the new tool management and configuration facilities
&lt;br&gt;are extremely stable and useable. &amp;nbsp;Documentation has continued to
&lt;br&gt;improve dramatically and is nearing completion. There are no open or
&lt;br&gt;known bugs in this release nor significant changes anticipated before
&lt;br&gt;2.0 final is released.
&lt;br&gt;&lt;br&gt;We are very interested in all feedback regarding Tools 2.0, especially
&lt;br&gt;regarding backwards compatibility with apps designed for Tools 1.4 or
&lt;br&gt;earlier. &amp;nbsp;We aim to enable a smooth, incremental transition for
&lt;br&gt;developers and their applications.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18468027&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18468027&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-ANNOUNCE--VelocityTools-2.0-beta2-Release-tp18468027p18468027.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18423990</id>
	<title>Re: How do I make velocity preserve new lines in the output</title>
	<published>2008-07-12T13:02:31Z</published>
	<updated>2008-07-12T13:02:31Z</updated>
	<author>
		<name>Nathan Bubna</name>
	</author>
	<content type="html">That's odd. &amp;nbsp;If i remember correctly, the only newlines gobbled should
&lt;br&gt;be when a #set directive is on a line by itself or when any other
&lt;br&gt;directive (#foreach, #end, etc) is both on a line by itself and has no
&lt;br&gt;preceding whitespace. &amp;nbsp;So the example template you gave should have
&lt;br&gt;plenty of new lines.
&lt;br&gt;&lt;br&gt;What version of Velocity are you using? &amp;nbsp;And are you doing any other
&lt;br&gt;processing of the content?
&lt;br&gt;&lt;br&gt;On Fri, Jul 11, 2008 at 2:28 PM, Roshan Ail &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18423990&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;RAil@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am using velocity to output a groovy script.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My velocity template is something like this.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; #foreach $c in $a
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; def ${c}function()
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;....
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; #end
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The output that gets generated puts everything into one line and groovy
&lt;br&gt;&amp;gt; fails to evaluate it since it expects each function definition to start
&lt;br&gt;&amp;gt; with a new line.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Essentially this is how the output gets generated at present.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; def afunction() { ... } &amp;nbsp;def bfunction {...}
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is there any way I can have velocity preserve my formatting when the
&lt;br&gt;&amp;gt; output is generated ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Roshan
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18423990&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18423990&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-do-I-make-velocity-preserve-new-lines-in-the-output-tp18421780p18423990.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18423087</id>
	<title>Re: how to define global variable in velocity template ?</title>
	<published>2008-07-12T12:54:20Z</published>
	<updated>2008-07-12T12:54:20Z</updated>
	<author>
		<name>Nathan Bubna</name>
	</author>
	<content type="html">all variables set within a template are &amp;quot;global&amp;quot; to that template.
&lt;br&gt;how are you using Velocity? &amp;nbsp;global can mean very different things
&lt;br&gt;depending on the application involved.
&lt;br&gt;&lt;br&gt;On Sat, Jul 12, 2008 at 1:46 AM, &amp;nbsp;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18423087&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kiwionly@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; How to define global variable in velocity template ? I try to search in Internet but find no answers.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; any idea ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; kiwi
&lt;br&gt;&amp;gt; -----
&lt;br&gt;&amp;gt; happy hacking !
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18423087&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18423087&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/how-to-define-global-variable-in-velocity-template---tp18421773p18423087.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18421773</id>
	<title>how to define global variable in velocity template ?</title>
	<published>2008-07-12T01:46:13Z</published>
	<updated>2008-07-12T01:46:13Z</updated>
	<author>
		<name>kiwionly</name>
	</author>
	<content type="html">hi, 
&lt;br&gt;&lt;br&gt;How to define global variable in velocity template ? I try to search in Internet but find no answers.
&lt;br&gt;&lt;br&gt;any idea ?
&lt;br&gt;&lt;br&gt;kiwi
&lt;br&gt;-----
&lt;br&gt;happy hacking !
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/how-to-define-global-variable-in-velocity-template---tp18421773p18421773.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18421780</id>
	<title>How do I make velocity preserve new lines in the output</title>
	<published>2008-07-11T14:28:44Z</published>
	<updated>2008-07-11T14:28:44Z</updated>
	<author>
		<name>Roshan Ail</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;I am using velocity to output a groovy script.
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;My velocity template is something like this.
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;#foreach $c in $a
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;def ${c}function()
&lt;br&gt;&lt;br&gt;{
&lt;br&gt;&lt;br&gt;&amp;nbsp;....
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;#end
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;The output that gets generated puts everything into one line and groovy
&lt;br&gt;fails to evaluate it since it expects each function definition to start
&lt;br&gt;with a new line.
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Essentially this is how the output gets generated at present.
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;def afunction() { ... } &amp;nbsp;def bfunction {...}
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Is there any way I can have velocity preserve my formatting when the
&lt;br&gt;output is generated ?
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Roshan
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-do-I-make-velocity-preserve-new-lines-in-the-output-tp18421780p18421780.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18408014</id>
	<title>Re: Does Velocity have a shutdown mechanism?</title>
	<published>2008-07-11T09:41:35Z</published>
	<updated>2008-07-11T09:41:35Z</updated>
	<author>
		<name>Nathan Bubna</name>
	</author>
	<content type="html">Yeah, it's always been parsers, never threads. :) &amp;nbsp;Glad Velocity is
&lt;br&gt;off the suspect list. &amp;nbsp;You might try asking the Tomcat list for ideas
&lt;br&gt;on how to track this down. &amp;nbsp;Good luck!
&lt;br&gt;&lt;br&gt;On Fri, Jul 11, 2008 at 9:32 AM, &amp;nbsp;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18408014&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Peter_Ford@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; My misunderstanding; I switched logging back on to get the exact message
&lt;br&gt;&amp;gt; and I see &amp;nbsp;that it just says that it creates '20 parsers'. I could have
&lt;br&gt;&amp;gt; sworn that these were threads (perhaps in an earlier version? I've been
&lt;br&gt;&amp;gt; using Velocity since version 1.2) but this is obviously not true.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'll have to try to isolate the cause of this problem, but at least I can
&lt;br&gt;&amp;gt; now eliminate Velocity from the list of suspects. I should have figured
&lt;br&gt;&amp;gt; this wasn't the problem, since I use VelocityViewServlet for just about
&lt;br&gt;&amp;gt; every webapp I create (no JSPs in *my* house :) and I've never seen this
&lt;br&gt;&amp;gt; issue on any of those apps.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; No, there's no &amp;quot;shutdown&amp;quot; method. &amp;nbsp;But then, there really isn't much
&lt;br&gt;&amp;gt; to shutdown. &amp;nbsp;Velocity doesn't spawn its own threads. &amp;nbsp;There's not
&lt;br&gt;&amp;gt; really such a thing as an &amp;quot;engine thread&amp;quot; to my knowledge. &amp;nbsp;You could
&lt;br&gt;&amp;gt; have an application that init'ed 20 engines, but i don't know why
&lt;br&gt;&amp;gt; you'd want to do that. &amp;nbsp;You could have a servlet that is processing 20
&lt;br&gt;&amp;gt; requests using one or more VelocityEngines (i'd recommend one for most
&lt;br&gt;&amp;gt; cases), but again, those would be request threads and not in
&lt;br&gt;&amp;gt; Velocity's control. &amp;nbsp;What is it you see in your log file that reports
&lt;br&gt;&amp;gt; these &amp;quot;engine threads&amp;quot;? &amp;nbsp;I'm no Tomcat expert, but perhaps i can clear
&lt;br&gt;&amp;gt; up some confusion...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Thu, Jul 10, 2008 at 9:09 AM, &amp;nbsp;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18408014&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Peter_Ford@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I'm seeing a strange problem in Tomcat 6 when I undeploy an application
&lt;br&gt;&amp;gt;&amp;gt; containing a servlet that starts a VelocityEngine. In the servlet's
&lt;br&gt;&amp;gt; init()
&lt;br&gt;&amp;gt;&amp;gt; code I create, configure and init() the VelocityEngine; the log file
&lt;br&gt;&amp;gt;&amp;gt; reports that 20 engine threads have been created.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; When I undeploy, the app doesn't disappear cleanly (after the undeploy,
&lt;br&gt;&amp;gt;&amp;gt; clicking the List Applications button on the Tomcat Manager screen shows
&lt;br&gt;&amp;gt;&amp;gt; that the app is still there, and the app is still in the webapps/
&lt;br&gt;&amp;gt;&amp;gt; directory). I'm not sure but I think that the app isn't completely
&lt;br&gt;&amp;gt; closing
&lt;br&gt;&amp;gt;&amp;gt; because the Velocity threads are still running. (I'm working on
&lt;br&gt;&amp;gt; comfirming
&lt;br&gt;&amp;gt;&amp;gt; that this is the cause but at this time I can't be certain.)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Does the engine have a shutdown method that I can call from the servlet's
&lt;br&gt;&amp;gt;&amp;gt; destroy() method? I don't see anything in the API documentation. Is there
&lt;br&gt;&amp;gt; a
&lt;br&gt;&amp;gt;&amp;gt; recommended way of telling a VelocityEngine to stop?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18408014&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18408014&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18408014&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18408014&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18408014&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18408014&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18408014&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18408014&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Does-Velocity-have-a-shutdown-mechanism--tp18386461p18408014.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18407956</id>
	<title>Re: Does Velocity have a shutdown mechanism?</title>
	<published>2008-07-11T09:32:01Z</published>
	<updated>2008-07-11T09:32:01Z</updated>
	<author>
		<name>Peter_Ford</name>
	</author>
	<content type="html">My misunderstanding; I switched logging back on to get the exact message
&lt;br&gt;and I see &amp;nbsp;that it just says that it creates '20 parsers'. I could have
&lt;br&gt;sworn that these were threads (perhaps in an earlier version? I've been
&lt;br&gt;using Velocity since version 1.2) but this is obviously not true.
&lt;br&gt;&lt;br&gt;I'll have to try to isolate the cause of this problem, but at least I can
&lt;br&gt;now eliminate Velocity from the list of suspects. I should have figured
&lt;br&gt;this wasn't the problem, since I use VelocityViewServlet for just about
&lt;br&gt;every webapp I create (no JSPs in *my* house :) and I've never seen this
&lt;br&gt;issue on any of those apps.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;No, there's no &amp;quot;shutdown&amp;quot; method. &amp;nbsp;But then, there really isn't much
&lt;br&gt;to shutdown. &amp;nbsp;Velocity doesn't spawn its own threads. &amp;nbsp;There's not
&lt;br&gt;really such a thing as an &amp;quot;engine thread&amp;quot; to my knowledge. &amp;nbsp;You could
&lt;br&gt;have an application that init'ed 20 engines, but i don't know why
&lt;br&gt;you'd want to do that. &amp;nbsp;You could have a servlet that is processing 20
&lt;br&gt;requests using one or more VelocityEngines (i'd recommend one for most
&lt;br&gt;cases), but again, those would be request threads and not in
&lt;br&gt;Velocity's control. &amp;nbsp;What is it you see in your log file that reports
&lt;br&gt;these &amp;quot;engine threads&amp;quot;? &amp;nbsp;I'm no Tomcat expert, but perhaps i can clear
&lt;br&gt;up some confusion...
&lt;br&gt;&lt;br&gt;On Thu, Jul 10, 2008 at 9:09 AM, &amp;nbsp;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18407956&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Peter_Ford@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm seeing a strange problem in Tomcat 6 when I undeploy an application
&lt;br&gt;&amp;gt; containing a servlet that starts a VelocityEngine. In the servlet's
&lt;br&gt;init()
&lt;br&gt;&amp;gt; code I create, configure and init() the VelocityEngine; the log file
&lt;br&gt;&amp;gt; reports that 20 engine threads have been created.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When I undeploy, the app doesn't disappear cleanly (after the undeploy,
&lt;br&gt;&amp;gt; clicking the List Applications button on the Tomcat Manager screen shows
&lt;br&gt;&amp;gt; that the app is still there, and the app is still in the webapps/
&lt;br&gt;&amp;gt; directory). I'm not sure but I think that the app isn't completely
&lt;br&gt;closing
&lt;br&gt;&amp;gt; because the Velocity threads are still running. (I'm working on
&lt;br&gt;comfirming
&lt;br&gt;&amp;gt; that this is the cause but at this time I can't be certain.)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Does the engine have a shutdown method that I can call from the servlet's
&lt;br&gt;&amp;gt; destroy() method? I don't see anything in the API documentation. Is there
&lt;br&gt;a
&lt;br&gt;&amp;gt; recommended way of telling a VelocityEngine to stop?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18407956&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18407956&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18407956&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18407956&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18407956&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18407956&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Does-Velocity-have-a-shutdown-mechanism--tp18386461p18407956.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18391937</id>
	<title>Re: Does Velocity have a shutdown mechanism?</title>
	<published>2008-07-10T14:07:52Z</published>
	<updated>2008-07-10T14:07:52Z</updated>
	<author>
		<name>Nathan Bubna</name>
	</author>
	<content type="html">No, there's no &amp;quot;shutdown&amp;quot; method. &amp;nbsp;But then, there really isn't much
&lt;br&gt;to shutdown. &amp;nbsp;Velocity doesn't spawn its own threads. &amp;nbsp;There's not
&lt;br&gt;really such a thing as an &amp;quot;engine thread&amp;quot; to my knowledge. &amp;nbsp;You could
&lt;br&gt;have an application that init'ed 20 engines, but i don't know why
&lt;br&gt;you'd want to do that. &amp;nbsp;You could have a servlet that is processing 20
&lt;br&gt;requests using one or more VelocityEngines (i'd recommend one for most
&lt;br&gt;cases), but again, those would be request threads and not in
&lt;br&gt;Velocity's control. &amp;nbsp;What is it you see in your log file that reports
&lt;br&gt;these &amp;quot;engine threads&amp;quot;? &amp;nbsp;I'm no Tomcat expert, but perhaps i can clear
&lt;br&gt;up some confusion...
&lt;br&gt;&lt;br&gt;On Thu, Jul 10, 2008 at 9:09 AM, &amp;nbsp;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18391937&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Peter_Ford@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm seeing a strange problem in Tomcat 6 when I undeploy an application
&lt;br&gt;&amp;gt; containing a servlet that starts a VelocityEngine. In the servlet's init()
&lt;br&gt;&amp;gt; code I create, configure and init() the VelocityEngine; the log file
&lt;br&gt;&amp;gt; reports that 20 engine threads have been created.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When I undeploy, the app doesn't disappear cleanly (after the undeploy,
&lt;br&gt;&amp;gt; clicking the List Applications button on the Tomcat Manager screen shows
&lt;br&gt;&amp;gt; that the app is still there, and the app is still in the webapps/
&lt;br&gt;&amp;gt; directory). I'm not sure but I think that the app isn't completely closing
&lt;br&gt;&amp;gt; because the Velocity threads are still running. (I'm working on comfirming
&lt;br&gt;&amp;gt; that this is the cause but at this time I can't be certain.)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Does the engine have a shutdown method that I can call from the servlet's
&lt;br&gt;&amp;gt; destroy() method? I don't see anything in the API documentation. Is there a
&lt;br&gt;&amp;gt; recommended way of telling a VelocityEngine to stop?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18391937&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18391937&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18391937&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18391937&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Does-Velocity-have-a-shutdown-mechanism--tp18386461p18391937.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18386461</id>
	<title>Does Velocity have a shutdown mechanism?</title>
	<published>2008-07-10T09:09:30Z</published>
	<updated>2008-07-10T09:09:30Z</updated>
	<author>
		<name>Peter_Ford</name>
	</author>
	<content type="html">&lt;br&gt;I'm seeing a strange problem in Tomcat 6 when I undeploy an application
&lt;br&gt;containing a servlet that starts a VelocityEngine. In the servlet's init()
&lt;br&gt;code I create, configure and init() the VelocityEngine; the log file
&lt;br&gt;reports that 20 engine threads have been created.
&lt;br&gt;&lt;br&gt;When I undeploy, the app doesn't disappear cleanly (after the undeploy,
&lt;br&gt;clicking the List Applications button on the Tomcat Manager screen shows
&lt;br&gt;that the app is still there, and the app is still in the webapps/
&lt;br&gt;directory). I'm not sure but I think that the app isn't completely closing
&lt;br&gt;because the Velocity threads are still running. (I'm working on comfirming
&lt;br&gt;that this is the cause but at this time I can't be certain.)
&lt;br&gt;&lt;br&gt;Does the engine have a shutdown method that I can call from the servlet's
&lt;br&gt;destroy() method? I don't see anything in the API documentation. Is there a
&lt;br&gt;recommended way of telling a VelocityEngine to stop?
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18386461&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18386461&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Does-Velocity-have-a-shutdown-mechanism--tp18386461p18386461.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18366978</id>
	<title>Re: Getting all variables define in context</title>
	<published>2008-07-09T10:35:57Z</published>
	<updated>2008-07-09T10:35:57Z</updated>
	<author>
		<name>Nathan Bubna</name>
	</author>
	<content type="html">On Wed, Jul 9, 2008 at 9:59 AM, Paul M &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18366978&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pjmaip@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; How do I get all keys that were set by java app.?
&lt;br&gt;&amp;gt; i.e.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Java:
&lt;br&gt;&amp;gt; context.put(&amp;quot;name&amp;quot;, &amp;quot;Velocity&amp;quot;);
&lt;br&gt;&amp;gt; context.put(&amp;quot;project&amp;quot;, &amp;quot;Jakarta&amp;quot;);
&lt;br&gt;&lt;br&gt;context.put(&amp;quot;context&amp;quot;, context);
&lt;br&gt;&lt;br&gt;&amp;gt; Velocity:
&lt;br&gt;&amp;gt; $name
&lt;br&gt;&amp;gt; $project
&lt;br&gt;&amp;gt; $versionDoesNotExist
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; #foreach($key in $application.attributeNames) works good, but not what I need!
&lt;br&gt;&lt;br&gt;are you using VelocityTools? &amp;nbsp; if so, add the ContextTool in request
&lt;br&gt;scope. &amp;nbsp;it will get you all possible context values:
&lt;br&gt;&lt;a href=&quot;http://velocity.apache.org/tools/releases/1.4/javadoc/org/apache/velocity/tools/view/tools/ContextTool.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://velocity.apache.org/tools/releases/1.4/javadoc/org/apache/velocity/tools/view/tools/ContextTool.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;gt; #foreach($key in $context.keys) does nothing; because $context is null?
&lt;br&gt;&lt;br&gt;if you put the context in the context, then it will not be null. :)
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; so
&lt;br&gt;&amp;gt; #foreach(??? in ???)
&lt;br&gt;&amp;gt; return
&lt;br&gt;&amp;gt; &amp;quot;name&amp;quot;,&amp;quot;project&amp;quot;...etc
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18366978&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18366978&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Getting-all-variables-define-in-context-tp18366236p18366978.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18366236</id>
	<title>Getting all variables define in context</title>
	<published>2008-07-09T09:59:02Z</published>
	<updated>2008-07-09T09:59:02Z</updated>
	<author>
		<name>Paul M-6</name>
	</author>
	<content type="html">How do I get all keys that were set by java app.?
&lt;br&gt;i.e.
&lt;br&gt;&lt;br&gt;Java:
&lt;br&gt;context.put(&amp;quot;name&amp;quot;, &amp;quot;Velocity&amp;quot;);
&lt;br&gt;context.put(&amp;quot;project&amp;quot;, &amp;quot;Jakarta&amp;quot;);
&lt;br&gt;&lt;br&gt;Velocity:
&lt;br&gt;$name
&lt;br&gt;$project
&lt;br&gt;$versionDoesNotExist
&lt;br&gt;&lt;br&gt;#foreach($key in $application.attributeNames) works good, but not what I need!
&lt;br&gt;  
&lt;br&gt;#foreach($key in $context.keys) does nothing; because $context is null?
&lt;br&gt;so
&lt;br&gt;#foreach(??? in ???)
&lt;br&gt;return
&lt;br&gt;&amp;quot;name&amp;quot;,&amp;quot;project&amp;quot;...etc
&lt;br&gt;&lt;br&gt;&lt;br&gt; 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Getting-all-variables-define-in-context-tp18366236p18366236.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18323750</id>
	<title>RE: quiet reference doesn't throw exception</title>
	<published>2008-07-07T11:44:30Z</published>
	<updated>2008-07-07T11:44:30Z</updated>
	<author>
		<name>Seth Rosenblum</name>
	</author>
	<content type="html">Sorry, I meant org.apache.velocity.exception.ParseErrorException
&lt;br&gt;&lt;br&gt;Here's the trace anyway:
&lt;br&gt;&lt;br&gt;org.apache.velocity.exception.ParseErrorException: Error in page -
&lt;br&gt;invalid reference. &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.velocity.app.event.implement.ReportInvalidReferences.reportIn
&lt;br&gt;validReference(ReportInvalidReferences.java:150)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.velocity.app.event.implement.ReportInvalidReferences.invalidG
&lt;br&gt;etMethod(ReportInvalidReferences.java:91)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.velocity.app.event.InvalidReferenceEventHandler$InvalidGetMet
&lt;br&gt;hodExecutor.execute(InvalidReferenceEventHandler.java:123)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.velocity.app.event.EventHandlerUtil.iterateOverEventHandlers(
&lt;br&gt;EventHandlerUtil.java:418)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.velocity.app.event.EventHandlerUtil.callEventHandlers(EventHa
&lt;br&gt;ndlerUtil.java:390)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.velocity.app.event.EventHandlerUtil.invalidReferenceHandlerCa
&lt;br&gt;ll(EventHandlerUtil.java:333)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.velocity.app.event.EventHandlerUtil.invalidGetMethod(EventHan
&lt;br&gt;dlerUtil.java:252)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReferenc
&lt;br&gt;e.java:179)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference
&lt;br&gt;.java:294)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74
&lt;br&gt;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:448)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective
&lt;br&gt;.java:170)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74
&lt;br&gt;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfState
&lt;br&gt;ment.java:88)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
&lt;br&gt;a:318)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.velocity.runtime.directive.Parse.render(Parse.java:224)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective
&lt;br&gt;.java:170)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
&lt;br&gt;a:318)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.velocity.Template.merge(Template.java:254)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;net.wgen.aris.web.VelocityMerger.testVelocityMerge(VelocityMerger.java:6
&lt;br&gt;0)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;net.wgen.aris.web.ListOfStudentsControllerTest.Students(ListOfStudentsCo
&lt;br&gt;ntrollerTest.java:76)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
&lt;br&gt;a:39)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
&lt;br&gt;Impl.java:25)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.reflect.Method.invoke(Method.java:597)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.springframework.test.context.junit4.SpringTestMethod.invoke(SpringTe
&lt;br&gt;stMethod.java:163)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.springframework.test.context.junit4.SpringMethodRoadie.runTestMethod
&lt;br&gt;(SpringMethodRoadie.java:233)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.springframework.test.context.junit4.SpringMethodRoadie$RunBeforesThe
&lt;br&gt;nTestThenAfters.run(SpringMethodRoadie.java:333)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.springframework.test.context.junit4.SpringMethodRoadie.runWithRepeti
&lt;br&gt;tions(SpringMethodRoadie.java:217)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.springframework.test.context.junit4.SpringMethodRoadie.runTest(Sprin
&lt;br&gt;gMethodRoadie.java:197)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.springframework.test.context.junit4.SpringMethodRoadie.run(SpringMet
&lt;br&gt;hodRoadie.java:143)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.springframework.test.context.junit4.SpringJUnit4ClassRunner.invokeTe
&lt;br&gt;stMethod(SpringJUnit4ClassRunner.java:142)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunne
&lt;br&gt;r.java:51)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.jav
&lt;br&gt;a:44)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:2
&lt;br&gt;7)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:
&lt;br&gt;42)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4Tes
&lt;br&gt;tReference.java:38)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.ja
&lt;br&gt;va:38)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe
&lt;br&gt;stRunner.java:460)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe
&lt;br&gt;stRunner.java:673)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRun
&lt;br&gt;ner.java:386)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRu
&lt;br&gt;nner.java:196)
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Christopher Schultz [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18323750&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;chris@...&lt;/a&gt;] 
&lt;br&gt;Sent: Monday, July 07, 2008 1:21 PM
&lt;br&gt;To: Velocity Users List
&lt;br&gt;Subject: Re: quiet reference doesn't throw exception
&lt;br&gt;&lt;br&gt;Seth,
&lt;br&gt;&lt;br&gt;Seth Rosenblum wrote:
&lt;br&gt;&amp;gt; Actually, in that case the $isNull inside the if statement throws the 
&lt;br&gt;&amp;gt; ParserConfigurationException.
&lt;br&gt;&lt;br&gt;Uh... javax.xml.parsers.ParserConfigurationException? That seems odd...
&lt;br&gt;&lt;br&gt;Can you post the entire stack trace?
&lt;br&gt;&lt;br&gt;-chris
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18323750&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18323750&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/quiet-reference-doesn%27t-throw-exception-tp18269329p18323750.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18321951</id>
	<title>Re: design template  and store it in  database</title>
	<published>2008-07-07T10:22:53Z</published>
	<updated>2008-07-07T10:22:53Z</updated>
	<author>
		<name>Christopher Schultz-2</name>
	</author>
	<content type="html">Kumar,
&lt;br&gt;&lt;br&gt;KumarE wrote:
&lt;br&gt;&amp;gt; [...] store that template in database [...]
&lt;br&gt;&lt;br&gt;You could use the DataSourceResourceLoader:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://velocity.apache.org/engine/releases/velocity-1.5/apidocs/org/apache/velocity/runtime/resource/loader/DataSourceResourceLoader.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://velocity.apache.org/engine/releases/velocity-1.5/apidocs/org/apache/velocity/runtime/resource/loader/DataSourceResourceLoader.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;-chris
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://www.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (266 bytes) &lt;a href=&quot;http://www.nabble.com/attachment/18321951/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/design-template--and-store-it-in--database-tp18319647p18321951.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18321908</id>
	<title>Re: quiet reference doesn't throw exception</title>
	<published>2008-07-07T10:20:47Z</published>
	<updated>2008-07-07T10:20:47Z</updated>
	<author>
		<name>Christopher Schultz-2</name>
	</author>
	<content type="html">Seth,
&lt;br&gt;&lt;br&gt;Seth Rosenblum wrote:
&lt;br&gt;&amp;gt; Actually, in that case the $isNull inside the if statement throws the
&lt;br&gt;&amp;gt; ParserConfigurationException.
&lt;br&gt;&lt;br&gt;Uh... javax.xml.parsers.ParserConfigurationException? That seems odd...
&lt;br&gt;&lt;br&gt;Can you post the entire stack trace?
&lt;br&gt;&lt;br&gt;-chris
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://www.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (266 bytes) &lt;a href=&quot;http://www.nabble.com/attachment/18321908/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/quiet-reference-doesn%27t-throw-exception-tp18269329p18321908.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18319647</id>
	<title>design template  and store it in  database</title>
	<published>2008-07-07T08:40:49Z</published>
	<updated>2008-07-07T08:40:49Z</updated>
	<author>
		<name>KumarE</name>
	</author>
	<content type="html">Hi 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Is there any tool that can be embedded in a web application so that a particular user can design &amp;nbsp;and store that template &amp;nbsp;in database based on their requirement, here the templates that contains the components mainly consists of &amp;nbsp; input type and once the user designed template she/he has the option to store that in database, so that later point of time he/she can use the stored template. whether this type of design supports in velocity ie, apart from the view similar to what &amp;nbsp;scarab project does (which displays based on template from file , but &amp;nbsp;i need &amp;nbsp; just the opposite. ie, design and &amp;nbsp;store the template in database from running web application). whether velocity support that kind of thing or similar to that.
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;Kumar</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/design-template--and-store-it-in--database-tp18319647p18319647.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18318593</id>
	<title>RE: quiet reference doesn't throw exception</title>
	<published>2008-07-07T07:51:07Z</published>
	<updated>2008-07-07T07:51:07Z</updated>
	<author>
		<name>Seth Rosenblum</name>
	</author>
	<content type="html">&amp;nbsp;
&lt;br&gt;Actually, in that case the $isNull inside the if statement throws the
&lt;br&gt;ParserConfigurationException.
&lt;br&gt;&lt;br&gt;Thanks though,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Seth
&lt;br&gt;&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Christopher Schultz [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18318593&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;chris@...&lt;/a&gt;] 
&lt;br&gt;Sent: Saturday, July 05, 2008 11:46 AM
&lt;br&gt;To: Velocity Users List
&lt;br&gt;Subject: Re: quiet reference doesn't throw exception
&lt;br&gt;&lt;br&gt;Seth,
&lt;br&gt;&lt;br&gt;Seth Rosenblum wrote:
&lt;br&gt;&amp;gt; I'm using the velocity engine with ParseErrorException throwing turned
&lt;br&gt;&lt;br&gt;&amp;gt; on because it greatly simplifies unit testing, as it just checks that 
&lt;br&gt;&amp;gt; every value on the page has been filled in. &amp;nbsp;However, I'd like 
&lt;br&gt;&amp;gt; velocity to not throw an exception when I pass it a quiet reference 
&lt;br&gt;&amp;gt; e.g. $isNull should throw an exception, but $!isNull should just 
&lt;br&gt;&amp;gt; resolve to being empty. &amp;nbsp;Is there a way to do this?
&lt;br&gt;&lt;br&gt;How about
&lt;br&gt;&lt;br&gt;#if($isNull)
&lt;br&gt;(nothing)
&lt;br&gt;#else
&lt;br&gt;$!isNull
&lt;br&gt;#end
&lt;br&gt;&lt;br&gt;This is quite verbose, but it will get the job done.
&lt;br&gt;&lt;br&gt;I've always been a proponent of something like ReferenceTools that would
&lt;br&gt;allow you to do things like directly check for null and false (because
&lt;br&gt;null == false in VTL) so you wouldn't have to use tricks like these to
&lt;br&gt;get around this behavior. I've just been too lazy to do anything about
&lt;br&gt;it so far ;)
&lt;br&gt;&lt;br&gt;-chris
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18318593&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18318593&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/quiet-reference-doesn%27t-throw-exception-tp18269329p18318593.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18293459</id>
	<title>Re: quiet reference doesn't throw exception</title>
	<published>2008-07-05T08:45:53Z</published>
	<updated>2008-07-05T08:45:53Z</updated>
	<author>
		<name>Christopher Schultz-2</name>
	</author>
	<content type="html">Seth,
&lt;br&gt;&lt;br&gt;Seth Rosenblum wrote:
&lt;br&gt;&amp;gt; I'm using the velocity engine with ParseErrorException throwing turned
&lt;br&gt;&amp;gt; on because it greatly simplifies unit testing, as it just checks that
&lt;br&gt;&amp;gt; every value on the page has been filled in. &amp;nbsp;However, I'd like velocity
&lt;br&gt;&amp;gt; to not throw an exception when I pass it a quiet reference e.g. $isNull
&lt;br&gt;&amp;gt; should throw an exception, but $!isNull should just resolve to being
&lt;br&gt;&amp;gt; empty. &amp;nbsp;Is there a way to do this?
&lt;br&gt;&lt;br&gt;How about
&lt;br&gt;&lt;br&gt;#if($isNull)
&lt;br&gt;(nothing)
&lt;br&gt;#else
&lt;br&gt;$!isNull
&lt;br&gt;#end
&lt;br&gt;&lt;br&gt;This is quite verbose, but it will get the job done.
&lt;br&gt;&lt;br&gt;I've always been a proponent of something like ReferenceTools that would 
&lt;br&gt;allow you to do things like directly check for null and false (because 
&lt;br&gt;null == false in VTL) so you wouldn't have to use tricks like these to 
&lt;br&gt;get around this behavior. I've just been too lazy to do anything about 
&lt;br&gt;it so far ;)
&lt;br&gt;&lt;br&gt;-chris
&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://www.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (266 bytes) &lt;a href=&quot;http://www.nabble.com/attachment/18293459/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/quiet-reference-doesn%27t-throw-exception-tp18269329p18293459.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18274202</id>
	<title>Re: How to access servlet context in velocity template?</title>
	<published>2008-07-04T00:14:38Z</published>
	<updated>2008-07-04T00:14:38Z</updated>
	<author>
		<name>manish-10</name>
	</author>
	<content type="html">Never mind, it's referred as --&amp;gt; $application
&lt;br&gt;Thank god fro source code! :)
&lt;br&gt;&lt;br&gt;- Manish
&lt;br&gt;&lt;br&gt;&lt;br&gt;----- Original Message ----- 
&lt;br&gt;From: &amp;quot;Manish&amp;quot; &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18274202&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;prolist@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &amp;quot;Velocity Users List&amp;quot; &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18274202&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Friday, July 04, 2008 12:14 PM
&lt;br&gt;Subject: How to access servlet context in velocity template?
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; How do I access the servlet context in my velocity template? I can access 
&lt;br&gt;&amp;gt; request with $request but likewise $servletContext doesn't seem to work. I 
&lt;br&gt;&amp;gt; couldn't find the references on web or in velocity tools - any pointers would 
&lt;br&gt;&amp;gt; be highly appreciated!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; TIA,
&lt;br&gt;&amp;gt; - Manish
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18274202&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18274202&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18274202&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18274202&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-access-servlet-context-in-velocity-template--tp18273815p18274202.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18273815</id>
	<title>How to access servlet context in velocity template?</title>
	<published>2008-07-03T23:44:33Z</published>
	<updated>2008-07-03T23:44:33Z</updated>
	<author>
		<name>manish-10</name>
	</author>
	<content type="html">How do I access the servlet context in my velocity template? I can access 
&lt;br&gt;request with $request but likewise $servletContext doesn't seem to work. I 
&lt;br&gt;couldn't find the references on web or in velocity tools - any pointers would be 
&lt;br&gt;highly appreciated!
&lt;br&gt;&lt;br&gt;TIA,
&lt;br&gt;- Manish 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18273815&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18273815&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-access-servlet-context-in-velocity-template--tp18273815p18273815.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18272865</id>
	<title>Re: Tools 2.0 / VelocityLayoutServlet / loadConfiguration</title>
	<published>2008-07-03T22:02:46Z</published>
	<updated>2008-07-03T22:02:46Z</updated>
	<author>
		<name>Martin Thelian</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I'd like to thank you too for the quick reply and support. Allowing to 
&lt;br&gt;provide custom velocityviews would be great. I've already tried to do 
&lt;br&gt;that with version 2.0alpha1 but had not found a way to configure 
&lt;br&gt;velocity to use it.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Martin
&lt;br&gt;&lt;br&gt;Nathan Bubna wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Martin,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You're right. &amp;nbsp;There is no good replacement for this yet. &amp;nbsp;Thanks for
&lt;br&gt;&amp;gt; catching that! &amp;nbsp;I have some unchecked-in code for allowing people to
&lt;br&gt;&amp;gt; easily tell VelocityViewServlet (and kin) to use a custom subclass of
&lt;br&gt;&amp;gt; VelocityView. &amp;nbsp;I think i'll run some tests and check that in. &amp;nbsp;Once
&lt;br&gt;&amp;gt; that feature is available, you will want to create a class like this:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; package org.com;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; import org.apache.velocity.tools.view.VelocityView;
&lt;br&gt;&amp;gt; import org.apache.velocity.tools.view.JeeConfig;
&lt;br&gt;&amp;gt; import org.apache.velocity.app.VelocityEngine;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; public class MyVelocityView extends VelocityView {
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; public MyVelocityView(JeeConfig config) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;super(config);
&lt;br&gt;&amp;gt; &amp;nbsp; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; protected void configure(JeeConfig config, VelocityEngine engine) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;super.configure(config, engine);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;// i leave it to you to determine where the customUrl value comes from :)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;engine.setProperty(&amp;quot;url.resource.loader.root&amp;quot;, this.customUrl);
&lt;br&gt;&amp;gt; &amp;nbsp; }
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; and add this to your VelocityLayoutServlet's web.xml config:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;init-param&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;param-name&amp;gt;org.apache.velocity.tools.view.class&amp;lt;/param-name&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;param-value&amp;gt;org.com.MyVelocityView&amp;lt;/param-value&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;/init-param&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; And i think that should do the trick. &amp;nbsp;Of course, first i have to
&lt;br&gt;&amp;gt; clean up and check in the code that lets you subclass VelocityView
&lt;br&gt;&amp;gt; like this.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; And really, thank you for catching this before 2.0 final is released!
&lt;br&gt;&amp;gt; This is exactly the kind of feedback we need to make sure people can
&lt;br&gt;&amp;gt; migrate from 1.x.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Thu, Jul 3, 2008 at 9:49 AM, Martin Thelian wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I'd link to migrate from Velocity tools version 1.3 to version 2.0. With
&lt;br&gt;&amp;gt;&amp;gt; version 1.3 it was possible to change the root-URL of the URLResourceLoader
&lt;br&gt;&amp;gt;&amp;gt; by simply overwriting the method &amp;quot;loadConfiguration(ServletConfig config).&amp;quot;,
&lt;br&gt;&amp;gt;&amp;gt; e.g.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;@Override
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;protected ExtendedProperties loadConfiguration(ServletConfig config)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; throws IOException {
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ExtendedProperties props = super.loadConfiguration(config);
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;props.addProperty(&amp;quot;url.resource.loader.root&amp;quot;,this.customURL);
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return props;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; With version 2.0 this seems not to be possible anymore. What is the best way
&lt;br&gt;&amp;gt;&amp;gt; to do the same with the new tools version?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks.
&lt;br&gt;&amp;gt;&amp;gt; Martin
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18272865&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18272865&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Tools-2.0---VelocityLayoutServlet---loadConfiguration-tp18268452p18272865.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18272508</id>
	<title>RE: File Resource Loader &quot;Unable to find resource &quot; error for #parse files</title>
	<published>2008-07-03T21:09:27Z</published>
	<updated>2008-07-03T21:09:27Z</updated>
	<author>
		<name>Todd.McClintock</name>
	</author>
	<content type="html">Nathan,
&lt;br&gt;&lt;br&gt;Thanks for the quick response. &amp;nbsp;That was the problem.
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;&lt;br&gt;Todd 
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Nathan Bubna [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18272508&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nbubna@...&lt;/a&gt;] 
&lt;br&gt;Sent: Thursday, July 03, 2008 7:53 PM
&lt;br&gt;To: Velocity Users List
&lt;br&gt;Subject: Re: File Resource Loader &amp;quot;Unable to find resource &amp;quot; error for
&lt;br&gt;#parse files
&lt;br&gt;&lt;br&gt;i'm not sure if it's just a typo in your email or if it's a problem in
&lt;br&gt;your actual template, but you said you are trying to do:
&lt;br&gt;&lt;br&gt;#parse( 'commom.vm' )
&lt;br&gt;&lt;br&gt;and have it find a &amp;quot;common.vm&amp;quot; template. &amp;nbsp;is it as simple as changing it
&lt;br&gt;to
&lt;br&gt;&lt;br&gt;#parse( 'common.vm' )
&lt;br&gt;&lt;br&gt;?
&lt;br&gt;&lt;br&gt;On Thu, Jul 3, 2008 at 7:14 PM, &amp;nbsp;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18272508&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Todd.McClintock@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have a batch application that is using velocity create the content 
&lt;br&gt;&amp;gt; for emails.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I keep getting an &amp;quot;&amp;quot; when trying to merge a template that contains a 
&lt;br&gt;&amp;gt; &amp;quot;#parse&amp;quot; statement. &amp;nbsp;I don't have this problem on a Web Application 
&lt;br&gt;&amp;gt; that uses an identical Spring Context Config to create a velocity
&lt;br&gt;bean.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Questions:
&lt;br&gt;&amp;gt; 1. How do I figure where velocity is looking for the file reference by
&lt;br&gt;&lt;br&gt;&amp;gt; the #parse statement? &amp;nbsp;If I knew where velocity expects to find it I 
&lt;br&gt;&amp;gt; can fix the problem.
&lt;br&gt;&amp;gt; 2. The Velocity User Guide says that files referenced by #parse must 
&lt;br&gt;&amp;gt; be under the TEMPLATE_ROOT directory. &amp;nbsp;How do I sent the TEMPLATE_ROOT
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; directory? &amp;nbsp;How do I determine the location of the TEMPLATE_ROOT 
&lt;br&gt;&amp;gt; directory when my application is up and running?
&lt;br&gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt; Todd McClintock
&lt;br&gt;&amp;gt; Details:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; mergeTemplate method call and error
&lt;br&gt;&amp;gt; ##############################################
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; velocityEngine.mergeTemplate(&amp;quot;VelocityTestTemplate.vm&amp;quot;, 
&lt;br&gt;&amp;gt; velocityContext, writer);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; SEVERE: #parse(): cannot find template '/commom.vm', called from 
&lt;br&gt;&amp;gt; template VelocityTestTemplate.txt at (1, 1)
&lt;br&gt;&amp;gt; org.apache.velocity.exception.ResourceNotFoundException: Unable to 
&lt;br&gt;&amp;gt; find resource '/commom.vm'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ##############################################
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; VelocityTestTemplate.vm
&lt;br&gt;&amp;gt; ##############################################
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; #parse ( &amp;quot;commom.vm&amp;quot; )
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hello $name
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Today is $day.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ##############################################
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; common.vm
&lt;br&gt;&amp;gt; ##############################################
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; #set ( $day = &amp;quot;Thursday&amp;quot; )
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ##############################################
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Spring Context File used to configure Velocity 
&lt;br&gt;&amp;gt; ##############################################
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt; &amp;lt;beans 
&lt;br&gt;&amp;gt; xmlns=&amp;quot;&lt;a href=&quot;http://www.springframework.org/schema/beans&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.springframework.org/schema/beans&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;gt; xmlns:xsi=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;gt; xmlns:util=&amp;quot;&lt;a href=&quot;http://www.springframework.org/schema/util&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.springframework.org/schema/util&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;gt; xsi:schemaLocation=&amp;quot;&lt;a href=&quot;http://www.springframework.org/schema/beans&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.springframework.org/schema/beans&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.springframework.org/schema/beans/spring-beans-2.0.xsd&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.springframework.org/schema/beans/spring-beans-2.0.xsd&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.springframework.org/schema/util&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.springframework.org/schema/util&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.springframework.org/schema/util/spring-util-2.0.xsd&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.springframework.org/schema/util/spring-util-2.0.xsd&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;bean id=&amp;quot;notificationVelocityEngine&amp;quot;
&lt;br&gt;&amp;gt; class=&amp;quot;org.springframework.ui.velocity.VelocityEngineFactoryBean&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;property name=&amp;quot;velocityProperties&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;props&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;prop key=&amp;quot;resource.loader&amp;quot;&amp;gt;file&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;prop
&lt;br&gt;&amp;gt; key=&amp;quot;file.resource.loader.class&amp;quot;&amp;gt;org.apache.velocity.runtime.resource.
&lt;br&gt;&amp;gt; lo
&lt;br&gt;&amp;gt; ader.FileResourceLoader&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;prop
&lt;br&gt;&amp;gt; key=&amp;quot;file.resource.loader.path&amp;quot;&amp;gt;C:\velocityTest&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;prop
&lt;br&gt;&amp;gt; key=&amp;quot;file.resource.loader.cache&amp;quot;&amp;gt;true&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;prop
&lt;br&gt;&amp;gt; key=&amp;quot;file.resource.loader.modificationCheckInterval&amp;quot;&amp;gt;0&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/props&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/property&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/bean&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/beans&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ##############################################
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18272508&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18272508&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18272508&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18272508&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/File-Resource-Loader--%22Unable-to-find-resource-%22-error-for--parse-files-tp18271524p18272508.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18271820</id>
	<title>Re: File Resource Loader &quot;Unable to find resource &quot; error for #parse files</title>
	<published>2008-07-03T19:52:56Z</published>
	<updated>2008-07-03T19:52:56Z</updated>
	<author>
		<name>Nathan Bubna</name>
	</author>
	<content type="html">i'm not sure if it's just a typo in your email or if it's a problem in
&lt;br&gt;your actual template, but you said you are trying to do:
&lt;br&gt;&lt;br&gt;#parse( 'commom.vm' )
&lt;br&gt;&lt;br&gt;and have it find a &amp;quot;common.vm&amp;quot; template. &amp;nbsp;is it as simple as changing it to
&lt;br&gt;&lt;br&gt;#parse( 'common.vm' )
&lt;br&gt;&lt;br&gt;?
&lt;br&gt;&lt;br&gt;On Thu, Jul 3, 2008 at 7:14 PM, &amp;nbsp;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18271820&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Todd.McClintock@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have a batch application that is using velocity create the content for
&lt;br&gt;&amp;gt; emails.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I keep getting an &amp;quot;&amp;quot; when trying to merge a template that contains a
&lt;br&gt;&amp;gt; &amp;quot;#parse&amp;quot; statement. &amp;nbsp;I don't have this problem on a Web Application that
&lt;br&gt;&amp;gt; uses an identical Spring Context Config to create a velocity bean.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Questions:
&lt;br&gt;&amp;gt; 1. How do I figure where velocity is looking for the file reference by
&lt;br&gt;&amp;gt; the #parse statement? &amp;nbsp;If I knew where velocity expects to find it I can
&lt;br&gt;&amp;gt; fix the problem.
&lt;br&gt;&amp;gt; 2. The Velocity User Guide says that files referenced by #parse must be
&lt;br&gt;&amp;gt; under the TEMPLATE_ROOT directory. &amp;nbsp;How do I sent the TEMPLATE_ROOT
&lt;br&gt;&amp;gt; directory? &amp;nbsp;How do I determine the location of the TEMPLATE_ROOT
&lt;br&gt;&amp;gt; directory when my application is up and running?
&lt;br&gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt; Todd McClintock
&lt;br&gt;&amp;gt; Details:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; mergeTemplate method call and error
&lt;br&gt;&amp;gt; ##############################################
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; velocityEngine.mergeTemplate(&amp;quot;VelocityTestTemplate.vm&amp;quot;, velocityContext,
&lt;br&gt;&amp;gt; writer);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; SEVERE: #parse(): cannot find template '/commom.vm', called from
&lt;br&gt;&amp;gt; template VelocityTestTemplate.txt at (1, 1)
&lt;br&gt;&amp;gt; org.apache.velocity.exception.ResourceNotFoundException: Unable to find
&lt;br&gt;&amp;gt; resource '/commom.vm'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ##############################################
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; VelocityTestTemplate.vm
&lt;br&gt;&amp;gt; ##############################################
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; #parse ( &amp;quot;commom.vm&amp;quot; )
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hello $name
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Today is $day.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ##############################################
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; common.vm
&lt;br&gt;&amp;gt; ##############################################
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; #set ( $day = &amp;quot;Thursday&amp;quot; )
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ##############################################
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Spring Context File used to configure Velocity
&lt;br&gt;&amp;gt; ##############################################
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;beans xmlns=&amp;quot;&lt;a href=&quot;http://www.springframework.org/schema/beans&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.springframework.org/schema/beans&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;gt; xmlns:xsi=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;gt; xmlns:util=&amp;quot;&lt;a href=&quot;http://www.springframework.org/schema/util&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.springframework.org/schema/util&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;gt; xsi:schemaLocation=&amp;quot;&lt;a href=&quot;http://www.springframework.org/schema/beans&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.springframework.org/schema/beans&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.springframework.org/schema/beans/spring-beans-2.0.xsd&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.springframework.org/schema/beans/spring-beans-2.0.xsd&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.springframework.org/schema/util&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.springframework.org/schema/util&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.springframework.org/schema/util/spring-util-2.0.xsd&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.springframework.org/schema/util/spring-util-2.0.xsd&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;bean id=&amp;quot;notificationVelocityEngine&amp;quot;
&lt;br&gt;&amp;gt; class=&amp;quot;org.springframework.ui.velocity.VelocityEngineFactoryBean&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;property name=&amp;quot;velocityProperties&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;props&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;prop key=&amp;quot;resource.loader&amp;quot;&amp;gt;file&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;prop
&lt;br&gt;&amp;gt; key=&amp;quot;file.resource.loader.class&amp;quot;&amp;gt;org.apache.velocity.runtime.resource.lo
&lt;br&gt;&amp;gt; ader.FileResourceLoader&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;prop
&lt;br&gt;&amp;gt; key=&amp;quot;file.resource.loader.path&amp;quot;&amp;gt;C:\velocityTest&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;prop
&lt;br&gt;&amp;gt; key=&amp;quot;file.resource.loader.cache&amp;quot;&amp;gt;true&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;prop
&lt;br&gt;&amp;gt; key=&amp;quot;file.resource.loader.modificationCheckInterval&amp;quot;&amp;gt;0&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/props&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/property&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/bean&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/beans&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ##############################################
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18271820&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18271820&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/File-Resource-Loader--%22Unable-to-find-resource-%22-error-for--parse-files-tp18271524p18271820.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18271524</id>
	<title>File Resource Loader  &quot;Unable to find resource &quot; error for #parse files</title>
	<published>2008-07-03T19:14:00Z</published>
	<updated>2008-07-03T19:14:00Z</updated>
	<author>
		<name>Todd.McClintock</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I have a batch application that is using velocity create the content for
&lt;br&gt;emails.
&lt;br&gt;&lt;br&gt;I keep getting an &amp;quot;&amp;quot; when trying to merge a template that contains a
&lt;br&gt;&amp;quot;#parse&amp;quot; statement. &amp;nbsp;I don't have this problem on a Web Application that
&lt;br&gt;uses an identical Spring Context Config to create a velocity bean.
&lt;br&gt;&lt;br&gt;Questions:
&lt;br&gt;1. How do I figure where velocity is looking for the file reference by
&lt;br&gt;the #parse statement? &amp;nbsp;If I knew where velocity expects to find it I can
&lt;br&gt;fix the problem.
&lt;br&gt;2. The Velocity User Guide says that files referenced by #parse must be
&lt;br&gt;under the TEMPLATE_ROOT directory. &amp;nbsp;How do I sent the TEMPLATE_ROOT
&lt;br&gt;directory? &amp;nbsp;How do I determine the location of the TEMPLATE_ROOT
&lt;br&gt;directory when my application is up and running?
&lt;br&gt;Thanks
&lt;br&gt;Todd McClintock
&lt;br&gt;Details:
&lt;br&gt;&lt;br&gt;mergeTemplate method call and error
&lt;br&gt;##############################################
&lt;br&gt;&lt;br&gt;velocityEngine.mergeTemplate(&amp;quot;VelocityTestTemplate.vm&amp;quot;, velocityContext,
&lt;br&gt;writer);
&lt;br&gt;&lt;br&gt;SEVERE: #parse(): cannot find template '/commom.vm', called from
&lt;br&gt;template VelocityTestTemplate.txt at (1, 1)
&lt;br&gt;org.apache.velocity.exception.ResourceNotFoundException: Unable to find
&lt;br&gt;resource '/commom.vm'
&lt;br&gt;&lt;br&gt;##############################################
&lt;br&gt;&lt;br&gt;VelocityTestTemplate.vm
&lt;br&gt;##############################################
&lt;br&gt;&lt;br&gt;#parse ( &amp;quot;commom.vm&amp;quot; )
&lt;br&gt;&lt;br&gt;Hello $name
&lt;br&gt;&lt;br&gt;Today is $day.
&lt;br&gt;&lt;br&gt;##############################################
&lt;br&gt;&lt;br&gt;common.vm
&lt;br&gt;##############################################
&lt;br&gt;&lt;br&gt;#set ( $day = &amp;quot;Thursday&amp;quot; )
&lt;br&gt;&lt;br&gt;##############################################
&lt;br&gt;&lt;br&gt;Spring Context File used to configure Velocity
&lt;br&gt;##############################################
&lt;br&gt;&lt;br&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;lt;beans xmlns=&amp;quot;&lt;a href=&quot;http://www.springframework.org/schema/beans&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.springframework.org/schema/beans&lt;/a&gt;&amp;quot;
&lt;br&gt;xmlns:xsi=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/a&gt;&amp;quot;
&lt;br&gt;xmlns:util=&amp;quot;&lt;a href=&quot;http://www.springframework.org/schema/util&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.springframework.org/schema/util&lt;/a&gt;&amp;quot;
&lt;br&gt;xsi:schemaLocation=&amp;quot;&lt;a href=&quot;http://www.springframework.org/schema/beans&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.springframework.org/schema/beans&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.springframework.org/schema/beans/spring-beans-2.0.xsd&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.springframework.org/schema/beans/spring-beans-2.0.xsd&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.springframework.org/schema/util&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.springframework.org/schema/util&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.springframework.org/schema/util/spring-util-2.0.xsd&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.springframework.org/schema/util/spring-util-2.0.xsd&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;bean id=&amp;quot;notificationVelocityEngine&amp;quot;
&lt;br&gt;class=&amp;quot;org.springframework.ui.velocity.VelocityEngineFactoryBean&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;velocityProperties&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;props&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;prop key=&amp;quot;resource.loader&amp;quot;&amp;gt;file&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;prop
&lt;br&gt;key=&amp;quot;file.resource.loader.class&amp;quot;&amp;gt;org.apache.velocity.runtime.resource.lo
&lt;br&gt;ader.FileResourceLoader&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;prop
&lt;br&gt;key=&amp;quot;file.resource.loader.path&amp;quot;&amp;gt;C:\velocityTest&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;prop
&lt;br&gt;key=&amp;quot;file.resource.loader.cache&amp;quot;&amp;gt;true&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;prop
&lt;br&gt;key=&amp;quot;file.resource.loader.modificationCheckInterval&amp;quot;&amp;gt;0&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/props&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/property&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/bean&amp;gt;
&lt;br&gt;&amp;lt;/beans&amp;gt;
&lt;br&gt;&lt;br&gt;##############################################
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/File-Resource-Loader--%22Unable-to-find-resource-%22-error-for--parse-files-tp18271524p18271524.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18269879</id>
	<title>Re: Tools 2.0 / VelocityLayoutServlet / loadConfiguration</title>
	<published>2008-07-03T16:10:34Z</published>
	<updated>2008-07-03T16:10:34Z</updated>
	<author>
		<name>Nathan Bubna</name>
	</author>
	<content type="html">Hi Martin,
&lt;br&gt;&lt;br&gt;You're right. &amp;nbsp;There is no good replacement for this yet. &amp;nbsp;Thanks for
&lt;br&gt;catching that! &amp;nbsp;I have some unchecked-in code for allowing people to
&lt;br&gt;easily tell VelocityViewServlet (and kin) to use a custom subclass of
&lt;br&gt;VelocityView. &amp;nbsp;I think i'll run some tests and check that in. &amp;nbsp;Once
&lt;br&gt;that feature is available, you will want to create a class like this:
&lt;br&gt;&lt;br&gt;package org.com;
&lt;br&gt;&lt;br&gt;import org.apache.velocity.tools.view.VelocityView;
&lt;br&gt;import org.apache.velocity.tools.view.JeeConfig;
&lt;br&gt;import org.apache.velocity.app.VelocityEngine;
&lt;br&gt;&lt;br&gt;public class MyVelocityView extends VelocityView {
&lt;br&gt;&lt;br&gt;&amp;nbsp; public MyVelocityView(JeeConfig config) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;super(config);
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; protected void configure(JeeConfig config, VelocityEngine engine) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;super.configure(config, engine);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;// i leave it to you to determine where the customUrl value comes from :)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;engine.setProperty(&amp;quot;url.resource.loader.root&amp;quot;, this.customUrl);
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;and add this to your VelocityLayoutServlet's web.xml config:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;init-param&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;param-name&amp;gt;org.apache.velocity.tools.view.class&amp;lt;/param-name&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;param-value&amp;gt;org.com.MyVelocityView&amp;lt;/param-value&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/init-param&amp;gt;
&lt;br&gt;&lt;br&gt;And i think that should do the trick. &amp;nbsp;Of course, first i have to
&lt;br&gt;clean up and check in the code that lets you subclass VelocityView
&lt;br&gt;like this.
&lt;br&gt;&lt;br&gt;And really, thank you for catching this before 2.0 final is released!
&lt;br&gt;This is exactly the kind of feedback we need to make sure people can
&lt;br&gt;migrate from 1.x.
&lt;br&gt;&lt;br&gt;On Thu, Jul 3, 2008 at 9:49 AM, Martin Thelian &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18269879&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Martin.Thelian@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'd link to migrate from Velocity tools version 1.3 to version 2.0. With
&lt;br&gt;&amp;gt; version 1.3 it was possible to change the root-URL of the URLResourceLoader
&lt;br&gt;&amp;gt; by simply overwriting the method &amp;quot;loadConfiguration(ServletConfig config).&amp;quot;,
&lt;br&gt;&amp;gt; e.g.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;@Override
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;protected ExtendedProperties loadConfiguration(ServletConfig config)
&lt;br&gt;&amp;gt;&amp;gt; throws IOException {
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ExtendedProperties props = super.loadConfiguration(config);
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;props.addProperty(&amp;quot;url.resource.loader.root&amp;quot;,this.customURL);
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return props;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; With version 2.0 this seems not to be possible anymore. What is the best way
&lt;br&gt;&amp;gt; to do the same with the new tools version?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks.
&lt;br&gt;&amp;gt; Martin
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18269879&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18269879&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18269879&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18269879&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Tools-2.0---VelocityLayoutServlet---loadConfiguration-tp18268452p18269879.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18269329</id>
	<title>quiet reference doesn't throw exception</title>
	<published>2008-07-03T15:20:19Z</published>
	<updated>2008-07-03T15:20:19Z</updated>
	<author>
		<name>Seth Rosenblum</name>
	</author>
	<content type="html">I'm using the velocity engine with ParseErrorException throwing turned
&lt;br&gt;on because it greatly simplifies unit testing, as it just checks that
&lt;br&gt;every value on the page has been filled in. &amp;nbsp;However, I'd like velocity
&lt;br&gt;to not throw an exception when I pass it a quiet reference e.g. $isNull
&lt;br&gt;should throw an exception, but $!isNull should just resolve to being
&lt;br&gt;empty. &amp;nbsp;Is there a way to do this?
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Thanks,
&lt;br&gt;&amp;nbsp; &amp;nbsp; Seth Rosenblum
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/quiet-reference-doesn%27t-throw-exception-tp18269329p18269329.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18267438</id>
	<title>Re: design template based on user requirement</title>
	<published>2008-07-03T13:14:11Z</published>
	<updated>2008-07-03T13:14:11Z</updated>
	<author>
		<name>wglass</name>
	</author>
	<content type="html">Hi Kumar,
&lt;br&gt;&lt;br&gt;Velocity doesn't come with any Hibernate-specific resource loaders, but
&lt;br&gt;there is a DatasourceResourceLoader that can load a template directly from a
&lt;br&gt;database. &amp;nbsp;Check the Javadocs.
&lt;br&gt;&lt;br&gt;Also, it is possible to write your own ResourceLoader to load templates.
&lt;br&gt;You could definitely create one to load from a Hibernate session. &amp;nbsp;Look at
&lt;br&gt;the source code for the DatasourceResourceLoader in the Velocity source as
&lt;br&gt;an example, or read my Powerpoint slides &amp;quot;Hacking Velocity&amp;quot; available on our
&lt;br&gt;wiki.
&lt;br&gt;&lt;br&gt;WILL
&lt;br&gt;&lt;br&gt;On Thu, Jul 3, 2008 at 6:24 AM, KumarE &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18267438&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;srinil.kumar@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; yes but the thing is that user has to design &amp;nbsp;a new template and store in
&lt;br&gt;&amp;gt; database, but this design and all things should happen in running mode of
&lt;br&gt;&amp;gt; web application, ie it should &amp;nbsp;be &amp;nbsp;possible to design all the web
&lt;br&gt;&amp;gt; components
&lt;br&gt;&amp;gt; like text box, combo box, check box &amp;nbsp;in running web application and once
&lt;br&gt;&amp;gt; the
&lt;br&gt;&amp;gt; new template is created that template &amp;nbsp;should store inside the database up
&lt;br&gt;&amp;gt; on clicking suppose save button,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; and for programming i am using JSP,Hibernate for database connection, how
&lt;br&gt;&amp;gt; it
&lt;br&gt;&amp;gt; is possible. do u know any tools available so that one can dynamically
&lt;br&gt;&amp;gt; create template and store inside database.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; thanks
&lt;br&gt;&amp;gt; Kumar
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; KumarE wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am using velocity template, which i use to display output. But i
&lt;br&gt;&amp;gt; &amp;gt; requires customization of existing template &amp;nbsp;and also &amp;nbsp;if user needs to
&lt;br&gt;&amp;gt; &amp;gt; design a new template, he can design it according to his/her requirement,
&lt;br&gt;&amp;gt; &amp;gt; is there any tool available along with the library so that customization
&lt;br&gt;&amp;gt; &amp;gt; of an existing template &amp;nbsp;(or new template design) is possible, or any one
&lt;br&gt;&amp;gt; &amp;gt; have idea regarding or is there any methods of programming to be followed
&lt;br&gt;&amp;gt; &amp;gt; in order &amp;nbsp;to achieve &amp;nbsp;template customization.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; thanks
&lt;br&gt;&amp;gt; &amp;gt; Kumar E
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/design-template-based-on-user-requirement-tp18233609p18259091.html&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/design-template-based-on-user-requirement-tp18233609p18259091.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the Velocity - User mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18267438&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18267438&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Forio Business Simulations
&lt;br&gt;&lt;br&gt;Will Glass-Husain
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18267438&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wglass@...&lt;/a&gt;
&lt;br&gt;www.forio.com
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/design-template-based-on-user-requirement-tp18233609p18267438.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18268452</id>
	<title>Tools 2.0 / VelocityLayoutServlet / loadConfiguration</title>
	<published>2008-07-03T09:49:48Z</published>
	<updated>2008-07-03T09:49:48Z</updated>
	<author>
		<name>Martin Thelian</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I'd link to migrate from Velocity tools version 1.3 to version 2.0. With 
&lt;br&gt;version 1.3 it was possible to change the root-URL of the 
&lt;br&gt;URLResourceLoader by simply overwriting the method 
&lt;br&gt;&amp;quot;loadConfiguration(ServletConfig config).&amp;quot;, e.g.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; @Override
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; protected ExtendedProperties loadConfiguration(ServletConfig 
&lt;br&gt;&amp;gt; config) throws IOException {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ExtendedProperties props = super.loadConfiguration(config);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; props.addProperty(&amp;quot;url.resource.loader.root&amp;quot;,this.customURL);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return props;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;With version 2.0 this seems not to be possible anymore. What is the best 
&lt;br&gt;way to do the same with the new tools version?
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;Martin
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18268452&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18268452&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Tools-2.0---VelocityLayoutServlet---loadConfiguration-tp18268452p18268452.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18259091</id>
	<title>Re: design template based on user requirement</title>
	<published>2008-07-03T06:24:42Z</published>
	<updated>2008-07-03T06:24:42Z</updated>
	<author>
		<name>KumarE</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp;yes but the thing is that user has to design &amp;nbsp;a new template and store in database, but this design and all things should happen in running mode of &amp;nbsp;web application, ie it should &amp;nbsp;be &amp;nbsp;possible to design all the web components &amp;nbsp;like text box, combo box, check box &amp;nbsp;in running web application and once the new template is created that template &amp;nbsp;should store inside the database up on clicking suppose save button, &amp;nbsp;
&lt;br&gt;&lt;br&gt;and for programming i am using JSP,Hibernate for database connection, how it is possible. do u know any tools available so that one can dynamically create template and store inside database.
&lt;br&gt;&lt;br&gt;&lt;br&gt;thanks
&lt;br&gt;Kumar
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;KumarE wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;Hi,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I am using velocity template, which i use to display output. But i requires customization of existing template &amp;nbsp;and also &amp;nbsp;if user needs to design a new template, he can design it according to his/her requirement, is there any tool available along with the library so that customization of an existing template &amp;nbsp;(or new template design) is possible, or any one have idea regarding or is there any methods of programming to be followed in order &amp;nbsp;to achieve &amp;nbsp;template customization.
&lt;br&gt;&lt;br&gt;&lt;br&gt;thanks 
&lt;br&gt;Kumar E
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/design-template-based-on-user-requirement-tp18233609p18259091.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18243039</id>
	<title>Re: how to modify velocity output?</title>
	<published>2008-07-02T10:41:44Z</published>
	<updated>2008-07-02T10:41:44Z</updated>
	<author>
		<name>wizard20740</name>
	</author>
	<content type="html">Thanks Chris,
&lt;br&gt;&lt;br&gt;Using VelocityLayoutServlet served my purpose.
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;&lt;br&gt;Prabhakar
&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Christopher Schultz-2 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Nathan,
&lt;br&gt;&lt;br&gt;Nathan Bubna wrote:
&lt;br&gt;&amp;gt; On Tue, Jun 17, 2008 at 9:46 AM, prabhakar thopa
&lt;br&gt;&amp;gt; &amp;lt;prabhakart_in@yahoo.com&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I want to
&lt;br&gt;&amp;gt;&amp;gt; add javascript code to all my velocity templates to record browser screen
&lt;br&gt;&amp;gt;&amp;gt; resolution and whether the pages are being displayed on a framed window.
&lt;br&gt;&amp;gt;&amp;gt; I have
&lt;br&gt;&amp;gt;&amp;gt; several hundred templates that I need to add this code to.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Is there a
&lt;br&gt;&amp;gt;&amp;gt; way of including a file in a template without modifying the template source? For
&lt;br&gt;&amp;gt;&amp;gt; instance like a filter that intercepts the velocity output and adds the
&lt;br&gt;&amp;gt;&amp;gt; additional stuff in.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; sounds like a job for SiteMesh &amp;nbsp;(google for it, if you don't know what it is)
&lt;br&gt;&lt;br&gt;Or even VelocityLayoutServlet, in Velocity Tools.
&lt;br&gt;&lt;br&gt;-chris
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/re%3A-how-to-modify-velocity-output--tp17918859p18243039.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18238380</id>
	<title>Re: Results from a security audit</title>
	<published>2008-07-02T07:11:16Z</published>
	<updated>2008-07-02T07:11:16Z</updated>
	<author>
		<name>Tom Jenkins-5</name>
	</author>
	<content type="html">After rereading my message I wanted to reiterate that I'm not 100% convinced
&lt;br&gt;that all these are truly anything to be worried about. &amp;nbsp;The application was
&lt;br&gt;never ran, it was all static analysis and no specific attack vectors were
&lt;br&gt;discovered.
&lt;br&gt;&lt;br&gt;But before I brush them aside, I wanted to run them by you all.
&lt;br&gt;&lt;br&gt;I'll post on &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18238380&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Wed, Jul 2, 2008 at 12:52 AM, Nathan Bubna &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18238380&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nbubna@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; If this is a web application, be sure you've read this:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://wiki.apache.org/velocity/BuildingSecureWebApplications&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.apache.org/velocity/BuildingSecureWebApplications&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Tue, Jul 1, 2008 at 5:21 PM, Tom Jenkins &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18238380&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tomj.devis@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; Hello all,
&lt;br&gt;&amp;gt; &amp;gt; We just had to submit one of our applications to a security audit by a
&lt;br&gt;&amp;gt; third
&lt;br&gt;&amp;gt; &amp;gt; party. &amp;nbsp;They flagged about 15 velocity classes after running it through
&lt;br&gt;&amp;gt; &amp;gt; their black box. &amp;nbsp;I'm not 100% sure of the validity of some of these
&lt;br&gt;&amp;gt; flags.
&lt;br&gt;&amp;gt; &amp;gt; Is there some place I can discuss the issues? &amp;nbsp;Or perhaps someone
&lt;br&gt;&amp;gt; directly?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thanks
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18238380&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18238380&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Results-from-a-security-audit-tp18227938p18238380.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18237822</id>
	<title>RE: design template based on user requirement</title>
	<published>2008-07-02T06:41:36Z</published>
	<updated>2008-07-02T06:41:36Z</updated>
	<author>
		<name>White, Tim</name>
	</author>
	<content type="html">If I understand your question correctly, you have your own template, and
&lt;br&gt;you want to let the user override it with their own customized version.
&lt;br&gt;&lt;br&gt;One way to do this is with resource loaders.
&lt;br&gt;&lt;br&gt;For example, if your templates are inside the .war file, you could set
&lt;br&gt;the resource loader configuration to check a file system location first,
&lt;br&gt;and then inside the .war.
&lt;br&gt;&lt;br&gt;If it finds a version of the template it's looking for (same exact name)
&lt;br&gt;in the file system location, it will use that. &amp;nbsp;Otherwise, it will use
&lt;br&gt;the version from the .war.
&lt;br&gt;&lt;br&gt;Hope this helps,
&lt;br&gt;&lt;br&gt;Tim 
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: KumarE [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18237822&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;srinil.kumar@...&lt;/a&gt;] 
&lt;br&gt;Sent: Wednesday, July 02, 2008 3:32 AM
&lt;br&gt;To: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18237822&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;
&lt;br&gt;Subject: design template based on user requirement
&lt;br&gt;&lt;br&gt;&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I am using velocity template, which i use to display output. But i
&lt;br&gt;requires customization of existing template &amp;nbsp;and also &amp;nbsp;if user needs to
&lt;br&gt;design a new template, he can design it according to his/her
&lt;br&gt;requirement, is there any tool available along with the library so that
&lt;br&gt;customization of an existing template &amp;nbsp;(or new template design) is
&lt;br&gt;possible, or any one have idea regarding or is there any methods of
&lt;br&gt;programming to be followed in order &amp;nbsp;to achieve &amp;nbsp;template customization.
&lt;br&gt;&lt;br&gt;&lt;br&gt;thanks
&lt;br&gt;Kumar E
&lt;br&gt;--
&lt;br&gt;View this message in context:
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/design-template-based-on-user-requirement-tp182336&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/design-template-based-on-user-requirement-tp182336&lt;/a&gt;&lt;br&gt;09p18233609.html
&lt;br&gt;Sent from the Velocity - User mailing list archive at Nabble.com.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18237822&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18237822&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;This communication is the property of Qwest and may contain confidential or
&lt;br&gt;privileged information. Unauthorized use of this communication is strictly 
&lt;br&gt;prohibited and may be unlawful. &amp;nbsp;If you have received this communication 
&lt;br&gt;in error, please immediately notify the sender by reply e-mail and destroy 
&lt;br&gt;all copies of the communication and any attachments.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18237822&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18237822&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/design-template-based-on-user-requirement-tp18233609p18237822.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18233609</id>
	<title>design template based on user requirement</title>
	<published>2008-07-02T02:31:49Z</published>
	<updated>2008-07-02T02:31:49Z</updated>
	<author>
		<name>KumarE</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I am using velocity template, which i use to display output. But i requires customization of existing template &amp;nbsp;and also &amp;nbsp;if user needs to design a new template, he can design it according to his/her requirement, is there any tool available along with the library so that customization of an existing template &amp;nbsp;(or new template design) is possible, or any one have idea regarding or is there any methods of programming to be followed in order &amp;nbsp;to achieve &amp;nbsp;template customization.
&lt;br&gt;&lt;br&gt;&lt;br&gt;thanks 
&lt;br&gt;Kumar E</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/design-template-based-on-user-requirement-tp18233609p18233609.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18230926</id>
	<title>Re: URL encoding</title>
	<published>2008-07-01T23:14:48Z</published>
	<updated>2008-07-01T23:14:48Z</updated>
	<author>
		<name>johne</name>
	</author>
	<content type="html">That was it! &amp;nbsp;That cleared up about 60 validation warnings from W3C validation tests. &amp;nbsp;Thank you. &amp;nbsp;You can see the result already on &lt;a href=&quot;http://www.jobbank.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jobbank.com&lt;/a&gt;. &amp;nbsp;With that change, there is no need to change DOCTYPE? &amp;nbsp; By the way, I could not find this on the velocity site. &amp;nbsp;Maybe I missed it. &amp;nbsp;It was a good tip to know.&lt;div class=&quot;signature&quot;&gt;JohnE
&lt;br&gt;
&lt;a href=&quot;http://www.jobbank.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jobbank.com&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/URL-encoding-tp18188632p18230926.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18230281</id>
	<title>Re: Results from a security audit</title>
	<published>2008-07-01T21:52:17Z</published>
	<updated>2008-07-01T21:52:17Z</updated>
	<author>
		<name>Nathan Bubna</name>
	</author>
	<content type="html">If this is a web application, be sure you've read this:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://wiki.apache.org/velocity/BuildingSecureWebApplications&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.apache.org/velocity/BuildingSecureWebApplications&lt;/a&gt;&lt;br&gt;&lt;br&gt;On Tue, Jul 1, 2008 at 5:21 PM, Tom Jenkins &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18230281&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tomj.devis@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Hello all,
&lt;br&gt;&amp;gt; We just had to submit one of our applications to a security audit by a third
&lt;br&gt;&amp;gt; party. &amp;nbsp;They flagged about 15 velocity classes after running it through
&lt;br&gt;&amp;gt; their black box. &amp;nbsp;I'm not 100% sure of the validity of some of these flags.
&lt;br&gt;&amp;gt; Is there some place I can discuss the issues? &amp;nbsp;Or perhaps someone directly?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18230281&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18230281&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Results-from-a-security-audit-tp18227938p18230281.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18229558</id>
	<title>Re: Results from a security audit</title>
	<published>2008-07-01T20:23:28Z</published>
	<updated>2008-07-01T20:23:28Z</updated>
	<author>
		<name>W. Hartung</name>
	</author>
	<content type="html">If they're regarding the actual Velocity classes (versus some of your &amp;nbsp;
&lt;br&gt;own classes), I think it would be really helpful if you can share &amp;nbsp;
&lt;br&gt;this discussion with the list.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Will Hartung
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18229558&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18229558&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Results-from-a-security-audit-tp18227938p18229558.html" />
</entry>

</feed>
