• Post Reply Bookmark Topic Watch Topic
  • New Topic

doubt in JSP

 
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
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!