1

In my application I use JSF. I want to redirect the user to error page when their session expires. I have tried by using <redirect /> tag in faces-config with navigation case. It's not working properly. It changes the url, but the page is not loaded for ajax requests. But if I use sendRedirect method of HttpServletRespose Class it's working properly. What is the difference between the both?

This is the code in faces-config file,

 <navigation-rule>
    <navigation-case>
        <from-outcome>session_expired</from-outcome>
        <to-view-id>/pages/general/home.jsp</to-view-id>
        <redirect />
    </navigation-case>
</navigation-rule>

Thanks for you quick reply.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555

0 Answers0