Results 1 to 3 of 3

Thread: Is a way passing a message to the successView?

  1. #1

    Default Is a way passing a message to the successView?

    How I can pass a message to the successView of a SimpleFormController? If that is workable, I can have one successView for multiple form controllers.

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    Just add the message to the model map.
    Code:
    model.put("saveSuccessful", new Boolean(true));
    return new ModelAndView(getSuccessView(), model);
    Take a look at this thread for some sample code (except returning to the original form).

  3. #3

    Default

    Thanks very much Katentim for your information.

    Inside of the

    protected ModelAndView onSubmit(HttpServletRequest request,
    HttpServletResponse response, Object command, BindException errors)

    method, a successful procedure will lead to call its super class method. Is it safe of returning a new instance of ModelAndView instead?

Similar Threads

  1. Message Bundle - No Message Found exception
    By arumugamkasi in forum Web
    Replies: 18
    Last Post: Jun 20th, 2011, 04:24 AM
  2. UpgradeAcegi Security System from 0.6.1 to 0.8.3
    By mannobug in forum Security
    Replies: 3
    Last Post: Sep 23rd, 2005, 07:00 PM
  3. passing a message to an included page
    By pir8ped in forum Web
    Replies: 1
    Last Post: Jun 1st, 2005, 12:11 PM
  4. Channel and message transformation question
    By Alarmnummer in forum Architecture
    Replies: 12
    Last Post: May 11th, 2005, 05:06 PM
  5. Displaying Error from message resource
    By qtipz4ever in forum Web
    Replies: 3
    Last Post: Mar 16th, 2005, 04:48 PM

Posting Permissions

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