1, static introduced:
Use the include directive:
Using a static into the final execution is main.jsp, namely the total jsp jsp after the summary, the total translation of documents for the jsp Servlet file.
advantage:
Facilitate the maintenance of jsp page uses a static, easy to modify.
high speed.
Disadvantages:
The current existence of hidden conflicts jsp files of the same name and introduced jsp files.
2, the introduction of dynamic: <jsp: include page = "relative path"> </ jsp: include>
Pros: the current page and allow the introduction of variable file has the same name.
Reduce redundancy, easy to maintain.