Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Cannot get Object Property in EL on JSP  RSS feed

 
Steve Dyke
Ranch Hand
Posts: 1759
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following class:




the following servlet:



And the following jsp:



I get the following error:

[javax.el.PropertyNotFoundException: Property 'QMS_VERSION_CURRENT' not found on type com.FAIWebApp.GenericPrams

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66142
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your class must be a bean, and the constant must be exposed via a bean property.
 
Steve Dyke
Ranch Hand
Posts: 1759
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Your class must be a bean, and the constant must be exposed via a bean property.


I finally figured out the EL only will do getter method.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!