mikeottinger
Aug 14th, 2007, 02:40 AM
Hello,
I'm working on a servlet (not struts) ajax backend. I'm trying to extend FrameworkServlet so that I can get dependancies in a more cleaner fashion, but I'm having a hard time of it. I think I'm almost there, I'm having a hard time figuring out what url my servlet is mapped to, here's the relevant configs:
web.xml
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListe ner</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml /WEB-INF/selectmax-servlet.xml</param-value>
</context-param>
<servlet>
<servlet-name>selectmax</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>selectmax</servlet-name>
<url-pattern>*.max</url-pattern>
</servlet-mapping>
selectmax-servlet.xml
<beans>
<bean id="selectmax" class="com.mitsubishi.incentiveadmin.servlet.SelectMaxSer vlet">
<property name="incentiveAdminDao" ref="adminDao"/>
</bean>
</beans>
The urls I try are http://localhost:8080/foo/offerid.max and I receive
WARNING: No mapping for [/foo/offerid.max] in DispatcherServlet with name 'selectmax'
Aug 13, 2007 11:24:28 PM org.springframework.web.servlet.DispatcherServlet noHandlerFound
WARNING: No mapping for [/foo/offerid.max] in DispatcherServlet with name 'selectmax'
any ideas?? Thanks!
I'm working on a servlet (not struts) ajax backend. I'm trying to extend FrameworkServlet so that I can get dependancies in a more cleaner fashion, but I'm having a hard time of it. I think I'm almost there, I'm having a hard time figuring out what url my servlet is mapped to, here's the relevant configs:
web.xml
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListe ner</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml /WEB-INF/selectmax-servlet.xml</param-value>
</context-param>
<servlet>
<servlet-name>selectmax</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>selectmax</servlet-name>
<url-pattern>*.max</url-pattern>
</servlet-mapping>
selectmax-servlet.xml
<beans>
<bean id="selectmax" class="com.mitsubishi.incentiveadmin.servlet.SelectMaxSer vlet">
<property name="incentiveAdminDao" ref="adminDao"/>
</bean>
</beans>
The urls I try are http://localhost:8080/foo/offerid.max and I receive
WARNING: No mapping for [/foo/offerid.max] in DispatcherServlet with name 'selectmax'
Aug 13, 2007 11:24:28 PM org.springframework.web.servlet.DispatcherServlet noHandlerFound
WARNING: No mapping for [/foo/offerid.max] in DispatcherServlet with name 'selectmax'
any ideas?? Thanks!