Re: String literals containing double quotes

2006-11-13 Thread Nathan Bubna
In the upcoming 1.5 release, you can just double up your quotes to escape them: #set( $foo = "The man said, ""Jump!"" ""No,"" said I.") On 11/13/06, Barbara Baughman <[EMAIL PROTECTED]> wrote: Instead of the big section on escaping, perhaps the documentation should have the great workaround we

Re: Velocity Variables across Templates

2006-11-21 Thread Nathan Bubna
You should just need to use the same context when merging both templates. or, if you are using VelocityView, add an application-scoped java.util.Hashtable to your toolbox and put variables you wish to be global into that. On 11/21/06, rjain <[EMAIL PROTECTED]> wrote: Hi I have two templates T

Re: How do I set a property

2006-12-06 Thread Nathan Bubna
On 12/6/06, Martin Tilsted <[EMAIL PROTECTED]> wrote: Citat Will Glass-Husain <[EMAIL PROTECTED]>: > Martin, > > If at all possible, use VelocityViewServlet from the Velocity Tools > project. Although it works similarly It's better supported. (we've > deprecated VelocityServlet in the latest r

Re: How do I set a property

2006-12-06 Thread Nathan Bubna
On 12/6/06, Martin Tilsted <[EMAIL PROTECTED]> wrote: ... > > But I don't understand how VelocityViewServlet, works similary to > > VelocityServlet. Let my try if I understand VelocityViewServlet correct. > > > > 1: I don't have a class for each template. Insted I populate a View with > > 'tool o

Re: velocimacro.library.autoreload = true does not work?

2006-12-06 Thread Nathan Bubna
Actually, the resource loader is the issue. The ClasspathResourceLoader is not as full featured as the FileResourceLoader or the WebappLoader (from VelocityTools). Specifically, it doesn't have functional implementations of isSourceModified() or getLastModified(), these always return false and 0

Re: Problem with $link.setAction and Javascript

2006-12-08 Thread Nathan Bubna
The LinkTool automatically performs URL encoding on query data. The easiest way to avoid it is to add the parameter manually: $link.setAction('wishlist')?id='+id+' On 12/8/06, Gustavo Straube Pereira <[EMAIL PROTECTED]> wrote: Hi! I want to parse a link to an action with some javascript varia

Re: Velocity ImportTool Question

2006-12-12 Thread Nathan Bubna
a "toolbox"? Do you have a toolbox.xml set up to be used? See http://jakarta.apache.org/velocity/tools/view/ for more on this. Thanks. Nathan Bubna wrote: > First, make sure that the import tool is in the context: > > $import.class.name > > if that renders as "

Re: Working with lists again

2006-12-13 Thread Nathan Bubna
If you don't need a specific object type and are using Velocity 1.5, you can just use the new map syntax to create a map that you can add properties to. #set( $personnelRecord = { 'name' : "...", 'rank' : "...", 'serialNumber' : "..." } ) if you need to create a specific object, i'd recommend c

Re: Velocity ImportTool Question

2006-12-13 Thread Nathan Bubna
and what does your web.xml have? On 12/13/06, Tod Thomas <[EMAIL PROTECTED]> wrote: Nathan Bubna wrote: > On 12/12/06, Tod Thomas <[EMAIL PROTECTED]> wrote: >> Ok, I'm back looking at this. I can see Velocity loading in >> Catalina.out yet I still have a proble

Re: VelocityViewServlet & ClasspathResourceLoader ?

2006-12-13 Thread Nathan Bubna
On 12/13/06, Dave <[EMAIL PROTECTED]> wrote: I should elaborate... We actually subclass VelocityViewServlet for each servlet in question (overriding handleRequest()). I am suspcious that VVS is no longer actually using our customer velocity.properties, which is: --- resource.loader=cla

Re: VelocityViewServlet & ClasspathResourceLoader ?

2006-12-13 Thread Nathan Bubna
On 12/13/06, Dave <[EMAIL PROTECTED]> wrote: Hmm, to elaborate further, the most recent lines of velocity.log report: 2006-12-14 00:10:40,208 - Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl) 2006-12-14 00:10:40,210 - ResourceLoader instanti

Re: Working with lists again

2006-12-13 Thread Nathan Bubna
x27;, "...") ) and so on... On 12/13/06, Gary M. Catlin <[EMAIL PROTECTED]> wrote: Thank you Nathan. I do not need a specific object type, but also am not using Velocity 1.5. Is there an equivalent syntax available in 1.4 to allow me to create the map? gmc Nathan Bubna wrote:

Re: VelocityViewServlet & ClasspathResourceLoader ?

2006-12-13 Thread Nathan Bubna
This is highly bizarre. Since this is the first i've heard of such a problem with the VelocityViewServlet and you say you are extending it, then i guess the question to ask is what does your extension do? I'll try to think of other ways to discern where things are going astray, but right now the

Re: VelocityViewServlet & ClasspathResourceLoader ?

2006-12-14 Thread Nathan Bubna
On 12/14/06, David Elliot <[EMAIL PROTECTED]> wrote: Hi Claude, Thank you very much, using template = super.getTemplate("x.vm") fixes the problem (my custom resource loaders from velocity.properties work for the VVS... hurrah!). Can you point me towards some documentation regarding why: temp

Re: Velocity ImportTool Question

2006-12-14 Thread Nathan Bubna
On 12/14/06, Tod Thomas <[EMAIL PROTECTED]> wrote: Nathan Bubna wrote: > and what does your web.xml have? Sorry, plain vanilla: velocity org.apache.velocity.tools.view.servlet.VelocityViewServlet org.apache.velocity.toolbox /WEB-INF/to

Re: Velocity ImportTool Question

2006-12-14 Thread Nathan Bubna
unnel all Velocity and VelocityTools messages to the same place, regardless of which servlet container you are using. In short, the Tomcat people did what Geir could not and successfully convinced me that it is a very bad idea to use commons-logging in a webapp framework. Claude Le jeudi 14 décem

Re: Velocity ImportTool Question

2006-12-15 Thread Nathan Bubna
On 12/15/06, Tod Thomas <[EMAIL PROTECTED]> wrote: Nathan Bubna wrote: > some lines before the "Toolbox setup complete" message, there should > have been a message saying "Using config file ''" > What is the file used? > >> Still no

Re: VelocityViewServlet - tomcat - ParameterParser

2006-12-20 Thread Nathan Bubna
Hi Markus, You've almost got things right. The ParameterParser is used for parsing the parameters of the current ServletRequest. This means you must have it as a request-scoped tool. When you try to put it as an application-scoped tool, then the wrong thing is sent to the init() method and th

Re: Velocity Tool Cleanup

2006-12-20 Thread Nathan Bubna
If your tool is request-scoped, then you will need to extend the VelocityViewServlet and override the requestCleanup(request, response, context) method. You can retrieve the tool from the context using its key and perform your cleanup there. If the tool is session-scoped, then you'll pretty much

Re: Velocity Tool Cleanup

2006-12-20 Thread Nathan Bubna
rs developing tools and to us in developing and enhancing VelocityTools. You've already helped me a great deal. I hope I'm not imposing. Thanks again, Matt Nathan Bubna wrote: > > If your tool is request-scoped, then you will need to extend the > VelocityViewServlet and ov

Re: VelocityViewServlet - tomcat - ParameterParser

2006-12-21 Thread Nathan Bubna
nn <[EMAIL PROTECTED]> wrote: Thanks for the explanation it just works perfectly :) Another question. I want to create a guestbook with velocity and viewservlet. Therefore I want to create a form which posts the data. How can I access the posted data? Thanks, Markus > -Ursprüngliche Nachr

Re: init(rsvc, context, node) on directives and directive events

2006-12-22 Thread Nathan Bubna
i would only recommend one of two approaches for such things: application scoped tool or RuntimeInstance application attribute On 12/22/06, Townson, Chris <[EMAIL PROTECTED]> wrote: > What exactly is the lifecylcle of a directive? Is is the case > that a userdirective class is instantiated and

Re: Strings being encoded HTML safe.

2006-12-23 Thread Nathan Bubna
What version of Velocity are you using? Are you using any event handlers or anything? This is not standard Velocity behavior. You'll have to give us some more of your config/impl details. On 12/23/06, Simon Kittle <[EMAIL PROTECTED]> wrote: Hey, I'm having a bit of trouble figuring out some e

Re: VelocityViewServlet - tomcat - ParameterParser

2006-12-26 Thread Nathan Bubna
w can I modify the Content Type with VelocityViewServlet? Thanks a lot, merry x-mas & a happy new year :) Markus > -----Original Message- > From: Nathan Bubna [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 21, 2006 6:23 PM > To: Velocity Users List > Subject:

Re: VVS Form Submission - Best Practices

2006-12-28 Thread Nathan Bubna
If you are going to use the 2nd way, i would recommend checking out the Velosurf project. That said, i honestly don't see anything kludgy about have a second servlet to handle form submissions. Updating the database and reading from it are two totally separate functions.Task division is perf

Re: VVS Form Submission - Best Practices

2006-12-28 Thread Nathan Bubna
y driven by the desire for VelocityStruts integration where Struts was responsible for being the controller. i've long since stopped using VelocityStruts myself, though. Thanks, Matt Nathan Bubna wrote: > > If you are going to use the 2nd way, i would recommend checking out > the Ve

Re: Another newbie "Cannot Find Resource" mail

2007-01-02 Thread Nathan Bubna
Hi Xavier, Are you really using Tomcat 5.5.2? It probably doesn't make a difference for this issue, but i'd recommend moving to the latest production release: 5.5.20, unless you are already on it. Your web.xml doesn't appear to be valid XML. It is missing the starting tag for your index servl

Re: VVS & BSF & tomcat

2007-01-03 Thread Nathan Bubna
This doesn't appear to have anything to do with BSF. It just looks like your "Guestbook" class is not visible to the application when running in Tomcat. How are you deploying the app to Tomcat? Is your Guestbook class in a jar? If so, is that jar getting put in the webapp's WEB-INF/lib folder?

Re: VVS & BSF & tomcat

2007-01-03 Thread Nathan Bubna
rmally when the newEntry method prints the values the guestbook class is visible to tomcat. > -Original Message- > From: Nathan Bubna [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 03, 2007 5:05 PM > To: Velocity Users List > Subject: Re: VVS & BSF & tomcat &g

Re: Template writer question

2007-01-04 Thread Nathan Bubna
What version of the VelocityViewServlet are you taking that code from? It hasn't looked that way in some time. I'd recommend taking a look at a more recent version of the VelocityViewServlet's code to begin. Beyond that, i can't really tell whether it is better for your application to do what VV

Re: VelocityView and toolbox - location of tool instance

2007-01-04 Thread Nathan Bubna
I'm a little surprised that the method you tried is failing. I haven't written many custom directives though, so i'm not sure how to help. Does anyone else out there know why the context provided to the directive wouldn't have access to the tools? That said, where instantiated tools is kept va

Re: Template writer question

2007-01-04 Thread Nathan Bubna
from the VelocityViewServlet in velocity-tools-1.2-src.zip. I guess the basic question was - short of profiling the app - is one method faster and/or better than the other? It would seem to me like the pooled VelocityWriters are the way to go? John On 1/4/07, Nathan Bubna <[EMAIL PROTECTED]&

Re: Substring with Velocity

2007-01-10 Thread Nathan Bubna
A simple answer... Yes! :) $myString.substring(0, 2) On 1/10/07, Gustavo Straube Pereira <[EMAIL PROTECTED]> wrote: Hi! A simple question... It's possible to get a substring of a String with Velocity like String.substring()? Thanks! -- Gustavo Straube Pereira [EMAIL PROTECTED] Nobla Softw

Re: Multiple web-apps using Velocity in same JVM?

2007-01-12 Thread Nathan Bubna
Velocity will only do that if you use the singleton API. If you use separate VelocityEngines for each app, then you shouldn't have a problem. On 1/12/07, Ryan Clifton <[EMAIL PROTECTED]> wrote: Hello, I am trying to run multiple web-apps under a single JVM that are concurrently running their

Re: Multiple web-apps using Velocity in same JVM?

2007-01-12 Thread Nathan Bubna
at that should be the default unless there's a significant problem with it. Thanks for you answer, I found some docs about the Singleton API. Digging into it now. Nathan Bubna wrote: > Velocity will only do that if you use the singleton API. If you use > separate VelocityEngines for eac

Re: Multiple web-apps using Velocity in same JVM?

2007-01-12 Thread Nathan Bubna
Ok, here's a few questions: Is there any particular reason that you are using the FileResourceLoader? Have you tried getting this to work with the WebappLoader that the VVS uses by default? Can you show us some log output for both apps? On 1/12/07, Ryan Clifton <[EMAIL PROTECTED]> wrote: We

Re: Multiple web-apps using Velocity in same JVM?

2007-01-12 Thread Nathan Bubna
here is where i hit reload on the other webapp, but the config doesn't run again. Nathan Bubna wrote: > Ok, here's a few questions: > > Is there any particular reason that you are using the > FileResourceLoader? Have you tried getting this to work with the > WebappLoader that

Re: Can't output \ (backslash)

2007-01-23 Thread Nathan Bubna
Can you share the code you're trying? I have no problem putting \ in my templates with Velocity 1.4. On 1/23/07, Marcus Sundman <[EMAIL PROTECTED]> wrote: Hi, If I use "\" it spews out a parse error, and if I use "\\" the result is two backslashes. I've tried two different versions (1.4 and wh

Re: Dynamic Velocity resourceLoaderPath in Spring?

2007-01-23 Thread Nathan Bubna
I haven't used Spring with Velocity, so i can't help much. You may have more luck on the spring forums. That said, here's a few thoughts that may or may not help. On 1/22/07, darrowj <[EMAIL PROTECTED]> wrote: I have a client that wants to be able to display a totally different set of Velocit

Re: Request for New Feature for 1.6

2007-01-27 Thread Nathan Bubna
Even if you don't make a patch, putting it in JIRA will help us remember the idea. :) On 1/27/07, Steve O'Hara <[EMAIL PROTECTED]> wrote: I couldn't see it on JIRA so I'd thought I'd ask here. I would like to be able to overload macros i.e. same name, different number/type of parameters. I will

[ANNOUNCE] VelocityTools 1.3 Release Candidate 1

2007-01-29 Thread Nathan Bubna
The Apache Velocity project is pleased to announce the first release candidate for VelocityTools 1.3. You may download this release from: http://velocity.apache.org/download.cgi Significant changes since VelocityTools 1.2 are: - New tools: ContextTool for accessing context data, ResourceTool

Re: NPE loading Velocity View Servlet Toolbox.

2007-01-29 Thread Nathan Bubna
what versions of VelocityTools and Digester are you using? On 1/29/07, Travis Bear <[EMAIL PROTECTED]> wrote: Hi All! I'm having a problem with the Velocity Layout Servlet failing to load the toolbox when a certain tool is configured in. From the sound of it, it would seem like this would be

Re: NPE loading Velocity View Servlet Toolbox.

2007-01-29 Thread Nathan Bubna
ols/releases/velocity-tools-1.2/index.html I'm willing to upgrade, but the download link is currently broken. -Travis On Mon, 2007-01-29 at 12:32 -0800, Nathan Bubna wrote: > what versions of VelocityTools and Digester are you using? > > On 1/29/07, Travis Bear <[EMAIL PROTECT

Re: NPE loading Velocity View Servlet Toolbox.

2007-01-31 Thread Nathan Bubna
s there. If you were to make any patches to change this, i'd definitely consider them. Thanks! -Travis On Mon, 2007-01-29 at 13:18 -0800, Nathan Bubna wrote: > The release downloads have moved since 1.2, so the documentation with > that release is out of date. Downloads can

Re: Problem using Velocity

2007-02-01 Thread Nathan Bubna
I'd recommend keeping all your jars in the application lib to begin with. That said, what jars are you using? Also, have you tried running one of the example app's that came with the velocity-tools-1.2 distribution? If you look in WEB-INF/lib directory of those WARs, you should find the jars you

[ANNOUNCE] VelocityTools 1.3 released

2007-02-14 Thread Nathan Bubna
ting of changes, see the change log. http://velocity.apache.org/tools/devel/changes.html VelocityTools 1.3 is available in either source or binary form at: http://velocity.apache.org/download.cgi#tools For more information about VelocityTools go to: http://velocity.apache.org/tools/devel/index.h

Re: Help with Velocity -Templave and Useage

2007-02-20 Thread Nathan Bubna
Have you read this? http://velocity.apache.org/engine/devel/webapps.html The example applications (especially the "simple" one) provided with VelocityTools are probably the easiest starting point. On 2/20/07, Dave, Tejas <[EMAIL PROTECTED]> wrote: Hi All, I was wondering if someone can help me

Re: Velocity-Struts

2007-02-20 Thread Nathan Bubna
On 2/20/07, janbrito <[EMAIL PROTECTED]> wrote: Hi, I'm trying to get Velocity working on a struts application. This is what I've dono so far: Have you looked at the "struts" example application that comes with VelocityTools? That might help you find problems in your setup. 1) Added to the

Re: Velocity for JRuby on Rails

2007-02-20 Thread Nathan Bubna
I imagine you could get pretty far by wrapping the RubyObjects in a more Velocity-friendly object that takes advantage how Velocity treats get(String) methods before putting it into the context. Perhaps something like: public class RubyObjectWrapper { private RubyObject foo; public RubyObje

Re: Velocity for JRuby on Rails

2007-02-20 Thread Nathan Bubna
but as it is, i make precious little use of event handlers and don't know. i might dig around and see what i can find though. thanks, Michael On 2/20/07, Nathan Bubna <[EMAIL PROTECTED]> wrote: > > I imagine you could get pretty far by wrapping the RubyObjects in a >

Re: Velocity for JRuby on Rails

2007-02-20 Thread Nathan Bubna
(); } } } On 2/20/07, Nathan Bubna <[EMAIL PROTECTED]> wrote: On 2/20/07, Michael <[EMAIL PROTECTED]> wrote: > How would the RubyObjectWrapper work when specifying method argument, > e.g$jrubyObject.testMethod( "argument1", "argument2" ) ? hmm. right now, i see onl

Re: Velocity for JRuby on Rails

2007-02-20 Thread Nathan Bubna
d( "argument1", "argument2" ) thanks, Michael On 2/20/07, Nathan Bubna <[EMAIL PROTECTED]> wrote: > > I imagine you could get pretty far by wrapping the RubyObjects in a > more Velocity-friendly object that takes advantage how Velocity treats > get(String) method

Re: Velocity for JRuby on Rails

2007-02-20 Thread Nathan Bubna
This has been done for Jython... http://wiki.apache.org/velocity/JythonUberspect On 2/20/07, Nathan Bubna <[EMAIL PROTECTED]> wrote: Oh, and the other thing that might work is to implement a custom Uberspect that knows how to properly look up methods on a RubyObject. This would proba

Re: Velocity for JRuby on Rails

2007-02-20 Thread Nathan Bubna
pector together, how does one set a new Uberspector into Velocity? On 2/20/07, Will Glass-Husain < [EMAIL PROTECTED]> wrote: > > I like the Uberspector idea. Nice and generic. Cleanly provides a > bridge between Velocity and Ruby syntax. > > On 2/20/07, Nathan Bubna <[E

Re: [ANNOUNCE] Velocity-Struts

2007-02-21 Thread Nathan Bubna
Thanks for your comments. I made the changes but I'm still getting the same error when $msg.label.portal.welcome gets executed. It's like for some reason Velocity can't see the Struts ApplicationResource file and can't find the message. Any body see what's missing here?

Re: Escaping double quotes in v1.5 beta 2

2007-02-21 Thread Nathan Bubna
Hmm. That sucks, i can't get it to work either. Neither do i see any testcases for it. I also thought Geir had implemented this (might do some archive searching on this). But, i've long since been in the habit of doing the manual escaping quotes anyway and still do without thinking about it:

Re: Escaping double quotes in v1.5 beta 2

2007-02-21 Thread Nathan Bubna
03385&w=3 http://marc2.theaimsgroup.com/?l=velocity-user&m=112264108203085&w=3 On 2/21/07, Nathan Bubna <[EMAIL PROTECTED]> wrote: Hmm. That sucks, i can't get it to work either. Neither do i see any testcases for it. I also thought Geir had implemented this (might d

Re: Escaping double quotes in v1.5 beta 2

2007-02-21 Thread Nathan Bubna
response to that: http://marc.theaimsgroup.com/?l=velocity-user&m=106968934203535&w=2 Geir? Is the code for this out there still? It looks like it'll be too late for 1.5, but perhaps we can get it in 1.6... On 2/21/07, Nathan Bubna <[EMAIL PROTECTED]> wrote: having a hard tim

Re: nVelocity Problem

2007-02-22 Thread Nathan Bubna
Please email the user list with your questions. The poorly named "Developer's guide" is now located here: http://velocity.apache.org/engine/devel/developer-guide.html The section about resource loader configuration is toward the bottom. On 2/22/07, Chirag Vithlani <[EMAIL PROTECTED]> wrote: I

Re: Jboss 4.0.5 error

2007-02-27 Thread Nathan Bubna
You might consider searching the archives of the jboss-user list or asking them directly. This doesn't appear to be an issue with Velocity specifically, but rather about how Jboss handles jars/classpaths. On 2/27/07, Harish Hirasave <[EMAIL PROTECTED]> wrote: I tried Velocity 1.5 beta but it di

Re: Jboss 4.0.5 error

2007-02-27 Thread Nathan Bubna
here's a link to their archives. i don't use jboss, so i can't help much myself. hope this helps instead: http://www.mail-archive.com/jboss-user@lists.jboss.org/ On 2/27/07, Nathan Bubna <[EMAIL PROTECTED]> wrote: You might consider searching the archives of the jboss-use

Re: velocity tools 1.3 and $session in context

2007-02-28 Thread Nathan Bubna
Yes and no. Even if we fix the known issue, that won't necessarily mean that a session will be created. The VelocityViewServlet is not going to go creating sessions without some cause; i'll never let it do that. However, if there tools declared to be session-scoped in the toolbox.xml, then it

Re: continuation lines

2007-03-05 Thread Nathan Bubna
On 3/5/07, Steven Shaw <[EMAIL PROTECTED]> wrote: Is there any way to split a long line? e.g. # macro (aVeryLongMacroName $aVeryLongParameterName1 $aVeryLongParameterName2 $aVeryLongParameterName3 $VeryLongParameterName4) I tried "\" at the end of the line but that wasn't it. If you use the

Re: escaping javascript and html

2007-03-05 Thread Nathan Bubna
You can also use the EscapeTool: http://velocity.apache.org/tools/devel/generic/EscapeTool.html On 2/28/07, Федор Дыдыкин <[EMAIL PROTECTED]> wrote: Hi! I need to escape special symbols (' and " for now) both in JavaScript and HTML in many of my already written templates. Now i've found how

Re: How to inject global macros

2007-03-05 Thread Nathan Bubna
I'm not aware of any other way to point Velocity to macros that should be global. However, you may still be able to take them from your database: http://velocity.apache.org/engine/devel/apidocs/org/apache/velocity/runtime/resource/loader/DataSourceResourceLoader.html or from your String: http:

Re: How to specify '\n' in a template?

2007-03-05 Thread Nathan Bubna
String literal definitions in VTL (Velocity Template Language) are not the same as those in Java. For example, the use of single quotes to delineate a string do not imply a character. Instead, they simply mean that the string is not to be interpolated. So, within a single quoted string literal,

Re: How can I get the references in the Template?

2007-03-06 Thread Nathan Bubna
yeah, getKeys() tells you what is available to the template, not what the template is looking for. To do that, you have to process the template itself. You could use this: http://svn.apache.org/repos/asf/velocity/engine/trunk/experimental/templatetool/ On 3/6/07, Dave, Tejas <[EMAIL PROTECTED]

Re: Velocity template file path

2007-03-07 Thread Nathan Bubna
- What servlet are you using? The VelocityServlet (which is deprecated) or the VelocityViewServlet (which is part of VelocityTools and is the replacement for the VelocityServlet)? - Use of the FileResourceLoader in a webapp environment is not recommended. The VelocityTools project comes with a

Re: Velocity template file path

2007-03-07 Thread Nathan Bubna
r the WebappLoader tool but could not find it. Could you send me the URL? Thanks. if you are using the VelocityViewServlet, it uses it by default. javadoc is here: http://velocity.apache.org/tools/releases/1.3/javadoc/org/apache/velocity/tools/view/servlet/WebappLoader.html -Original M

Re: Streaming Velocity Templates

2007-03-08 Thread Nathan Bubna
On 3/7/07, Rodney J Woodruff <[EMAIL PROTECTED]> wrote: This probably has been asked a number of times but I can't find the search for the mailing list archives. So, here goes: 1. Can someone tell me where the search for the mailing list archives are? User List http://www.nabble.com/Velocity--

Re: Whitespace output control

2007-03-08 Thread Nathan Bubna
This is either the first time i've heard a proposal like this, or else those who've made such suggestions have not been persistent in them. If you would like this to be remembered, i'd recommend adding it to the Wiki page for the whitespace issue: http://wiki.apache.org/velocity/VelocityWhitespac

Re: Velocity template file path

2007-03-08 Thread Nathan Bubna
e it a shot but looks like just calling Velocity.init() is not enough. -Original Message----- From: Nathan Bubna [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 07, 2007 5:53 PM To: Velocity Users List Subject: Re: Velocity template file path On 3/7/07, George, Nixon <[EMAIL PROTECTED]> wr

Re: Where is the manual for velocity?

2007-03-09 Thread Nathan Bubna
Please use the user@velocity.apache.org list for these sorts of questions. that said, i believe you are looking for these documents: http://velocity.apache.org/engine/devel/user-guide.html http://velocity.apache.org/engine/devel/vtl-reference-guide.html On 3/8/07, Diane Soini <[EMAIL PROTECTED]

Re: 1.5 Newline processing causing existing templates to fail

2007-03-12 Thread Nathan Bubna
On 3/12/07, Michael Giroux <[EMAIL PROTECTED]> wrote: I upgraded to Velocity 1.5 and some of my templates started to fail. Not sure if this represents an error in my existing templates, an error in Velocity 1.5, or just one of those things that should be documented. From the Velocity 1.5 release

Re: 1.5 Newline processing causing existing templates to fail

2007-03-12 Thread Nathan Bubna
Thanks, Michael! On 3/12/07, Michael Giroux <[EMAIL PROTECTED]> wrote: https://issues.apache.org/jira/browse/VELOCITY-528 On 3/12/07, Nathan Bubna <[EMAIL PROTECTED]> wrote: > On 3/12/07, Michael Giroux <[EMAIL PROTECTED]> wrote: > > I upgraded to Velocity 1.5 and s

Re: Escaping . in template

2007-03-15 Thread Nathan Bubna
use formal notation: ${foo}.bar On 3/15/07, Dave Hallam <[EMAIL PROTECTED]> wrote: Hi, I have a template that contains the following: $foo.bar The variable is foo. The ".bar" bit is just text so if $foo = hello, the rendered output should say hello.bar I've tried using \ but to no avail b

Re: Using Velocity Tools From The Engine? (No Servlet)

2007-03-15 Thread Nathan Bubna
On 3/15/07, Claude Brisson <[EMAIL PROTECTED]> wrote: Hi Tim. The tools can easily be used without the VelocityViewServlet. import org.apache.velocity.tools.view.XMLToolboxManager; ... XMLToolboxManager manager = new XMLToolboxManager(); manager.load("./toolb

Re: Velocity Servlet and Sax Events

2007-03-19 Thread Nathan Bubna
On 3/17/07, peter <[EMAIL PROTECTED]> wrote: Hello! I want to write a Servlet basing on the velocity-template-engine. Everything works fine, I have only difficultiies reading a XML file with SAX and getting the sax-events into the velocity-context. Could anyone give me a hint how to tell S

Re: velocity-tools and maven 2

2007-03-20 Thread Nathan Bubna
it's up there now. On 3/16/07, johne <[EMAIL PROTECTED]> wrote: Velocity 1.5 was placed on http://repo1.maven.org/maven2/ with group id org.apache.velocity. Is it possible to have the new velocity-tools 1.3 placed in a similar manner? Regards, John Eichelsdorfer http://www.jobbank.com jobban

Re: BrowserSnifferTool.init() not getting called from within Spring framework

2007-03-20 Thread Nathan Bubna
That's really odd. Especially if the other tools are being init'ed. I'm not sure what would cause this, as i don't use Spring's Velocity support much. But, out of curiousity, what version of Spring and what version of VelocityTools? Also, try putting a log out into your local copy of BrowserSn

Re: BrowserSnifferTool.init() not getting called from within Spring framework

2007-03-20 Thread Nathan Bubna
ring 1.2.8 source and look around for other ideas on what it might be. perhaps later... in the meantime, maybe someone else here or on the spring forums can shed some light on this. Charlie Nathan Bubna said the following on 3/20/2007 5:26 PM: > That's really odd. Especially if the

Re: How to migrate my VelocityServlet code to VelocityViewServlet

2007-03-22 Thread Nathan Bubna
On 3/22/07, yoursoft <[EMAIL PROTECTED]> wrote: Dear List, I found that in new Velocity the VelocityServelt depricated, and will be removed. I would like to migrate my existing sources to new structure (assign all *.vm to VelocityViewServelt (VVS) (or extend VVS as VelocityServelt?) ), but I ha

Re: How to migrate my VelocityServlet code to VelocityViewSe

2007-03-22 Thread Nathan Bubna
On 3/22/07, YourSoft <[EMAIL PROTECTED]> wrote: Dear Nathan, I have only one question: Which is the main adventage the one VelocityViewServelt assign to *.vm over the extends VVS? this isn't really a valid comparison, since you can extend VVS *and* assign your subclass to *.vm, if you want to

Re: Log4JLogChute isn't a valid LogChute???

2007-03-23 Thread Nathan Bubna
On 3/23/07, Michael Giroux <[EMAIL PROTECTED]> wrote: I'm developing an Eclipse plug-in that uses Velocity. In fact, There are three plug-ins that use Velocity. One of these was built with Velocity 1.5. The other two were build with Velocity 1.4. All three were working nicely. I updated the

Re: Log4JLogChute isn't a valid LogChute???

2007-03-23 Thread Nathan Bubna
You don't need the AvalonLogChute. This is a debug level message, because it is non-essential. It is only for backwards compatibility that Velocity's Runtime will by default try to use Avalon LogKit before falling back to other LogChute implementations. On 3/23/07, Michael Giroux <[EMAIL PROTEC

Re: Log4JLogChute isn't a valid LogChute???

2007-03-23 Thread Nathan Bubna
On 3/23/07, Michael Giroux <[EMAIL PROTECTED]> wrote: > What platform are you running on (Web container / J2EE container)? This is an Eclipse plug-in. > Are you running in an EAR / WAR? No. > If yes, would it be possible to move the > velocity jar out of the modules and into the common lib di

Re: Log4JLogChute isn't a valid LogChute???

2007-03-23 Thread Nathan Bubna
if there's a list for eclipse plugin developers, they might be able to help you more at this point. On 3/23/07, Nathan Bubna <[EMAIL PROTECTED]> wrote: On 3/23/07, Michael Giroux <[EMAIL PROTECTED]> wrote: > > What platform are you running on (Web container / J2EE con

Re: Log4JLogChute isn't a valid LogChute???

2007-03-23 Thread Nathan Bubna
On 3/23/07, Michael Giroux <[EMAIL PROTECTED]> wrote: On 3/23/07, Nathan Bubna <[EMAIL PROTECTED]> wrote: > You don't need the AvalonLogChute. This is a debug level message, > because it is non-essential. It is only for backwards compatibility > that Velocity's

Re: Log4JLogChute isn't a valid LogChute???

2007-03-23 Thread Nathan Bubna
nope, it's just looking for one of the Avalon LogKit classes. nothing wrong there, since that's not the log system you're using. i will try to make those messages look as benign as they are for the next version. just to avoid user confusion when debugging. On 3/23/07, Michael Giroux <[EMAIL PR

Re: Log4JLogChute isn't a valid LogChute???

2007-03-23 Thread Nathan Bubna
Can you bring that down to just one 1.5 jar in the system? We changed some classloading stuff in 1.5 to deal with some other common classloading problems. I'm wondering if you needed 3 jars before but now that is causing this problem. Just a guess... On 3/23/07, Michael Giroux <[EMAIL PROTECTE

Re: how to configure Velocity entirely programmatically?

2007-03-27 Thread Nathan Bubna
On 3/27/07, David Donohue <[EMAIL PROTECTED]> wrote: Sorry if this has been addressed but I have searched and cannot find the complete answer. Unfortunately, i don't think there is any tutorial or example code out there for what you ask. Not much effort has been put into supporting this (t

Re: how to configure Velocity entirely programmatically?

2007-03-27 Thread Nathan Bubna
etToolboxManager. I wish to forego web.xml as well. I am using Jetty 6.1.1 and I am pretty sure this can support fully programmatic configuration of a WebAppContext (not exactly sure how yet). I look forward to your further explanation, and to Tools 2.0 as well! David On 3/27/07, Nathan Bubna <

Fwd: how to configure Velocity entirely programmatically?

2007-03-29 Thread Nathan Bubna
oops, meant to send this to the list too... -- Forwarded message -- From: Nathan Bubna <[EMAIL PROTECTED]> Date: Mar 29, 2007 9:16 AM Subject: Re: how to configure Velocity entirely programmatically? To: [EMAIL PROTECTED] On 3/29/07, David Donohue <[EMAIL PROTECTE

Re: how to configure Velocity entirely programmatically?

2007-03-29 Thread Nathan Bubna
On 3/29/07, Nathan Bubna <[EMAIL PROTECTED]> wrote: oops, meant to send this to the list too... -- Forwarded message -- From: Nathan Bubna <[EMAIL PROTECTED]> Date: Mar 29, 2007 9:16 AM Subject: Re: how to configure Velocity entirely programmatically? To: [EMAIL PROT

Re: Velocity template file path

2007-03-30 Thread Nathan Bubna
ant be found. Please guide me. are you using the VelocityViewServlet? if not, how are you configuring your VelocityEngine (or the singleton, if that's what you're using)? what are your velocity.properties? Thanks, Tejas [EMAIL PROTECTED] -----Original Message- From: Nathan

Re: problem with toolbox request-path wildcards?

2007-04-02 Thread Nathan Bubna
Yes, unfortunately the wildcard aspect of request path restrictions is broken for any wildcard paths longer than the scope of the tool (so longer than 7 chars for a request-scoped tool). I noticed this shortly after the release and have fixed it. I'm thinking about trying to put a 1.3.1 release

Re: Velocity template file path

2007-04-02 Thread Nathan Bubna
EB-INF directory. Velocity initialization: Velocity.init(); So how can I use WebappLoader to find the template(*.vm) Thanks in advance for the response Tejas -Original Message----- From: Nathan Bubna [mailto:[EMAIL PROTECTED] Sent: Friday, March 30, 2007 7:30 PM To: Velocity Users List Subje

Re: macros and comments between 1.4 and 1.5

2007-04-03 Thread Nathan Bubna
just to confirm, i get the same error for that macro, and i don't see anything wrong with it. i'm also surprised that the template i put the macro in still works, with the parse exception only showing up in the logs. anyone know why VelocimacroManager.MacroEntry.parseTree() only logs parse excep

Re: Velocity template variables caching issue

2007-04-04 Thread Nathan Bubna
Use a different context for different calls to evaluate(). On 4/4/07, Ashish Parikh <[EMAIL PROTECTED]> wrote: Hello, Velocity in caching the variables created in a velocity template. E.g. 1) In template aTemp.vm, I have #set ($animal = "Monkey") The aTemp.vm has been evaluated by Velocity.ev

Re: Velocity counters and obj access

2007-04-04 Thread Nathan Bubna
On 4/4/07, dizzi <[EMAIL PROTECTED]> wrote: Hello, I have 2 questions 1. Is there way how to use 2 velocity counters in 2 nested loops? (i didnt test it but my colleague had problem with that) not sure quite what you mean, but i suspect that you can't do that. you can always define as many of

  1   2   3   4   5   6   7   8   9   >