Based on that value, it redirects to a specific URL.
In Web.XM,
I have placed the element in the last order, and together I call "dofilter" method .doFilter (request, response); "The first line is then my argument is executed later.
This is in Tomcat 5.5, it works well on two local machines, but there is no other test machine, there is a minor difference in the tomcat versions, local machines But its Tomato 5.5.17 test is 5.5.27 on the server.
What is the problem that can be the problem ?, I appreciate sharing the answer, thanks
< P> web.xml
& lt ;! - ####################### ################################## ###################### Filter ############################### ## Filter ############################ - & gt; & LT; Filters & Gt; & lt; filter-name & gt; other filter & lt; / filter-name & gt; & lt; / filter & gt; & lt; filter & gt; & lt; filter-name & gt; ; UrlRedirectFilter & lt; / filter-name & gt; & lt; filter category & gt; ...... filter.UrlRedirectFilter & lt; / filter class & gt; & lt; / filter & gt; LT; Filters & lt; Filters-Name & gt; Other Filters & lt; / filter-name & gt; & lt; / Filters & gt; & Lt ;! - ################################################# ######################### Filter Mappings ####################### ################################################## - & gt; & Lt; Filter-mapping & gt; . . & Lt; / Filter-mapping & gt; & Lt; Filter-mapping & gt; & Lt; Filter-name & gt; UrlRedirectFilter & lt; / Filter-name & gt; & Lt; URL pattern & gt; / * & Lt; / URL pattern & gt; & Lt; / Filter-mapping & gt; & Lt ;! - ################################################# ######################### Submit the references to the audience for application launch. ################################################## ####################### - & gt; & Lt; Listener & gt; & Lt; Audience category & gt; .... & lt; / Listener Category & gt; & Lt; / Listener & gt; & Lt ;! - ################################################# ######################## Servlets ######################### ################################################ - & Gt; & Lt; Servlet & gt; & Lt; Servlet-name & gt; ... & lt; / Servlet-name & gt; & Lt; Servlet category & gt; .. & lt; / Servlet category & gt; & Lt; / Servlet & gt; & Lt ;! - ################################################# ######################### Service Mapping ####################### ################################################## - & gt; & Lt; Servlet-mapping & gt; & Lt; Servlet-name & gt; ... & lt; / Servlet-name & gt; & Lt; URL pattern & gt; ... & lt; / URL pattern & gt; & Lt; / Servlet-mapping & gt; & Lt ;! - ################################################# ######################## Welcome File List ####################### ################################################## - & gt; & Lt; Welcome-file-list & gt; & Lt; Welcome-file & gt; _ignorewelcomefiles_ & lt; / Welcome-file & gt; & Lt; / Welcome-file-list & gt; & Lt ;! - ################################################# ######################### problem page ################## ##### ################################################## - & gt; & Lt; / Web application & gt;
It looks like everything is okay:
- Check log for any prompt
- Add a logging message /
System.out.println
/ breakpoint afterchain .doFilter (..)
line and see that it is actually executed.
Comments
Post a Comment