Results 1 to 5 of 5

Thread: doing a redirect but using post

  1. #1

    Default doing a redirect but using post

    I'm doing something like the following in one of my controllers:

    return new ModelAndView("redirect:" + someURL);

    Is there a way to do the redirect as a post instead of a get?

    thanks in advance,
    Mike

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

  3. #3

    Default

    Thanks for the info.

    Maybe there is a different way of doing this. Is there a way to return a view that will go to a different site? Something like:

    return new ModelAndView("http://www.foo.com/bar.htm");

    ...but have it post the variables to the other site?

    thanks again,
    Mike

  4. #4

    Default

    or is there a way to create this in the response object?

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

    Default

    Is there a way to return a view that will go to a different site...but have it post the variables to the other site?
    Not out of the box as far as I know. You could implement a yukky workaround - a form that is pre-populated and submits on loading.

Posting Permissions

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