Package org.apache.turbine.services.jsp

Examples of org.apache.turbine.services.jsp.JspService.handleRequest()


        }

        // let service know whether we are using a layout
        JspService jsp = (JspService)
            TurbineServices.getInstance().getService(JspService.SERVICE_NAME);
        jsp.handleRequest(data, "/screens" + templateName,
                          getLayout(data) == null);

        return null;
    }
View Full Code Here


            pageContext.getOut().flush();
            template = data.getTemplateInfo().getScreenTemplate();
           
            if ( staticContent || (flag != null && flag.booleanValue()) )
            {
                jsp.handleRequest(data, "/screens/" + template, false);
            }
            else
            {
                module = ((TemplateService)TurbineServices.getInstance().getService(
                TemplateService.SERVICE_NAME)).getScreenName(template);
View Full Code Here

    public String getContent()
    {
        JspService jsp = (JspService) TurbineServices.getInstance().getService(JspService.SERVICE_NAME);
        try
        {
            jsp.handleRequest(this.runData, this.templateName);
        }
        catch (TurbineException te1)
        {
            if (!this.templateName.endsWith(".jsp"))
            {
View Full Code Here

        {
            if (!this.templateName.endsWith(".jsp"))
            {
                try
                {
                    jsp.handleRequest(this.runData, this.templateName + ".jsp");
                }
                catch (TurbineException te2)
                {
                    logger.error("failed to invoke JSP Template '" +
                                    this.templateName + "' and '" + this.templateName + ".jsp'", te2);
View Full Code Here

            className = className.substring(pos);

            // Render the template
            String template = (String) this.getParm("template", className + ".jsp");
            String templatePath = TemplateLocator.locateParameterTemplate(data, template);
            jspService.handleRequest(data, templatePath);
            result = "";
        }
        catch (Exception e)
        {
            logger.error("Exception", e);
View Full Code Here

                // this is only necessary if we don't run in a JSP page environment
                // but better be safe than sorry...
                service.addDefaultObjects(data);

                // handle request
                service.handleRequest(data, locatedTemplate);

            }
            else
            {
                // Build parameter list to be passed with the jsp
View Full Code Here

            className = className.substring(pos);

            // Render the template
            String template = (String) this.getParm("template", className + ".jsp");
            String templatePath = TemplateLocator.locateParameterTemplate(data, template);
            jspService.handleRequest(data, templatePath);
            result = "";
        }
        catch (Exception e)
        {
            logger.error("Exception", e);
View Full Code Here

                // this is only necessary if we don't run in a JSP page environment
                // but better be safe than sorry...
                service.addDefaultObjects(data);

                // handle request
                service.handleRequest(data, locatedTemplate);

            }
            else
            {
                // Build parameter list to be passed with the jsp
View Full Code Here

                // this is only necessary if we don't run in a JSP page environment
                // but better be safe than sorry...
                service.addDefaultObjects(data);

                // handle request
                service.handleRequest(data, locatedTemplate);

            }
            else
            {
                // Build parameter list to be passed with the jsp
View Full Code Here

            className = className.substring(pos);

            // Render the template
            String template = (String) this.getParm("template", className + ".jsp");
            String templatePath = TemplateLocator.locateParameterTemplate(data, template);
            jspService.handleRequest(data, templatePath);
            result = "";
        }
        catch (Exception e)
        {
            Log.error(e);
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.