• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP implicit objects in Simple Tags

 
KRK Gowda
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Custom tags can have access to JSP implicit objects using PageContext object.
this is ok with Classic tags as interface Tag do have method getPageContext to get object of PageContext.
but with Simple Tags, they use JspContext. and JspContext do not have access to JSP implicit objects.
does it mean that Simple tags cannot access JSP implicit objects. :roll:

Thanks and Regards,
 
Chethan Verma
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi KRK,

We can use PageContext with SimpleTags.
We'll have to cast JspContext to PageContext.
 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
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!