Examples of prepareContext()


Examples of org.apache.velocity.tools.view.VelocityView.prepareContext()

        // now make a Context
        ViewToolContext context =
            new JspToolContext(view.getVelocityEngine(), this.pageContext);

        view.prepareToolboxes((HttpServletRequest)this.pageContext.getRequest());
        view.prepareContext(context);

        setVelocityView(view);
        setViewToolContext(context);
    }
View Full Code Here

Examples of org.apache.velocity.tools.view.VelocityView.prepareContext()

        // now make a Context
        ViewToolContext context =
            new JspToolContext(view.getVelocityEngine(), this.pageContext);

        view.prepareToolboxes((HttpServletRequest)this.pageContext.getRequest());
        view.prepareContext(context);

        setVelocityView(view);
        setViewToolContext(context);
    }
View Full Code Here

Examples of org.apache.velocity.tools.view.VelocityView.prepareContext()

        // now make a Context
        ViewToolContext context =
            new JspToolContext(view.getVelocityEngine(), this.pageContext);

        view.prepareToolboxes((HttpServletRequest)this.pageContext.getRequest());
        view.prepareContext(context);

        setVelocityView(view);
        setViewToolContext(context);
    }
View Full Code Here

Examples of org.apache.velocity.tools.view.VelocityView.prepareContext()

        // now make a Context
        ViewToolContext context =
            new JspToolContext(view.getVelocityEngine(), this.pageContext);

        view.prepareContext(context, (HttpServletRequest)this.pageContext.getRequest());

        setVelocityView(view);
        setViewToolContext(context);
    }
View Full Code Here

Examples of org.apache.velocity.tools.view.VelocityView.prepareContext()

        // now make a Context
        ViewToolContext context =
            new JspToolContext(view.getVelocityEngine(), this.pageContext);

        view.prepareContext(context, (HttpServletRequest)this.pageContext.getRequest());

        setVelocityView(view);
        setViewToolContext(context);
    }
View Full Code Here

Examples of webwork.dispatcher.GenericDispatcher.prepareContext()

     
       //logger.info("servletPath:" + servletPath);
     
       String actionName = getActionName(servletPath);
       GenericDispatcher gd = new GenericDispatcher(actionName, false);
       ActionContext context = gd.prepareContext();
      
       //logger.info("actionName:" + actionName);

       InfoGluePrincipal principal = (InfoGluePrincipal)aRequest.getSession().getAttribute("infogluePrincipal");
       if(principal != null)
View Full Code Here

Examples of webwork.dispatcher.GenericDispatcher.prepareContext()

    {
        final WorkflowContext wfContext = (WorkflowContext) transientVars.get("context");

        String actionName = (String) args.get("action.name");
        GenericDispatcher gd = new GenericDispatcher(actionName);
        gd.prepareContext();
       
        ActionContext.setPrincipal(new Principal() {
                public String getName() {
                    return wfContext.getCaller();
                }
View Full Code Here

Examples of webwork.dispatcher.GenericDispatcher.prepareContext()

        Map params = new HashMap(transientVars);
        params.putAll(args);
        ActionContext.setParameters(Collections.unmodifiableMap(params));

        try {
            gd.prepareContext();
            gd.prepareValueStack();
            gd.executeAction();
            gd.finish();
            gd.finalizeContext();
        } catch (Exception 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.