• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Differences between ${} and <% %>

 
Toby Kitchens
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JSP page that uses an import statement to import Constants:



If I use a scriptlet to pull the constant, it works:



If I use EL it doesn't work:



This was a test. What I'm trying to do is avoid using a scriptlet in a struts tag like below:



Can EL code be used to access a Constants file imported into a JSP?

Thanks in advance!!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64720
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. Which is the whole topic of this article.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic