aspose file tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes EL Question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "EL Question" Watch "EL Question" New topic
Author

EL Question

muthulingam Jayakanthan
Ranch Hand

Joined: Feb 27, 2005
Posts: 43
I found one model EL question from yahoo group.

Q. A developer wants to use EL to invoke a function using
${my:bloof("foof")}.

Which is always true?

A. The method invoked by this function must be static
B. The function must be declared in a web.xml file using <function> element.
C. The function class must hav a method with the signature


I think B is correct, but there is a confusion with A. please discuss?
Nitish Bahadur
Ranch Hand

Joined: Aug 25, 2003
Posts: 118
A. The method invoked by this function must be static
Is Correct.

B. The function must be declared in a web.xml file using <function> element.
This is not correct. bloof might just be an alias to an actual method foo.

C. The function class must hav a method with the signature
I think this is incomplete.

<function>
<name>bloof</name>
<function-class>com.whatever.Samples</function-class>
<function-signature>int foo</function-signature>
</function>
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: EL Question
 
Similar Threads
doubt on jstl, invoke instance method
Doubt in EL Question
examulator question error
call bean's funtion in jsp
EL functions