File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes  Neither BindingResult nor plain target object for bean name exceptiom Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark " Neither BindingResult nor plain target object for bean name exceptiom" Watch " Neither BindingResult nor plain target object for bean name exceptiom" New topic
Author

Neither BindingResult nor plain target object for bean name exceptiom

Shinu Pil
Greenhorn

Joined: Sep 02, 2005
Posts: 9
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

Joined: Mar 07, 2010
Posts: 1680
    
    7

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.


[How To Ask Questions][Read before you PM me]
 
wood burning stoves
 
subject: Neither BindingResult nor plain target object for bean name exceptiom