Hi,
I am toiling hard for quite sometime now but issue doesn't seem to get resolved.
I have my login page i authenticate a user with Spring MVC and from there on all subsequent requests are of iface.
My dispatch-servlet.xml:
<bean id="simpleUrlMapping" class="org.springframework.web.servlet.handler.Sim pleUrlHandlerMapping">
<property name="mappings">
<props>
<prop key="/login.html">loginController</prop>
</props>
</property>
</bean>
<bean id="loginController"
class="com.lightspeed.webapp.login.LoginController ">
<property name="sessionForm">
<value>true</value>
</property>
<property name="commandName">
<value>loginCommand</value>
</property>
<property name="commandClass">
<value>com.lightspeed.webapp.login.LoginCommand</value>
</property>
<property name="authenticationService">
<ref bean="authenticationService" />
</property>
<property name="formView">
<value>login</value>
</property>
<property name="successView">
<value>myhome</value>
</property>
</bean>
<bean id="authenticationService"
class="com.lightspeed.webapp.login.AuthenticationS ervice">
</bean>
<bean id="viewResolver" class="org.springframework.web.servlet.view.Resour ceBundleViewResolver">
<property name="basename" value="com.lightspeed.util.views" />
</bean>
It gives error once i try to access an iface page.
javax.servlet.ServletException: Could not resolve view with name 'login' in servlet with name 'dispatch'
Could anyone help?I am in such a mess.
Thanx n regards,
Pankaj


Reply With Quote
