Results 1 to 2 of 2

Thread: Page Context

  1. #1
    Navatha is offline Member
    Join Date
    Sep 2010
    Rep Power

    Default Page Context

    Hi All,
    When do we use Page context in the real time application.what is the necessity to use it.

    Thanks in Advance

  2. #2
    Hossein is offline Member
    Join Date
    Apr 2010
    Rep Power


    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):
    Java Code:
    PageContext pageContext = (PageContext) getJspContext();
    so I think it's not THAT useless!

Similar Threads

  1. Context Menu
    By ravjot28 in forum AWT / Swing
    Replies: 3
    Last Post: 01-23-2010, 06:32 PM
  2. ValueExpression context
    By dreuzel in forum Advanced Java
    Replies: 0
    Last Post: 12-22-2009, 11:39 AM
  3. Name persistence is not bound in this Context
    By tascoa in forum Java Servlet
    Replies: 1
    Last Post: 12-15-2009, 11:01 PM
  4. context based search
    By alwz_nikhil in forum Lucene
    Replies: 1
    Last Post: 01-04-2008, 11:08 PM
  5. Application Context
    By bbq in forum Java Servlet
    Replies: 1
    Last Post: 07-05-2007, 03:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts