Are there some issues if I insert some check into the template file? For example if I insert the user check into the template\'s xhtml file it could be some security issue i
I doubt you will have issues with security but be sure you put the templates inside the WEB-INF folder so the templates dont have visibility form the outside. I also recommend to you to use Spring-Security.