Text only filter ver. 1.3

This filter lets you remove images and objects from your HTML response. Filter simply removes all the img and object tags, so you can use it for the wireless development for example.

How to use it:

a) download textonlyflt.jar and save it in WEB-INF/lib

b) describe a new filter in web.xml. This filter will proceed your requests:
 


<filter>
  <filter-name>TextOnlyFilter</filter-name>
  <filter-class>com.cj.textonly.TextOnlyFilter</filter-class>
</filter>

c) describe a mapping for this filter in web.xml. E.g.:
 


<filter-mapping>
  <filter-name>TextOnlyFilter</filter-name>
  <url-pattern>/a/*.jsp</url-pattern>
</filter-mapping>

in this example filter will be on for the each .jsp file in /a subdirectory.

   For downloading:

    Text only filter:  textonlyflt.jar

 ©  Coldbeans     Comments?

See also JSOS - the largest collection of servlets and filters.

Also in Coldtags: