Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

doubt in JSP  RSS feed

 
raja ram
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

we cant access JSP implicit objects with in the <%! %> of jsp but in <% %> and <%= %> we can access it am i correct.

Thanks
 
Musab Al-Rawi
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Implicit objects are only defined in the _jspService(). so any code that goes inside the method can access those implicit objects.
<%! %> is declarative which means that it goes inside the class body (not inside _jspService())

Hope that helped.

Musab
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!