I was really confused by this parts of web.xml:
<filter>
<filter-name>filter</filter-name>
<filter-class>com.labwork.filter.Filter</filter-class>
</filter>
<filter-mapping>
<filter-name>filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
This is the real problem. For example, I have several Servlets and static html pages. All request to them pass through filter. May be, i want to forward to servlet/html page from filter. How can i do this, if all request will be forward to filter? Or, may be, i don't understand principles.
/*means every request.