Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Filter in web.xml doesn't work after login(j_security_check)

  Asked By: Hamish    Date: Jun 29    Category: Java    Views: 2048

In a web application I have a filter in web.xml to filter Farsi words and convert it to UTF-8.

It works correctly, but when user submit a form and need to reLogin(time-out or Down/Up th server for Exp) the filter dosn't work and Farsi words damaged.

What is a problem and how can I correct it.



1 Answer Found

Answer #1    Answered By: Tarrant Thompson     Answered On: Jun 29

Maybe you should change the order of Acegi Filter and Character Encoding Filters! On the other hand I should notice that if you are working with the frameworks like Spring MVC or Struts(If dispatcher or action servlet startup is not specified) you should specify a controller or action instead of plain JPS for login or logout pages!

I hope this cases help you but I advise you first check the order of Filters! change the order of them and then restart your web  application!