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

how to use @ page import directive  RSS feed

 
kalyen kumar
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

I am using page directive's import attribute to import a file with contants.



winningPatternFullGrid value is 1 in the constants file But i dont see the message on the JSP.
am I missing something...........

Thanks in advance
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66142
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. The EL is not capable of accessing constants, whether you import the class or not. (In general, importing in a JSP is a hold-over from scriptlet days and is not necessary when using the JSTL and EL.)

Please read this article for a way to access constants within a JSP.
 
kalyen kumar
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its resolved,
Thank you very much.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!