<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>user@velocity.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/velocity-user/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/velocity-user/"/>
<id>http://mail-archives.apache.org/mod_mbox/velocity-user/</id>
<updated>2009-12-09T07:31:09Z</updated>
<entry>
<title>Re: What's the easiest way</title>
<author><name>Steve Cohen &lt;scohen@javactivity.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200912.mbox/%3c4B182E87.9020209@javactivity.org%3e"/>
<id>urn:uuid:%3c4B182E87-9020209@javactivity-org%3e</id>
<updated>2009-12-03T21:32:55Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Nathan Bubna wrote:
&gt; All blank spaces in what?  A template, a section of a template, or a
&gt; string or both?  If a string, you can call all public java.lang.String
&gt; methods, so if you use Java 5+, you can just avail yourself the
&gt; replace methods.  If a template, it depends on how you are a storing
&gt; that resource.  If a section of a template, you could wrap it in a
&gt; #define block, render the block into a string and then use the
&gt; string's replace method, as above.
&gt; 
&gt; 2009/12/3 Steve Cohen &lt;scohen@javactivity.org&gt;:
&gt;&gt; in Velocity to convert all blank spaces to &amp;nbsp;?
&gt;&gt;
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
&gt;&gt; For additional commands, e-mail: user-help@velocity.apache.org
&gt;&gt;
&gt;&gt;
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
&gt; For additional commands, e-mail: user-help@velocity.apache.org
&gt; 
&gt; 
&gt; 
Never mind, found out I didn't need to do it anyway.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: What's the easiest way</title>
<author><name>Nathan Bubna &lt;nbubna@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200912.mbox/%3c4d651da50912031321o63426b37s46fb162ea2ab0a19@mail.gmail.com%3e"/>
<id>urn:uuid:%3c4d651da50912031321o63426b37s46fb162ea2ab0a19@mail-gmail-com%3e</id>
<updated>2009-12-03T21:21:16Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
All blank spaces in what?  A template, a section of a template, or a
string or both?  If a string, you can call all public java.lang.String
methods, so if you use Java 5+, you can just avail yourself the
replace methods.  If a template, it depends on how you are a storing
that resource.  If a section of a template, you could wrap it in a
#define block, render the block into a string and then use the
string's replace method, as above.

2009/12/3 Steve Cohen &lt;scohen@javactivity.org&gt;:
&gt; in Velocity to convert all blank spaces to &amp;nbsp;?
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
&gt; For additional commands, e-mail: user-help@velocity.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>What's the easiest way</title>
<author><name>Steve Cohen &lt;scohen@javactivity.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200912.mbox/%3c4B17E665.5020303@javactivity.org%3e"/>
<id>urn:uuid:%3c4B17E665-5020303@javactivity-org%3e</id>
<updated>2009-12-03T16:25:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
in Velocity to convert all blank spaces to &amp;nbsp;?

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Problem when using CLOB for storing template in Oracle DB</title>
<author><name>&quot;Seema Richard&quot; &lt;Seema.Richard@ust-global.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200912.mbox/%3cDA1D021805255B44995CCABCA86DD61C04A8FC79@TRVMSG.ustr.com%3e"/>
<id>urn:uuid:%3cDA1D021805255B44995CCABCA86DD61C04A8FC79@TRVMSG-ustr-com%3e</id>
<updated>2009-12-02T04:01:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

 

We are using DataSourceResourceLoader for getting the velocity template
from an Oracle table. This works fine when the template field is
varchar. But when the field type was changed to CLOB, the content is
empty. Is there any solution to this problem?

 

Here is the example code.

 

&lt;code&gt;

import java.io.StringWriter;

import java.sql.Connection;

import java.sql.ResultSet;

import java.sql.Statement;

 

import javax.sql.DataSource;

 

import org.apache.log4j.BasicConfigurator;

import org.apache.log4j.Logger;

import org.apache.velocity.Template;

import org.apache.velocity.VelocityContext;

import org.apache.velocity.app.VelocityEngine;

import org.apache.velocity.runtime.RuntimeConstants;

import
org.apache.velocity.runtime.resource.loader.DataSourceResourceLoader;

import org.springframework.context.ApplicationContext;

import
org.springframework.context.support.ClassPathXmlApplicationContext;

public class Example2

{

       public static String LOGGER_NAME = "velexample";

 

    public static void main( String[] args )

        throws Exception

    {

      ApplicationContext appContext = new
ClassPathXmlApplicationContext("dataAccessContext-framework.xml");

      DataSource dataSource =
(DataSource)appContext.getBean("dataSource");

      BasicConfigurator.configure();

 

        Logger log = Logger.getLogger( LOGGER_NAME );

 

        log.info("Log4jLoggerExample: ready to start velocity");

 

        /*

         *  now create a new VelocityEngine instance, and

         *  configure it to use the category

         */

 

 

        VelocityEngine ve = new VelocityEngine();

        

        /*  Setting the properties of the velocity engine */

        DataSourceResourceLoader ds = new DataSourceResourceLoader();

        ds.setDataSource(dataSource);

        ve.setProperty("resource.loader","ds");

        ve.setProperty("ds.resource.loader.instance",ds);

 
ve.setProperty("ds.resource.loader.resource.table","TB_VELOCITY_TEMPLATE
");

 
ve.setProperty("ds.resource.loader.resource.keycolumn","TEMPLATE_ID");

       //
ve.setProperty("ds.resource.loader.resource.templatecolumn","TEMP_DEF");

 
//ve.setProperty("ds.resource.loader.resource.templatecolumn","TEMPLATE_
LONG_DEFINITION");

 
ve.setProperty("ds.resource.loader.resource.templatecolumn","TEMPLATE_DE
FINITION");

 
ve.setProperty("ds.resource.loader.resource.timestampcolumn","TIME_STAMP
");

        ve.setProperty("ds.resource.loader.cache","false");

 
ve.setProperty("ds.resource.loader.modificationCheckInterval",60L);

 

        ve.setProperty( RuntimeConstants.RUNTIME_LOG_LOGSYSTEM_CLASS,

        "org.apache.velocity.runtime.log.Log4JLogChute" );

 

        ve.setProperty("runtime.log.logsystem.log4j.logger",

                      LOGGER_NAME);

 

        /*  Initializing the velocity engine  */

        ve.init();

                   

        /*  next, get the Template  */

        Template t = ve.getTemplate("1");

        //Template t = ve.getTemplate("template602");

        System.out.println("111"+t.getData());

        /*  create a context and add data */

        VelocityContext context = new VelocityContext();

        context.put("user", "World");

        /* now render the template into a StringWriter */

        StringWriter writer = new StringWriter();

        t.merge( context, writer );

        /* show the World */

        System.out.println("222");

        System.out.println( writer.toString() ); 

        System.out.println("333");

    }

}

 

&lt;/code&gt;

 

Thanks,

Seema

 



</pre>
</div>
</content>
</entry>
<entry>
<title>Elena Lozina/ASVT out of office</title>
<author><name>&quot;Elena Lozina/ASVT&quot; &lt;eel@aerosvit.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200911.mbox/%3cOF8049C000.B676CE69-ONC2257676.007E671B-C2257676.007E671B@aerosvit.com%3e"/>
<id>urn:uuid:%3cOF8049C000-B676CE69-ONC2257676-007E671B-C2257676-007E671B@aerosvit-com%3e</id>
<updated>2009-11-22T23:00:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>




ñ ÂÕÄÕ ÏÔÓÕÔÓÔ×Ï×ÁÔØ ÎÁ ÒÁÂÏÔÅ ÎÁÞÉÎÁÑ Ó  30.04.2009 É ÎÅ ×ÅÒÎÕÓØ ÄÏ
01.07.2010.

Hi,

I am away on maternity leave, for any question ,please, contact by e-mail:
international_sales_directorate@aerosvit.com
or by phone +380 44 496 79 75


Dear Asia pacific Travel Partners,

For any issues , please, contact Mr. Vadim Smelianskiy , Aerosvit Airlines
regional director SouthAsia

Mr. Smelianskiy contact details are below:

All Seasons Place, M-Thai Tower, 5th Floor, Suite 5B
87 Wireless Road, Phatumwan, Bangkok 10330, Thailand
Tel. (+66) (0) 2 654 11 96/7/8
Mob. (+66) (0) 81 987 29 42
Fax. (+66) (0) 2 654 11 86
e-mail: vsmelyansky2004@yahoo.com



Sincerely,

Mrs. Elena Lozina
Senior sales specialist
Off-line Sales Department

AeroSvit Airlines
01032., Kiev, Ukraine
58A, T. Shevchenko blvd.
e-mail: eel@aerosvit.com
ph./fax: + 380 44 496 79 75

www.aerosvit.com
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Problems while testing templates with JUnit</title>
<author><name>Will Glass-Husain &lt;wglasshusain@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200911.mbox/%3c7992831B-0AD3-4F03-9944-6E7F793883AC@gmail.com%3e"/>
<id>urn:uuid:%3c7992831B-0AD3-4F03-9944-6E7F793883AC@gmail-com%3e</id>
<updated>2009-11-20T01:55:29Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I'm guessing it's different platform style of newlines. In velocity we  
do a normalization in the strings before comparing. Another  
possibility is a tab or nonbreaking space (char a0) bring compared  
with a space.

Will

On Nov 19, 2009, at 2:54 PM, "Steve O'Hara" &lt;sohara@pivotal-solutions.co.uk 
 &gt; wrote:

&gt; Is it possible that the strings are not both the same character  
&gt; encoding
&gt; - they look the same in an editor but are not both Unicode?  Is that
&gt; even possible?  Just a thought.
&gt;
&gt; Steve
&gt;
&gt; -----Original Message-----
&gt; From:
&gt; user-return-21006-sohara=pivotal-solutions.co.uk@velocity.apache.org
&gt; [mailto:user-return-21006-sohara=pivotal- 
&gt; solutions.co.uk@velocity.apache
&gt; .org] On Behalf Of Kai Kousa
&gt; Sent: 27 October 2009 06:37
&gt; To: user@velocity.apache.org
&gt; Subject: Problems while testing templates with JUnit
&gt;
&gt; Hi!
&gt;
&gt; I'm using Velocity-1.6.2 to render some javascripts. To make sure it's
&gt; working, I have written a test case that compares the generated string
&gt; to the expected string.
&gt;
&gt; I'm now at a point where the test case is failing but I cannot figure
&gt; out why. Eclipse's JUnit plugin can't even show the difference between
&gt; the generated and the expected strings. I've tried saving the  
&gt; results to
&gt;
&gt; separate files and running diff on them. But even diff can't notice  
&gt; any
&gt; difference between the two strings. However, when call length()-method
&gt; on both string they return different results(563 and 571).
&gt;
&gt; In a nutshell: the generated string doesn't seem to have any  
&gt; differences
&gt;
&gt; between to expected string but the test still fails.
&gt;
&gt; Any ideas what might cause this? Something to do with encodings or
&gt; similar?
&gt;
&gt; Thanks,
&gt; Kai
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
&gt; For additional commands, e-mail: user-help@velocity.apache.org
&gt;
&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
&gt; For additional commands, e-mail: user-help@velocity.apache.org
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Elena Lozina/ASVT out of office</title>
<author><name>&quot;Elena Lozina/ASVT&quot; &lt;eel@aerosvit.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200911.mbox/%3cOF666B11DB.7BAA4E8A-ONC2257673.007E683B-C2257673.007E6837@aerosvit.com%3e"/>
<id>urn:uuid:%3cOF666B11DB-7BAA4E8A-ONC2257673-007E683B-C2257673-007E6837@aerosvit-com%3e</id>
<updated>2009-11-19T23:00:42Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>




ñ ÂÕÄÕ ÏÔÓÕÔÓÔ×Ï×ÁÔØ ÎÁ ÒÁÂÏÔÅ ÎÁÞÉÎÁÑ Ó  30.04.2009 É ÎÅ ×ÅÒÎÕÓØ ÄÏ
01.07.2010.

Hi,

I am away on maternity leave, for any question ,please, contact by e-mail:
international_sales_directorate@aerosvit.com
or by phone +380 44 496 79 75


Dear Asia pacific Travel Partners,

For any issues , please, contact Mr. Vadim Smelianskiy , Aerosvit Airlines
regional director SouthAsia

Mr. Smelianskiy contact details are below:

All Seasons Place, M-Thai Tower, 5th Floor, Suite 5B
87 Wireless Road, Phatumwan, Bangkok 10330, Thailand
Tel. (+66) (0) 2 654 11 96/7/8
Mob. (+66) (0) 81 987 29 42
Fax. (+66) (0) 2 654 11 86
e-mail: vsmelyansky2004@yahoo.com



Sincerely,

Mrs. Elena Lozina
Senior sales specialist
Off-line Sales Department

AeroSvit Airlines
01032., Kiev, Ukraine
58A, T. Shevchenko blvd.
e-mail: eel@aerosvit.com
ph./fax: + 380 44 496 79 75

www.aerosvit.com
</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Problems while testing templates with JUnit</title>
<author><name>&quot;Steve O'Hara&quot; &lt;sohara@pivotal-solutions.co.uk&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200911.mbox/%3cB5D654F05C12C74582A1BA9B4420BA6D149DA7@magiclause.com%3e"/>
<id>urn:uuid:%3cB5D654F05C12C74582A1BA9B4420BA6D149DA7@magiclause-com%3e</id>
<updated>2009-11-19T22:54:36Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Is it possible that the strings are not both the same character encoding
- they look the same in an editor but are not both Unicode?  Is that
even possible?  Just a thought.

Steve

-----Original Message-----
From:
user-return-21006-sohara=pivotal-solutions.co.uk@velocity.apache.org
[mailto:user-return-21006-sohara=pivotal-solutions.co.uk@velocity.apache
.org] On Behalf Of Kai Kousa
Sent: 27 October 2009 06:37
To: user@velocity.apache.org
Subject: Problems while testing templates with JUnit

Hi!

I'm using Velocity-1.6.2 to render some javascripts. To make sure it's 
working, I have written a test case that compares the generated string 
to the expected string.

I'm now at a point where the test case is failing but I cannot figure 
out why. Eclipse's JUnit plugin can't even show the difference between 
the generated and the expected strings. I've tried saving the results to

separate files and running diff on them. But even diff can't notice any 
difference between the two strings. However, when call length()-method 
on both string they return different results(563 and 571).

In a nutshell: the generated string doesn't seem to have any differences

between to expected string but the test still fails.

Any ideas what might cause this? Something to do with encodings or
similar?

Thanks,
Kai

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[Fwd: Re: $velocityHasNext always returning false (Velocity 1.6.2)]</title>
<author><name>Bogdan Mocanu &lt;bogdan.mocanu.notifications@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200911.mbox/%3c4AFD7D48.2010007@gmail.com%3e"/>
<id>urn:uuid:%3c4AFD7D48-2010007@gmail-com%3e</id>
<updated>2009-11-13T15:37:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello,

I noticed a space between the name of the property and the value. Try to 
remove that, just to eliminate this from the possible causes. So instead 
of having this in your velocity.properties:

directive.foreach.iterator.name = velocityHasNext

put this:

directive.foreach.iterator.name=velocityHasNext

You could also remove the property completely, since "velocityHasNext" 
is the default name. Please try this, and see if you get any results.

Regards,
Bogdan

mjparme wrote:
&gt; It appears that $velocityHasNext is always returning false.
&gt;
&gt; I have this in my template:
&gt;
&gt; #foreach(${column} in
&gt; ${columns})${column.columnName}#if(${velocityHasNext}),#end#end
&gt;
&gt; The comma is never printed. However, if I change the condition to something
&gt; that is definitely true the comma printed, i.e.:
&gt;
&gt; #foreach(${column} in ${columns})${column.columnName}#if(1 &gt;0),#end#end
&gt;
&gt; I have this property in velocity.properties:
&gt;
&gt; directive.foreach.iterator.name = velocityHasNext
&gt;
&gt; I just want to make sure I am not doing something stupid/obviously wrong
&gt; before opening an issue.
&gt;
&gt; Can anyone provide insight?
&gt;   

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>$velocityHasNext always returning false (Velocity 1.6.2)</title>
<author><name>mjparme &lt;mjparmeley@west.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200911.mbox/%3c26338270.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26338270-post@talk-nabble-com%3e</id>
<updated>2009-11-13T15:22:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

It appears that $velocityHasNext is always returning false.

I have this in my template:

#foreach(${column} in
${columns})${column.columnName}#if(${velocityHasNext}),#end#end

The comma is never printed. However, if I change the condition to something
that is definitely true the comma printed, i.e.:

#foreach(${column} in ${columns})${column.columnName}#if(1 &gt;0),#end#end

I have this property in velocity.properties:

directive.foreach.iterator.name = velocityHasNext

I just want to make sure I am not doing something stupid/obviously wrong
before opening an issue.

Can anyone provide insight?
-- 
View this message in context: http://old.nabble.com/%24velocityHasNext-always-returning-false-%28Velocity-1.6.2%29-tp26338270p26338270.html
Sent from the Velocity - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: property name constructed from string and the value of another	property</title>
<author><name>Alexander &lt;the.malkolm@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200911.mbox/%3c2eb298b10911120813y6711f6eco208afd4190a8b020@mail.gmail.com%3e"/>
<id>urn:uuid:%3c2eb298b10911120813y6711f6eco208afd4190a8b020@mail-gmail-com%3e</id>
<updated>2009-11-12T16:13:28Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Its possible. Read about #evaluate macro

2009/11/12 dirk ooms &lt;dirk@onesparrow.com&gt;

&gt; Dear List,
&gt;
&gt; i had hoped it would be possible to write something like:
&gt;
&gt; ${foo${anotherProperty}}
&gt;
&gt; to obtain the value of the property foobar in case the value of
&gt; anotherProperty is 'bar'.
&gt;
&gt; but this syntax is not allowed. are there ways to construct the name of
&gt; a property from the value of another property?
&gt;
&gt; cheers,
&gt; dirk
&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
&gt; For additional commands, e-mail: user-help@velocity.apache.org
&gt;
&gt;


-- 
Regards,
Alexander


</pre>
</div>
</content>
</entry>
<entry>
<title>property name constructed from string and the value of another	property</title>
<author><name>dirk ooms &lt;dirk@onesparrow.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200911.mbox/%3c1258041832.31344.9.camel@venus%3e"/>
<id>urn:uuid:%3c1258041832-31344-9-camel@venus%3e</id>
<updated>2009-11-12T16:03:52Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Dear List,

i had hoped it would be possible to write something like:

${foo${anotherProperty}}

to obtain the value of the property foobar in case the value of
anotherProperty is 'bar'.

but this syntax is not allowed. are there ways to construct the name of
a property from the value of another property?

cheers,
dirk


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Include output from another servlet</title>
<author><name>Antonio Petrelli &lt;antonio.petrelli@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200911.mbox/%3caae96ca0911120331jc2b6920y4d3037ff01a0c4cd@mail.gmail.com%3e"/>
<id>urn:uuid:%3caae96ca0911120331jc2b6920y4d3037ff01a0c4cd@mail-gmail-com%3e</id>
<updated>2009-11-12T11:31:55Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
2009/11/12 Ben Short &lt;ben@benshort.co.uk&gt;:
&gt; Using jsp I can include the output of another servlet using the following
&gt;
&gt; &lt;jsp:include page="/another/servlet"/&gt;
&gt;
&gt; Can the same thing be done with velocity?

Try with the import tool:
http://velocity.apache.org/tools/devel/javadoc/org/apache/velocity/tools/view/ImportTool.html

Ciao
Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Include output from another servlet</title>
<author><name>Ben Short &lt;ben@benshort.co.uk&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200911.mbox/%3c4e4f46500911120327w6ab03477lf624865954408fe@mail.gmail.com%3e"/>
<id>urn:uuid:%3c4e4f46500911120327w6ab03477lf624865954408fe@mail-gmail-com%3e</id>
<updated>2009-11-12T11:27:26Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

Using jsp I can include the output of another servlet using the following

&lt;jsp:include page="/another/servlet"/&gt;

Can the same thing be done with velocity?

Regards

Ben


</pre>
</div>
</content>
</entry>
<entry>
<title>Elena Lozina/ASVT out of office</title>
<author><name>&quot;Elena Lozina/ASVT&quot; &lt;eel@aerosvit.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200911.mbox/%3cOF48D3D93E.E10B10FB-ONC2257668.007E68A1-C2257668.007E68A3@aerosvit.com%3e"/>
<id>urn:uuid:%3cOF48D3D93E-E10B10FB-ONC2257668-007E68A1-C2257668-007E68A3@aerosvit-com%3e</id>
<updated>2009-11-08T23:00:43Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>




ñ ÂÕÄÕ ÏÔÓÕÔÓÔ×Ï×ÁÔØ ÎÁ ÒÁÂÏÔÅ ÎÁÞÉÎÁÑ Ó  30.04.2009 É ÎÅ ×ÅÒÎÕÓØ ÄÏ
01.07.2010.

Hi,

I am away on maternity leave, for any question ,please, contact by e-mail:
international_sales_directorate@aerosvit.com
or by phone +380 44 496 79 75


Dear Asia pacific Travel Partners,

For any issues , please, contact Mr. Vadim Smelianskiy , Aerosvit Airlines
regional director SouthAsia

Mr. Smelianskiy contact details are below:

All Seasons Place, M-Thai Tower, 5th Floor, Suite 5B
87 Wireless Road, Phatumwan, Bangkok 10330, Thailand
Tel. (+66) (0) 2 654 11 96/7/8
Mob. (+66) (0) 81 987 29 42
Fax. (+66) (0) 2 654 11 86
e-mail: vsmelyansky2004@yahoo.com



Sincerely,

Mrs. Elena Lozina
Senior sales specialist
Off-line Sales Department

AeroSvit Airlines
01032., Kiev, Ukraine
58A, T. Shevchenko blvd.
e-mail: eel@aerosvit.com
ph./fax: + 380 44 496 79 75

www.aerosvit.com
</pre>
</div>
</content>
</entry>
<entry>
<title>properties.load error</title>
<author><name>Angela Day &lt;akcday@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200911.mbox/%3c11116.81165.qm@web33306.mail.mud.yahoo.com%3e"/>
<id>urn:uuid:%3c11116-81165-qm@web33306-mail-mud-yahoo-com%3e</id>
<updated>2009-11-06T22:53:10Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I am trying to upgrade from Velocity 1.3 to 1.6.2.  I replace the two
jar files and get the following error.  This question is posted on the
internet multiple times, with no solution.  If you can help me out, I
would really appreciate it.


Thanks,
Angela


BUILD FAILED
C:\workspace\contract\build.xml:157: Following error occured while executing thi
s line
C:\workspace\contract\build-torque.xml:503: Following error occured while execut
ing this line
C:\workspace\contract\build-torque.xml:531: Exception thrown by 'properties.load
'. For more information consult the velocity log, or invoke ant with the -debug
flag.
        at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec
tHelper.java:537)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:385)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:301)
        at org.apache.tools.ant.Target.performTasks(Target.java:328)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
        at org.apache.tools.ant.Main.runBuild(Main.java:632)
        at org.apache.tools.ant.Main.startAnt(Main.java:183)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
Caused by: C:\workspace\contract\build-torque.xml:503: Following error occured w
hile executing this line
C:\workspace\contract\build-torque.xml:531: Exception thrown by 'properties.load
'. For more information consult the velocity log, or invoke ant with the -debug
flag.
        at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec
tHelper.java:537)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:385)
        at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)

        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:301)
        at org.apache.tools.ant.Target.performTasks(Target.java:328)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
        ... 10 more
Caused by: C:\workspace\contract\build-torque.xml:531: Exception thrown by 'prop
erties.load'. For more information consult the velocity log, or invoke ant with
the -debug flag.
        at org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java:596)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)

 
Angela Day
National Autism Association of Central Texas

http://www.naacentraltexas.org
formally FEAT Austin

</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Turning Off Directives?</title>
<author><name>&quot;White, Tim&quot; &lt;Tim.White@qwest.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200911.mbox/%3cD5AF464FC9059946B21D555C88BC43120A8728F480@qtdenexmbm22.AD.QINTRA.COM%3e"/>
<id>urn:uuid:%3cD5AF464FC9059946B21D555C88BC43120A8728F480@qtdenexmbm22-AD-QINTRA-COM%3e</id>
<updated>2009-11-06T14:10:45Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I don't recall opening a JIRA on this particular item, but I will do so now. :)

________________________________________
From: Nathan Bubna [nbubna@gmail.com]
Sent: Thursday, November 05, 2009 10:33 AM
To: Velocity Users List
Subject: Re: Turning Off Directives?

I haven't ever tried it, but there is a
RuntimeInstance.removeDirective(String name) method.  Of course, then
you would have to use RuntimeInstance directly, instead of the
VelocityEngine wrapper.  That won't cost you much in features (just a
bit of evaluate() wrapping code), but it might not fit with your
setup.

Have you ever opened a JIRA issue about this RFE?

On Wed, Nov 4, 2009 at 1:56 PM, White, Tim &lt;Tim.White@qwest.com&gt; wrote:
&gt; I asked this a long while back, but it's coming up again, so I'll see if anything's changed
in the 1.6.x Velocity world...
&gt;
&gt; Is there a way, other than hacking the velocity .jar, to change the Directive list?
&gt;
&gt; Specifically, we want to turn off #include(), without having to change the velocity .jar
file.
&gt;
&gt; Thanks!
&gt;
&gt; Tim
&gt;
&gt; ________________________________
&gt; This communication is the property of Qwest and may contain confidential or
&gt; privileged information. Unauthorized use of this communication is strictly
&gt; prohibited and may be unlawful. If you have received this communication
&gt; in error, please immediately notify the sender by reply e-mail and destroy
&gt; all copies of the communication and any attachments.
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org

This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful.  If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Turning Off Directives?</title>
<author><name>Nathan Bubna &lt;nbubna@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200911.mbox/%3c4d651da50911050933l66d30e09m2b1684ed53e89f0f@mail.gmail.com%3e"/>
<id>urn:uuid:%3c4d651da50911050933l66d30e09m2b1684ed53e89f0f@mail-gmail-com%3e</id>
<updated>2009-11-05T17:33:57Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I haven't ever tried it, but there is a
RuntimeInstance.removeDirective(String name) method.  Of course, then
you would have to use RuntimeInstance directly, instead of the
VelocityEngine wrapper.  That won't cost you much in features (just a
bit of evaluate() wrapping code), but it might not fit with your
setup.

Have you ever opened a JIRA issue about this RFE?

On Wed, Nov 4, 2009 at 1:56 PM, White, Tim &lt;Tim.White@qwest.com&gt; wrote:
&gt; I asked this a long while back, but it's coming up again, so I'll see if anything's changed
in the 1.6.x Velocity world...
&gt;
&gt; Is there a way, other than hacking the velocity .jar, to change the Directive list?
&gt;
&gt; Specifically, we want to turn off #include(), without having to change the velocity .jar
file.
&gt;
&gt; Thanks!
&gt;
&gt; Tim
&gt;
&gt; ________________________________
&gt; This communication is the property of Qwest and may contain confidential or
&gt; privileged information. Unauthorized use of this communication is strictly
&gt; prohibited and may be unlawful. If you have received this communication
&gt; in error, please immediately notify the sender by reply e-mail and destroy
&gt; all copies of the communication and any attachments.
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Turning Off Directives?</title>
<author><name>&quot;White, Tim&quot; &lt;Tim.White@qwest.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200911.mbox/%3cD5AF464FC9059946B21D555C88BC43120A87794D43@qtdenexmbm22.AD.QINTRA.COM%3e"/>
<id>urn:uuid:%3cD5AF464FC9059946B21D555C88BC43120A87794D43@qtdenexmbm22-AD-QINTRA-COM%3e</id>
<updated>2009-11-05T00:28:12Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hmmm.  That might work...the problem is that we need to be able to not barf if the template
has this in it:

&lt;!--#include virtual="" --&gt;

Right now, it barfs the template.

-----Original Message-----
From: Johann.Weber@eventim.de [mailto:Johann.Weber@eventim.de]
Sent: Wednesday, November 04, 2009 3:13 PM
To: user@velocity.apache.org
Subject: AW: Turning Off Directives?

Why you don't specify your own IncludeEventHandler?

-----Ursprüngliche Nachricht-----
Von: White, Tim [mailto:Tim.White@qwest.com]
Gesendet: Mittwoch, 4. November 2009 22:56
An: Velocity Users List
Betreff: Turning Off Directives?

I asked this a long while back, but it's coming up again, so I'll see if anything's changed
in the 1.6.x Velocity world...

Is there a way, other than hacking the velocity .jar, to change the Directive list?

Specifically, we want to turn off #include(), without having to change the velocity .jar file.

Thanks!

Tim

________________________________
This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful.  If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>AW: Turning Off Directives?</title>
<author><name>&lt;Johann.Weber@eventim.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200911.mbox/%3cAC75449CFA4132498FC739DB14ACA5D903A00041@EXCHANGE.eventim.ag%3e"/>
<id>urn:uuid:%3cAC75449CFA4132498FC739DB14ACA5D903A00041@EXCHANGE-eventim-ag%3e</id>
<updated>2009-11-04T22:13:13Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Why you don't specify your own IncludeEventHandler?

-----Ursprüngliche Nachricht-----
Von: White, Tim [mailto:Tim.White@qwest.com] 
Gesendet: Mittwoch, 4. November 2009 22:56
An: Velocity Users List
Betreff: Turning Off Directives?

I asked this a long while back, but it's coming up again, so I'll see if anything's changed
in the 1.6.x Velocity world...

Is there a way, other than hacking the velocity .jar, to change the Directive list?

Specifically, we want to turn off #include(), without having to change the velocity .jar file.

Thanks!

Tim

________________________________
This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Turning Off Directives?</title>
<author><name>&quot;White, Tim&quot; &lt;Tim.White@qwest.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200911.mbox/%3cD5AF464FC9059946B21D555C88BC43120A87794CF0@qtdenexmbm22.AD.QINTRA.COM%3e"/>
<id>urn:uuid:%3cD5AF464FC9059946B21D555C88BC43120A87794CF0@qtdenexmbm22-AD-QINTRA-COM%3e</id>
<updated>2009-11-04T21:56:16Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I asked this a long while back, but it's coming up again, so I'll see if anything's changed
in the 1.6.x Velocity world...

Is there a way, other than hacking the velocity .jar, to change the Directive list?

Specifically, we want to turn off #include(), without having to change the velocity .jar file.

Thanks!

Tim

________________________________
This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.


</pre>
</div>
</content>
</entry>
<entry>
<title>AUTO: James Wilson is out of office. (returning Fri 08/28/2009)</title>
<author><name>James_Wilson@nmcourt.fed.us</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200910.mbox/%3cOF1DBF21E4.4EC903CE-ON8725765C.00370D91-8725765C.00370D91@uscmail.uscourts.gov%3e"/>
<id>urn:uuid:%3cOF1DBF21E4-4EC903CE-ON8725765C-00370D91-8725765C-00370D91@uscmail-uscourts-gov%3e</id>
<updated>2009-10-27T10:01:19Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I am out of the office from Tue 10/27/2009 until Tue 11/03/2009.

I will respond to your message when I return.


Note: This is an automated response to your message  "Problems while
testing templates with JUnit" sent on 10/27/2009 12:37:24 AM.

This is the only notification you will receive while this person is away.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Problems while testing templates with JUnit</title>
<author><name>Kai Kousa &lt;kai.kousa@jadecon.fi&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200910.mbox/%3c4AE69524.5080709@jadecon.fi%3e"/>
<id>urn:uuid:%3c4AE69524-5080709@jadecon-fi%3e</id>
<updated>2009-10-27T06:37:24Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi!

I'm using Velocity-1.6.2 to render some javascripts. To make sure it's 
working, I have written a test case that compares the generated string 
to the expected string.

I'm now at a point where the test case is failing but I cannot figure 
out why. Eclipse's JUnit plugin can't even show the difference between 
the generated and the expected strings. I've tried saving the results to 
separate files and running diff on them. But even diff can't notice any 
difference between the two strings. However, when call length()-method 
on both string they return different results(563 and 571).

In a nutshell: the generated string doesn't seem to have any differences 
between to expected string but the test still fails.

Any ideas what might cause this? Something to do with encodings or similar?

Thanks,
Kai

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Elena Lozina/ASVT out of office</title>
<author><name>&quot;Elena Lozina/ASVT&quot; &lt;eel@aerosvit.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200910.mbox/%3cOF631F3467.8461C68E-ONC2257654.0078E9D6-C2257654.0078E9D6@aerosvit.com%3e"/>
<id>urn:uuid:%3cOF631F3467-8461C68E-ONC2257654-0078E9D6-C2257654-0078E9D6@aerosvit-com%3e</id>
<updated>2009-10-19T22:00:41Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>




ñ ÂÕÄÕ ÏÔÓÕÔÓÔ×Ï×ÁÔØ ÎÁ ÒÁÂÏÔÅ ÎÁÞÉÎÁÑ Ó  30.04.2009 É ÎÅ ×ÅÒÎÕÓØ ÄÏ
01.07.2010.

Hi,

I am away on maternity leave, for any question ,please, contact by e-mail:
international_sales_directorate@aerosvit.com
or by phone +380 44 496 79 75


Dear Asia pacific Travel Partners,

For any issues , please, contact Mr. Vadim Smelianskiy , Aerosvit Airlines
regional director SouthAsia

Mr. Smelianskiy contact details are below:

All Seasons Place, M-Thai Tower, 5th Floor, Suite 5B
87 Wireless Road, Phatumwan, Bangkok 10330, Thailand
Tel. (+66) (0) 2 654 11 96/7/8
Mob. (+66) (0) 81 987 29 42
Fax. (+66) (0) 2 654 11 86
e-mail: vsmelyansky2004@yahoo.com



Sincerely,

Mrs. Elena Lozina
Senior sales specialist
Off-line Sales Department

AeroSvit Airlines
01032., Kiev, Ukraine
58A, T. Shevchenko blvd.
e-mail: eel@aerosvit.com
ph./fax: + 380 44 496 79 75

www.aerosvit.com
</pre>
</div>
</content>
</entry>
<entry>
<title>Elena Lozina/ASVT out of office</title>
<author><name>&quot;Elena Lozina/ASVT&quot; &lt;eel@aerosvit.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200910.mbox/%3cOF0AABA685.F8F2986A-ONC2257653.0078EA6E-C2257653.0078EA6C@aerosvit.com%3e"/>
<id>urn:uuid:%3cOF0AABA685-F8F2986A-ONC2257653-0078EA6E-C2257653-0078EA6C@aerosvit-com%3e</id>
<updated>2009-10-18T22:00:43Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>




ñ ÂÕÄÕ ÏÔÓÕÔÓÔ×Ï×ÁÔØ ÎÁ ÒÁÂÏÔÅ ÎÁÞÉÎÁÑ Ó  30.04.2009 É ÎÅ ×ÅÒÎÕÓØ ÄÏ
01.07.2010.

Hi,

I am away on maternity leave, for any question ,please, contact by e-mail:
international_sales_directorate@aerosvit.com
or by phone +380 44 496 79 75


Dear Asia pacific Travel Partners,

For any issues , please, contact Mr. Vadim Smelianskiy , Aerosvit Airlines
regional director SouthAsia

Mr. Smelianskiy contact details are below:

All Seasons Place, M-Thai Tower, 5th Floor, Suite 5B
87 Wireless Road, Phatumwan, Bangkok 10330, Thailand
Tel. (+66) (0) 2 654 11 96/7/8
Mob. (+66) (0) 81 987 29 42
Fax. (+66) (0) 2 654 11 86
e-mail: vsmelyansky2004@yahoo.com



Sincerely,

Mrs. Elena Lozina
Senior sales specialist
Off-line Sales Department

AeroSvit Airlines
01032., Kiev, Ukraine
58A, T. Shevchenko blvd.
e-mail: eel@aerosvit.com
ph./fax: + 380 44 496 79 75

www.aerosvit.com
</pre>
</div>
</content>
</entry>
<entry>
<title>Elena Lozina/ASVT out of office</title>
<author><name>&quot;Elena Lozina/ASVT&quot; &lt;eel@aerosvit.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200910.mbox/%3cOF35BAF107.8B554FCD-ONC2257653.0078EA38-C2257653.0078EA31@aerosvit.com%3e"/>
<id>urn:uuid:%3cOF35BAF107-8B554FCD-ONC2257653-0078EA38-C2257653-0078EA31@aerosvit-com%3e</id>
<updated>2009-10-18T22:00:42Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>




ñ ÂÕÄÕ ÏÔÓÕÔÓÔ×Ï×ÁÔØ ÎÁ ÒÁÂÏÔÅ ÎÁÞÉÎÁÑ Ó  30.04.2009 É ÎÅ ×ÅÒÎÕÓØ ÄÏ
01.07.2010.

Hi,

I am away on maternity leave, for any question ,please, contact by e-mail:
international_sales_directorate@aerosvit.com
or by phone +380 44 496 79 75


Dear Asia pacific Travel Partners,

For any issues , please, contact Mr. Vadim Smelianskiy , Aerosvit Airlines
regional director SouthAsia

Mr. Smelianskiy contact details are below:

All Seasons Place, M-Thai Tower, 5th Floor, Suite 5B
87 Wireless Road, Phatumwan, Bangkok 10330, Thailand
Tel. (+66) (0) 2 654 11 96/7/8
Mob. (+66) (0) 81 987 29 42
Fax. (+66) (0) 2 654 11 86
e-mail: vsmelyansky2004@yahoo.com



Sincerely,

Mrs. Elena Lozina
Senior sales specialist
Off-line Sales Department

AeroSvit Airlines
01032., Kiev, Ukraine
58A, T. Shevchenko blvd.
e-mail: eel@aerosvit.com
ph./fax: + 380 44 496 79 75

www.aerosvit.com
</pre>
</div>
</content>
</entry>
<entry>
<title>Elena Lozina/ASVT out of office</title>
<author><name>&quot;Elena Lozina/ASVT&quot; &lt;eel@aerosvit.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200910.mbox/%3cOF973280DA.2368C0A3-ONC2257653.0078EA3A-C2257653.0078EA35@aerosvit.com%3e"/>
<id>urn:uuid:%3cOF973280DA-2368C0A3-ONC2257653-0078EA3A-C2257653-0078EA35@aerosvit-com%3e</id>
<updated>2009-10-18T22:00:42Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>




ñ ÂÕÄÕ ÏÔÓÕÔÓÔ×Ï×ÁÔØ ÎÁ ÒÁÂÏÔÅ ÎÁÞÉÎÁÑ Ó  30.04.2009 É ÎÅ ×ÅÒÎÕÓØ ÄÏ
01.07.2010.

Hi,

I am away on maternity leave, for any question ,please, contact by e-mail:
international_sales_directorate@aerosvit.com
or by phone +380 44 496 79 75


Dear Asia pacific Travel Partners,

For any issues , please, contact Mr. Vadim Smelianskiy , Aerosvit Airlines
regional director SouthAsia

Mr. Smelianskiy contact details are below:

All Seasons Place, M-Thai Tower, 5th Floor, Suite 5B
87 Wireless Road, Phatumwan, Bangkok 10330, Thailand
Tel. (+66) (0) 2 654 11 96/7/8
Mob. (+66) (0) 81 987 29 42
Fax. (+66) (0) 2 654 11 86
e-mail: vsmelyansky2004@yahoo.com



Sincerely,

Mrs. Elena Lozina
Senior sales specialist
Off-line Sales Department

AeroSvit Airlines
01032., Kiev, Ukraine
58A, T. Shevchenko blvd.
e-mail: eel@aerosvit.com
ph./fax: + 380 44 496 79 75

www.aerosvit.com
</pre>
</div>
</content>
</entry>
<entry>
<title>Elena Lozina/ASVT out of office</title>
<author><name>&quot;Elena Lozina/ASVT&quot; &lt;eel@aerosvit.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200910.mbox/%3cOF4FCEEFB6.8704EC25-ONC2257653.0078EA39-C2257653.0078EA34@aerosvit.com%3e"/>
<id>urn:uuid:%3cOF4FCEEFB6-8704EC25-ONC2257653-0078EA39-C2257653-0078EA34@aerosvit-com%3e</id>
<updated>2009-10-18T22:00:42Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>




ñ ÂÕÄÕ ÏÔÓÕÔÓÔ×Ï×ÁÔØ ÎÁ ÒÁÂÏÔÅ ÎÁÞÉÎÁÑ Ó  30.04.2009 É ÎÅ ×ÅÒÎÕÓØ ÄÏ
01.07.2010.

Hi,

I am away on maternity leave, for any question ,please, contact by e-mail:
international_sales_directorate@aerosvit.com
or by phone +380 44 496 79 75


Dear Asia pacific Travel Partners,

For any issues , please, contact Mr. Vadim Smelianskiy , Aerosvit Airlines
regional director SouthAsia

Mr. Smelianskiy contact details are below:

All Seasons Place, M-Thai Tower, 5th Floor, Suite 5B
87 Wireless Road, Phatumwan, Bangkok 10330, Thailand
Tel. (+66) (0) 2 654 11 96/7/8
Mob. (+66) (0) 81 987 29 42
Fax. (+66) (0) 2 654 11 86
e-mail: vsmelyansky2004@yahoo.com



Sincerely,

Mrs. Elena Lozina
Senior sales specialist
Off-line Sales Department

AeroSvit Airlines
01032., Kiev, Ukraine
58A, T. Shevchenko blvd.
e-mail: eel@aerosvit.com
ph./fax: + 380 44 496 79 75

www.aerosvit.com
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: silent references cause strict reference checking to fail</title>
<author><name>Nathan Bubna &lt;nbubna@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200910.mbox/%3c4d651da50910170900p13f721d1r247824d6c5d7c171@mail.gmail.com%3e"/>
<id>urn:uuid:%3c4d651da50910170900p13f721d1r247824d6c5d7c171@mail-gmail-com%3e</id>
<updated>2009-10-17T16:00:55Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I don't use the feature, but my understanding is that strict reference
mode expects all references used to exist in the context.  The quiet
notation--in strict reference mode--is for null values, not invalid
references.

On Fri, Oct 16, 2009 at 9:35 AM, Will Glass-Husain
&lt;wglasshusain@gmail.com&gt; wrote:
&gt; Hi!
&gt;
&gt; With some enthusiasm from my dev team, I just turned strict error
&gt; checking on for the first time.   Not surprisingly, our app
&gt; immediately had some errors.
&gt;
&gt; I was surprised to find that it was failing even with silent
&gt; references.  Does anyone remember if that's intentional?
&gt;
&gt; &lt;input class="signupInput" type="text" id="StxtFirstNames"
&gt; name="firstName" value="$!user.firstName"/&gt;
&gt;
&gt; org.apache.velocity.exception.MethodInvocationException: Variable
&gt; $user has not been set at layout/slide_login.vm[line 13, column 117]
&gt;
&gt; To me that reduces the usefulness of this feature-- we use silent
&gt; references a lot, and it doesn't make sense to me that they would all
&gt; cause errors.  I was hoping to do a better job of find errors like
&gt; "$user.firstname" where $user wasn't set.  But with $!user.firstName I
&gt; now have to go through the site and put an #if in every location I
&gt; want to be blank if its undefined.
&gt;
&gt; Can anyone using this feature comment?
&gt;
&gt; Thanks,
&gt;
&gt; WILL
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
&gt; For additional commands, e-mail: user-help@velocity.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: silent references cause strict reference checking to fail</title>
<author><name>Will Glass-Husain &lt;wglasshusain@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200910.mbox/%3c2f8a5bd60910160953qb63bb17se1ab88f17c2bd67c@mail.gmail.com%3e"/>
<id>urn:uuid:%3c2f8a5bd60910160953qb63bb17se1ab88f17c2bd67c@mail-gmail-com%3e</id>
<updated>2009-10-16T16:53:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Only if you set the property "runtime.references.strict" to true.

WILL


On Fri, Oct 16, 2009 at 9:43 AM, jian chen &lt;chenjian1227@gmail.com&gt; wrote:
&gt; We used $!user.firstName type of notation a lot, it has been very
&gt; helpful. Hope this is not broken in the new releases...
&gt;
&gt; Jian
&gt;
&gt; On 10/16/09, Will Glass-Husain &lt;wglasshusain@gmail.com&gt; wrote:
&gt;&gt; Hi!
&gt;&gt;
&gt;&gt; With some enthusiasm from my dev team, I just turned strict error
&gt;&gt; checking on for the first time.   Not surprisingly, our app
&gt;&gt; immediately had some errors.
&gt;&gt;
&gt;&gt; I was surprised to find that it was failing even with silent
&gt;&gt; references.  Does anyone remember if that's intentional?
&gt;&gt;
&gt;&gt; &lt;input class="signupInput" type="text" id="StxtFirstNames"
&gt;&gt; name="firstName" value="$!user.firstName"/&gt;
&gt;&gt;
&gt;&gt; org.apache.velocity.exception.MethodInvocationException: Variable
&gt;&gt; $user has not been set at layout/slide_login.vm[line 13, column 117]
&gt;&gt;
&gt;&gt; To me that reduces the usefulness of this feature-- we use silent
&gt;&gt; references a lot, and it doesn't make sense to me that they would all
&gt;&gt; cause errors.  I was hoping to do a better job of find errors like
&gt;&gt; "$user.firstname" where $user wasn't set.  But with $!user.firstName I
&gt;&gt; now have to go through the site and put an #if in every location I
&gt;&gt; want to be blank if its undefined.
&gt;&gt;
&gt;&gt; Can anyone using this feature comment?
&gt;&gt;
&gt;&gt; Thanks,
&gt;&gt;
&gt;&gt; WILL
&gt;&gt;
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
&gt;&gt; For additional commands, e-mail: user-help@velocity.apache.org
&gt;&gt;
&gt;&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
&gt; For additional commands, e-mail: user-help@velocity.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: silent references cause strict reference checking to fail</title>
<author><name>jian chen &lt;chenjian1227@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200910.mbox/%3c7ca123910910160943n5c28f5cx47061ad21608e4c3@mail.gmail.com%3e"/>
<id>urn:uuid:%3c7ca123910910160943n5c28f5cx47061ad21608e4c3@mail-gmail-com%3e</id>
<updated>2009-10-16T16:43:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
We used $!user.firstName type of notation a lot, it has been very
helpful. Hope this is not broken in the new releases...

Jian

On 10/16/09, Will Glass-Husain &lt;wglasshusain@gmail.com&gt; wrote:
&gt; Hi!
&gt;
&gt; With some enthusiasm from my dev team, I just turned strict error
&gt; checking on for the first time.   Not surprisingly, our app
&gt; immediately had some errors.
&gt;
&gt; I was surprised to find that it was failing even with silent
&gt; references.  Does anyone remember if that's intentional?
&gt;
&gt; &lt;input class="signupInput" type="text" id="StxtFirstNames"
&gt; name="firstName" value="$!user.firstName"/&gt;
&gt;
&gt; org.apache.velocity.exception.MethodInvocationException: Variable
&gt; $user has not been set at layout/slide_login.vm[line 13, column 117]
&gt;
&gt; To me that reduces the usefulness of this feature-- we use silent
&gt; references a lot, and it doesn't make sense to me that they would all
&gt; cause errors.  I was hoping to do a better job of find errors like
&gt; "$user.firstname" where $user wasn't set.  But with $!user.firstName I
&gt; now have to go through the site and put an #if in every location I
&gt; want to be blank if its undefined.
&gt;
&gt; Can anyone using this feature comment?
&gt;
&gt; Thanks,
&gt;
&gt; WILL
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
&gt; For additional commands, e-mail: user-help@velocity.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>silent references cause strict reference checking to fail</title>
<author><name>Will Glass-Husain &lt;wglasshusain@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200910.mbox/%3c2f8a5bd60910160935i4788e9d1ua20b1d17bec8c6fc@mail.gmail.com%3e"/>
<id>urn:uuid:%3c2f8a5bd60910160935i4788e9d1ua20b1d17bec8c6fc@mail-gmail-com%3e</id>
<updated>2009-10-16T16:35:41Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi!

With some enthusiasm from my dev team, I just turned strict error
checking on for the first time.   Not surprisingly, our app
immediately had some errors.

I was surprised to find that it was failing even with silent
references.  Does anyone remember if that's intentional?

&lt;input class="signupInput" type="text" id="StxtFirstNames"
name="firstName" value="$!user.firstName"/&gt;

org.apache.velocity.exception.MethodInvocationException: Variable
$user has not been set at layout/slide_login.vm[line 13, column 117]

To me that reduces the usefulness of this feature-- we use silent
references a lot, and it doesn't make sense to me that they would all
cause errors.  I was hoping to do a better job of find errors like
"$user.firstname" where $user wasn't set.  But with $!user.firstName I
now have to go through the site and put an #if in every location I
want to be blank if its undefined.

Can anyone using this feature comment?

Thanks,

WILL

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Inhrited public methods not visible to Velocity</title>
<author><name>Nathan Bubna &lt;nbubna@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200910.mbox/%3c4d651da50910150704j45324a7ci196ae20293f824de@mail.gmail.com%3e"/>
<id>urn:uuid:%3c4d651da50910150704j45324a7ci196ae20293f824de@mail-gmail-com%3e</id>
<updated>2009-10-15T14:04:48Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Thu, Oct 15, 2009 at 2:34 AM, Steve O'Hara
&lt;sohara@pivotal-solutions.co.uk&gt; wrote:
&gt; Of course, it turned out to be an error on my part.... sorry about that
&gt;
&gt; However as an aside, I changed the velocity code to call getMethods and
&gt; removed the recursion in ClassMap.java and that worked fine.  I know it's
&gt; only a small thing and it's not exactly a fix because the code isn't broken,
&gt; but maybe it's worth making the change for the small amount of possible
&gt; performance gain.  I'll leave it up to you.

Did all tests pass too?

Historical reasons are all i can think of right now.  It is how it was
done.  I think, too, it was a way to keep out public methods inherited
from protected classes.  I kinda doubt the current dev community
(myself included) would care about that anymore.

I'm not sure whether there's much performance gain to be had by the
swap, but certainly it seems like it would simplify the code and
perhaps obviate such strange bugs as VELOCITY-736.

If you would be so kind as to open a JIRA issue on this, i think it is
something we should consider.

&gt; Cheers,
&gt; Steve
&gt;
&gt;
&gt; -----Original Message-----
&gt; From: Steve O'Hara
&gt; Sent: 15 October 2009 09:22
&gt; To: Velocity Users List
&gt; Subject: RE: Inhrited public methods not visible to Velocity
&gt;
&gt; Hi Nathan,
&gt;
&gt; Thanks for your reply - I'm using v6.2
&gt; Yes, the abstract class is public and the methods in the abstract class are also public.
&gt;
&gt; I've taken another look at ClassMap.java and can see how you're recursing up the super
classes to get all the public methods.  Forgive my naivety, but why is this necessary?  Wouldn't
a simple call to getMethods() do this for you which would also save having to check if the
method is public?
&gt;
&gt; I'll see if I can debug why the introspector is not working in my case and come back
to the list.
&gt;
&gt; Steve
&gt;
&gt;
&gt; -----Original Message-----
&gt; From: user-return-20992-sohara=pivotal-solutions.co.uk@velocity.apache.org [mailto:user-return-20992-sohara=pivotal-solutions.co.uk@velocity.apache.org]
On Behalf Of Nathan Bubna
&gt; Sent: 14 October 2009 20:38
&gt; To: Velocity Users List
&gt; Subject: Re: Inhrited public methods not visible to Velocity
&gt;
&gt; On Wed, Oct 14, 2009 at 8:44 AM, Steve O'Hara
&gt; &lt;sohara@pivotal-solutions.co.uk&gt; wrote:
&gt;&gt; I have a class that extends an abstract class which is placed into a
&gt;&gt; Velocity context.  However, the public methods of the abstract class are
&gt;&gt; not visible to Velocity.
&gt;
&gt; is the abstract class public?  VelocityTools itself does this successfully.
&gt;
&gt;&gt; I looked at the source code and can see that getDeclaredMethods() is
&gt;&gt; being used rather than getMethods()
&gt;&gt;
&gt;&gt; Is there a reason for that?
&gt;
&gt; Yes, the intention is to support public methods declared in public
&gt; classes.  So we navigate the class heirarchy looking for those.
&gt;
&gt; It's also always helpful with such questions to mention the version of
&gt; Velocity being used.
&gt;
&gt;&gt;
&gt;&gt; Thanks,
&gt;&gt; Steve
&gt;&gt;
&gt;&gt;
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
&gt;&gt; For additional commands, e-mail: user-help@velocity.apache.org
&gt;&gt;
&gt;&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
&gt; For additional commands, e-mail: user-help@velocity.apache.org
&gt;
&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
&gt; For additional commands, e-mail: user-help@velocity.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Inhrited public methods not visible to Velocity</title>
<author><name>&quot;Steve O'Hara&quot; &lt;sohara@pivotal-solutions.co.uk&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200910.mbox/%3cB5D654F05C12C74582A1BA9B4420BA6D149B05@magiclause.com%3e"/>
<id>urn:uuid:%3cB5D654F05C12C74582A1BA9B4420BA6D149B05@magiclause-com%3e</id>
<updated>2009-10-15T09:34:22Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Of course, it turned out to be an error on my part.... sorry about that

However as an aside, I changed the velocity code to call getMethods and removed the recursion
in ClassMap.java and that worked fine.  I know it's only a small thing and it's not exactly
a fix because the code isn't broken, but maybe it's worth making the change for the small
amount of possible performance gain.  I'll leave it up to you.

Cheers,
Steve


-----Original Message-----
From: Steve O'Hara 
Sent: 15 October 2009 09:22
To: Velocity Users List
Subject: RE: Inhrited public methods not visible to Velocity

Hi Nathan,

Thanks for your reply - I'm using v6.2
Yes, the abstract class is public and the methods in the abstract class are also public.

I've taken another look at ClassMap.java and can see how you're recursing up the super classes
to get all the public methods.  Forgive my naivety, but why is this necessary?  Wouldn't a
simple call to getMethods() do this for you which would also save having to check if the method
is public?  

I'll see if I can debug why the introspector is not working in my case and come back to the
list.

Steve


-----Original Message-----
From: user-return-20992-sohara=pivotal-solutions.co.uk@velocity.apache.org [mailto:user-return-20992-sohara=pivotal-solutions.co.uk@velocity.apache.org]
On Behalf Of Nathan Bubna
Sent: 14 October 2009 20:38
To: Velocity Users List
Subject: Re: Inhrited public methods not visible to Velocity

On Wed, Oct 14, 2009 at 8:44 AM, Steve O'Hara
&lt;sohara@pivotal-solutions.co.uk&gt; wrote:
&gt; I have a class that extends an abstract class which is placed into a
&gt; Velocity context.  However, the public methods of the abstract class are
&gt; not visible to Velocity.

is the abstract class public?  VelocityTools itself does this successfully.

&gt; I looked at the source code and can see that getDeclaredMethods() is
&gt; being used rather than getMethods()
&gt;
&gt; Is there a reason for that?

Yes, the intention is to support public methods declared in public
classes.  So we navigate the class heirarchy looking for those.

It's also always helpful with such questions to mention the version of
Velocity being used.

&gt;
&gt; Thanks,
&gt; Steve
&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
&gt; For additional commands, e-mail: user-help@velocity.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Inhrited public methods not visible to Velocity</title>
<author><name>&quot;Steve O'Hara&quot; &lt;sohara@pivotal-solutions.co.uk&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200910.mbox/%3cB5D654F05C12C74582A1BA9B4420BA6D149B01@magiclause.com%3e"/>
<id>urn:uuid:%3cB5D654F05C12C74582A1BA9B4420BA6D149B01@magiclause-com%3e</id>
<updated>2009-10-15T08:21:30Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Nathan,

Thanks for your reply - I'm using v6.2
Yes, the abstract class is public and the methods in the abstract class are also public.

I've taken another look at ClassMap.java and can see how you're recursing up the super classes
to get all the public methods.  Forgive my naivety, but why is this necessary?  Wouldn't a
simple call to getMethods() do this for you which would also save having to check if the method
is public?  

I'll see if I can debug why the introspector is not working in my case and come back to the
list.

Steve


-----Original Message-----
From: user-return-20992-sohara=pivotal-solutions.co.uk@velocity.apache.org [mailto:user-return-20992-sohara=pivotal-solutions.co.uk@velocity.apache.org]
On Behalf Of Nathan Bubna
Sent: 14 October 2009 20:38
To: Velocity Users List
Subject: Re: Inhrited public methods not visible to Velocity

On Wed, Oct 14, 2009 at 8:44 AM, Steve O'Hara
&lt;sohara@pivotal-solutions.co.uk&gt; wrote:
&gt; I have a class that extends an abstract class which is placed into a
&gt; Velocity context.  However, the public methods of the abstract class are
&gt; not visible to Velocity.

is the abstract class public?  VelocityTools itself does this successfully.

&gt; I looked at the source code and can see that getDeclaredMethods() is
&gt; being used rather than getMethods()
&gt;
&gt; Is there a reason for that?

Yes, the intention is to support public methods declared in public
classes.  So we navigate the class heirarchy looking for those.

It's also always helpful with such questions to mention the version of
Velocity being used.

&gt;
&gt; Thanks,
&gt; Steve
&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
&gt; For additional commands, e-mail: user-help@velocity.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Elena Lozina/ASVT out of office</title>
<author><name>&quot;Elena Lozina/ASVT&quot; &lt;eel@aerosvit.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200910.mbox/%3cOF9F348540.AD05D526-ONC225764F.0078EA69-C225764F.0078EA69@aerosvit.com%3e"/>
<id>urn:uuid:%3cOF9F348540-AD05D526-ONC225764F-0078EA69-C225764F-0078EA69@aerosvit-com%3e</id>
<updated>2009-10-14T22:00:43Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>




ñ ÂÕÄÕ ÏÔÓÕÔÓÔ×Ï×ÁÔØ ÎÁ ÒÁÂÏÔÅ ÎÁÞÉÎÁÑ Ó  30.04.2009 É ÎÅ ×ÅÒÎÕÓØ ÄÏ
01.07.2010.

Hi,

I am away on maternity leave, for any question ,please, contact by e-mail:
international_sales_directorate@aerosvit.com
or by phone +380 44 496 79 75


Dear Asia pacific Travel Partners,

For any issues , please, contact Mr. Vadim Smelianskiy , Aerosvit Airlines
regional director SouthAsia

Mr. Smelianskiy contact details are below:

All Seasons Place, M-Thai Tower, 5th Floor, Suite 5B
87 Wireless Road, Phatumwan, Bangkok 10330, Thailand
Tel. (+66) (0) 2 654 11 96/7/8
Mob. (+66) (0) 81 987 29 42
Fax. (+66) (0) 2 654 11 86
e-mail: vsmelyansky2004@yahoo.com



Sincerely,

Mrs. Elena Lozina
Senior sales specialist
Off-line Sales Department

AeroSvit Airlines
01032., Kiev, Ukraine
58A, T. Shevchenko blvd.
e-mail: eel@aerosvit.com
ph./fax: + 380 44 496 79 75

www.aerosvit.com
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Inhrited public methods not visible to Velocity</title>
<author><name>Nathan Bubna &lt;nbubna@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200910.mbox/%3c4d651da50910141237h30eb40f3yd7f4a5b305e915dc@mail.gmail.com%3e"/>
<id>urn:uuid:%3c4d651da50910141237h30eb40f3yd7f4a5b305e915dc@mail-gmail-com%3e</id>
<updated>2009-10-14T19:37:45Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Wed, Oct 14, 2009 at 8:44 AM, Steve O'Hara
&lt;sohara@pivotal-solutions.co.uk&gt; wrote:
&gt; I have a class that extends an abstract class which is placed into a
&gt; Velocity context.  However, the public methods of the abstract class are
&gt; not visible to Velocity.

is the abstract class public?  VelocityTools itself does this successfully.

&gt; I looked at the source code and can see that getDeclaredMethods() is
&gt; being used rather than getMethods()
&gt;
&gt; Is there a reason for that?

Yes, the intention is to support public methods declared in public
classes.  So we navigate the class heirarchy looking for those.

It's also always helpful with such questions to mention the version of
Velocity being used.

&gt;
&gt; Thanks,
&gt; Steve
&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
&gt; For additional commands, e-mail: user-help@velocity.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Inhrited public methods not visible to Velocity</title>
<author><name>&quot;Steve O'Hara&quot; &lt;sohara@pivotal-solutions.co.uk&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200910.mbox/%3cB5D654F05C12C74582A1BA9B4420BA6D149AFB@magiclause.com%3e"/>
<id>urn:uuid:%3cB5D654F05C12C74582A1BA9B4420BA6D149AFB@magiclause-com%3e</id>
<updated>2009-10-14T15:44:25Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I have a class that extends an abstract class which is placed into a
Velocity context.  However, the public methods of the abstract class are
not visible to Velocity.

I looked at the source code and can see that getDeclaredMethods() is
being used rather than getMethods()

Is there a reason for that?

Thanks,
Steve


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Testing for nulls with #if</title>
<author><name>Nathan Bubna &lt;nbubna@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200910.mbox/%3c4d651da50910140617i5c4d110crc1c3777272169fc6@mail.gmail.com%3e"/>
<id>urn:uuid:%3c4d651da50910140617i5c4d110crc1c3777272169fc6@mail-gmail-com%3e</id>
<updated>2009-10-14T13:17:27Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
When the innards of the $val block ($item.get(1)) resolve to null,
they are output as they were.  So $val should render as the literal
string "$item.get(1)".  That string is definitely not null.   If you
want, you can use quiet notation ($!item.get(1)), but even that will
render as an empty string "", which is also not null.  So, no matter
what, your $val reference will not be null.  It is a defined block
object which never renders as null.  It is not a workable shortcut for
null testing.  You can do #if( $val == "" ) if you switch to quiet
notation or #if( $val == "$item.get(1)" ) to test properly as things
are.

On Wed, Oct 14, 2009 at 3:35 AM, Margus Kliimask
&lt;margus.kliimask@mindworks.ee&gt; wrote:
&gt; Hi,
&gt; I've run into a problem with testing for a null in #defined block with
&gt; an #if directive. The manual states: "The variable $foo is evaluated
&gt; to determine whether it is true, which will happen under one of two
&gt; circumstances: &lt;..&gt; or (ii) the value is not null.
&gt;
&gt; I feed an array of lists
&gt; ...
&gt; String[] [] Items = {{"A", "100"}, {"B", null}};
&gt; context.put("Items", Items);
&gt; ...
&gt;
&gt; to this Velocity script:
&gt; ...
&gt; #define( $key )$item.get(0)#end
&gt; #define( $val )$item.get(1)#end
&gt;
&gt; #foreach ( $item in $Items )
&gt; (1)#if( $item.get(1) )$key:$val
&gt; #end
&gt; (2)#if( $val )$key:$val
&gt; #end
&gt;
&gt; #end
&gt; ...
&gt;
&gt; I get back:
&gt; (1)A:100
&gt; (2)A:100
&gt;
&gt; (1)(2)B:$item.get(1)
&gt;
&gt; So, #if could detect null (missing value) in #if( $item.get(1) ), but
&gt; could not in #defined block #if( $val ). What am I missing? I
&gt; definitely don't want to mention the b-word here :) and appreciate any
&gt; help, guidance or comments.
&gt;
&gt; Thanks,
&gt; Margus
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
&gt; For additional commands, e-mail: user-help@velocity.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Testing for nulls with #if</title>
<author><name>Margus Kliimask &lt;margus.kliimask@mindworks.ee&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/velocity-user/200910.mbox/%3c386a10850910140335x445aab0fifaaab9e3087f9406@mail.gmail.com%3e"/>
<id>urn:uuid:%3c386a10850910140335x445aab0fifaaab9e3087f9406@mail-gmail-com%3e</id>
<updated>2009-10-14T10:35:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,
I've run into a problem with testing for a null in #defined block with
an #if directive. The manual states: "The variable $foo is evaluated
to determine whether it is true, which will happen under one of two
circumstances: &lt;..&gt; or (ii) the value is not null.

I feed an array of lists
...
String[] [] Items = {{"A", "100"}, {"B", null}};
context.put("Items", Items);
...

to this Velocity script:
...
#define( $key )$item.get(0)#end
#define( $val )$item.get(1)#end

#foreach ( $item in $Items )
(1)#if( $item.get(1) )$key:$val
#end
(2)#if( $val )$key:$val
#end

#end
...

I get back:
(1)A:100
(2)A:100

(1)(2)B:$item.get(1)

So, #if could detect null (missing value) in #if( $item.get(1) ), but
could not in #defined block #if( $val ). What am I missing? I
definitely don't want to mention the b-word here :) and appreciate any
help, guidance or comments.

Thanks,
Margus

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org



</pre>
</div>
</content>
</entry>
</feed>
