This is a Java servlet filter (as per Servlet API 2.3). This filter lets you define the default attributes for the request scope.
How to use it:
a) download defattrflt.jar and save it in WEB-INF/lib
b) describe this filter in web.xml. Initial parameters must describe your default attributes. For example:
c) describe a mapping for this filter in web.xml
and now your request will have the above mentioned default attributes intAttribute and strAttribute.
For downloading:
Default attributes filter: defattrflt.jar
See also JSOS - the largest collection of servlets and filters.