This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSP and the fly likes Non-standard methods and the EL 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 » Java » JSP
Reply Bookmark "Non-standard methods and the EL" Watch "Non-standard methods and the EL" New topic
Author

Non-standard methods and the EL

Frank Moore
Greenhorn

Joined: Apr 01, 2010
Posts: 1
I know it's considered poor form to dredge up old topics,

[Edit: this question didn;t have mucht o do with the topic on which it was posted so it's been split off as its own topic.]

but I was curious to know how the EL spec handles is methods when the method name does not follow standard camel casing?

Basically, I have a class with a method isABC. Would I access that in JSTL as object.abc or object.aBC?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56192
    
  13

I'd simply rename the method.

What happened when you tried the variations that you posted?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Stefan Evans
Bartender

Joined: Jul 06, 2005
Posts: 1005
I believe it would actually translate as object.ABC

The method name handling is the standard java handling as documented in the Java API for the java.beans.Introspector decapitalize method.

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56192
    
  13

Stefan Evans wrote:as documented in the Java API for the java.beans.Introspector decapitalize method.

Excellent information!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Non-standard methods and the EL
 
Similar Threads
how to study EL in jsp spec for exam?
why JSTL than scriptlets?
Easy el question
Need some advice on converting scriptlet code to jstl
How do I Call a Bean Function Using JSP?