How to use post method in wicket

后端 未结 1 1384
攒了一身酷
攒了一身酷 2021-01-27 08:14

when I want to redirect in my page to other I use this method exception:

    throw new RedirectToUrlException(\"/login/j_security_check?j_username=\" + username          


        
相关标签:
1条回答
  • 2021-01-27 08:37

    POST redirects are a somewhat esoteric edge case with most browsers. Wicket's RedirectRequestHandler currently only supports HTTP codes 301 and 302. POST redirect would require 307, which will also show a warning to the user.

    That said, what you are trying to do is inherently unsafe. Do not ever send a password back to the client.

    Long story short: Wicket doesn't support this, and you shouldn't be doing this anyway.

    0 讨论(0)
提交回复
热议问题