Re: creating a Template from a String

2005-06-30 Thread Shinobu Kawai
Isn't the simplest way to do this to create your own resource loader? Like this one? ;) http://issues.apache.org/bugzilla/show_bug.cgi?id=20677 Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe

Re: Multi-dimensional arrays, velocimacros, and navigation menu lists

2005-06-30 Thread Shinobu Kawai
with what you have now. Doesn't seem like it shouldn't work. Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: newbie question about encoding

2005-06-30 Thread Shinobu Kawai
? The wiki would be a good place to share your stuff. ;) http://wiki.apache.org/jakarta-velocity/FrontPage Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Passing Variables through velocity

2005-06-30 Thread Shinobu Kawai
into the Anakia Context, but you might want to check out Customizing the Anakia Context. http://jakarta.apache.org/velocity/anakia.html#Customizing%20the%20Anakia%20Context Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: how to generate adifferent vm from a raw vm

2005-06-30 Thread Shinobu Kawai
give a simple example of a raw vm file, a languange specific properties file, and a language specifc vm? Instinct tells me that Texen might give a clue. http://jakarta.apache.org/velocity/texen.html Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: Have a strange problem

2005-06-30 Thread Shinobu Kawai
at least. That puzzles me, too. What's keeping you from running the Linux server with Tomcat 5.5, BTW? Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: velocity error page

2005-06-08 Thread Shinobu Kawai
easily accessible to the Context, though. ;) Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: A way to (easily) access Velocity parser and get a list of variables/properties/methods

2005-06-08 Thread Shinobu Kawai
not, if velocity can do this already. Take a look at the TemplateTool. http://svn.apache.org/repos/asf/jakarta/velocity/trunk/contrib/temporary/templatetool/ Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: classloading

2005-06-07 Thread Shinobu Kawai
this last one by providing my own UberSpectImpl, but it should not be necessary IMO. And this one is here (not that it's fixed, though): http://issues.apache.org/bugzilla/show_bug.cgi?id=7975 Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: classloading

2005-06-07 Thread Shinobu Kawai
: org.apache.velocity.runtime.resource.loader.ResourceLoaderFactory.getLoader ? It would be great if you could try it and report it back to the list. And maybe submit a patch. :) Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: NullPointerException problem

2005-06-07 Thread Shinobu Kawai
configuration files and see if they are correct? In your original postings, they were not even in xml format. :( - web.xml - struts-config.xml Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL

Re: NullPointerException problem

2005-06-07 Thread Shinobu Kawai
_ web.xml _ ## snip init-param param-nameconfig/param-name param-value/WEB-INF/conf/struts-config.xml/param-value /init-param Are you sure that the Struts part is working? Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: classloading

2005-06-06 Thread Shinobu Kawai
the ClasspathResourceLoader? Then it's fixed in the latest repository. http://issues.apache.org/bugzilla/show_bug.cgi?id=22419 For the latest in the repository: http://cvs.apache.org/snapshots/velocity/ Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: NullPointerException problem

2005-06-06 Thread Shinobu Kawai
to reproduce your problem. ;) As for the Ant question, the Ant User List would be a better place to ask. http://ant.apache.org/mail.html Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL

Re: Quick question about properties files

2005-06-06 Thread Shinobu Kawai
Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: compare float?

2005-06-06 Thread Shinobu Kawai
, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: handling -ve currency in $number.format('currency',$myNumber) in velocity templates

2005-06-03 Thread Shinobu Kawai
bracket after formatting? I'm not sure what a -ve sign is, but you can give NumberTool a custom format like this: $number.format('$0.00',$myNumber) Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e

Re: Having trouble moving between velocity pages with struts

2005-06-02 Thread Shinobu Kawai
VelocityTools 1.2, which is still under development. You can get nightly snapshots here: http://cvs.apache.org/snapshots/velocity-tools/ Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL

Re: SEVERE: Error deploying web application archive simple.war

2005-06-02 Thread Shinobu Kawai
from the classes directory. ## Need to look furthur into this... Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: SEVERE: Error deploying web application archive simple.war

2005-06-02 Thread Shinobu Kawai
logs to commons-logging to be handled by Velocity. (This was meant for logs by commons-digester.) And I guess that Tomcat outputs Servlet logs using commons-logging. (Haven't checked that, though.) Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: velocity.properties documentation

2005-05-27 Thread Shinobu Kawai
, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Velocity doesn't work with Tomcat

2005-05-26 Thread Shinobu Kawai
-- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: IteratorTool question

2005-05-25 Thread Shinobu Kawai
/src/java/org/apache/velocity/tools/view/tools/AbstractPagerTool.java Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

VelocityAndSpringTips

2005-05-24 Thread Shinobu Kawai
Hi guys, I created a wiki page to gather tips on using Velocity with Spring. http://wiki.apache.org/jakarta-velocity/VelocityAndSpringTips Everyone using Spring, it'll be great if we can share our tips! Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: VelocityAndSpringTips

2005-05-24 Thread Shinobu Kawai
, but don't know if I can... Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Re[4]: Custom Resource Loader

2005-05-24 Thread Shinobu Kawai
/VelocityAndSpringTips Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Error in User Guide?

2005-05-23 Thread Shinobu Kawai
write $sisyphus.rock should follow. ie. you need to spell out the method name if it doesn't respond to the JavaBean contract. Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: IteratorTool question

2005-05-23 Thread Shinobu Kawai
having not just a #stop (aka break) would be useful, but a #continue. Actually, #stop stops Velocity, not just #foreach. Using #if is the only solution for a continue that I can think of right now. http://jakarta.apache.org/velocity/user-guide.html#Stop Best regards, -- Shinobu -- Shinobu Kawai

Re: Getting the key out of a Hashtable

2005-05-23 Thread Shinobu Kawai
would I get the key of each entry? Do I need to use a Vector of Vectors instead perhaps? What would you suggest? How about reading the FAQ? ;) http://wiki.apache.org/jakarta-velocity/VelocityFAQ Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: Velocity and Spring - Step by Step

2005-05-19 Thread Shinobu Kawai
Hi, I posted a page with supplemental information for using Velocity in the step-by-step article for Spring. http://wiki.apache.org/jakarta-velocity/VelocityAndSpringStepByStep I fixed the TODO, erasing the dependency to VelocityViewServlet. Best regards, -- Shinobu -- Shinobu Kawai [EMAIL

Re: can't get the strutslinktool to work.

2005-05-19 Thread Shinobu Kawai
/VelocityTools are you using? For Struts 1.2, you need VelocityTools 1.2, which is still under development. http://cvs.apache.org/snapshots/velocity-tools/ Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Velocity and Spring - Step by Step

2005-05-18 Thread Shinobu Kawai
://www.springframework.org/docs/MVC-step-by-step/Spring-MVC-step-by-step.html Any comments welcome. :) Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: poroblem with linefeed in velocity templates

2005-05-18 Thread Shinobu Kawai
textfield_three: #if($ref_variable_three != ) $ref_variable_three #end textfield_four:#if($ref_variable_four != ) $ref_variable_four #end Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL

Re: A couple of wording suggestions

2005-05-18 Thread Shinobu Kawai
the tense) or more likely should be have striven. I'm no master of English, but maybe you could file this in the bugzilla so it doesn't get forgotten. :) http://issues.apache.org/bugzilla/enter_bug.cgi?product=Velocitycomponent=Documentation Best regards, -- Shinobu -- Shinobu Kawai [EMAIL

Re: Need inline map creation badly

2005-05-13 Thread Shinobu Kawai
Hi Geir, Why doesn't it work? it should have been in there a while ago... I've updated the bugzilla entry with details. http://issues.apache.org/bugzilla/show_bug.cgi?id=33113 Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: Passing data into a Velocity Template from a Spring Controller

2005-05-13 Thread Shinobu Kawai
started creating a supplemental document for Velocity here: http://wiki.apache.org/jakarta-velocity/VelocityAndSpringStepByStep Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Help using velocity tools

2005-05-13 Thread Shinobu Kawai
using VelocityViewServlet, put it in the toolbox.xml. http://jakarta.apache.org/velocity/tools/view/index.html#Toolbox%20Configuration Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL

Re: Need inline map creation badly

2005-05-12 Thread Shinobu Kawai
: moge}) $dohickey.acceptMap($mapForDohickey) Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: deployment of applet class

2005-05-12 Thread Shinobu Kawai
page, where to put it. Applets are client-side technology. So it will not have access to the unexposed WEB-INF directory. I suggest you put what is needed by the applet in a jar and refer to it with the archive attribute like in 1. Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: applet

2005-05-09 Thread Shinobu Kawai
java.lang.ClassFormatError: Star (Bad magic number) Something definitely messed up your class file. http://java.sun.com/j2se/1.4.2/docs/api/java/lang/ClassFormatError.html I suggest that you first test your applet without Velocity, and move on to Velocity once you get it working. Best regards, -- Shinobu -- Shinobu

Re: cactus and velocity

2005-05-09 Thread Shinobu Kawai
there was a thread about Cactus not working on a not-so-well-configured VelocityViewServlet... Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: cactus and velocity

2005-05-09 Thread Shinobu Kawai
. http://wiki.apache.org/jakarta-velocity/TestingVelocity Hope that helps. Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Ifnotnull

2005-05-06 Thread Shinobu Kawai
of: ( ... ... ... ... ... \\ ... ... ... *# ... *# ... ... ... ... ... ... ... ... ... ... ... { ... } ... org.apache.velocity.exception.ParseErrorException: Encountered #end\r\n at line 3, column 1. The error suggests that you aren't configuring the directive correctly. Have you added it to your codebase/classpath? Best regards, -- Shinobu -- Shinobu

Re: Problems with Overloaded Methods

2005-05-06 Thread Shinobu Kawai
this ever happen? Looks like it was reflected on SVN revision 75625. So yours might be another problem. http://svn.apache.org/viewcvs.cgi/jakarta/velocity/trunk/src/java/org/apache/velocity/util/introspection/MethodMap.java?rev=75625view=log Best regards, -- Shinobu -- Shinobu Kawai [EMAIL

Re: Problems with Overloaded Methods

2005-05-06 Thread Shinobu Kawai
... Did this ever happen? Looks like it was reflected on SVN revision 75625. So yours might be another problem. I just tried a few, but it works for me. Could you give an example of the failing code? Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: Ifnotnull

2005-05-06 Thread Shinobu Kawai
in the Note:s for each approach. In your case, I think approach #1 might do best. #if( $form ) #set ($attr = $form.getBean()) #end Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL

Re: Testing Velocity with JUnit.

2005-05-06 Thread Shinobu Kawai
Hi all, My server has been down for like half an year, so I decided to put all this in the wiki: http://wiki.apache.org/jakarta-velocity/TestingVelocity On 11/9/04, Shinobu Kawai [EMAIL PROTECTED] wrote: Hi all, I'd like to share how I've been testing Velocity with JUnit lately. First

Re: List of variables from template

2005-05-03 Thread Shinobu Kawai
believe, hard to follow the 's) saying he was going to work on implementing this, but I can't find more information on if this was done. Probably this: http://svn.apache.org/repos/asf/jakarta/velocity/trunk/contrib/temporary/templatetool/ Best regards, -- Shinobu -- Shinobu Kawai [EMAIL

Re: Junit and Debugging of Velocity Templates

2005-05-02 Thread Shinobu Kawai
. Rainsberger. There is a nice recipe for testing Velocity templates. http://www.amazon.com/exec/obidos/tg/detail/-/1932394230 Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL

Re: byte order mark and InputStreamReader problem

2005-05-02 Thread Shinobu Kawai
this issue up on bugzilla. http://issues.apache.org/bugzilla/show_bug.cgi?id=21582 Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: byte order mark and InputStreamReader problem

2005-05-02 Thread Shinobu Kawai
Hi, It is bad that SUN never bothers to fix the InputStreamReader BOM issue. Everybody interested, let's vote for it. ;) http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4508058 Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: #cparse

2005-04-29 Thread Shinobu Kawai
it. http://wiki.apache.org/jakarta-velocity/VelocityFAQ Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to use Map ?

2005-04-29 Thread Shinobu Kawai
1.5. You can get 1.5-dev (still under development) here: http://jakarta.apache.org/velocity/install.html Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: how to set null value

2005-04-29 Thread Shinobu Kawai
the variable in the context if it is assigned a null value, I believe so. and it will be consistent with future release in Velocity, right? Can't be sure about that. The community has not yet reached consensus on what to do with this issue. Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: #cparse

2005-04-27 Thread Shinobu Kawai
://jakarta.apache.org/velocity/tools/view/index.html#Examples Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: out of memory error using GZIPOutputStream

2005-04-27 Thread Shinobu Kawai
problem? If not, maybe there's something wrong with GOS (like an infinite loop). I suggest running it on a profiler and see who's taking up all that memory. Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: how to set null value

2005-04-27 Thread Shinobu Kawai
, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: #cparse

2005-04-26 Thread Shinobu Kawai
)? The package can be anything you want. As for the macros, check out the user guide. VM_global_library.vm should be a good place to put it. http://jakarta.apache.org/velocity/user-guide.html#Velocimacros Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: velocity config.getInitParameter()

2005-04-25 Thread Shinobu Kawai
(), which is where all of the Tomcat servlet examples have called the getInitParameter() method from. I don't see anything wrong so far, but I can't tell until I see all the relevant code. Does it work with a regular servlet? Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: How to tell the difference of the similar template engine crew?

2005-04-25 Thread Shinobu Kawai
to you than anyone else's. And nobody is going to stop you from writing a report with a neat matrix on the wiki page. ;) http://wiki.apache.org/jakarta-velocity/FrontPage Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: How to tell the difference of the similar template engine crew?

2005-04-25 Thread Shinobu Kawai
://jakarta.apache.org/velocity/changes.html If you think any one them is cool, there's your reason for considering an upgrade. The Velocity developers are also trying their best to keep upgrades backward compatible. (In the scope of 1.x, of course.) Best regards, -- Shinobu -- Shinobu Kawai [EMAIL

Re: Help! Simple velocity 1.4 setup with Tomcat 5.5.9

2005-04-25 Thread Shinobu Kawai
regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Velocity security

2005-04-22 Thread Shinobu Kawai
://jakarta.apache.org/velocity/tools/index.html Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Next Release 1.5 ??

2005-04-21 Thread Shinobu Kawai
thread. :) http://mail-archives.apache.org/mod_mbox/jakarta-velocity-user/200504.mbox/[EMAIL PROTECTED] Basically, there's no current plan, but you can sure help by submitting patches. Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: Velocity security

2005-04-21 Thread Shinobu Kawai
altogether - or perhaps some unforeseen solution that is more wll suited. I think there was a thread before about disabling directives. Some more security issues are mentioned here: http://wiki.apache.org/jakarta-velocity/HackingVelocity Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: comparing long values

2005-04-20 Thread Shinobu Kawai
you need to get from the nightly snapshots or build it from source. http://jakarta.apache.org/velocity/install.html As a 1.4 solution, (haven't tried, but) you might be able to use compareTo. #if($myNumber.compareTo(0) 0) yes # else no #end Best regards, -- Shinobu -- Shinobu Kawai

Re: ResourceNotFoundException

2005-04-19 Thread Shinobu Kawai
a great offer. Try VelocityViewServlet instead of VelocityServlet. VelocityServlet is deprecated and probably will be gone in following versions. http://jakarta.apache.org/velocity/tools/view/ The download also comes with sample wars. Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: printing errors in error.vm page

2005-04-19 Thread Shinobu Kawai
was set to the Context, all the public methods should be available to the template. http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e

Re: Newbie question: Formal notation for #if #else #end

2005-04-15 Thread Shinobu Kawai
from Velocity 1.5. Not being released yet, you can get it directly from the Subversion repository, or from the nightly snapshots. :) http://jakarta.apache.org/velocity/install.html Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: Programming Velocity

2005-04-13 Thread Shinobu Kawai
? Well, at least the source for it should. ;) http://jakarta.apache.org/velocity/tools/javadoc/org/apache/velocity/tools/generic/RenderTool.html http://jakarta.apache.org/velocity/tools/view/ViewRenderTool.html Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: ADD Function in Velocity

2005-04-13 Thread Shinobu Kawai
Value Long arithmetic gets supported from Velocity 1.5. As for 1.4, you can use the MathTool. :) http://jakarta.apache.org/velocity/tools/generic/MathTool.html#add() Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: Problem with decimal in most recent snapshot

2005-04-12 Thread Shinobu Kawai
/velocity/install.html Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Using foreach loops on String[][]

2005-04-11 Thread Shinobu Kawai
. :) http://wiki.apache.org/jakarta-velocity/ListTool Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: instanceof

2005-04-11 Thread Shinobu Kawai
working this out, I just wondered if I had missed something crucial ... ? None in Velocity, but I'll bet you can make a tool that does that. ;) Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e

Re: Map creation outside of #set

2005-04-11 Thread Shinobu Kawai
should be, why doesn't Velocity have this already? Answering your real question, because it's a known bug. :( http://issues.apache.org/bugzilla/show_bug.cgi?id=33113 ## We need to fix the parser. Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: Map creation outside of #set

2005-04-11 Thread Shinobu Kawai
free time.) Anyways, if you're planning to take a shot at it, I guess you'll need to understand how JavaCC works. Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED

Velocity 1.5 release? (was Re: Map creation outside of #set)

2005-04-11 Thread Shinobu Kawai
can help get that release out. :) http://wiki.apache.org/jakarta-velocity/IssuePriorities Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: Problem with decimal in most recent snapshot

2005-04-11 Thread Shinobu Kawai
with the potential affects this could have to the whole system or...it gets resolved. Which, I guess, makes a good reason for the user guide to be right. Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail

Re: Weird execution of code

2005-04-08 Thread Shinobu Kawai
could affect this? Any other ideas? I am lost... You can investigate by checking the difference between the working and non-working machines. - Which servlet container? Which version? What configuration? - Which platform? Which hardware? Whatever... Best regards, -- Shinobu -- Shinobu Kawai

Re: tools 1.2dev

2005-04-08 Thread Shinobu Kawai
, do i have to checkout from cvs? You can get a nightly snapshot here: http://cvs.apache.org/snapshots/velocity-tools/ ## Subversion, BTW. ;) Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e

Re: variables in a variable (recursive).

2005-04-08 Thread Shinobu Kawai
regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Writing to File

2005-04-06 Thread Shinobu Kawai
-- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Email Text

2005-04-06 Thread Shinobu Kawai
HTML for template in velocity to be read by mt email engine. Velocity is only a template engine. Whether it's a web site or HTML mail, the templates should be the same. :) Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: creating macro libraries

2005-04-06 Thread Shinobu Kawai
to dynamic content bit by bit. And whola! It evolves into a dynamic page, each step working. Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: Writing to File

2005-04-06 Thread Shinobu Kawai
arrays to Strings, but it can be made easily. The constructor of String can be used. http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html#String(byte[], java.lang.String) Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: Writing to File

2005-04-06 Thread Shinobu Kawai
constructors. You should be able to find one that you can specify the encoding. Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Streaming from the middle of a template?

2005-04-05 Thread Shinobu Kawai
(Engine)#evaluate in each of your components, correct? If so, you can just put the Writer in the Context before rendering. context.put(writer, writer) And in the template, $component.render($writer) Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: SortedMap/TreeMap in a tool does not sort

2005-04-05 Thread Shinobu Kawai
less than 1.4, you can use commons-collections http://jakarta.apache.org/commons/collections/ Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: Streaming from the middle of a template?

2005-04-05 Thread Shinobu Kawai
might not be understanding your situation quite well... Right now, how exactly are you calling Velocity in your most-parent component? Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL

Re: Streaming from the middle of a template?

2005-04-05 Thread Shinobu Kawai
the Writer in the Context there. Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

creating macro libraries

2005-04-02 Thread Shinobu Kawai
you want to do? - What have you tried so far? - What results did you get? - What results did you expect? Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Velocity - Double Rendering

2005-04-01 Thread Shinobu Kawai
Hi Krishnan, I am trying to render a Velocity page using double rendering Technique(Velocity generates Velocity) Check out the RenderTool. :) http://jakarta.apache.org/velocity/tools/generic/ Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: Loading templates from classpath

2005-04-01 Thread Shinobu Kawai
/bugzilla/show_bug.cgi?id=22419 http://issues.apache.org/bugzilla/show_bug.cgi?id=31703 Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: macro help (was need implement like AOP)

2005-04-01 Thread Shinobu Kawai
Hi uday, Ok collection object is working , i need to use an Hash Map. Can any one of u help me ... Can you show us how you would want to use it? Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe

Re: Loading templates from classpath

2005-04-01 Thread Shinobu Kawai
). Again I could not find any examples about this. You got the picture! A partial sample can be found here: http://jakarta.apache.org/velocity/developer-guide.html#Miscellaneous%20Details Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: Loading templates from classpath

2005-04-01 Thread Shinobu Kawai
, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Comparing null...

2005-03-30 Thread Shinobu Kawai
Hi Sashi, Can we compare null condition in velocity # if ($type != null) #end Check out here for more... http://wiki.apache.org/jakarta-velocity/VelocityFAQ Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: Trying to download veltags

2005-03-30 Thread Shinobu Kawai
://jakarta.apache.org/velocity/veltag.html#Building%20The%20Velocity%20Taglib So, if one way fails, try the other. http://jakarta.apache.org/velocity/veltag.html#nonJJAR%20build Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: Trying to download veltags

2005-03-30 Thread Shinobu Kawai
getjars Which fails of the moment, so you'll need to do the Non-JJAR Traditional Build. Doesn't seem to be documented, but I think you'll need to use the build_nojjar.xml ant script. Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

Re: Accessing Java System properties using Velocity

2005-03-29 Thread Shinobu Kawai
://jakarta.apache.org/velocity/developer-guide.html#The%20Context Probably might be a newbie question because it's just my 2nd week working on Velocity. Any thoughts would be sincerely appreciated. Don't worry, that's how we all start. ;) Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED

  1   2   3   4   >