How to prevent duplicate entries while refreshing?

后端 未结 4 1802
情深已故
情深已故 2021-01-02 23:17

I have an index.jsp page where I have a form where the user enters some data that gets stored in the database using a Controller servlet.

I want to disp

4条回答
  •  北荒
    北荒 (楼主)
    2021-01-02 23:44

    I think PRGP (Post Redirect Get Pattern) is the way to go for this. If you're using Spring Web Flow it has a FlashScope where you can put the data that you want to be retained after the Post-get-redirection. You can retain more than just an edit Id using this approach.

提交回复
热议问题