Forums Register Login

doubt on jstl, invoke instance method

+Pie Number of slices to send: Send
hi guys, i v a question on jstl.
surely i can mapping a public static method to an el function.
but i wanna know is it possible to mapping an instance method to an el function and how can i fulfil it?
can sb give some reference for that? thanx a lot.
+Pie Number of slices to send: Send
while invoking a function using EL,the function must be static and public.
Non static methods(instance methods) cannot be able to invoke using EL.
Perhaps using your own custom tags will meet your requirment.

correct me if iam wrong...
+Pie Number of slices to send: Send
hi Vinod , thanx for u reply.

it seems that i can't mapping instance method to el directly.

Maybe i could define a static method just like this:

static Object invokeMethod(String methodName,Object obj)

and this method could invoke the instance method of the param obj.then mapping it to el. and now i could make the isntance acting.

is it right? correct me if i m wrong...
It sure was nice of your sister to lend us her car. Let's show our appreciation by sharing this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 783 times.
Similar Threads
Scriptlet to JSTL
EL Functions
JSTL fmt currency - Only displaying the currency symbol
jstl request role
call bean's funtion in jsp
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 07:30:56.