Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is the use of the page implicit variable

 
Karin Paola Illuminate
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the use of the page implicit variable?
 
Salman Khattak
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"The implicit variable page is of class java.lang.Object, and it refers to the instance of the generated servlet. It is declared as:
Object page = this; //this refers to the instance of this servlet.
This variable is rarely used."
SCWCD - Manning - pg213.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic