• 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 ]
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!