public String AddSurvey() {
		SurveyDAO surveydao = DAOFactory.getSurveyDAO();
		Survey survey = new Survey();
		survey.setSName(StringUtil.encodeString(request
				.getParameter("Survey_name")));
		survey.setSAuthor(StringUtil.encodeString(request
				.getParameter("Survey_author")));
		survey.setSDesc(StringUtil.encodeString(request
				.getParameter("Survey_description")));
		survey.setSCreateDate(new Date());
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		try {
			survey.setSExpireDate(sdf.parse(request
					.getParameter("Survey_ExpireDate")));
		} catch (ParseException e) {
			// out.println("wrong DATE format.please check it!");
		}
		survey.setSIsOpen(Boolean.valueOf(request.getParameter("Survey_isOpen")));
		if (request.getParameter("Survey_isImg") != null)
			survey.setSImg(request.getParameter("imgfilepath"));
		if (request.getParameter("Survey_isPassword") != null)
			survey.setSPassword(request.getParameter("Survey_Password1"));

		survey.setSIsAudited(false);
		survey.setSUsehits(0L);
		boolean ret = surveydao.addSurvey(survey);
		if (ret == true) {
			//response.sendRedirect("../admin/OpResult.jsp?op=SurveyAdd&ret=true");
			return "success";
		} else {
			//response.sendRedirect("../admin/OpResult.jsp?op=SurveyAdd&ret=false");
			return "fail";
		}
		
	}