Results 1 to 2 of 2

Thread: Controller that has no view

  1. #1
    Join Date
    May 2006
    Posts
    14

    Default Controller that has no view

    Hi,

    I am presented with the following scenario:

    There is a system (non spring application) that needs to send an email. I need to develop a spring application that executes the code to send the mail. I will have a controller that this application calls that will send the email via a URL. The url will contain parameters that needs to be in the mail.

    E.g. http://www.blablabla.com/mailproject...st&name=t est

    How do I do this in spring as I will not be returning a model or view but just executing code via a URL?

    Thank You.

  2. #2
    Join Date
    Apr 2006
    Location
    Canada
    Posts
    164

    Default

    Returning 'null' as the ModelAndView indicates that the controller has already rendered the view (or, in this case, the non-view).
    Chris Lee (blog)
    Principal Consultant
    Digital Ascent Inc.

Posting Permissions

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