Announcement Announcement Module
Collapse
No announcement yet.
SimpleFormController? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SimpleFormController?

    I use a SimpleFormController. I need to prepare a form for updating some user data in my application. (so problem with updating )I have a problem because I don't know hot to fill that user updataing form with this user data at the beginning ( when the form is loaded ). I can't override such method

    public ModelAndView handleRequest(HttpServletRequest q, HttpServletResponse p) throws Exception {}

    How can I set data in my updating form. Maybe I'm supposed to use some other controller?

    thx for help...

  • #2
    Override formBackingObject(HttpServletRequest request) to return the command object which your jsp uses to populate the form.

    Override onSubmit(...) to process the form when it is submitted.

    Comment

    Working...
    X