• 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic