Including JSP page into another JSP page, how to avoid multiple HEAD / BODY sections?
问题 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 has its own <head> section for dealing with JavaScript and CSS, is there a way or maybe another method to merge the master and slave HEAD s section into a single one? Also the same should done for the BODY s section. I have been using sitemesh recently but I think is quite impractical to setup a template for each page. 回答1: I went for this solution by passing a