This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question about filter in tag?

 
dragon ji
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want get filter config in my tag class,but we only can get servlet config by pageContext.how I get filter config when I develop customize tag?
I use servlet spec 2.3,thanx
 
jyothsna kumari
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can u pls tell me what is filter config and servlet config.
thanks,
jyothsna
 
dragon ji
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in your web app's web.xml:

FilterConfig have content of node <filter>,and ServletConfig have <servlet>,
you can get it using method pageContext.getServletContext.getServletConfig.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic