private void actionTrier( HttpServletRequest request, HttpServletResponse response, ServletContext sc) { String type = request.getParameter("type"); BeanResultat beanResultat = (BeanResultat) getVariableSession(request, "beanResultat"); if (type.equals("popularite")) { beanResultat.triByPopularite(); } else if (type.equals("frequence")) { beanResultat.triByFrequence(); } else if (type.equals("perenite")) { beanResultat.triByPerenite(); } addVariableSession(request, "beanResultat", beanResultat); }