You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by Friedrich Bergmann <be...@ananzi.co.za> on 2002/08/22 14:50:39 UTC

methods overseen

hello velocity world,

velocity does not call the functions of the classes i put
into the Context. 

simple values are fine, and overriding the toString()
function of the class that otherwise fails also works.

i have tried everything, now i need HELP. why is this not
working!?

details:

class VeloXML {
   public VeloXML(){}
   
   public String Na="nu";
   public String getNa(){
      return Na; 
   }  
   
   public void setNa(String val){
      Na=val;
   }  
      
   public String toString(){
       return "hoho";
   }   
   
...
   context.put("nana",this);
...
}


THE TEMPLATE
  ${nana}
  ${nana.Na}
  $nana.Na
  ${nana.Na()}
  ${nana.getNa()}
  ${nana.getNa}
GENERATES
  hoho
  ${nana.Na}
  $nana.Na
  ${nana.Na()}
  ${nana.getNa()}
  ${nana.getNa}

so only the toString() function works.
this cannot be right.

thanks in advance,
friedrich



==
http://www.zenaptix.co.za
===
http://binarchy.net

please ignore below advertisements
 
==
Find businesses and have your business found: http://www.brabys.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: methods overseen

Posted by Friedrich Bergmann <be...@ananzi.co.za>.
SORRY

FOR POSTING THIS TWICE
 
==
Find businesses and have your business found: http://www.brabys.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>