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

Tag handler doubt

 
Jas Oberai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assume tag handler extends TagSupport.How to get attribute "abc" that is in application scope??

Is this correct?If not,please tell the correct answer


thanks in advance
 
Reshma Shanbhag
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
to get the attribute 'abc' this should do.

pageContext.getAttribute("abc",PageContext.APPLICATION_SCOPE)

this method call would return an object of type java.lang.Object, so be sure to cast it to type 'abc' explicitly.
[ June 27, 2006: Message edited by: Reshma Shanbhag ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic