Vote count:
0
How to specify dispatcherTypes in Spring 3?
I am trying to convert an old JSP-Servlet based application to Spring 3 based application. While converting I came across this filter which I converted to an interceptor but I am not sure how to specify dispatcherTypes = {DispatcherType.FORWARD} in Spring 3.
Please guide.
EventBuilder.java
@WebFilter(filterName = "EventBuilder", urlPatterns = {"*.jsp"}, dispatcherTypes = {DispatcherType.FORWARD})
public class EventBuilder implements Filter {
....
}
dispatcher-servlet.xml
<mvc:interceptors>
<mvc:interceptor>
<mvc:mapping path="*.jsp" />
<bean class="com.istore.web.filters.EventBuilder"></bean>
</mvc:interceptor>
</mvc:interceptors>
asked 21 secs ago
How to specify `dispatcherTypes` in Spring 3?
Aucun commentaire:
Enregistrer un commentaire