一個jsp內嵌一個jsp

一個jsp內嵌一個jsp有兩種方法:
1.include指令: <%@  include  file= "your.jsp "%>
2.include動做:< jsp:include  page= "your.jsp "  flush= "true "/> 或
                             < jsp:include  page= "your.jsp "  flush= "true ">
                               < jsp:param  name= "paramname "  value= "how  are  you "  />
                             < /jsp:include>
include動做跟include指令最大的區別就是它是動態的指令,它是把包含的文件編譯的結果插入當前工做位置,若是包含文件被改動了,它能判斷包含文件已被改動,並對包含文件從新編譯;而不是如指令那樣是把包含文件插入當前再編譯,包含文件被改動了卻沒法得知!jsp


另外也可使用iframe:ide

<Iframe  src= "bidContentGrads.jsp?package_sn=< %=request.getParameter( "package_sn ")%> "  width= "100% "  height= "100% "  scroll= "auto "  frameborder= "0 "  name= "content "  ></iframe>get

相關文章
相關標籤/搜索