ample we use a

simple filter called SimpleFilter, that sets the request's character

encoding based on two initialization parameters, usefilter and

encoding defined in web.xml file. The parameter "usefilter"

value can be set either to "true" or "false". The

parameter "encoding" can be set to any valid encoding. In

this example, we have set it to "UTF-8". Depending on this

value, the filter sets the character encoding accordingly. Though the

filters can be used for all the requests received by the con