jvictor
Jun 6th, 2006, 08:11 AM
Hi
I'm new to Spring and am trying to write my first web-app using spring. Im jus trying to logon. I'm getting the following messages , when I attempt to do so
In the browser
-----------------
The requested resource () is not available.
In catalina.out
---------------
org.springframework.web.servlet.DispatcherServlet noHandlerFound
WARNING: No mapping for [/esims/pages/esims/index.html] in DispatcherServlet with name 'esims'
In the login.jsp file I'm using
<form action="esims/index.html" method="post">
..........
</form>
In esims-servlet.xml SimpleUrlHandlerMapping is defined as
<!-- URL mappings for the application -->
<bean id="simpleUrlMapping" class="org.springframework.web.servlet.handler.SimpleUrlH andlerMapping">
<property name="mappings">
<props>
<prop key="/index.html">loginControllerBean</prop>
</props>
</property>
</bean>
My web.xml file looks like this
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/esims-servlet.xml, /WEB-INF/esims-service.xml, /WEB-INF/esims-dao.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListe ner</listener-class>
</listener>
<servlet>
<servlet-name>esims</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>esims</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
when I submit the login form I just get a description
The requested resource () is not available. in the browser
and
6 Jun, 2006 5:22:53 PM org.springframework.web.servlet.DispatcherServlet noHandlerFound
WARNING: No mapping for [/esims/pages/esims/index.html] in DispatcherServlet with name 'esims'
in catalina.out
I guess its pretty silly, but I'm not able to fig it out.
An experienced pair of eyes can help me out :)
Thnx
==============EDIT============
<form action="esims/index.html" method="post">
needs to be changed to
<form action="/esims/index.html" method="post">
I'm new to Spring and am trying to write my first web-app using spring. Im jus trying to logon. I'm getting the following messages , when I attempt to do so
In the browser
-----------------
The requested resource () is not available.
In catalina.out
---------------
org.springframework.web.servlet.DispatcherServlet noHandlerFound
WARNING: No mapping for [/esims/pages/esims/index.html] in DispatcherServlet with name 'esims'
In the login.jsp file I'm using
<form action="esims/index.html" method="post">
..........
</form>
In esims-servlet.xml SimpleUrlHandlerMapping is defined as
<!-- URL mappings for the application -->
<bean id="simpleUrlMapping" class="org.springframework.web.servlet.handler.SimpleUrlH andlerMapping">
<property name="mappings">
<props>
<prop key="/index.html">loginControllerBean</prop>
</props>
</property>
</bean>
My web.xml file looks like this
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/esims-servlet.xml, /WEB-INF/esims-service.xml, /WEB-INF/esims-dao.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListe ner</listener-class>
</listener>
<servlet>
<servlet-name>esims</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>esims</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
when I submit the login form I just get a description
The requested resource () is not available. in the browser
and
6 Jun, 2006 5:22:53 PM org.springframework.web.servlet.DispatcherServlet noHandlerFound
WARNING: No mapping for [/esims/pages/esims/index.html] in DispatcherServlet with name 'esims'
in catalina.out
I guess its pretty silly, but I'm not able to fig it out.
An experienced pair of eyes can help me out :)
Thnx
==============EDIT============
<form action="esims/index.html" method="post">
needs to be changed to
<form action="/esims/index.html" method="post">