What are implicit objects?
Answers were Sorted based on User's Feedback
Answer / janet
To simplify code in JSP expressions and scriptlets, we can
use eight automatically defined variables, called implicit
objects.
They are
request,response,out,session,application,config,pageContext
and page.
Is This Answer Correct ? | 40 Yes | 10 No |
Answer / vipin
one more implicit object availbale in JSP: exception
Is This Answer Correct ? | 23 Yes | 6 No |
implicit objects are objects which can be used in jsp
without declaring those objects.For Ex we are using 'out'
implicit object without declaring it,but internally it is
declared in a servlet which is created for jsp. Totally we
hav 10 implicit objects.we can use these implicit objects in
either scriptlets or expressions only.if we want to use
implcit objects in declarations we need to pass explicitily.
Is This Answer Correct ? | 20 Yes | 6 No |
Answer / ganesh
Implicit object means with out any declaration we able to
use those variables in jsp tags except in jsp declaration
tags.In jsp's total 9 implicit objects are available.Those
are,
1>out
2>request
3>response
4>application
5>session
6>pageContext
7>page
8>exception
9>config
Is This Answer Correct ? | 15 Yes | 1 No |
Answer / java
There are Eight different types they are.......
request,
response,
out,
session,
application,
config,
pageContext,
page.
Is This Answer Correct ? | 22 Yes | 11 No |
Answer / anil nivargi
Please go through this blog
http://adnjavainterview.blogspot.in/2014/07/what-are-implicit-objects-in-jsp.html
explained clearly..
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / lakshya mathur
JSP Implicit Objects are the Java objects that the JSP Container makes available to developers in each page and developer can call them directly without being explicitly declared. JSP Implicit Objects are also called pre-defined variables.
JSP supports nine Implicit Objects which are listed below:
Object Description
request This is the HttpServletRequest object associated with the request.
response This is the HttpServletResponse object associated with the response to the client.
out This is the PrintWriter object used to send output to the client.
session This is the HttpSession object associated with the request.
application This is the ServletContext object associated with application context.
config This is the ServletConfig object associated with the page.
pageContext This encapsulates use of server-specific features like higher performance JspWriters.
page This is simply a synonym for this, and is used to call the methods defined by the translated servlet class.
Exception The Exception object allows the exception data to be accessed by designated JSP.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / shrinath rodage
The following are the implicit objects for jsp:
request //used for accept the request of client
response // used for respond to the client
application //used overall our application
session //used maintain the session
out // for display the output
page
Is This Answer Correct ? | 2 Yes | 4 No |
What is tld in jsp?
When will container initialize multiple jsp/servlet objects?
Can we use the exception implicit object in any jsp page?
What is tld file?
What is <jsp:usebean> in jsp?
How can html output be prevented from being cached?
Explain the difference between jspwriter and servlet printwriter in jsp?
What is < jsp:forward> tag for?
Why is it not necessary to configure standard jsp tags in web.xml?
What are the different types of jsp directive?
Why do we use expression language in jsp?
i am using rich faces datatable rich:datatable. On entering the value, values get filtered in table. Now how can i get the value in back9ing bean..?