jsp 怎么实现页面的共用

两种方式:

1、通过<%@include file=""%>方式把两个jsp页面放入同一个页面中

<body>
<%@include file="页面1.jsp"%>
<%@include file="页面2.jsp"%>
</body>

2、通过iframe方式,把2个页面嵌入到同一个jsp页面中

<body> 
  <iframe src='页面1.jsp'/>
  <iframe src='页面2.jsp'/>
</body>

https://zhidao.baidu.com/question/273131708.html

猜你喜欢

转载自blog.csdn.net/qq_40711092/article/details/121199458