Re: Velocity 1.5 macro reading performance

2007-03-19 Thread Thomas Vandahl
Will Glass-Husain wrote: My theory is that he is hitting memory usage limitations resulting in excessive paging. I don't think so. There is no disk activity during this process as far as I remember, but I'll check again. Thomas -- what are the specs of the machine this is running on? How m

Re: adding an index to a collection

2007-03-19 Thread trad-ex
Hi Gary, You mean "velocityCount" ? It should be set in velocity.properties like: directive.foreach.counter.name = velocityCount directive.foreach.counter.initial.value = 1 using like below: #foreach( $i in $list ) $i is the number of $velocityCount #end HTH Best Regards, trad-ex >Hello a

Re: Velocity 1.5 macro reading performance

2007-03-19 Thread Will Glass-Husain
Thomas and I have already corresponded briefly about this privately, though I encouraged him to send a public email looking for more ideas. My theory is that he is hitting memory usage limitations resulting in excessive paging. Thomas -- what are the specs of the machine this is running on? How

adding an index to a collection

2007-03-19 Thread Gary M. Catlin
Hello all, I have data stored in a collection. There is no field within the collection that is suitable for use as a sorting parameter. Externally, I can generate this sorting index, but I need a means for adding this index into my collection. I know how to scan through records, obtain the c

Re: Server side scripting

2007-03-19 Thread Barbara Baughman
You are correct. Velocity was written for the MVC model. It is assumed that server side JAVA work will be done by a programmer using a servlet. The limited programming in Velocity is meant to aid presentation logic. Trust me; for maintenance purposes, it is immensely better to have the programm

Velocity 1.5 macro reading performance

2007-03-19 Thread Thomas Vandahl
Hi folks, I tried to use the brand-new velocty-1.5.jar as a drop-in-replacement in my Turbine 2.3.2 application. Now loading of the velocity macros takes almost 30 seconds (29.125 sec) as opposed to a bit under a second (0.968 sec) with 1.4. Any hint what I may be doing wrong? All settings are t

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