Em Tue, 08 Sep 2009 01:39:41 -0300, Xuan Tran Le <lexuanttk...@gmail.com> escreveu:

----------------- A.java ----------------------
public class A {

    private static String name;

    public static String getName() {
        return name;
    }

    /*some method here*/

}
--------------------------------------------------

And from B.tml I want to get "name" value from getName() method. What should I do now?

Easy:

public class B {
        public String getName() {
                return A.getName();
        }
}

Then use ${name} in your template.

--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to