I’m trying to develop an MVC framework.
When a user creates a new record it seems to make sense to me to then display the new record if it is successfully created.
Is it ok to use a http redirect to move the user to a view of the new record?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Don’t do it! Use the correct HTTP response code for the situation. For example, if the user POSTs a new record to your system:
Give feedback not only as an HTML representation with a smiling happy face, but also as the correct HTTP response code.