1 16 package org.ajaxtags.servlets; 17 18 import javax.servlet.http.HttpServletRequest ; 19 import javax.servlet.http.HttpServletResponse ; 20 21 22 27 public class AjaxActionHelper { 28 41 static public String invoke(BaseAjaxXmlAction action, 42 HttpServletRequest request, HttpServletResponse response) 43 throws Exception { 44 request.setCharacterEncoding("UTF-8"); 46 response.setContentType("text/xml; charset=UTF-8"); 48 response.setHeader("Cache-Control", 50 "no-store, max-age=0, no-cache, must-revalidate"); 51 52 response.addHeader("Cache-Control", "post-check=0, pre-check=0"); 54 55 response.setHeader("Pragma", "no-cache"); 57 58 60 return action.getXmlContent(request, response); 61 } 62 } 63 | Popular Tags |