FAQ

Search Discussions

57 discussions - 203 posts

  • Hi, All, This question is similar to the one for adding a #exit to velocity template, but, I think maybe more difficult to add this feature. Anyway, here is my problem. I am writing a macro and I ...
    ChenjianChenjian
    Jul 15, 2004 at 6:20 pm
    Jul 16, 2004 at 4:39 pm
  • Does anybody here knows where I could get a simple example of paging using velocity? I tried to use the AbstractSearchToll but it did something wrong. thanks Fernando ...
    FernandoFernando
    Jul 23, 2004 at 6:38 pm
    Aug 4, 2004 at 5:30 pm
  • I've read the Velocimacro Miscellany section and have been able to get it to work. Lets assume that we have #center and #bold defined (as is assumed in the user's guide). Lets also say we have the ...
    Rene ParraRene Parra
    Jul 15, 2004 at 4:03 am
    Jul 20, 2004 at 8:02 pm
  • I'm having one of those bang-head-against-the-wall moments with Velocity 1.4. I've got a formatter class with the following methods: public String currency(float amount) { Format formatter = ...
    Rob KischukRob Kischuk
    Jul 14, 2004 at 1:28 pm
    Jul 15, 2004 at 4:03 am
  • I need to have an application scoped tool (i.e. via toolbox.xml) that can get at the servlet config/context. public class MyTool { public void init(Object obj) { String name = ...
    Mike HabermanMike Haberman
    Jul 22, 2004 at 7:34 pm
    Jul 23, 2004 at 3:09 pm
  • Hi all, i'm new to Velocity but i'm already impressed by the filosophy behind this technology. So I decided to use it in my new struts application as the view technology. Now I've a problem. I need ...
    Andrea SponzielloAndrea Sponziello
    Jul 12, 2004 at 10:53 am
    Jul 13, 2004 at 7:13 am
  • So I'm working on moving a few Turbine projects over to Struts/velocity. I have a new LayoutServlet that's a combination of the ViewServlet and the LayoutServlet. Here's what it does: 1. configure a ...
    Mike HabermanMike Haberman
    Jul 28, 2004 at 5:51 pm
    Jul 30, 2004 at 5:06 pm
  • Hello there. I was wondering about setting global variables in my templates when I am using the VVS. If I do a #set( $myVar = "thing" ) in my layout.vm page, that variable does not show up in the ...
    Charles N. Harvey IIICharles N. Harvey III
    Jul 16, 2004 at 3:27 pm
    Jul 16, 2004 at 6:09 pm
  • Hello. Can DVSL be used in a webapp? From what I can tell it is command line driven. Does anybody have an example of it being used in a webapp? Thanks a lot. Charlie ...
    Charles N. Harvey IIICharles N. Harvey III
    Jul 20, 2004 at 7:33 pm
    Jul 22, 2004 at 1:29 pm
  • Is it possible to get data from a method with a corresponding static member? In the case below, the $Role.OBJECT_CACHE is essentially the static int RoleObject.ObjectCache #if ...
    Jason ChodakowskiJason Chodakowski
    Jul 26, 2004 at 9:06 pm
    Jul 28, 2004 at 3:38 pm
  • I am using a ThreadContextResourceLoader that works much like the ClassPathResourceLoader and I had problems getting my velocity templates to reload under tomcat when they were modified. Reloading ...
    Teemu KanstrénTeemu Kanstrén
    Jul 22, 2004 at 8:46 am
    Jul 23, 2004 at 6:12 am
  • Hi, All, This question is similar to the one for adding a #exit to velocity template, but, I think maybe more difficult to add this feature. Anyway, here is my problem. I am writing a macro and I ...
    ChenjianChenjian
    Jul 15, 2004 at 5:59 pm
    Jul 16, 2004 at 3:57 pm
  • Hi, I'd like to know the scope of the context in a VelocityServlet. Here it seems that the scope is the one from HttpRequest. Is it true ? I'd really like to have the context as a Session scope. How ...
    Toto litotoToto litoto
    Jul 15, 2004 at 10:11 am
    Jul 15, 2004 at 3:32 pm
  • Hi all! I've made an example with DVSL, but my output is a little strange. This XML file:: ************************************ <?xml version="1.0"? <monkeylist <monkey MONKEY_VALUE <firstname ...
    Soren PraestegaardSoren Praestegaard
    Jul 12, 2004 at 1:38 pm
    Jul 13, 2004 at 8:38 am
  • Hi! I'm not sure where I should post this, but here seems the best to me... I'm helping translating the VelocityTools documentation to Japanese at http://www.jajakarta.org/velocity/tools/ and I've ...
    Shinobu KawaiShinobu Kawai
    Jul 8, 2004 at 12:45 am
    Jul 9, 2004 at 12:55 am
  • Well, following up on my previous issues with #parse not picking up updates, here is more - and it's bad. Our content management system deletes files and then replaces them on our production system. ...
    White, TimWhite, Tim
    Jul 6, 2004 at 3:10 pm
    Jul 7, 2004 at 1:20 am
  • Hi! I'm not sure where to report this kind of stuff, but here looks like a good place to start. I have found a broken link in the Velocity Tools 1.1 User Guide. From ...
    Shinobu KawaiShinobu Kawai
    Jul 21, 2004 at 3:31 pm
    Jul 21, 2004 at 10:19 pm
  • Hi, I've scanned the archive and have found a similar post but no solution was posted. I am using Velocity 1.4 with Tomcat 4.1.30 on Windows XP Pro. I have no problems getting servlets to work - I ...
    Ken WrightKen Wright
    Jul 18, 2004 at 9:03 am
    Jul 19, 2004 at 5:59 pm
  • I would like to store an ArrayList literal in a Velocity variable and then use the stored ArrayList literal to establish a new ArrayList (and its contents), e.g. I'd like to do something like: ...
    Chris MolloChris Mollo
    Jul 14, 2004 at 9:13 pm
    Jul 15, 2004 at 3:02 pm
  • Hi guys, I just want to use some generic Tools (Number and Date tools) to have formatting and locale-sensitive capabilities. My problem is that I can not realize how to use them outside a ...
    García Popelka, Rodrigo Manuel, EXTERNOGarcía Popelka, Rodrigo Manuel, EXTERNO
    Jul 27, 2004 at 8:03 pm
    Jul 27, 2004 at 8:57 pm
  • Hi, Can I not access the methods or properties of the superclass of an object that I put into the context? Class A {...} Class B extends A {...} I tried context.put("test", b); but $test.getTotal() ...
    Michael YuiMichael Yui
    Jul 23, 2004 at 9:03 pm
    Jul 25, 2004 at 12:59 pm
  • Hello, perhaps I wrong here, but I have a short question for vm-files. I know nothing about vm-files, but for a project we have to include images from an other webserver, so I will include the images ...
    Klaus FEIMER @ FHTEKlaus FEIMER @ FHTE
    Jul 23, 2004 at 9:11 am
    Jul 23, 2004 at 3:49 pm
  • so i guess what i want to do can't be done. if i can't manipulate what is in the context (which i can't - ergo i can't add the context to itself) then i can't see what is in the context. that's a ...
    Barclay DunnBarclay Dunn
    Jul 22, 2004 at 3:51 pm
    Jul 22, 2004 at 4:22 pm
  • I am trying to use $screen_content in my layout template using VLS but I can't get it to work. Is there someplace specific where the screen templates have to be located? I've reviewed the ...
    BrianBrian
    Jul 21, 2004 at 2:29 pm
    Jul 21, 2004 at 3:34 pm
  • url = new String("/navCoc/baseFrameset.htm?docId=" + doc + "&userId=" + id + "&fName=" + fName ); try { res.sendRedirect(res.encodeRedirectURL(url)); } This all works fine in my Controller. But I ...
    Craig ChristophersenCraig Christophersen
    Jul 14, 2004 at 11:17 pm
    Jul 15, 2004 at 12:08 am
  • Hi! I use velocity-struts (velocity-dep-1.3.1.jar and velocity-tools-1.1.jar). I configured web.xml as described in the documentation and put the toolbox.xml, velocity.properties, ...
    Robert BrandnerRobert Brandner
    Jul 13, 2004 at 7:21 pm
    Jul 14, 2004 at 4:41 pm
  • I need to escape the character "," in a format string. Line looks like this: tool.formatValue(12344566, "#,##0.00") How do I can escape the "," because I always get an error on this line. ...
    SliverSliver
    Jul 13, 2004 at 7:52 am
    Jul 13, 2004 at 8:24 am
  • All, Not sure if anyone else has tried something like this, but I am trying to use Velocity to generate some COBOL code. The problem I am running into is that my template file is getting cut off ...
    DiFrango, RonDiFrango, Ron
    Jul 13, 2004 at 3:38 am
    Jul 13, 2004 at 5:10 am
  • I love velocity and I'm happy that it has been ported to .Net, but I was wondering how complete and upto date the port is. I have considered refactoring Nvelocity for two reasons. 1 - The code looks ...
    David A. CruwysDavid A. Cruwys
    Jul 12, 2004 at 4:22 am
    Jul 12, 2004 at 10:46 pm
  • Hi, I am building an web application using Velocity with the WebWorks Velocity Servlet container. One of the requirements of our application isto be able to run a query, display paginated results, ...
    Jimmy LinJimmy Lin
    Jul 29, 2004 at 12:08 am
    Jul 29, 2004 at 4:10 pm
  • Hi all, I'm using tdk2.2 and I have a very strange problem. Randomly I get the error presented below. Has anyone an Idea about the source of this error and the possible resolution? Thanks, Sergiu ...
    Sergiu GordeaSergiu Gordea
    Jul 29, 2004 at 12:44 pm
    Jul 29, 2004 at 3:03 pm
  • For the purposes of debugging, I'd like to be able to display the contents of the VelocityContext. Is there any access to this from within the templates? Thanks, J --
    Jason ChodakowskiJason Chodakowski
    Jul 26, 2004 at 1:53 pm
    Jul 26, 2004 at 3:34 pm
  • Hi! Found a typo in the Velocity Tools 1.1 user guide. http://jakarta.apache.org/velocity/tools/struts/userguide.html#Velocity%20Template%20Language In the example in the "Velocity Template Language" ...
    Shinobu KawaiShinobu Kawai
    Jul 26, 2004 at 12:05 pm
    Jul 26, 2004 at 3:21 pm
  • well, actually, no, i need what's in the context from the controller. when i iterate through the request parameter names i see only an object that i knew already was there, which does not contain ...
    Barclay DunnBarclay Dunn
    Jul 22, 2004 at 2:11 pm
    Jul 22, 2004 at 3:26 pm
  • We are going from turbine to velocity standalone and we are trying to set the path to find the navigations directory, so far we've tried setting the file.resource.loader.path to: ...
    BrianBrian
    Jul 20, 2004 at 8:27 pm
    Jul 21, 2004 at 4:08 pm
  • I am extending the VelocityLayoutView servlet and I am using the following settings velocity.properties file: resource.loader=file ...
    BrianBrian
    Jul 20, 2004 at 4:45 pm
    Jul 21, 2004 at 3:57 pm
  • I am displaying the layout template and the templates from the navigations directory (which is under the layouts directory) but when I attempt to show any screens, they will not show up, this is the ...
    BrianBrian
    Jul 20, 2004 at 10:36 pm
    Jul 21, 2004 at 3:46 pm
  • Hey, I've just started an attempt to port a Turbine/Velocity project to Struts/Velocity. When I am rendering the page, I need to know the name of the template that I am rendering (without having to ...
    Mike HabermanMike Haberman
    Jul 20, 2004 at 4:43 pm
    Jul 20, 2004 at 5:25 pm
  • hi all, i have the same issue as discussed earlier by Xiaogang Cao and Geir Magnusson Jr, except i do not have the ability to control the incoming parameters. i need to iterate through them to see ...
    Barclay DunnBarclay Dunn
    Jul 20, 2004 at 4:26 pm
    Jul 20, 2004 at 4:35 pm
  • I'm using Velocity with Struts as my subject implies. Is there a way to find the Action path or the forward name that returned the current page. I need this info to generate dynamic navigation links ...
    Matt HigginsMatt Higgins
    Jul 19, 2004 at 4:34 pm
    Jul 19, 2004 at 6:13 pm
  • Where do you find the TEMPLATE_ROOT (what folder or directory)? I want to include a file to a macro. Please advise. MSN Toolbar provides one-click access to Hotmail from any Web page – FREE download! ...
    Daniel PageDaniel Page
    Jul 18, 2004 at 12:05 pm
    Jul 19, 2004 at 4:35 pm
  • I have a purpose-built resource loader that works something like the FileResourceLoader. The difference is that it can take a "brand" qualifier like this: #parse( "template%brand" ) The loader splits ...
    Ford, PeterFord, Peter
    Jul 16, 2004 at 2:42 pm
    Jul 16, 2004 at 3:26 pm
  • Hello, I am trying to use the linkTool in the tools lib and I have declared the link tool in the tool.xml file: <?xml version="1.0"? <toolbox <tool <key link</key <scope request</scope <class ...
    BrianBrian
    Jul 15, 2004 at 6:01 pm
    Jul 15, 2004 at 7:55 pm
  • Given the following macro #macro( SetupFields ) #foreach( $f in $data.Table.Field ) @$util.PadRight($f.Name,30)$util.PadRight($f.Type,30)=null #end #end How can I determin if I'm at the 1st or last ...
    David A. CruwysDavid A. Cruwys
    Jul 15, 2004 at 12:23 am
    Jul 15, 2004 at 2:28 am
  • We are using Velocity 1.4 in a web application (but in custom tag lib rather than with the VelocityViewServlet), and cannot seem to get it to pick up templates after they have been changed (i.e., ...
    Dhruva B. ReddyDhruva B. Reddy
    Jul 29, 2004 at 9:37 pm
    Jul 29, 2004 at 9:37 pm
  • Hi I have a web app hosted within an ATG Dynamo application server which also hosts a large non-J2EE application. The main application uses Velocity, and so the Velocity jar file is on the app ...
    Julian GoacherJulian Goacher
    Jul 27, 2004 at 2:15 pm
    Jul 27, 2004 at 2:15 pm
  • Hi, I try to use multiple resource bundles that get the strings from a database in an environment using JBoss, Struts and Velocity. I have defined two <message-resources in struts-config.xml: ...
    Ralf SchneiderRalf Schneider
    Jul 25, 2004 at 7:15 pm
    Jul 25, 2004 at 7:15 pm
  • Hi, I can load templates from the classpath but not from a file. Please tell me what I'm doing wrong. I'm using this as the template string when calling mergeTemplate() "c:\\output\\testSheets.vm" ...
    Michael YuiMichael Yui
    Jul 23, 2004 at 8:04 pm
    Jul 23, 2004 at 8:04 pm
  • Hi, I'm using james, but whenever I want to to a Velocity-Action out of a Mailet, I get the following error when I do the initializing of the velocitycontext: java.lang.NullPointerException at ...
    Stefan WalknerStefan Walkner
    Jul 21, 2004 at 7:54 am
    Jul 21, 2004 at 7:54 am
  • Hi, I appear to be suffering a problem in that some of the data I am accessing via a variable contains a $. So I with the following code public $Method.Return $Method.getName() usually outputs ...
    Don StewartDon Stewart
    Jul 20, 2004 at 4:34 pm
    Jul 20, 2004 at 4:34 pm
Group Navigation
period‹ prev | Jul 2004 | next ›
Group Overview
groupuser @
categoriesvelocity
discussions57
posts203
users63
websitevelocity.apache.org

63 users for July 2004

Nathan Bubna: 39 posts Mike Haberman: 9 posts Will Glass-Husain: 9 posts Mike Kienenberger: 8 posts Shinobu Kawai: 7 posts Charles N. Harvey III: 6 posts Brian: 5 posts Chenjian: 5 posts Christoph Reck: 5 posts Matthew Van Horn: 5 posts Toto litoto: 5 posts Barclay Dunn: 4 posts Carsten Heyl: 4 posts David A. Cruwys: 4 posts Fernando: 4 posts Markos Charatzas: 4 posts Robert Brandner: 4 posts Soren Praestegaard: 4 posts Teemu Kanstrén: 4 posts White, Tim: 4 posts
show more
Archives