greetings all i am using spring framework and i have a protected page where user can post data the scenario that makes a problem is that when an authorized user enters the protected page and leave it for sometime till the session ends and try to submit he's redirected to the login page then after login he's redirected to that protected page but to the post of the controller not the get ????? so how to manually redirect the user to the GET of the page
i have to use response.sendRedirect(request.getRequestURL().toString());