Hi:
dispatcher org.springframework.web.servlet.DispatcherServlet TestWfsPost org.vfny.geoserver.wfs.servlets.TestWfsPost dispatcher /web/* dispatcher /rest/* ------------------------------------------ It seems that the dispatcher is the front controller,all the requests are intercepted by this servlet,but I wonder how do the "org.springframework.web.servlet.DispatcherServlet" know which servlet is to be dispatched next? The dispatcher-servlet.xml is nothing.maven apache ha scritto:
Hi:
I noticed that in the web.xml under the geoserver/web-info some servlets are configed as follows:
--------
<servlet>
<servlet-name>dispatcher</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>TestWfsPost</servlet-name>
<servlet-class>org.vfny.geoserver.wfs.servlets.TestWfsPost</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>dispatcher</servlet-name>
<url-pattern>/web/*</url-pattern>
</servlet-mapping>
<!-- TODO: find a way to remove this mighty list of mappings and have just one... -->
<servlet-mapping>
<servlet-name>dispatcher</servlet-name>
<url-pattern>/rest/*</url-pattern>
------------------------------------------
It seems that the dispatcher is the front controller,all the requests are intercepted by this servlet,but I wonder how do the "org.springframework.web.servlet.DispatcherServlet" know which servlet is to be dispatched next? The dispatcher-servlet.xml is nothing.
Each module has an applicationContext.xml file that contains all beans
that we need to either wire with Spring or expose as plugins.
The configuration is in those files.
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.