Package com.opensymphony.module.sitemesh

Examples of com.opensymphony.module.sitemesh.HTMLPage.writeHead()


            context.put("body", buffer.toString());

            if (page instanceof HTMLPage) {
                HTMLPage htmlPage = (HTMLPage) page;
                buffer = new StringWriter();
                htmlPage.writeHead(OutputConverter.getWriter(buffer));
                context.put("head", buffer.toString());
            }

            //Rendering the content
            VelocityEngine velocityEngine = VelocityManager.getInstance().getVelocityEngine();
View Full Code Here


                    context.put("title", page.getTitle());
                StringWriter buffer = new StringWriter();
                page.writeBody(OutputConverter.getWriter(buffer));
                context.put("body", buffer.toString());
                buffer = new StringWriter();
                page.writeHead(OutputConverter.getWriter(buffer));
                context.put("head", buffer.toString());
                context.put("params", params);
                writer.write(VelocityUtils.getRenderedTemplate(decorator.getPage(), context));
            } else {
                throw new IOException("could not find decorator with name: " + decoratorName);
View Full Code Here

            StringWriter buffer = new StringWriter();
            htmlPage.writeBody(buffer);
            body = buffer.toString();

            buffer = new StringWriter();
            htmlPage.writeHead(buffer);
            head = buffer.toString();

            hash.put("page", htmlPage);
        }
View Full Code Here

    public final int doEndTag() throws JspException
    {
      HTMLPage htmlPage = (HTMLPage)getPage();
      try
      {
        htmlPage.writeHead(getOut());
      }
      catch(IOException e)
      {
        throw new JspException("Error writing head element: " + e.toString(), e);
      }
View Full Code Here

      StringWriter buffer = new StringWriter();
      htmlPage.writeBody(buffer);
      body=buffer.toString();
     
      buffer = new StringWriter();
      htmlPage.writeHead(buffer);
      head=buffer.toString();

      hash.put("page",htmlPage);
    }
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.