Announcement Announcement Module
Collapse
No announcement yet.
textbox data is not setting in the bean Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • textbox data is not setting in the bean

    hai braniees,

    i have a bean named stock with setter and getter methods.i have a controller named stockcontroller which uses simple form controller

    in that i am having

    Stock stock=(stock)command;

    etc;

    in my jsp i have the spring bind i have used stock.bind
    which has been mapped correctly;

    i can get the value from the backing object but the value from the text box is not passed to the setter method.please help
    thanks Love everyone in this world(OOMMMM)
    anieshuk

  • #2
    Hi,

    you could try something like this:

    Code:
    public ModelAndView onSubmit(...) {
        ....
        String bindValue = request.getParameter("stock.bind");
        stock.setBind(bindValue);
        return new ModelAndView(getSuccessView(), "stock", stock);
    }

    Comment

    Working...
    X