public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		PrintWriter out = response.getWriter();
		size = Integer.parseInt( this.getServletConfig().getInitParameter("size") );
		codes = this.getServletConfig().getInitParameter("codes");
		
		Random rd = new Random();
		String allCodes = "";
		for(int i = 0; i<size; i++){
			
			int index = rd.nextInt(codes.length());
			String currentCode = String.valueOf( codes.charAt(index) );
			allCodes += currentCode;
		}
		
		request.getSession().setAttribute("SAFE_CODE", allCodes);
		System.out.println("SafeCodeServlet..." + allCodes);
		out.print(allCodes);		
		
	}