Lixin Chu wrote:
<c:out value="${beanName.methodName}"/>

I thought this is for getting the value of a property ?  and how to pass a

Yes.

parameter  to the method ? I think I have tried that but does not work.

You can't invoke arbitrary bean methods with EL; it's designed for accessing properties, not calling arbitrary methods. The closest you can come is to 'fake' a map-type Foo.getBar(String key) property so you could write ${foo.bar[param]}, but that's a bit limitted.

What are you trying to achieve? Maybe you're trying to put logic in your JSPs that more properly belongs in an action.

L.


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

Reply via email to