private void doAction(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		HttpSession session = request.getSession();
		String forwardPage = errorPage;
		Map<String, String[]> params = request.getParameterMap();
		String action = request.getParameter("action");
		session.setAttribute("userfile", user_file);
		if (action != null && action.length() > 0) {
			// Forward to web application to page indicated by action
			ActionHandler handler = handlers.get(action);
			if (handler != null) {
				String result = handler.handleIt(params, session, request, response);
				if (result != null && result.length() > 0) {
					forwardPage = pageViews.get(result);
				}
				if (forwardPage == null || forwardPage.length() == 0) {
					forwardPage = errorPage;
				}
			}
		}
		request.getRequestDispatcher(forwardPage).forward(request, response);
}