经过查询、Jsp中隐藏Input有2种、不知道还有没有其他的、我暂时发现这2个、
1.<input type="hidden" name="friendname" value="123"/> 添加type="hidden"就可以了,这样它的value的值还是可以传送到action,
2,<input type="text" name="friendname" value=“123” style="display:none"/>添加style="display:none" ,注意,type类型改变了。但这样input的值就不可以传到action了。
对了,我是通过form表单传递的。