This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Tag handler doubt  RSS feed

 
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
Boost this thread!