*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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?
 
 
subject: Getting error in implementing Spring MVC