This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic