Hi Bhavik,
1>
Is there a way to access methods defined in servlet context with EL expressions...
like we do for pageContext.request.method
2>
can we access all methods defined in request object just like we did for pageContext.request.method???Is it possible for other objects like response pageContext.response.anymethod
3>Related to EL Functions --Is it possible to specify return type as any class object for example foo.Dog in methods and is it possible to specify any class object as method arguements...
1. It is possible to access method defined in servlet context, using yhe syntax pageContext.servletContext.anyProperty.
2. As the pageContext object provided the getter methods for response, session, servlet context we can access all properties of these objects.
This mechanism though accessing methods indirectly, we can not access any methods in the above objects. We actually accessing the properties of these objects, considerine these objects as Beans, so you can not access the method getAttribute(..) on the request or session object as the method sign. is not as accoring to the Bean specification.
3. It is possible to specify return type as any class object and is it possible to specify any class object as method arguements. You have to specify the full class names of return type and arguments in tld for thses function
<taglib>
��..
<function>
<name>anyName</name>
<function-class>mypkg.MyFunctions</function-class>
<function-signature>mypackage.MyObject nickName(mypackage.MyObject1) </function-signature>
</function>
</taglib>
Thanks