Win a copy of Mesos in Action this week in the Cloud/Virtualizaton 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