facebook

Why CRUD scaffolding makes forward request after delete/save

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #350844 Reply

    antgar9
    Member

    I’ve been wandering with CRUD scaffolding and I wonder why in Controller methods for delete and save it makes a forwards to index page, instead of redirect.
    The best practices always recommend a redirect after a modification method, to prevent errors on reload. Furthermore, this way the new request would be a GET request. If index method would attend only GET requests as it should be, this wouldn’t work.

    And what is supposed to be the method indexX (that makes a redirect)?

    #350856 Reply

    antgar9,

    I have escalated this to a dev team memeber and we’ll get back to you soon.

    #351140 Reply

    support-tony
    Keymaster

    Antgar9,

    Sorry for the delay. I’m afraid that we haven’t been able to schedule time to look at this yet, but have raised a bug for developers to investigate.

    I’m not sure why the indexX method is generated but you could certainly modify the generated code to call that method to get a redirect, instead of a forward.

    Thanks for reporting this issue.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Why CRUD scaffolding makes forward request after delete/save

You must be logged in to post in the forum log in