Implicit objects are provided by JSP itself, we don’t need to define it we can simply use these objects by setting values and attributes. JSP container does all work like instantiating, defining and maintenance.
| Method |
Return |
Description |
| pageContext.findAttribute(String Name) |
Object |
Search for named attribute in JSP page Request,session, application scope |
| pageContext.forward(String relativeURLPath) |
void |
This method is used to redirect or forward the current ServletRequest or ServletResponse to another active component |
| pageContext.getAttribute(String Name) |
Object |
Returns the object associated with name in the page scope |
| pageContext.getAttributesScope(String Name) |
int |
Get the scope where a given attribute is defined |
| pageContext.getErrorData() |
ErrorData |
Provide access to error information |
| pageContext.getException() |
Exception |
Get current value of the exception Object |
| pageContext.getOut() |
JspWriter |
Get current value of out object |
| pageContext.getRequest() |
ServletRequest |
Get current value of request object |
| pageContext.getResponse() |
ServletResponse |
Get current value of response object |
| pageContext.getServletConfig() |
ServletConfig |
Get any initialization parameters and startup configuration for this servlet |
| pageContext.getServletContext() |
ServletContext |
Gets the context from the servlet's ServletConfig object |
| pageContext.getSession() |
HttpSession |
Return the current value of session object |
Method use to get init param is getInitParameter() to get value inside <param-value> and getInitParameterNames() to get name of <param-name>