在两个jsp之间传递参数 [英] passing parameters between two jsp s

查看:86
本文介绍了在两个jsp之间传递参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用inclucde方法将参数从一个jsp传递到另一个jsp

我检查了一个链接
http://www.exampledepot.com/egs/javax.servlet.jsp/caller.jsp.html
但我不知道调用者应该在哪里编码

请帮忙

谢谢

How do I pass Parameters from one jsp to another using the inclucde method


I have checked a link
http://www.exampledepot.com/egs/javax.servlet.jsp/caller.jsp.html
but I don''t get it where is the caller suppose to be coded

Please help

Thanks

推荐答案

如果您说的是使用include方法",则可能是想通过插入<%@ include ...%> [
If you are saying "using the include method", you are probably saying that you want to include on jsp page in another by inserting a <%@ include ... %>[^] page directive. This is analogous to including header files in C or C++. The source code that is linked in the include directive is inserted at the same place where the tag previously was. Look at it as a substitution.
That having been said you''ll understand that in the include scenario there is no need to pass anything as all files, the parent jsp plus all included children jsp pages, become on big document. So all you have to be aware of are the usual Java scoping rules regarding variables and their visibility.

Cheers!

-MRB


这篇关于在两个jsp之间传递参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆