为了账号安全,请及时绑定邮箱和手机立即绑定

struts2 frame 框架中用action实现页面跳转和数据传递?

struts2 frame 框架中用action实现页面跳转和数据传递?

慕盖茨4494581 2018-12-20 20:11:01
struts2 frame 框架中用action实现页面跳转和数据传递
查看完整描述

1 回答

?
UYOU

TA贡献1878条经验 获得超4个赞

将导航栏中的链接改成:
<a href="#" onclick="document.getElementById('form_id').action='ActionName';document.getElementById('form_id').submit();return false;">链接</a>
的形式,把form表单的target设置成为content:
<form id="form_id" action="#" target="content(内容显示界面)">
...
这样,当你点击超级链接的时候,所有内容就都能提交过去了。
这是以FORM表单的形式。只是,现在你要传的值,非要是用隐藏域么?不能用url?para=val的方式传么?
不知道上面的说得够不够清楚,
:)

查看完整回答
反对 回复 2019-01-11
  • 1 回答
  • 0 关注
  • 750 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信