int limit = Integer.parseInt(req.getParameter("sel1_"+names[i].getAbbrName()));
int weight = 0;
if(!names[i].getAbbrName().equals(RecommendationName.OVERALL.getAbbrName()))
weight = Integer.parseInt(req.getParameter("sel2_"+names[i].getAbbrName()));
UserRecommendationPrefs urp = new UserRecommendationPrefs(names[i], limit, weight);
urp.saveUserRecommendationPrefs(person.getMbox().toString());
}
}
resp.sendRedirect(((req.getContextPath() != null)?req.getContextPath():"")+"/profile/"); //maybe some parameter saying that data have changed?
}