}
} else {
typeId = Integer.parseInt(type);
}
ActionForward forward = null;
if (op.equals("dup")) {
switch (typeId) {
case ActivityVO.AT_FORCASTED_SALES:
forward = new ActionForward(
"/sales/view_opportunity.do?Duplicate=true&TYPEOFOPERATION=ADD&OPPORTUNITYID="
+ rowId);
break;
case ActivityVO.AT_LITRATURE_REQUEST:
forward = new ActionForward(
"/marketing/view_literaturefulfillment.do?TYPEOFOPERATION=ADD&activityid=" + rowId);
break;
case ActivityVO.AT_TASK:
forward = new ActionForward("/projects/duplicate_task.do?rowId=" + rowId);
break;
default:
forward = new ActionForward("/activities/duplicate_activity.do?rowId=" + rowId);
break;
}
} else if (op.equals("del")) {
switch (typeId) {
case ActivityVO.AT_FORCASTED_SALES:
forward = new ActionForward("/sales/delete_opportunitylist.do");
break;
case ActivityVO.AT_LITRATURE_REQUEST:
forward = new ActionForward("/marketing/delete_literaturefulfillmentlist.do");
break;
case ActivityVO.AT_TASK:
forward = new ActionForward("/projects/delete_tasklist.do");
break;
default:
forward = new ActionForward("/activities/delete_activitylist.do");
break;
}
} else {
throw new ServletException("Invalid operation");
}