I'm trying to implement a 2 input JSP form that maps to a bean in a separate package. My project consists of the following files:
com.adi.beans.User
com.adi.controllers.LoginController
/WEB-INF/applicationContext.xml
/WEB-INF/spring-sevlet.xml
/WEB-INF/web.xml
/WebContent/index.jsp
I'm getting an error:
java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'user' available as request attribute
Please let me know the cause for this. This issue is bugging me since the last 2 days. I've zipped and attached the WAR. These are the JArs I've placed in the lib directory:
commons-logging-1.1.1.jar
org.springframework.asm-3.1.0.RELEASE.jar
org.springframework.beans-3.1.0.RELEASE.jar
org.springframework.context-3.1.0.RELEASE.jar
org.springframework.core-3.1.0.RELEASE.jar
org.springframework.expression-3.1.0.RELEASE.jar
org.springframework.orm-3.1.0.RELEASE.jar
org.springframework.web-3.1.0.RELEASE.jar
org.springframework.web.servlet-3.1.0.RELEASE.jar


Reply With Quote
