Results 1 to 2 of 2
Thread: Implicit objects
- 05-19-2009, 02:57 PM #1
Member
- Join Date
- Apr 2009
- Posts
- 12
- Rep Power
- 0
Implicit objects
Hi,
could anyone please clarify me following line about implicit objects in JSP:
Implicit Objects are Java objects that the JSP Container provides to a developer to access them in their program using JavaBeans and Servlets.
what they mean by using JavaBeans and Servlets here?
Thanks in advance.
- 05-20-2009, 06:21 AM #2
Implicit objects are Java object which are available on the fly.No need to create traditionally.
Example:
In Jsp "out" is available and we can directly use and print
out.println("Hai")
out:This denotes the Output stream in the context of page. The class or the interface name of the Out object is jsp.JspWriter. The Out object is written: Javax.servlet.jsp.JspWriter
But,in case of servlets we need to create the outputstream object like this below.It is not avilable on the fly.See the below statement.We need to create the "out" object explicitly like this below.
response.setContentType("text/html");
PrintWriter out = response.getWriter();
Go thru this link below for Servlets/jsp
http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Ramya:cool:
Similar Threads
-
read txt file,with some records, create objects and store objects in tables of a db.
By stamv in forum JDBCReplies: 1Last Post: 01-22-2009, 04:25 PM -
1 to 1 Objects
By this.that in forum New To JavaReplies: 4Last Post: 08-07-2008, 10:09 PM -
JSP implicit objects
By Java Tip in forum Java TipReplies: 0Last Post: 12-26-2007, 10:12 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks