This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using EL in non-JSP code

 
Alok Pota
Ranch Hand
Posts: 185
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can the EL (expression language) that ships with JSP 2.0 and JSTL be used
in non-JSP context, like in a regular Java class?
 
Kishore Dandu
Ranch Hand
Posts: 1934
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can not answer that specific question.
Can you explain why you want to do that.
But, I have one comment for you.
Nice book(your .net for java developers).
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64182
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Only if it is passed an instance of a JspContext or PageContext, since you need this context to obtain an instance of javax.servlet.jsp.el.ExpressionEvaluator.
Of course, you could always implement your own concrete classes for the abstract classes and interfaces in javax.servlet.jsp.el and roll your own.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic