Results 1 to 2 of 2
Thread: Implicit objects
- 05-19-2009, 02:57 PM #1Member
- Join Date
- Apr 2009
- Rep Power
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.
In Jsp "out" is available and we can directly use and print
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.
PrintWriter out = response.getWriter();
Go thru this link below for Servlets/jsp
- By stamv in forum JDBCReplies: 1Last Post: 01-22-2009, 05:25 PM
- By this.that in forum New To JavaReplies: 4Last Post: 08-07-2008, 10:09 PM
- By Java Tip in forum Java TipReplies: 0Last Post: 12-26-2007, 11:12 AM