Hello,
Here is my situation:
I have a MultiActionController and a "handle..." method defined in it:
The request is correctly processed by this handler method and resolved to some .jsp file which contains the following definition:Code:public ModelAndView handleNewsAdd(HttpServletRequest request, HttpServletResponse response) throws ServletException { News currentNews = new News(); //this is my bean ServletRequestDataBinder binder = new ServletRequestDataBinder(currentNews, "currentNews"); binder.bind(request); Map model = new HashMap(); //setting some model parameters . . . . . . . return new ModelAndView("newsDetailsForm", "model", model); }
But in this stage I get an error:HTML Code:<form:form commandName="currentNews" name="NewsDetailsForm" ... > . . . . . . </form:form>
org.springframework.web.util.NestedServletExceptio n: Request processing failed; nested exception is java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'currentNews' available as request attribute
Where did I make a mistake?


Reply With Quote