问题描述
<c:iftest="${!emptyorganizations}"><c:forEachitems="${organizations}"var="org"><trbgcolor="#EFF3F7"class="TableBody1"onmouseover="this.bgColor='#DEE7FF';"onmouseout="this.bgColor='#EFF3F7';"><tdalign="center"vAlign="center">${org.id}</td><tdalign="center"vAlign="center"><ahref="org.action?parentId=${org.id}">${org.name}</a></td><tdalign="center"vAlign="center">${org.sn}</td><tdalign="center"vAlign="center">${org.parent.name}</td><tdalign="center"vAlign="center"><ahref="#"onclick="del('org_del.action?method=del&orgId=${org.id}');">删除</a></td></tr>然后调用js文件中的del函数可是怎么也传入不到我的action中functionopenDeleteDialog(url,confirmString){alert(url);varc=confirmString;if(c==null||c==''){c="你确认要删除记录吗?";}if(confirm(c)){returnwindow.showModalDialog(url,"window123","dialogHeight:234px;dialogWidth:271px;resizable:no;help:yes;status:no;scroll:no");}returnfalse;}/**删除记录*/functiondel(url,info){if(openDeleteDialog(url,info)){window.location.reload(true);}}我的strust.xml:<actionname="org_del"class="com.gongsi.action.OrganizationAction"method="del"><resultname="del_success">/common/pub_del_success.jsp</result></action>actiondel()是:/并且action实现了modeldriven接口publicStringdel(){this.orgManager.delOrg(org_info.getOrgId());System.out.println("我被调用了");return"del_success";}org_info类的参数:privateintorgId;privateintparentId;privateStringname;privateStringdescription;并且都是先了getset方法System.out.printn("我被调用了");没有运行,不知道哪里错了,好像通过javascript不能传递org_del.action?orgId到strust.xml文件中吧我不知道哪里的问题希望大侠们帮我一下谢谢了!!!