KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > servlet > jsp > PageContext

javax.servlet.jsp
Class PageContext

java.lang.Object
  extended byjavax.servlet.jsp.JspContext
      extended byjavax.servlet.jsp.PageContext
See Also:
Top Examples, Source Code

public static final String APPLICATION
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int APPLICATION_SCOPE
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final String CONFIG
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final String EXCEPTION
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract void forward(String relativeUrlPath)
                      throws ServletException,
                             IOException
See Also:
IllegalStateException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


getAttributesScope(java.lang.String)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[306]_
By a { at } a { dot } nl on 2003/07/10 05:46:14  Rate
getAttributesScope ( "application" ) 

public ErrorData getErrorData()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract Exception getException()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract Object getPage()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract ServletRequest getRequest()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract ServletResponse getResponse()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract ServletConfig getServletConfig()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract ServletContext getServletContext()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract HttpSession getSession()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract void handlePageException(Exception e)
                                  throws ServletException,
                                         IOException
See Also:
handlePageException(Throwable), NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract void handlePageException(Throwable t)
                                  throws ServletException,
                                         IOException
See Also:
handlePageException(Exception), NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract void include(String relativeUrlPath)
                      throws ServletException,
                             IOException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract void include(String relativeUrlPath,
                             boolean flush)
                      throws ServletException,
                             IOException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract void initialize(Servlet servlet,
                                ServletRequest request,
                                ServletResponse response,
                                String errorPageURL,
                                boolean needsSession,
                                int bufferSize,
                                boolean autoFlush)
                         throws IOException,
                                IllegalStateException,
                                IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final String OUT
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final String PAGE
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final String PAGECONTEXT
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public PageContext()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int PAGE_SCOPE
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public BodyContent pushBody()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract void release()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final String REQUEST
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int REQUEST_SCOPE
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final String RESPONSE
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final String SESSION
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int SESSION_SCOPE
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


setAttribute(java.lang.String, java.lang.Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[113]A JSP tag to create a pageContext attribute
By Anonymous on 2004/11/11 15:40:47  Rate
import java.util.List; 
 import java.util.ArrayList; 
 import javax.servlet.jsp.tagext.TagSupport; 
  
  
 public class DepartmentTag extends TagSupport  {  
    
   public int doStartTag (  )   {  
      
     List department = new ArrayList (  ) ; 
     department.add ( "" ) ; 
     department.add ( "Client Server" ) ; 
     department.add ( "E-Commerce" ) ; 
     department.add ( "Legacy Integration" ) ; 
      
     pageContext.setAttribute ( "departmentList",department ) ; 
      
     return 0; 
      
    }  
    
  } 

Popular Tags