投稿‎ > ‎

Calling a Static Method From EL (nonーtld)

posted Mar 21, 2013, 3:42 AM by Zhang Wenxu   [ updated Jul 19, 2013, 9:01 AM ]
本家:http://java.dzone.com/articles/calling-static-method-el

概要:
1.Reflectionで任意のstaticメソッドを呼び出すクラスCallを作成する
2.ApplicationスコープのCallクラスのインスタンス変数を設定する
3.JSP中に、$callに呼び出す対象クラスのフルパス名、メソッド、パラメータを渡す



Google+
By Zhang Wenxu
Comments