views:

20

answers:

0

greetings all i have a strange problem with SavedRequest

SavedRequest savedRequest = requestCache.getRequest(request, response);
String targetUrl = savedRequest.getRedirectUrl();

i have a submit form and when the user try to post and user session is over he goes to the login page then after successful login he passes on a handler in the handler i get his saved request and then redirect him to it

in this case the saved request is the page in a post state and i don't want this behaviour coz it gives me an exception due to form bean i want to redirect the user to the page in a get state any ideas how ?