• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Non-standard methods and the EL

 
Frank Moore
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64620
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd simply rename the method.

What happened when you tried the variations that you posted?
 
Stefan Evans
Bartender
Pie
Posts: 1669
10
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64620
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stefan Evans wrote:as documented in the Java API for the java.beans.Introspector decapitalize method.

Excellent information!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic