• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP implicit objects in Simple Tags  RSS feed

 
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!