modified jstl script to filter active hierarchy