Im completle new to Spring and wanted to write a sample application from scratch. Now I want to make a signon similar to the petstore example.
I have got a public Controller Access:
and protected entries that require authentification ... which is currently empty:Code:<bean id="defaultHandlerMapping" class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping"/> <bean name="login.html" class="at.newsagg.web.LoginFormController"> <property name="commandName"> <value>login</value> </property> <property name="commandClass"> <value>at.newsagg.model.User</value> </property> <property name="formView"> <value>login</value> </property> <property name="successView"> <value>main.html</value> </property> <property name="userManager"> <ref bean="userManager"/> </property> </bean>
I have got an Interceptor doing almost the same thing like in the example.Code:<bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"> <property name="interceptors"> <list> <ref bean="loginInterceptor"/> </list> </property> <property name="mappings"> <props> <!-- <prop key="/login.html">loginFormController</prop> --> </props> </property> </bean> <bean id="loginInterceptor" class="at.newsagg.web.LoginInterceptor"/>
My problem is that I get following error message when I submit the form with the userdata to "login.html".
form tag in the jsp:
Error Message:Code:<form method="post" action="<c:url value="login.html"/>">
Code:WARN - DispatcherServlet.doService(465) | No mapping for [/equinox/login.html] in DispatcherServlet with name 'action'


Reply With Quote