摘要: 偶遇上述错误,发生原因:struts在实行时如果发生错误默认会返回"input"。当向一个action注入变量的时候往往因为类型的不匹配导致过程中发生错误。我的错误代码:1 <select id="authority" name="admin.authority"></select>向一个对象注入一个变量,所以应该修改为:1 <select id="authority" name="admin.authority.authorityId"></selec 阅读全文
posted @ 2013-01-03 18:50 <逍遥人生> 阅读(139) 评论(0) 推荐(0) 编辑
摘要: struts可以使基于json的ajax交互变得简单 1 $.post("../public_info/information!showCounties.action?dt="+new Date().getTime(),{"cityId":$("#work_city").val()}, 2 function(data){ 3 $("#work_county").empty(); 4 var json = eval(data); 5 if(jso... 阅读全文
posted @ 2013-01-03 08:51 <逍遥人生> 阅读(1932) 评论(0) 推荐(0) 编辑