I would like to include a JSP page into another JSP page. Let\'s say that I have master.jsp that is including slave.jsp.
As slave.jsp
You could also extend the conditional option, and make a meta.jsp (for example), which contains a Map for each of the head elements - meta tags, css hrefs, script hrefs, and use the name of the jsp as a key in that Map. Then you call request.getRequestURI(), and show whatever you have put in the map under that key.
Not a very beautiful solution, but working.