Search Discussions

4,547 discussions - 21,856 posts

  • Hello, I am using currently the Velocity templates that come with the example provided with SOLR, in Tomcat 7. I would like to add a Velocity template called test.vm, in the example/solr/mycollection ...
    Oct 9, 2014 at 8:19 am
    Oct 10, 2014 at 7:59 am
  • Hi all, I've long thought that the Velocity could do with a better editor plugin for Eclipse. I know there are a 2 or 3 out there already (veloedit being my usual plugin of choice) but they're ...
    Christopher TownsonChristopher Townson
    Sep 25, 2014 at 11:07 am
    Sep 26, 2014 at 3:41 am
  • All, ListTool is marked as deprecated because Velocity 1.6 and later treat arrays and lists as first-class collections and can perform appropriate operations on them. One thing it's not easy to do is ...
    Christopher SchultzChristopher Schultz
    Jun 26, 2014 at 7:28 pm
    Jun 26, 2014 at 9:41 pm
  • LinkedIn ------------ Jonathan, I'd like to add you to my professional network on LinkedIn. - Krishna Sarma Krishna Sarma Author Technology Specialist at Cognizant Technology Solutions Chennai Area, ...
    Jun 6, 2014 at 11:49 pm
    Jun 6, 2014 at 11:49 pm
  • I'm finally upgrading a project which was using velocity 1.3.1 to 1.6.4 (I might go with something newer, but I wanted to try to keep things as simple as possible for a first try without adding the ...
    Mike KienenbergerMike Kienenberger
    Apr 1, 2014 at 1:55 pm
    Apr 1, 2014 at 2:42 pm
  • All, I've just discovered that I can't connect using jconsole, VisualVM, YourKit, etc. when VelocityViewServlet has been enabled. I never noticed this before because I haven't been using jconsole ...
    Christopher SchultzChristopher Schultz
    Mar 10, 2014 at 6:15 pm
    Mar 13, 2014 at 9:57 pm
  • All, I don't believe this was happening to me in the past, but I'm starting to see a session key "org.apache.velocity.tools.Toolbox" that is not serializable in my sessions. This means that I can't ...
    Christopher SchultzChristopher Schultz
    Mar 5, 2014 at 11:26 pm
    Mar 11, 2014 at 8:17 pm
  • All, I have a template where I'd like to take some text in a variable and do parametric-replacement like new MessageFormat("format").format(replacements) might do. I'm already using Velocity ...
    Christopher SchultzChristopher Schultz
    Feb 21, 2014 at 5:48 pm
    Feb 21, 2014 at 7:18 pm
  • Bump. Anyone?
    Christopher SchultzChristopher Schultz
    Feb 14, 2014 at 3:57 pm
    Feb 14, 2014 at 5:31 pm
  • All, Umm... I probably should have noticed this long before today, but I just observed a problem with my configuration and I wanted to make sure that my (new) understanding of the DateTool is ...
    Christopher SchultzChristopher Schultz
    Feb 12, 2014 at 1:00 am
    Feb 13, 2014 at 1:16 pm
  • Hi , I have a newbie question. When using a web framework like Spring you write controllers that are mapped to requests, add data to the response (Model Map) and return a uri to correct view. With ...
    Mike ClovisMike Clovis
    Dec 4, 2013 at 6:02 pm
    Dec 4, 2013 at 11:08 pm
  • In that Iterator Tool is deprecated, what class and code is now supported to accomplish the same things?
    Mike ClovisMike Clovis
    Dec 2, 2013 at 8:29 pm
    Dec 2, 2013 at 8:50 pm
  • Unfortunately, this is a known bug: https://issues.apache.org/jira/browse/VELOCITY-710 --------------------------------------------------------------------- To unsubscribe, e-mail: <span ...
    Nathan BubnaNathan Bubna
    Nov 8, 2013 at 5:10 pm
    Nov 8, 2013 at 5:10 pm
  • Hi, I am working on integrating Velocity with Jersey 2.x and am having some trouble setting the value of a global property, specifically ViewToolManager's 'createSession'. Essentially, I am ...
    Paul MoorePaul Moore
    Oct 11, 2013 at 5:07 pm
    Oct 11, 2013 at 5:26 pm
  • I have an XML document of the form <data <details <row <item1 <item2 </row <row <item1 <item2 </row </details </data I cannot seem to find a way to successfully iterate over the row elements. For ...
    Ralph GoersRalph Goers
    Oct 2, 2013 at 3:21 pm
    Oct 2, 2013 at 8:35 pm
  • Good morning, is it possible to point to the velocity.properties file using environment variables? we have a velocity.properties in our classpath, this should be used as default and in production ...
    Paul Wellner BouPaul Wellner Bou
    Sep 11, 2013 at 6:52 am
    Sep 13, 2013 at 8:03 pm
  • All, Velocity 1.7, Oracle JDK 1.7.0_25 I found something odd recently and was able to reduce it to this simple test-case: $foo## $foo.bar## $foo.bar.baz## Expected output (with foo=null) ...
    Christopher SchultzChristopher Schultz
    Aug 29, 2013 at 5:56 pm
    Aug 29, 2013 at 6:19 pm
  • Hello, Just checking on this. I have two methods on a pojo that I want to call from a template: public String getTransformedBody() { ... } public String getTransformedBody(int lower, int upper, ...
    Greg HuberGreg Huber
    Aug 15, 2013 at 8:16 am
    Aug 15, 2013 at 8:58 am
  • Hi, I am wondering if there is any documentation on writing your own Utility Class or Custom Tool to add to Velocity. The only place I found some help is ...
    O. OlsonO. Olson
    Aug 8, 2013 at 4:07 pm
    Aug 8, 2013 at 8:02 pm
  • Hi, I am new to Velocity and I am wondering what "Velocimacro with a Body" means? Here, I am referring to the description in ...
    O. OlsonO. Olson
    Aug 5, 2013 at 4:26 pm
    Aug 8, 2013 at 2:49 pm
  • Hi, I am new to using Apache Velocity. What is the correct way of returning a string from a Macro or a Velocimacro? Since I did not have a clue on how to return a string from a Macro, I decided to do ...
    O. OlsonO. Olson
    Aug 1, 2013 at 5:28 pm
    Aug 1, 2013 at 9:08 pm
  • I'm really getting mad! :-) Of course I know that the only reason for this is my lack of skills!!! Catching up... I do need some kind of security. Please, could you confirm this statement... Class ...
    Ricardo Julio Rodriguez FernandezRicardo Julio Rodriguez Fernandez
    May 25, 2013 at 3:40 pm
    May 26, 2013 at 7:33 am
  • Hi! Probably I'll use the wrong semantic, but I'll try to explain the very simple result I want to get with Velocity: given two lists of results, let's me call them $list1 and $list2, I want to get a ...
    Ricardo Julio Rodriguez FernandezRicardo Julio Rodriguez Fernandez
    May 24, 2013 at 5:51 pm
    May 25, 2013 at 2:11 am
  • All, I've searched the archives for "while" capabilities in Velocity, and mostly the answers have been things like "that's beyond the scope of Velocity... you want a real programming language for ...
    Christopher SchultzChristopher Schultz
    May 15, 2013 at 4:11 pm
    May 16, 2013 at 5:19 pm
  • Dear all, I am looking for a solution of generating a java class from a template written in VTL. Below I descible the process how I want to use it: 1. I load a template from a.vtl which is written by ...
    May 15, 2013 at 1:45 am
    May 15, 2013 at 2:18 am
  • Via web searching, I've found quite a few people reversing lists by writing out loops. Seems to me, we should be able to something like: #set ($lst = ["a","b","c"]) #set ($revlst = $lst) ...
    Travis PTravis P
    May 6, 2013 at 7:15 pm
    May 6, 2013 at 8:51 pm
  • Odd one, that I'm hoping someone can clear up for me. I created a tool, and added setters for: public void setRequest(HttpServletRequest request) and public void setSession(HttpSession session) The ...
    Andrew DuckerAndrew Ducker
    Apr 14, 2013 at 9:09 am
    Apr 14, 2013 at 2:13 pm
  • All, I've been doing some profiling looking for wasted memory in my webapp and I've discovered that org.apache.velocity.runtime.parser.Parser contains a few members that appear to be (essentially) ...
    Christopher SchultzChristopher Schultz
    Apr 12, 2013 at 5:42 pm
    Apr 12, 2013 at 7:40 pm
  • My VTL template looks like: #macro(aMacro $par1) ##$par1 $par1.getId() #end #set($macroName = "aMacro") #set( $call = "#$macroName('$p1')" ) #evaluate($call) I have filled the context with an object ...
    Apr 12, 2013 at 5:47 am
    Apr 13, 2013 at 9:28 am
  • Hi, I'm new to velocity. In my company we are using a webapp (OpenEMM - http://www.openemm.org) to handle our mailing campaigns and this app is using velocity 1.4. We have two websites and we set a ...
    Cedric PuchalverCedric Puchalver
    Mar 1, 2013 at 10:48 am
    Mar 1, 2013 at 1:25 pm
  • Hi - I am trying to user VelocityEngine. Here is my code: Properties vp = new Properties(); vp.setProperty("file.resource.loader.path", templatesDirectory + "/"); VelocityEngine ve = new ...
    Garey MillsGarey Mills
    Feb 21, 2013 at 6:50 pm
    Feb 21, 2013 at 7:48 pm
  • Hello - I am writing a web app that starts a thread to perform some operations that take too much time to require the user to wait for them. In that thread, I am trying to use Velocity to write out ...
    Garey MillsGarey Mills
    Feb 19, 2013 at 11:42 pm
    Feb 20, 2013 at 12:22 am
  • Hi all, I'm trying to find a list all of the above that can be used in a template, preferably with a brief description of what it does (but that's not entirely necessary). I'm building site using the ...
    ANS Developer TeamANS Developer Team
    Feb 12, 2013 at 2:58 am
    Feb 16, 2013 at 9:18 pm
  • Hello everyone, One of my students and I are working on a SWT component that provides a simple text field for editing Velocity templates with syntax highlighting and validation. We've had some ...
    Antonio García DomínguezAntonio García Domínguez
    Jan 24, 2013 at 10:20 pm
    Jan 24, 2013 at 10:20 pm
  • Hi, I would like to migrate Struts 2 to use the latest Velocity Tools 2.0, but as I see many thing changes and it isn't just a simple library replacement. I've started with VelocityDecoratorServlet ...
    Lukasz LenartLukasz Lenart
    Dec 9, 2012 at 10:34 am
    Dec 9, 2012 at 10:34 am
  • Hi, I'm using velocity engine, integrated with oracle DB in order to manage my mail templates. I have a couple of questions: 1. Is it possible to assign tow columns or more as the ...
    Nov 22, 2012 at 9:14 am
    Nov 22, 2012 at 9:14 am
  • Just wondering if it is possible to skip bad merge fields and just have it try to continue? The use case is that we want to present the processed text, even if it has errors, to the end user so that ...
    Collin PetersCollin Peters
    Oct 3, 2012 at 7:28 pm
    Oct 23, 2012 at 2:55 pm
  • First, I apologize if this question has come up before, but after doing some lengthy searching, I was unable to find anything related to the issue I am having. I have included the segment of the ...
    Dalrymple, Craig - OCIO-ITS, Kansas City, MODalrymple, Craig - OCIO-ITS, Kansas City, MO
    Oct 1, 2012 at 10:02 pm
    Oct 2, 2012 at 6:16 pm
  • Hi, looking at the code yesterday, I saw that Velocity uses a number of Serialized classes (e.g. the SerializedMap in ResourceCache). I would like to replace all relevant classes to avoid ...
    Jan AlgermissenJan Algermissen
    Sep 21, 2012 at 6:45 am
    Oct 1, 2012 at 8:09 pm
  • Hi, The evaluation of the following Velocity Template produces an invalid output: #set($v = "a") $v.charAt(0)a.xxx I would expect aa.xxx as evaluation result, but velocity returns only aa - the dot ...
    Christoff SchmitzChristoff Schmitz
    Sep 19, 2012 at 11:32 am
    Sep 19, 2012 at 12:08 pm
  • All, I'm building a custom Velocity template editor for a project I'm working on and everything currently works. What I'd really love to be able to do is offer something better than the current ...
    Christopher SchultzChristopher Schultz
    Sep 12, 2012 at 7:15 pm
    Sep 17, 2012 at 7:50 pm
  • Both the VelocityTools Tools Usage Summary and the DateTool Javadoc seem to indicate a configuration mechanism for setting a TimeZone, but I simply can't discover what that is. DateTool's timezone ...
    Doug BreauxDoug Breaux
    Aug 14, 2012 at 9:20 pm
    Sep 13, 2012 at 2:25 am
  • All, I seem to recall that in one of the (semi-)recent releases, Velocity started supporting floating-point values for mathematical operators (+, -, *, /) as well as comparisons (<, , <=, =, ==), but ...
    Christopher SchultzChristopher Schultz
    Aug 14, 2012 at 6:25 pm
    Aug 14, 2012 at 7:48 pm
  • Is Velocity not using a ConcurrentMap here "TP-Processor28" daemon prio=10 tid=0x00007fa0ac027bd0 nid=0x44f4 runnable [0x00007fa0f9368000] java.lang.Thread.State: RUNNABLE at ...
    Jason TesserJason Tesser
    Jul 20, 2012 at 11:50 am
    Jul 20, 2012 at 1:07 pm
  • Hi, We recently made some changes to our software to use just a single VelocityEngine as per recommendations on this group. We ran into an issue where macros were all of the sudden being shared ...
    Bradley WagnerBradley Wagner
    Jul 18, 2012 at 9:42 pm
    Jul 30, 2012 at 9:52 pm
  • Hi all, I'm working with some velocity files where I want to partially evaluate them, such that the only things actually evaluated are #parse (includes of other velocity templates in the same ...
    Jul 12, 2012 at 9:28 pm
    Jul 19, 2012 at 3:14 pm
  • All, I recently started getting intermittent OOMEs in my webapp that seem to be completely recoverable. The stack traces look like this: java.lang.OutOfMemoryError: Java heap space at ...
    Christopher SchultzChristopher Schultz
    Jul 11, 2012 at 4:13 pm
    Jul 16, 2012 at 4:20 pm
  • Hello Velocity Users, in our VelocityContext, there is a list called "sourceIds", which lists the available ids. In addition, there are HashMaps in the VelocityContext registered under the available ...
    Jul 6, 2012 at 11:50 am
    Jul 6, 2012 at 2:14 pm
  • <area shape="rect" href="http://test.com/mylink" / But it encodes so the page ends up with the following &lt;area shape=&quot;rect&quot; href=&quot;http:..... Here's part of the template ...
    Jun 17, 2012 at 6:12 am
    Jun 17, 2012 at 9:17 pm
  • Hello, how can I include files, that aren't located under TEMPLATE_ROOT? These did not work: #include("file:C:\\Users\\me\\include\\place\\my.properties") ...
    Jun 12, 2012 at 1:16 pm
    Jun 13, 2012 at 8:18 am
Group Navigation
period‹ prev | Latest | first ›
Group Overview
groupuser @

Top users

Geirm: 2146 posts Nathan Bubna: 1179 posts Nathan Bubna: 602 posts Will Glass-Husain: 565 posts Jon Scott Stevens: 472 posts Shinobu Kawai: 454 posts Geir Magnusson: 345 posts Christoph Reck: 280 posts Tim Colson: 276 posts Geir Magnusson Jr: 239 posts Claude Brisson: 199 posts Charles Harvey III: 179 posts Barbara Baughman: 175 posts Daniel Dekany: 169 posts Chris: 168 posts Will Glass-Husain: 163 posts Mike Kienenberger: 153 posts Bojan Smojver: 140 posts Apache: 127 posts Attila Szegedi: 125 posts
show more