No.<jsp:include page="xxx"> it will include at request time.
so the including page doesn't share the variable.<jsp:directive include file="xxx"> it will include at translation time.
So,the including page share the variable.Pass variable<jsp:include page="xxx">
<jsp:param name="shit" value="fuck"/>
</jsp:include>
so the including page doesn't share the variable.<jsp:directive include file="xxx"> it will include at translation time.
So,the including page share the variable.Pass variable<jsp:include page="xxx">
<jsp:param name="shit" value="fuck"/>
</jsp:include>
解决方案 »
- 变态问题之汉字转简拼
- 求打印印章的方法
- java.lang.OutOfMemoryError: Java heap space解决方法?
- ftp上传下载中的乱码问题
- 跪求:怎样实现linux下解决world文档转成html页面的解决方案!!
- 有没有Email的API啊?想实现根据一个登陆的email用户去查找他的所以的联系人!!!
- NullPointerException问题
- 菜鸟请教个技术问题,大侠请进~谢谢
- 请给我一个防止刷新的,用图片代替数字的JSP计数器的源代码好吗?50分求
- 求一个js正则表达式
- 为什么我的按钮不能提交<form>的数据。
- 汉字问题!为什么用quest.getParameter得到的url传来的汉字参数为????怎么转汉字编码给参数呀?(急......!)
现在想整合到一起,但是因为两个页面里面很多变量是相同的
会造成混乱,为了避开麻烦,所以用了jsp:include而不用include方法,
如果这样的话,
用jsp:directive include 会不会造成变量的混乱?
如果用
<jsp:include page="xxx">
<jsp:param name="shit" value="fuck"/>
</jsp:include>
中如果要反向传回来呢?就是从xxx传回到母页面。
thanks。