Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting error in implementing Spring MVC

 
Honey Agarwal
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic