Results 1 to 2 of 2
Thread: Page Context
- 09-29-2010, 08:00 PM #1
Member
- Join Date
- Sep 2010
- Posts
- 11
- Rep Power
- 0
- 10-02-2010, 09:06 PM #2
Member
- Join Date
- Apr 2010
- Posts
- 10
- Rep Power
- 0
Well, I don't have THAT much real experience but...
In EL you use pageContext to have access to everything in your application that the other Map implicit objects do not offer.
and in Classic Custom Tag Handlers the only way you have access to the application (say you wanna have the output stream by calling the getOut() method) is by the pageContext property it gives you. (OK I know and I've read that classic tags are not being developed that much anymore).
And in Simple Tag Handlers too. well you have getJspContext() method which returns an instance of JspContext but you cast that to a PageContext (which extends JspContext):
so I think it's not THAT useless!Java Code:PageContext pageContext = (PageContext) getJspContext();
Similar Threads
-
Context Menu
By ravjot28 in forum AWT / SwingReplies: 3Last Post: 01-23-2010, 05:32 PM -
ValueExpression context
By dreuzel in forum Advanced JavaReplies: 0Last Post: 12-22-2009, 10:39 AM -
Name persistence is not bound in this Context
By tascoa in forum Java ServletReplies: 1Last Post: 12-15-2009, 10:01 PM -
context based search
By alwz_nikhil in forum LuceneReplies: 1Last Post: 01-04-2008, 10:08 PM -
Application Context
By bbq in forum Java ServletReplies: 1Last Post: 07-05-2007, 03:11 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks