Close
« Tutorial

Spring MVC - Prevent Duplicate Form Submission MCQ

0/13
0 ✓
0 ✗

1. What can happen if a user refreshes the page right after a form was submitted with POST and the result page was returned directly?

2. Which technique is commonly used to avoid duplicate form submission?

3. What is the name of the common pattern where the server redirects after processing a POST request?

4. After the server sends a redirect response, which HTTP method does the browser ideally use to request the result page?

5. Why is it good that the result page is loaded with GET after a redirect?

6. What does the browser's address bar show after a successful form submission that ends with a redirect?

7. How does a redirect work?

8. Which return value of a Spring MVC handler method triggers a redirect?

9. Which HTTP status code is commonly used by Spring MVC when it sends a redirect response with the redirect: prefix?

10. A form is submitted and validation fails. What is the usual approach in the handler method?

11. Why can data stored as a normal request attribute not be used by the page shown after a redirect?

12. In Spring MVC, which feature lets you pass data to the page shown after a redirect without putting it in the URL?

13. How long are flash attributes available?

14. Which method of RedirectAttributes adds a flash attribute?

Join