struts Action中取不到select的值 indexvalue= document.actionForm.id.value;改成 indexvalue= document.getElementById("id").value;试试 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 function set(){ var indexvalue; indexvalue= document.actionForm.id.value; alert(indexvalue);}这里正常显示了选择值对应的ID。但是在Action中,actionForm.getId时,得到的是空。。取不到值。。 <select name="select" onchange="set(this.options[this.selectedIndex].value);"> 不过在js里调用submit提交之后,form里应该会取到值的啊根本不需要在js里面取得选定的值,除非想做check 缓存大家用什么框架呢? jsp 跳转到servlet,editplus下的实现 myeclipse中导入struts2的包后tomcat服务启动错误 EJB 更新数据库表时出错 中小型企业(100用户)WEB服务器架设求教? struts图片显示问题 诚恳提问——请谈谈对于普元EOS 5.0和普元公司的看法 请高手指点javaBean中能加JSP代码吗? 谁有 struts项目的原代码? Struts Action中取不到form的值 求救Struts2中session过期的时间设定及页面跳转问题!
var indexvalue;
indexvalue= document.actionForm.id.value;
alert(indexvalue);
}
这里正常显示了选择值对应的ID。
但是在Action中,actionForm.getId时,得到的是空。。
取不到值。。
根本不需要在js里面取得选定的值,除非想做check