*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting error in implementing Spring MVC
 
Similar Threads
how to tell MultiActionController Command Object is Of type com.dss.ems.model.User
Path Value in input type in jsp page using Spring MVC
Help submitting forms via SpringMVC and RESTful Web Service
Getting error when submitting form using SpringMVC and REST
How can I get a normal input tag's value?