save up to 40%

How is a filter configured in the deployment descriptor?

Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.

How is a filter configured in the deployment descriptor?

Rating:

A filter is configured in the deployment descriptor as follows:

<filter>
       <filter-name>Filter1</filter-name>
       <display-name>filter1</display-name>
       <description>This is a test filter</description>
       <filter-class>FilterClass</filter-class>
   <icon>
      <small-icon>SmallIcon</small-icon>
      <large-icon>LargeIcon</large-icon>
   </icon>
   <init-param>
      <param-name>testfilter</param-name>
      <param-value>test</param-value>
   </init-param>
</filter>


Of these tags, the <filter-name> and <filter-class> tags are mandatory. The <init-param> tag is optional, and there can be many <init-param> tags present for a filter. Also, the <icon>, <description>, and <display-name> tags are optional.

A filter is mapped using the deployment descriptor as follows:

<filter-mapping>
   <filter-name>Filter1</filter-name>
   <url-pattern>f1</url-pattern>
</filter-mapping>


Rating:



Other articles

Click here to Article home

 
uCertify.com | Our Company | Articles | Privacy | Security | Contact Us | News and Press Release | uCertify India
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.