Page caching by overriding the getOutputStream() and getWriter() methods.

Ted Husted

In your Action, you can just return null instead of an ActionForward

    public ActionForward perform(ActionMapping mapping,
                 ActionForm form,
                 HttpServletRequest request,
                 HttpServletResponse response)
    throws IOException, ServletException {
        response.setContentType("text/plain");
        response.getWriter().print("Hello World");
        return (null);
    };

HTH -Ted

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact