String x = request.getRealPath(request.getServletPath()); String prefsFile=x.substring(0,x.lastIndexOf("\\")) + "\\WEB-INF\\debugPrefs.obj"; ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(prefsFile)); oos.writeObject(values); oos.close();
boolean saved = saveDebugPrefs(values,request); if(!saved) { request.setAttribute("message",new Message("debug.prefs.not-saved",true)); }
	public ActionForward grouperExecute(ActionMapping mapping, ActionForm form,			HttpServletRequest request, HttpServletResponse response,			HttpSession session, GrouperSession grouperSession)			throws Exception {				request.setAttribute("title", "debug.prefs.title");		request.setAttribute("message",new Message("debug.prefs.saved"));		DynaActionForm debugPrefsForm = (DynaActionForm)form;		Map values = debugPrefsForm.getMap();		session.setAttribute("debugPrefs",values);		String x = request.getRealPath(request.getServletPath());		String prefsFile=x.substring(0,x.lastIndexOf("\\")) + "\\WEB-INF\\debugPrefs.obj";		ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(prefsFile));		oos.writeObject(values);		oos.close();		return mapping.findForward(FORWARD_DebugPrefs);	}