• Post Reply Bookmark Topic Watch Topic
  • New Topic

Equivalent of 'this' keyword in JSP

 
Bhairava Surya
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Is there any equivalent keyword for 'this' in jsp??
Is there any implicit object for that??

Thanks & Regards,
Ravi.
 
Eduardo Yañez Parareda
Ranch Hand
Posts: 93
IntelliJ IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chinna Ravindra wrote:Hi All,

Is there any equivalent keyword for 'this' in jsp??
Is there any implicit object for that??

Thanks & Regards,
Ravi.


Why do you need a 'this' keyword?
 
manidhar karnatakam
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Page implicit object.
 
Eduardo Yañez Parareda
Ranch Hand
Posts: 93
IntelliJ IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
manidhar karnatakam wrote:Page implicit object.


You don't need a this keyword.
 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The instance of the generated servlet!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As there should be no Java code in a modern JSP (none, nada, at all), there is no need for a reference to the implementation servlet.
 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:As there should be no Java code in a modern JSP (none, nada, at all), there is no need for a reference to the implementation servlet.

Sir, I've accept your concept. But, there are some peoples struggling with this to refer whether page or pageContext or generated servlet. Please clear it.
I think, it refers the generated servlet. Please Confirm!

Thanks!
 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
page : java.lang.Object - refers to the instance of the generated servlet, it's declared as,
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!