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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -