File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Getting error in implementing Spring MVC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Getting error in implementing Spring MVC" Watch "Getting error in implementing Spring MVC" New topic
Author

Getting error in implementing Spring MVC

Honey Agarwal
Greenhorn

Joined: Dec 21, 2012
Posts: 3
Hi,

I am new to Spring MVC and trying to implement a form page. Here is the code:

Hello.jsp:



Controller:



But I am getting the error:


SEVERE: Servlet.service() for servlet [jsp] in context with path [/ChatBooster] threw exception [java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'userDomain' available as request attribute] with root cause java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'userDomain' available as request attribute at org.springframework.web.servlet.support.BindStatus.(BindStatus.java:141) at org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag.getBindStatus(AbstractDataBoundFormElementTag.java:174) at org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag.getPropertyPath(AbstractDataBoundFormElementTag.java:194)


What can be the issue?
 
 
subject: Getting error in implementing Spring MVC
 
Similar Threads
Help submitting forms via SpringMVC and RESTful Web Service
Path Value in input type in jsp page using Spring MVC
How can I get a normal input tag's value?
how to tell MultiActionController Command Object is Of type com.dss.ems.model.User
Getting error when submitting form using SpringMVC and REST