*
The moose likes EJB and other Java EE Technologies and the fly likes redirect to someother page for an request made using ajax. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "redirect to someother page for an request made using ajax." Watch "redirect to someother page for an request made using ajax." New topic
Author

redirect to someother page for an request made using ajax.

pavan bukka
Greenhorn

Joined: Jan 01, 2013
Posts: 21
hi all,
i am facing problem while redirecting for an request made using ajax. this is how i am redirecting

return new ModelAndView("redirect:../users/userLogin.html");

it works fine for normal http requests.

basically when exception is thrown in our application we are redirecting the user to login page. For ajax requests if exception is thrown above line is not redirecting to the login page.

regards,
pavn kumar.


(I have moved it springs section)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: redirect to someother page for an request made using ajax.