I found the problem...
I was missing the public modifier on class declaration...
God damned!!!!!!!!!!!!
ivan

-----Original Message-----
From: Ivan Vercinsky [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 26, 2005 12:47 PM
To: [email protected]
Subject: problem passing objects to velocity

I have this problem:

 

I'm trying to render this simple class in velocity template

class testClass{

            private String testStr = "mozole";

            public String getName(){

                        return this.testStr;

            }

 

I put it into context

 

contextMap.put("test",new testClass());

..

I render it. here are commands plus adequate result:

 

$test                             =
[EMAIL PROTECTED]                   

$test.getName()             = $test.getName()

$test.Name                   = $test.Name

$test.name                    = $test.name

$test.getClass().getName() =
com.pxpgroup.project.nespos.misc.macros.testClass

 

Like the method getName doesn't exist or what. what am I doing wrong???

 

Can you please help me?

 

 

Thanx

 

            ivan



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to