I am facing a problem with sending from to Spring controller. I try so many way but I just got this error
Neither BindingResult nor plain target object for bean name 'command' available as request attribute
Here is my jsp page..
<div class="container">
<div class="row">
<div class="col-md-4"></div>
<div class="col-md-4 well well-lg">
<spring:url value="/fetch/page" var="fetchPage" />
<form:form method="get" action="${fetchPage}">
<div class="center-block ">
<label class="control-label"> Name</label>
<form:input placeholder="Customer Name" class="form-control"
path="name" />
</div>
<br />
<button type="submit" class="btn btn-primary">Save</button>
</form:form>
</div>
<div class="col-md-4"></div>
</div>
</div>
and here is my controller
@RequestMapping(value = "/fetch/page/", method = RequestMethod.GET)
public String getPageFromjsp(@PathVariable("id") String name, Model model) {
System.out.println(name);
return "home";
}