Skip to main content

Posts

Showing posts from February, 2016

java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'xxx' available as request attribute

While trying to use Spring MVC form Tags, I come across following exception


java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'userInput' available as request attributeBelow is my JSP Code with Spring Tags<%@page contentType="text/html" pageEncoding="UTF-8" session="false" %> <%@taglib uri="http://www.springframework.org/tags" prefix="st"%> <%@taglib uri="http://www.springframework.org/tags/form" prefix="sf"%> <!DOCTYPE html> <html> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>About Us Page</title> <st:url var="bootstrapp_theme" value="/resources/css/bootstrap-theme.css" /> <st:url var="bootstrapp_css" value="/resources/css/bootstrap.css" /> <st:url var="jque…