• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Neither BindingResult nor plain target object for bean name exceptiom

 
Shinu Pil
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in my code ineed to send data using hidden field with spring bind tag,....my code is that
<spring:bind path="abc.Id">
<input type="hidden" id="Id" name="Id" value="<cut value="${abc.Id}"/>" />

</spring:bind>
my page not laod and iget follwing exception in log
SEVERE: Servlet.service() for servlet jsp threw exception
javax.servlet.jsp.JspTagException: Neither BindingResult nor plain target object for bean name 'abc' available as request attribute
at org.springframework.web.servlet.tags.BindTag.doStartTagInternal(BindTag.java:122)
at org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:79)
at org.apache.jsp.pages.hardware.allocateHardware_jsp._jspService(allocateHardware_jsp.java:140)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)

please help
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please UseCodeTags when posting code or configuration. Why are you using the bind tag? Which version of Spring are you using? Have a look at the form tag.

You are getting this error because abc.Id is not on the command object.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic