File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting error in implementing Spring MVC

 
Honey Agarwal
Greenhorn
Posts: 3
  • 0
  • 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