include jsp

robrecht:
I have no idea what is happening here…Maybe something with the controller?

Included files run in the context of the jsp that they are included on, not in their own context. So, initializing another ISessionBean in your include file is creating a conflict.

Remove the ISessionBean code from your navigation snippet and scope method calls to the form those methods are on:

<ul id="nav_menu">
    <%
    
    int i_nav = 1;
    String s_nav = "";
    servoy_hc.executeMethod("navigation_maingroups","getFirstRecord",null);
    
    while(i_nav<27) 
    {
        servoy_hc.executeMethod("navigation_maingroups","getNextRecord",null);
        s_nav += "<li><a href=\"#\">"+servoy_hc.getDataProviderValue("navigation_maingroups","articlemaingroup_code")+"</a></li>";
        i_nav++;
    }
    out.print(s_nav);
    %>
</ul>