You use @include
when you need to include static contents in your page i.e., contents that don't change at run-time. When you need dynamic behavior, like the way you've mentioned above, you will probably need jsp:include
, as your included part will vary based on who is logged in to which project.
You can take a look at this answer for more clarification if need be.