Default parameters filter ver. 1.2

This is a Java servlet filter (as per Servlet API 2.3). This filter lets you define the default parameters for HTTP requests.

How to use it:

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

b) describe this filter in web.xml. Initial parameters must describe your default HTTP parameters. For example:


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


and now your request will have the above mentioned default parameters a and b.

Also you can describe values for your parameters in the following form:




in this case filter will lookup some_name attribute in the appropriate scope (application or session) and use its value as a parameter.

   For downloading:

    Default parameters filter:  defparamflt.jar

 ©  Coldbeans     Comments?

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

Also in JSOS: