Re: too few arguments to macro errors

2001-11-12 Thread Nathan Bubna
yeah, we ran into that. i imagine it is due to the order macros are added. while it never seemed to cause any problems, we were able to eschew the reported errors by rearranging the order in which our macros are declared. but that doesn't appear possible with the example you give. Nathan Bubna

Re: Escaping in string definitions

2002-04-24 Thread Nathan Bubna
a ' in it) no kidding! that's why you wouldn't do that! the correct way would be #set( $foo = This \#foo() has a ' in it ) :-) Nathan Bubna [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: String concatenation Was: Give it a whirl...

2002-05-01 Thread Nathan Bubna
) is equivalent to #set( $bar = 2 ) #set( $woogie = $tool.returnArbitraryObject() ) #set( $foo = 'whatever' : $bar : $woogie ) what can i say? i like that best. i'll leave out arguments as i think pretty much everything's been said. Nathan Bubna [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto

Re: String concatenation Was: Give it a whirl...

2002-05-01 Thread Nathan Bubna
Geir said: Why don't you like ? eh, various reasons have already been thrown out, but personally, it's the similarity to in velocity, similarity to bit-wise in java, general aesthetics (i think : looks nicer), and : is easier/quicker to type. (not necessarily in that order :-) Nathan Bubna

Re: [veltools] struts 1.1

2003-01-24 Thread Nathan Bubna
for me. :-) good, but feel free to post notice of minor issues too. But an 'official' 1.0 release would prolly make other folks more warm and fuzzy toward the code. it's true. and it also tends to generate visibility/publicity/sense-of-value for a project. Nathan Bubna [EMAIL PROTECTED

Re: how to capture multiple checkboxes

2003-02-10 Thread Nathan Bubna
question. if anything, this sounds like it could be a framework question. what framework are you using? their mailing list would probably be a better place for this question. Nathan Bubna [EMAIL PROTECTED] - To unsubscribe, e

Re: Invisible templates

2003-02-27 Thread Nathan Bubna
release of velocity-tools. it may be that somethings will go into a contrib folder before then though. but, that's as specific as we can get with regards to when. jakarta projects don't run on deadlines or set timeframes. Nathan Bubna [EMAIL PROTECTED

Re: moving from jsp to velocity

2003-03-14 Thread Nathan Bubna
to build everything. to browse the code first, go to: http://cvs.apache.org/viewcvs/jakarta-velocity-tools/ Nathan Bubna [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Suppress pretty printing

2003-03-18 Thread Nathan Bubna
beloved product. :-) Nathan Bubna [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Concrete WebappLoader example

2003-03-18 Thread Nathan Bubna
); you might also look at how the VelocityViewServlet does it. Do I call WebappLoader directly? no, RuntimeSingleton.getTemplate(foo.vm) should use the configured resource loader automatically. Nathan Bubna [EMAIL PROTECTED

Re: new documentation on security with Velocity

2003-06-11 Thread Nathan Bubna
up for discussion and development. http://nagoya.apache.org/wiki/apachewiki.cgi?VelocityProjectPages Nathan Bubna [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: VelocityView index.vm question

2003-07-24 Thread Nathan Bubna
-4.1-doc/appdev/index.html have fun! :) Nathan Bubna [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Global Variable in vm files

2003-09-08 Thread Nathan Bubna
you in. where/how is your velocity context set up? you seem to be using jetspeed, which i don't know a thing about. we can try to help you here (someone else here may know jetspeed), but you might get better help on the jetspeed user list. Nathan Bubna [EMAIL PROTECTED

Re: WebappLoader and Velocimacros

2003-09-30 Thread Nathan Bubna
the WebappLoader for an example of how to make it work. Nathan Bubna [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: WebappLoader and Velocimacros

2003-09-30 Thread Nathan Bubna
this is not an issue. Thanks for responding to my question. you're welcome! and if/when struts-menu is ready-to-go for VelocityStruts users, be sure to let us know over here. i'm curious about it. :) Nathan Bubna [EMAIL PROTECTED

Re: Problem using Velocity strut tools as the welcome file

2003-12-10 Thread Nathan Bubna
message. Nathan Bubna [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Ampersands choke XHTML parsers

2003-12-30 Thread Nathan Bubna
readable to the human eye than the latter. i'm more interested in aesthetics and simplicity than i am about making things easy on the parser. there wouldn't be problem. ... but there isn't problem. ;) /action Nathan Bubna [EMAIL PROTECTED

Re: Support for array.length ?

2003-12-30 Thread Nathan Bubna
Geir Magnusson Jr said: On Dec 29, 2003, at 9:47 PM, Nathan Bubna wrote: Geir Magnusson Jr said: I'm still not convinced that there are enough of these to warrant adding to VTL. agreed. and on that, i'd rather have things stay as they are than add the $isEmpty($array) syntax

Re: Another problem with multiple application resources

2004-01-07 Thread Nathan Bubna
is with configuring and using Struts with modules than it is with using the ErrorsTool. Nathan Bubna [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Another problem with multiple application resources

2004-01-07 Thread Nathan Bubna
and documentation. Nathan Bubna [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Active Learning Environment (Velocity/Java/XML)

2004-01-23 Thread Nathan Bubna
? or do you have something against building community between related projects? Nathan Bubna [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[ANN] VelocityTools 1.1-rc1 released

2004-02-22 Thread Nathan Bubna
Source Code: http://jakarta.apache.org/site/sourceindex.cgi For more information on Jakarta Velocity Tools, see http://jakarta.apache.org/velocity/tools/index.html Nathan Bubna [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL

Re: [ANN] VelocityTools 1.1-rc1 released

2004-02-22 Thread Nathan Bubna
/03/07/17/1425228.shtml?tid=148tid=185 Nathan Bubna [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Switching to VVS

2004-03-12 Thread Nathan Bubna
' org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/index.htm' ... and then these cool errors should disappear! Nathan Bubna [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Parsing a string

2004-04-09 Thread Nathan Bubna
://jakarta.apache.org/velocity/tools/generic/ Nathan Bubna [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: More Veltag questions...

2004-04-16 Thread Nathan Bubna
said, i threw it together hastily (i.e. in about 10 minutes) and hadn't even tried compiling yet. sorry. :-/ I will send out the final code once I have tested it. ... that'd be great. thanks! Nathan Bubna [EMAIL PROTECTED

Re: More Veltag questions...

2004-06-25 Thread Nathan Bubna
me to it, i'll see if i can whip up a patch for you today or this weekend. :) On Apr 16, 2004, at 3:05 PM, Nathan Bubna wrote: Gupta, Arindam said: Received the following errors while compiling: ... D:\VelocitySource\jakarta- velocity\contrib\temporary\veltag\src\java\org \apache

Re: Velocity-Struts does not use specified velocity.properties

2004-07-13 Thread Nathan Bubna
messages should be output there. Nathan Bubna [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Macro not evaluating

2004-07-14 Thread Nathan Bubna
is only in this email), then you might double check that $orderLine.quantity is actually returning a string. And is there a different way I should be doing this? apart from the capitalization typo, it looks like a good pattern. Nathan Bubna [EMAIL PROTECTED

Re: AbstractPagerTool

2004-08-09 Thread Nathan Bubna
. Nathan Bubna [EMAIL PROTECTED] I needed this, so I've pulled out the critera/query/search stuff from the AbstractSearchTool, and turned it into an AbstractPagerTool. cool. It works the same, you just need to do something like: $pager.setResults(myList) to give it a List to page through

Re: Velocity is not a valid reference error...help?

2004-10-10 Thread Nathan Bubna
is or else your getLogin() method is returning null. can you assure us that the latter is not the case? Nathan Bubna [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Velocity is not a valid reference error...help?

2004-10-11 Thread Nathan Bubna
specialist33 said: Nathan Bubna wrote: specialist33 said: I'm getting an incomprehensible is not a valid ref error. I've spent some hours trying to solve it, but I'm not being helped by the fact that I cannot seem to find a way of getting velocity to tell me what WOULD be a valid

Re: Velocity is not a valid reference error...help?

2004-10-11 Thread Nathan Bubna
, it was just the null that was causing the whole problem! Thanks. glad to help. :) Nathan Bubna wrote: workings of your app. so, if you have a reference (whether $ref or $obj.ref) that you can reasonably expect to return or be null, then you should be using silent notation. this is essentially

Re: Cannot unsubscribe, no information about list admin... huh?

2004-10-14 Thread Nathan Bubna
below. have you? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Nathan Bubna [EMAIL PROTECTED

Re: Macros as RHS in a #set

2004-09-29 Thread Nathan Bubna
) #set( $foo = mymacro( $arg1 ) ) Nathan Bubna [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: ViewRender tool - bug?

2004-09-30 Thread Nathan Bubna
Nathan Green said: For a tool to use at the application level, use RenderTool. The other Nathan (Bubna)'s javadoc comments are pretty explicit in both tools, though they are sort of a footnote... Perhaps the following change could be made to ViewRenderTool? public void init(Object obj

Re: Slightly off topic

2004-09-30 Thread Nathan Bubna
/commons/lang/api/org/apache/commons/lang/StringEscapeUtils.html has both escaping and unescaping for xml entities. should do the trick for you. Nathan Bubna [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Compare null

2004-10-06 Thread Nathan Bubna
-time velocity user (getting close to 4 years). so i've been around the lists and the code long enough to pick up a few useful tricks and tips. :) Nathan Bubna [EMAIL PROTECTED] - Original Message - From: Nathan Bubna [EMAIL PROTECTED] To: Velocity Users List [EMAIL PROTECTED] Sent

Re: Status: macros and white space gobbling

2004-10-09 Thread Nathan Bubna
to really go after this, i don't anticipate much action anytime soon. Nathan Bubna [EMAIL PROTECTED] Neeme Praks said: Hi all! Have we got any further on this issue? As the bugzilla issue seems to be open, I guess not? Could we decide something? At least then we could do a patch. Rgds, Neeme

Re: 2nd Case Substitution example in the user guide doesn't work

2004-10-09 Thread Nathan Bubna
at all. and $foo.thisIsNonStandard() cannot be shortened at all. if the user guide suggests otherwise, i'd recommend submitting a bugzilla report and a patch to clarify/fix things. Nathan Bubna [EMAIL PROTECTED] - To unsubscribe

Re: Status: macros and white space gobbling

2004-10-09 Thread Nathan Bubna
i suppose it would help to include a link: :) http://wiki.apache.org/jakarta-velocity/VelocityWhitespaceGobbling Nathan Bubna [EMAIL PROTECTED] Nathan Bubna said: i once tried to get this discussion going on the wiki so that it could be better organized and preserved in order for action

Re: Loading templates from url

2004-10-20 Thread Nathan Bubna
sure there already is a working URLResourceLoader out there in the contrib or geir's whiteboard stuff (probably the latter). search the list archives or even just google and you can probably find it pretty easily. Nathan Bubna [EMAIL PROTECTED

Re: Velocity Date Calculations?

2004-11-07 Thread Nathan Bubna
= $date.format('M/d/',$minDateDisp)) ## Min Date Short String hope this helps. Nathan Bubna [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: null in velocity

2004-12-02 Thread Nathan Bubna
I find #if( $!car == ) to be the most reliable null test. On Thu, 2 Dec 2004 14:47:29 -0500, Terry Steichen [EMAIL PROTECTED] wrote: I think you can also do something like this: #if($car $car == ) That is, if $car is defined and has no value (ie, null) - Original Message -

Re: unwanted whitespace

2004-12-09 Thread Nathan Bubna
On Thu, 09 Dec 2004 08:53:36 +0100, Carsten Heyl [EMAIL PROTECTED] wrote: Christoph Reck wrote: ... Check the Wiki page http://wiki.apache.org/jakarta-velocity/VelocityWhitespaceGobbling on this subject. The so called VelocityWhitespaceGobbleChristophsWay should be called

Re: EscapeTool (and velocity-tool best practices)

2004-12-09 Thread Nathan Bubna
an Object parameter seems like a good solution. WILL - Original Message - From: Nathan Bubna [EMAIL PROTECTED] To: Velocity Users List [EMAIL PROTECTED] Sent: Wednesday, December 08, 2004 5:02 PM Subject: Re: EscapeTool (and velocity-tool best practices) On Wed, 08 Dec 2004

Re: Problem on using Velocity with Servlet

2004-12-30 Thread Nathan Bubna
i highly recommend you try out the VelocityTools project. http://jakarta.apache.org/velocity/tools/index.html the distribution comes with several examples apps that are packaged as WARs. all you need to do is drop them into Tomcat's webapps directory and they're ready to run. they're easier to

Re: how to inherit ServletToolboxManager?

2005-01-05 Thread Nathan Bubna
On Wed, 5 Jan 2005 21:33:45 +0900, Shinobu Kawai [EMAIL PROTECTED] wrote: Hi Sato, I'm using VelocityView and am very happy it's much easier creating dynamic HTML than JSP and custom tags. Agreed. :) Now I need to use some my own implementation of ServletToolboxRuleSet (which is

Re: [Vel-Tools] Converting a long return type into a formatted Date

2005-01-06 Thread Nathan Bubna
in VTL, long and Long are the same. have you tried just using DateTool.toDate(Long) with the long? On Thu, 06 Jan 2005 14:50:34 -0500, Mike Kienenberger [EMAIL PROTECTED] wrote: I'm trying to figure out how to convert File.lastModified (type long) into a formatted date in Velocity. It

Re: [Vel-Tools] Converting a long return type into a formatted Date

2005-01-06 Thread Nathan Bubna
yeah, my understanding is that it is a function of java reflection itself, rather than an intentional thing done by Velocity. but i could be wrong... On Thu, 06 Jan 2005 15:39:53 -0500, Mike Kienenberger [EMAIL PROTECTED] wrote: Nathan Bubna [EMAIL PROTECTED] wrote: in VTL, long and Long

Re: velocity macro substitution issue

2005-01-27 Thread Nathan Bubna
yeah, use quiet notation if you don't want such warnings. the idea is that any reference that is value-less and not expected to possibly be null (i.e. not specified with $!quiet), must be an error, because the template designer must be expecting it to have a value. On Wed, 26 Jan 2005 19:56:21

Re: getting template from string

2005-01-28 Thread Nathan Bubna
if you just want to evaluate strings, use the evaluate() method of Velocity or VelocityEngine. If you actually want Template objects, that's a little trickier. However, I do remember seeing a StringResourceLoader being contributed sometime back for this purpose, but i'm not sure it ever made it

Re: Adding map to toolbox

2005-01-31 Thread Nathan Bubna
or you can just use quiet notation: $!mymap.put('label.name', 'manish') On Mon, 31 Jan 2005 19:58:31 +0530, Manish [EMAIL PROTECTED] wrote: Never mind, I got it. It was printing it because return value for all these map.put operations was NULL. call to clear() wasn't printed because it is

Re: Using Velocity for non-HTML output

2005-02-07 Thread Nathan Bubna
Sure. velocity is designed to be a generic template language. so while it is often used to generate html, you can use it to generate any text-based file type. for instance, i've used it to export spreadsheet data as tab-delimited files. when it comes to using a servlet to do it, you will not

Re: Struts Velocity

2005-02-08 Thread Nathan Bubna
just to make sure you guys know, the VelocityServlet is deprecated and should be removed following the release of Velocity 1.5. it's replacement is the VelocityViewServlet in the VelocityTools project. so if you have ideas for improvements or contributions, be sure to make them regarding that

Re: VelocityViewServlet Differences with VelocityServlet

2005-02-09 Thread Nathan Bubna
hmm. i've not had problems with invalidated sessions before. can you give us some of that stack trace? i wanna see where this is happening. On Wed, 9 Feb 2005 11:11:38 -, Steve O'Hara [EMAIL PROTECTED] wrote: I've taken the advice offered by everyone to switch to using the

Re: Application Resources and TextTool

2005-02-09 Thread Nathan Bubna
the relevant code (in veltools 1.1's StrutsUtils) is doing the following: resources = (MessageResources) request.getAttribute(bundle + moduleConfig.getPrefix()); if (resources == null) { resources = (MessageResources) app.getAttribute(bundle +

Re: Application Resources and TextTool

2005-02-10 Thread Nathan Bubna
is must be causing the problem. So...does that mean that I have to keep a record of every possible entry made to the request? How do I go on about this? Thanks in advance, Markos Charatzas On Wednesday 09 February 2005 19:25, Nathan Bubna wrote: the relevant code (in veltools 1.1's

Re: Charset (Struts and Velocity)

2005-02-10 Thread Nathan Bubna
disclaimeri've only halfheartedly read this thread and personally never use non-default charsets/disclaimer have you tried setting the default.contentType property that the VVS looks for? e.g. default.contentType=text/html; charset=ISO-8859-1 i'm half-doubting that's the problem, but it

Re: VelocityViewServlet Differences with VelocityServlet

2005-02-10 Thread Nathan Bubna
? hmm. ok, if that works best for you, but just so you know, that's not very MVC. :) and out of curiousity, where were you doing that before? Steve -Original Message- From: Nathan Bubna [mailto:[EMAIL PROTECTED] Sent: 10 February 2005 18:56 To: [EMAIL PROTECTED] Subject: Re

Re: VelocityViewServlet Differences with VelocityServlet

2005-02-11 Thread Nathan Bubna
,v 1.6 from VelTools 1.1 final] -Mike -Original Message- From: Nathan Bubna [mailto:[EMAIL PROTECTED] Sent: 11 February 2005 01:18 To: [EMAIL PROTECTED] Cc: Velocity Users List Subject: Re: VelocityViewServlet Differences with VelocityServlet On Fri, 11 Feb 2005 01

Re: Charset (Struts and Velocity)

2005-02-11 Thread Nathan Bubna
On Fri, 11 Feb 2005 07:45:19 -0800, Shinobu Kawai [EMAIL PROTECTED] wrote: ... Still I cannot understand why setting the output.encoding to ISO-8859-7 in velocity.properties has that effect I mentioned earlier. Even more since you pointed out that the output.encoding doesn't matter

Re: Application Resources and TextTool

2005-02-11 Thread Nathan Bubna
On Fri, 11 Feb 2005 10:15:20 +0200, Markos Charatzas [EMAIL PROTECTED] wrote: On Thursday 10 February 2005 17:50, Nathan Bubna wrote: i only rarely put things directly into the request myself. i mostly use tools to access my request scoped data. those are easy enough to keep track of in my

Re: Charset (Struts and Velocity)

2005-02-11 Thread Nathan Bubna
On Fri, 11 Feb 2005 13:59:38 -0800, Shinobu Kawai [EMAIL PROTECTED] wrote: Hi Nathan, Still I cannot understand why setting the output.encoding to ISO-8859-7 in velocity.properties has that effect I mentioned earlier. Even more since you pointed out that the output.encoding

Re: Charset (Struts and Velocity)

2005-02-14 Thread Nathan Bubna
On Mon, 14 Feb 2005 01:01:23 -0800, Shinobu Kawai [EMAIL PROTECTED] wrote: Hi Nathan, the VelocityViewServlet (largely in the interest of compatibility with VelocityServlet) does take the output.encoding property into account, but only if there is no charset specified within the

Re: Resource loader path problems!!! Never easy...

2005-02-15 Thread Nathan Bubna
you probably just need to add the path to the new directory to your foo.resource.loader.path property in your velocity properties. most resource loaders should accept a comma delimited list for the path property. if that doesn't work, answer the following questions to help us help you... what

Re: ValidatorTool: getDynamicJavascript does not produce output

2005-02-17 Thread Nathan Bubna
On Thu, 17 Feb 2005 17:30:02 +0200, Florin Vancea [EMAIL PROTECTED] wrote: AFAIR, it was the _only_ way to get things working :) I did some minor modifications to the -tools source while going my way. As soon as I get to breathe (as I'm really swamped now), I'll check if they are worth

Re: tomcat 4.1.31 and velocity - template location problem

2005-02-21 Thread Nathan Bubna
beyond just the WebappLoader, the VelocityTools project is also home to the VelocityViewServlet (designated successor of the deprecated VelocityServlet), and several simple, drop-and-go example apps you can play with until you get things working. basically, if you're developing a webapp with

Re: tomcat 4.1.31 and velocity - template location problem

2005-02-21 Thread Nathan Bubna
personally, i think Markos gave you the best answer already. you should use the WebappLoader from the VelocityTools project. The FileResourceLoader that Velocity uses by default is not very webapp friendly. there are ways to get it working in web applications, but in general they are not

Re: mailing list not being updated

2005-02-22 Thread Nathan Bubna
i don't know how slow/fast that goes, but you could always try a different archive... http://www.mail-archive.com/velocity-user%40jakarta.apache.org/ http://marc.theaimsgroup.com/?l=velocity-userr=1b=200502w=2 On Tue, 22 Feb 2005 06:27:20 -0800, Michael Salmon [EMAIL PROTECTED] wrote: Does

Re: Problem integrating with Cactus

2005-02-25 Thread Nathan Bubna
i don't really know anything about Cactus, but this code snippet hardly seems representative of a sensible way to test a servlet. surely they must have a better setup than this? or am i just getting the wrong impression because you've posted so little code? anyway, the VelocityViewServlet

Re: Escaping in VTL (was Re: Velocity JSP Generation)

2005-02-25 Thread Nathan Bubna
agreed. this is not my preferred escaping system either, but we can't just go changing it now. i can't think of any way to make such a change backwards compatible. the best that could be done (if someone is interested in doing it) in 1.x, would be to make escaping behavior configurable via a

Re: Problem integrating with Cactus

2005-02-26 Thread Nathan Bubna
On Sat, 26 Feb 2005 10:34:21 +0100, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On 25 Feb 2005 at 10:33, Nathan Bubna wrote: anyway, the VelocityViewServlet requires a good bit more than just the handleRequest() method to run. first it will need to be init'ed (going thru init

Re: best practice question

2005-03-02 Thread Nathan Bubna
that's very strange. what you're doing looks fine to me and definitely should work. and no, it shouldn't make a difference whether the methods are static or not. they just need to be public methods in public classes. so, the first thing i suggest double-checking is that the Constants class is

Re: Creating objects in template using new keyword

2005-03-03 Thread Nathan Bubna
On Wed, 2 Mar 2005 22:33:47 -0800, Shinobu Kawai [EMAIL PROTECTED] wrote: Hi Ravikanth, I would like to create a object reference in template using new keyword like what we do in java String obj = new String() cringenot a best practice!/cringe :) I need to put RenderTool instance in

Re: help - text within { } is not rendered by the engine

2005-03-31 Thread Nathan Bubna
perhaps as a workaround, try #set( $D = '$' ) ${D}c1{whatever} disclaimeri didn't test it myself/disclaimer On Mar 31, 2005 5:19 PM, Will Glass-Husain [EMAIL PROTECTED] wrote: Is that the same as this? http://issues.apache.org/bugzilla/show_bug.cgi?id=28528 WILL - Original

Re: Problem with decimal in most recent snapshot

2005-04-13 Thread Nathan Bubna
the VelocityViewServlet uses a webapp resource loader, not the FileResourceLoader. try setting your velocity.properties to: webapp.resource.loader.path = /WEB-INF/templates On 4/13/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hey Will, Sorry about using the same Subject line. Trying to

Re: Problem with decimal in most recent snapshot

2005-04-13 Thread Nathan Bubna
oops, meant to keep this on list... On 4/13/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: This is my entire velocity.properties file below. Note that here I show both resource loaders being used. I tried commenting out the file.resource.loader.path one but I just get the same error anyway.

Re: Problem with decimal in most recent snapshot

2005-04-13 Thread Nathan Bubna
On 4/13/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Ug. No go yet assuming I should have compiled off of trunk. i'm not sure what that sentence means. but the VelocityViewServlet and friends should work just fine with any relatively modern version of Velocity. but, out of curiosity,

Re: Problem with decimal in most recent snapshot

2005-04-13 Thread Nathan Bubna
out of curiousity, what happens when you just remove the file.resource.loader.path (and other file.resource.loader props) and add no replacements? i have a feeling that it will work just as it does with them. (i.e. without a resource.loader=file property, i don't think the VVS is using those

Re: VelocityViewServlet and mime-mapping in web.xml

2005-05-06 Thread Nathan Bubna
i've never used the web.xml mime-setting stuff much and don't know much about it. i suggest you try to override the setContentType method in your subclass to set the file type according to the requested file's extension. On 5/6/05, Chris Searle [EMAIL PROTECTED] wrote: Was reading thru the

Re: OutOfMemoryException Processing Velocity Template

2005-05-10 Thread Nathan Bubna
if you are using the TilesTool, note that it extends ImportSupport which uses a custom HttpServletResponseWrapper (an internal class called ImportResponseWrapper). if the getWriter() method is called on that wrapper instead of getOutputStream(), then the wrapper will use a StringWriter to hold

Re: OutOfMemoryException Processing Velocity Template

2005-05-10 Thread Nathan Bubna
case, then please consider sharing. :) On 5/10/05, Nathan Bubna [EMAIL PROTECTED] wrote: if you are using the TilesTool, note that it extends ImportSupport which uses a custom HttpServletResponseWrapper (an internal class called ImportResponseWrapper). if the getWriter() method is called

Re: OutOfMemoryException Processing Velocity Template

2005-05-10 Thread Nathan Bubna
. What would you suggest I do? Can I easily override a method in VelocityViewServlet that fixes this problem? -L On Tue, May 10, 2005 at 10:32:40AM -0700, Nathan Bubna wrote: if you are using the TilesTool, note that it extends ImportSupport which uses a custom HttpServletResponseWrapper

Re: OutOfMemoryException Processing Velocity Template

2005-05-10 Thread Nathan Bubna
thoroughly confused! -L On Tue, May 10, 2005 at 11:31:17AM -0700, Nathan Bubna wrote: hmm. yeah, i don't know what to do then. without some good profiling to see what is hogging the memory, it's hard to say. have you tried just requesting the template in question directly with the VVS

Re: Servlet Resource Loader: Webapp, then classpath

2005-05-31 Thread Nathan Bubna
you should be able to configure your velocity.properties as you would with any other velocity application. yours will look someting like resource.loader=webapp,classpath webapp.resource.loader.class=...WebappLoader classpath.resource.loader.class=...ClasspathResourceLoader and so on... be sure

Re: Having trouble moving between velocity pages with struts

2005-06-02 Thread Nathan Bubna
On 6/2/05, Paul Goepfert [EMAIL PROTECTED] wrote: ... web-app display-namePersonal Information/display-name servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-parm

Re: classloading

2005-06-07 Thread Nathan Bubna
patches would help :) On 6/7/05, Max Rydahl Andersen [EMAIL PROTECTED] wrote: On Mon, 06 Jun 2005 20:17:38 +0200, Shinobu Kawai [EMAIL PROTECTED] wrote: Hi max, Any particular reason why velocity only do Class.forName() where it should first look in thread context classloader and THEN

Re: classloading

2005-06-07 Thread Nathan Bubna
both. :) On 6/7/05, Max Rydahl Andersen [EMAIL PROTECTED] wrote: On Tue, 07 Jun 2005 17:13:01 +0200, Nathan Bubna [EMAIL PROTECTED] wrote: patches would help :) yes - but before doing so just wanted to know if there were any argument for how it is done now ,) -max On 6/7/05, Max

Re: Unwanted Whitespace and linefeed in .vm-files: Different approach...

2005-06-14 Thread Nathan Bubna
The varying automatic approaches described on that velocity wiki page are proposed *defaults*. Having a default is unavoidable, and to answer your rhetorical questions: no, i don't think those varying automatic approaches are strict or drastic; they're the most common sense (with the exception of

Re: Velocity vs. JSF

2005-06-19 Thread Nathan Bubna
eh, i haven't spent much time looking at JSF yet, but Craig McClanahan has always given me the impression that you can use the Velocity as a renderer for JSF if you want (JSF+Velocity vs. JSF+JSP) and that neither can really replace or exclude the other. as for cases that Velocity is better, i

Re: Need help displaying Innformation on a template

2005-06-19 Thread Nathan Bubna
why don't you take a look at the VelocityViewServlet in the VelocityTools project? http://jakarta.apache.org/velocity/tools/ i would recommend just using it to serve web content with Velocity, as it is designed to make that as easy as possible. but you can at least look at the servlet's source

Re: Velocity vs. JSF

2005-06-19 Thread Nathan Bubna
or much as you like. :) Any suggestions? Thanks Matt -Ursprngliche Nachricht- Von: Nathan Bubna [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 19. Juni 2005 11:40 An: Velocity Users List Betreff: Re: Velocity vs. JSF eh, i haven't spent much time looking at JSF

Re: Have a question about intergrating a Velocity servlet into my velocity/struts app

2005-06-20 Thread Nathan Bubna
On 6/19/05, Paul Goepfert [EMAIL PROTECTED] wrote: I have written a servlet that extends from VelocityServlet. I am not sure how to intergrate it into my velocity/struts app. As of now all my actions such as moving from page to page are handled by struts using the VelStruts tool,

Re: How to access velocity properties in template

2005-06-23 Thread Nathan Bubna
it's not working for you because that's not what velocity.properties is designed for. it's meant for configuration of the Velocity engine, not for access during its use. you will have to retrieve those values yourself and add them to your context, or else code up some sneaky means to automate

Re: Can't seem to get information to print to a web page.

2005-06-26 Thread Nathan Bubna
the VelocityTools project (http://jakarta.apache.org/velocity/tools/index.html) is designed to make web publishing with Velocity (and Struts, if you want) much easier. i've never heard of the VMServlet, but the VelocityServlet that ships with the core velocity library is deprecated in favor of

Re: Initializing Velocity ouside of a servlet

2005-06-28 Thread Nathan Bubna
what version of VelocityTools are you using? and are you trying to initialize the Velocity singleton within the same application as the VelocityViewServlet? have you tried initializing a VelocityEngine instead of the singleton? On 6/27/05, Leo Asanov [EMAIL PROTECTED] wrote: Hi! What is the

Re: Error page

2005-07-18 Thread Nathan Bubna
have you trie (or are you using) the VelocityLayoutServlet that is part of VelocityTools? http://jakarta.apache.org/velocity/tools/view/layoutservlet.html On 7/18/05, Bayarsaikhan VOLODYA [EMAIL PROTECTED] wrote: Hi all, I am trying to write an error page to catch all exceptions that are

Re: problem displaying velocity content on webpage

2005-07-18 Thread Nathan Bubna
need a bit more info than that... are you getting error messages in your logs at startup or elsewhere that look pertinent? what do you mean by does not render correctly? what are the tools in your toolbox.xml? showing us your toolbox.xml and web.xml might also be useful. On 7/18/05, Paul

Re: Help with VelocityViewServlet

2005-07-18 Thread Nathan Bubna
can't you just configure an index.vm page in your web.xml? On 7/13/05, Withers John Z [EMAIL PROTECTED] wrote: Barbara, Thanks for the information. Perhaps my application is not well suited to use the VelocityViewServlet. I was hoping to use it as a base to get 'free' access to the tool

  1   2   3   4   >