java - flex : redirect from jsp page -
i calling page.jsp flex application using http, checking authentication on jsp page.now if user valid should redirect page2.jsp, , if user invalid user should redirect page3.jsp, want redirect jsp page not mxml page.
how should this?
forget page.jsp , use javax.servlet.filter mapped on url-pattern of /page2.jsp , following job in dofilter() method:
if (user valid) { chain.dofilter(request, response); // continue request. } else { response.sendredirect("page3.jsp"); // redirect page3.jsp. } then let flex app call page2.jsp.
Comments
Post a Comment