I got a jsp which imports a jsp file. Is it possible to secure the import with a spring-security configuration?
For example i want to use this line of code:
<c:import url="jsp/admin/add_user.jsp" />
But if the user is not logged in as admin than this import should not work because of security reasons. I secured the admin folder with this line
<intercept-url pattern="/jsp/admin/**" access="hasRole('ROLE_ADMIN')" />
But when import the add_user jsp in a jsp file where no admin rights are needed than it still works if the user is logged in as an user without the admin role. I prefer not to use tags around the import if this is not necessary.