Friday 23 March 2012

[JasperServer] Homepage Role Based

Hi,
If you want user to be redirected to certain page right after his login, you can change this file:
\WEB-INF\jasperserver-servlet.xml
Find bean name "homePageByRole" and change it accordingly.
In my case, I have change it to:

<bean id="homePageByRole" class="java.util.ArrayList">
    <constructor-arg>
      <list>
        <value>ROLE_ADMINISTRATOR|redirect:/flow.html?_flowId=repositoryExplorerFlow</value>
        <value>ROLE_USER|redirect:/flow.html?_flowId=listReportsFlow</value>
      </list>
    </constructor-arg>
  </bean>

Hope it helps.

No comments:

Post a Comment