• Post Reply Bookmark Topic Watch Topic
  • New Topic

EL error

 
rahull agarwal
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is really driving me crazy now..

I have two functions inside of a javabean



Following works fine in jsp



Following gives an error "Unable to find a value for "bIGAmount" in object of class"

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
getBIGAmount doesn't follow conventions. Use getBigAmount.

It's simple really:
  • Follow the conventions and it works.
  • Don't follow the conventions and it doesn't.


  •  
    rahull agarwal
    Ranch Hand
    Posts: 31
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Bear Bibeault wrote:getBIGAmount doesn't follow conventions. Use getBigAmount.

    It's simple really:
  • Follow the conventions and it works.
  • Don't follow the conventions and it doesn't.




  • Thanks so much for the help. It works that way.

    But this is frustrating. BIG is actually an acronym in our system and I had to use BIG in capital letters.

    Anyways, if thats what it is .. then I will live with Big.. Thanks so much
     
    Paul Clapham
    Sheriff
    Posts: 21872
    36
    Eclipse IDE Firefox Browser MySQL Database
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    You could spell it out instead of using the acronym... but on the other hand if your getter was then named "getBasicInternationalGuaranteeAmount" or something like that, it might become tiresome to read.
     
    Stefan Evans
    Bartender
    Posts: 1822
    10
    • Likes 1
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    The following would work: ${requestScope.priorApprovalDetail.BIGAmount}

    Details are in the API for java.beans.Introspector.decapitalize()
     
    rahull agarwal
    Ranch Hand
    Posts: 31
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Stefan Evans wrote:The following would work: ${requestScope.priorApprovalDetail.BIGAmount}

    Details are in the API for java.beans.Introspector.decapitalize()


    Fantastic.. It worked !!

    Thanks so much !!!
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!