vehicleinfo.js
function updateWCPolicyPresentValue(changedValue){
var url = $.url($(this).prop('href'));
var id = url.param('id');
alert(id);
if(confirm("Change will apply to all vehicles for this policy. Is it okey?")){
$.ajax({
url: '<s:url action="wcPolicyPresentVehicleInformationAction" namespace="/" />? changedValue='+changedValue+'&keepUrlRegistry=true',
cache : false,
success : alert(changedValue)
});
}else{
$.unblockScreen();
}
return false;
}
Struts的cpp.xml
<action name="*VehicleInformationAction" method="{1}" class="com.sbi.fremont.bindexpress.cpp.web.action.VehicleInformationAction">
<result name="input" type="tiles">vehicleInformationPageCpp</result>
<result name="load" type="redirectAction">inputVehicleInformationAction?id=${selectedId}&loadType=${loadType}&fleetMessage=${fleetMessage}</result>
</action>
答案 0 :(得分:0)
更改
<result name="load" type="redirectAction">
inputVehicleInformationAction?id=${selectedId}&loadType=${loadType}&fleetMessage=${fleetMessage}
</result>
到
<result name="load" type="redirectAction">
<param name="actionName">inputVehicleInformationAction</param>
<param name="id">${selectedId}</param>
<param name="loadType">${loadType}</param>
<param name="fleetMessage">${fleetMessage}</param>
</result>