HttpServletResponse response) throws IOException, ServletException, CommunicationException,
NamingException
{
String subScope = request.getParameter("subScope");
ActionForward forward = null;
if (subScope.equals("ForecastSales"))
forward = new ActionForward("/NewOpportunity.do");
else if (subScope.equals("LiteratureFulfillment"))
forward = new ActionForward("/NewLiterature.do");
else if (subScope.equals("ActivityTask"))
forward = new ActionForward("/NewProjectTask.do");
else if (subScope.equals("Meeting"))
forward = new ActionForward("/activities/activity_dispatch.do?" + ConstantKeys.TYPEOFACTIVITY
+ "=" + ConstantKeys.MEETING);
else if (subScope.equals("Call"))
forward = new ActionForward("/activities/activity_dispatch.do?" + ConstantKeys.TYPEOFACTIVITY
+ "=" + ConstantKeys.CALL);
else if (subScope.equals("NextAction"))
forward = new ActionForward("/activities/activity_dispatch.do?" + ConstantKeys.TYPEOFACTIVITY
+ "=" + ConstantKeys.NEXTACTION);
else if (subScope.equals("ToDo"))
forward = new ActionForward("/activities/activity_dispatch.do?" + ConstantKeys.TYPEOFACTIVITY
+ "=" + ConstantKeys.TODO);
else
forward = new ActionForward("/activities/activity_dispatch.do?" + ConstantKeys.TYPEOFACTIVITY
+ "=" + ConstantKeys.APPOINTMENT);
return forward;
}