Results 1 to 4 of 4

Thread: Neither BindingResult nor plain target object for bean name 'helpf' available as requ

Threaded View

  1. #1
    Join Date
    Oct 2012
    Posts
    2

    Lightbulb Neither BindingResult nor plain target object for bean name 'helpf' available as requ

    HelpFaqController.java
    @RequestMapping(value = "/searchallfaq", method = RequestMethod.POST)
    public String searchFaq2(@ModelAttribute("helpf") HelpFaqModel helpfaqmodel,BindingResult bindingResult,
    Model model,HttpServletRequest request) {
    String abc=helpfaqmodel.getSearch();
    model.addAttribute(new HelpFaqModel());
    System.out.println("heyaaaaaaaa"+abc);
    //model.addAttribute("serviceOffering", serviceOffering);
    //model.addAttribute("list", helpFaqService.findAllServices());

    return "help/faq/faqqna";
    }


    faqqna.jsp
    <form:form method="POST" modelAttribute="helpf" action="/storefront-webapp/help/ces/faq/searchallfaq">

    <form:input path="search"/>
    <input type="submit" value="submit"/>
    </form:form>

    HelpFaqModel.java
    package com.accenture.ces.storefront.presentation.controll er.help;

    public class HelpFaqModel {

    private String search;

    public String getSearch() {
    return search;
    }

    public void setSearch(String search) {
    this.search = search;
    }


    }

    I am getting Neither BindingResult nor plain target object for bean name the moment I write <form:input path="helpf"/>...plz anybody can solve this problem...
    Last edited by Ankur007; Oct 29th, 2012 at 11:05 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •