Are you hitting the JSP directly instead of going through your controller to
access it?
On Apr 2, 2010, at 7:10 AM, nicolasc wrote:
>
> Hello,
>
> I'm using Appfuse with Hibernate and Spring MVC. When i want to acess to my
> form I''ve got the following message:
>
> ERROR [btpool0-10] InputTag.doStartTag(84) | Neither BindingResult nor plain
> target object for bean name 'annotation' available as request attribute
> java.lang.IllegalStateException: Neither BindingResult nor plain target
> object for bean name 'annotation' available as request attribute
>
> I have searched and many people have that because they dont put in the jsp
> "commandName="xxx" or they have a bad url and the mapping is wrong.
>
> But i have cheched that and i think it's ok for me.
>
> I have a datasetform.html obtained by datasetform.jsp which include
> datasetedit.jsp, which include annotationform.jsp which include
> annotationedit.jsp
> (datasetform.html= datasetform.jsp <- datasetedit.jsp <-annotationform.jsp
> <-annotationedit.jsp
>
> And the probelm is at annotationedit.jsp
>
>
> <%@ include file="/common/taglibs.jsp"%>
>
> <form:form
> commandName="annotation">
>
> <tr>
> <td><form:input path="value" id="value" cssClass="text medium"
> /></td>
> </tr>
>
> </form:form>
>
>
> Apparently it doesnt know annotation. Here is my controller:
>
> public class AnnotationAjaxFormController extends BaseFormController{
>
> private DatasetManager datasetManager;
>
> public AnnotationAjaxFormController() {
> setCommandClass(Annotation.class);
> setCommandName("annotation");
> }
>
> public void setDatasetManager(DatasetManager datasetManager) {
> this.datasetManager = datasetManager;
> }
>
> }
>
> and my dispatcher-servlet.xml
>
>
> <bean id="annotationAjaxFormController"
> class="org.embl.cocong.webapp.controller.ajax.AnnotationAjaxFormController">
> <property name="datasetManager" ref="datasetManager" />
> </bean>
>
>
> So is there something that i didn't see? Why my controller isn't recognize?
>
> Thanks a lot
>
> Nicolas
> --
> View this message in context:
> http://n4.nabble.com/Problem-of-binding-between-controller-and-jsp-Neither-BindingResult-nor-plain-target-object-tp1749141p1749141.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]