File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

redirect to someother page for an request made using ajax.

 
pavan bukka
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic