This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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


Win a copy of Building Microservices this week in the Design forum!
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)
 
Have you checked out Aspose?
 
subject: redirect to someother page for an request made using ajax.
 
It's not a secret anymore!