aspose file tools
The moose likes JSP and the fly likes Using EL in non-JSP code Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Using EL in non-JSP code" Watch "Using EL in non-JSP code" New topic
Author

Using EL in non-JSP code

Alok Pota
Ranch Hand

Joined: Mar 07, 2001
Posts: 185
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

Joined: Jul 10, 2001
Posts: 1934
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).


Kishore
SCJP, blog
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56232
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using EL in non-JSP code
 
Similar Threads
request.getAttribute Not Displaying Anything In JSP
Implicit Objects doubt!
<html:button> problem?
using struts logic empty tag with request
JSTL in struts 2