I want to create a master page in jsp, similar to ASP.Net.
I'm not using any framework.
I don't seem to find a good solution on internet.
What I have done till now is:
Created a master page called master.jsp
It has an attribute "redirect" which is used in <jsp:include>
So whichever page I put in redirect parameter will be called by include tag.
But the problem is, the calling of pages should be like this
So, what is the other way around?
The only other way it seem is to have <jsp:include> on all pages.
But, for admin, there will be different menu options, for consumer there will be different menu options.
So, this solved my problem.
But this is my question, what is the other way around? And how can I display different menu's for different users?