Announcement Announcement Module
Collapse
No announcement yet.
About the post action protected by the spring security Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • About the post action protected by the spring security

    Hi All
    My web app contains the comment function. Only the login user can comment on some topic. I use the spring security to protect this comment action. That meas:
    1. A unlogged in user write the comment and click the submit button
    2. The page will be redirected to the login form page.
    3. When a user fill the username/password and pass the authentication, the page will be redirected to the "Save comment" action.

    But the problem is all the post parameters of the comment form is lost. So is there anyway to save the post parameters ?

    An alternative way is when a user passes the authentication, the page should be redirected to the comment page, not comment action. But I don't know how to configure the successful target url runtime.
Working...
X