在a.jsp中有有个ID,以标签库的形式得到 <bean:write name="HistoryAlarm" property="alarmid">
然后在a.jsp中<script language="javascript">
function show()
window.showModalDialog("b.jsp","parameters","features");
</script><html:button value="对话框" onClick="show()">点击这个button按钮后,如何把这个参数传给这个JS函数,同时在JS弹出的b.jsp页面中得到这个参数,提交给Action处理
然后在a.jsp中<script language="javascript">
function show()
window.showModalDialog("b.jsp","parameters","features");
</script><html:button value="对话框" onClick="show()">点击这个button按钮后,如何把这个参数传给这个JS函数,同时在JS弹出的b.jsp页面中得到这个参数,提交给Action处理
function show()
window.showModalDialog("b.jsp","parameters","<%=HistoryAlarm.?????%>");
</script><html:button value="对话框" onClick="show()">
function show(var)
window.showModalDialog("b.jsp","parameters","features");
</script><html:button value="对话框" onClick="show("+<bean:write name="HistoryAlarm" property="alarmid">"+)">