Hi All,
Say I have ajax method, in this method first I'm checking whether user
session is valid. If this user session is expired then returning "login", as
per below lines it should display login.jsp page.
<global-results>
<result name="login">/pages/login.jsp</result>
</global-results>
but it is returning login.jsp contents in ajax result NOT displaying login.jsp
page. If session is not expired then this method is returning JSON object and
it works fine.
How to handle this scenario in struts2??
Thanks in advance.
Regards,
Sharath.