Examples of OgnlValueStack


Examples of com.opensymphony.xwork.util.OgnlValueStack

    }

    public static ActionContext getContext() {
        ActionContext context = (ActionContext) actionContext.get();
        if (context == null) {
            OgnlValueStack vs = new OgnlValueStack();
            context = new ActionContext(vs.getContext());
            setContext(context);
        }
        return context;
    }
View Full Code Here

Examples of com.opensymphony.xwork.util.OgnlValueStack

   
    public static OpenSessionContext getContext() {
        OpenSessionContext openSessionContext = (OpenSessionContext) openSessionContextLocal.get();

        if (openSessionContext == null) {
            OgnlValueStack vs = new OgnlValueStack();
            openSessionContext = new OpenSessionContext(vs.getContext());
            openSessionContextLocal.set(openSessionContext);
        }

        return openSessionContext;
    }
View Full Code Here

Examples of com.opensymphony.xwork.util.OgnlValueStack

    public static PortletContext getContext() {
        PortletContext portletContext = (PortletContext) portletContextThreadLocal.get();

        if (portletContext == null) {
            OgnlValueStack vs = new OgnlValueStack();
            portletContext = new PortletContext(vs.getContext());
            portletContextThreadLocal.set(portletContext);
        }

        return portletContext;
    }
View Full Code Here

Examples of com.opensymphony.xwork.util.OgnlValueStack

        /*
         * Must put the stack into HttpServletRequest, because the WebWork JSP
         * Taglib will use it to judge whether there are some errors in stack.
         */
        OgnlValueStack stack = ActionContext.getContext().getValueStack();

        //request.setAttribute(ServletActionContext.WEBWORK_VALUESTACK_KEY,
        // stack);
        //Moved to WebWorkPortlet doService()

View Full Code Here

Examples of com.opensymphony.xwork.util.OgnlValueStack

    Map context;

    private static class ActionContextThreadLocal extends ThreadLocal {

        protected Object initialValue() {
            OgnlValueStack vs = new OgnlValueStack();
            return new ActionContext(vs.getContext());
        }
View Full Code Here

Examples of com.opensymphony.xwork.util.OgnlValueStack

            /*
             * Must put the stack into HttpServletRequest, because the WebWork
             * JSP Taglib will use it to judge whether there are some errors in
             * stack.
             */
            OgnlValueStack stack = ActionContext.getContext().getValueStack();
            request.setAttribute(ServletActionContext.WEBWORK_VALUESTACK_KEY, stack);

            PortletRequestDispatcher rd = getPortletContext().getRequestDispatcher(template);
            rd.include(request, response);

View Full Code Here

Examples of com.opensymphony.xwork.util.OgnlValueStack

    @Override
    public Locale resolveLocale(PageContext pageContext)
    {

        Locale result = null;
        OgnlValueStack stack = ActionContext.getContext().getValueStack();

        Iterator<Object> iterator = stack.getRoot().iterator();
        while (iterator.hasNext())
        {
            Object o = iterator.next();

            if (o instanceof LocaleProvider)
View Full Code Here

Examples of com.opensymphony.xwork.util.OgnlValueStack

        // if resourceKey isn't defined either, use defaultValue
        String key = (resourceKey != null) ? resourceKey : defaultValue;

        String message = null;
        OgnlValueStack stack = TagUtils.getStack(pageContext);
        Iterator<Object> iterator = stack.getRoot().iterator();

        while (iterator.hasNext())
        {
            Object o = iterator.next();
View Full Code Here

Examples of com.opensymphony.xwork.util.OgnlValueStack

    {
        ActionMapping mapping = getActionMapping(actionDefinition, params);
        Map<String, Object> extraContext = du.createContextMap(request, response, mapping, context);

        // If there was a previous value stack, then create a new copy and pass it in to be used by the new Action
        OgnlValueStack stack = (OgnlValueStack) request.getAttribute(ServletActionContext.WEBWORK_VALUESTACK_KEY);
        if (null != stack)
        {
            extraContext.put(ActionContext.VALUE_STACK, new OgnlValueStack(stack));
        }

        try
        {
            prepareContinuationAction(request, extraContext);
View Full Code Here

Examples of com.opensymphony.xwork.util.OgnlValueStack

     */
    public Locale resolveLocale(HttpServletRequest request)
    {

        Locale result = null;
        OgnlValueStack stack = ActionContext.getContext().getValueStack();

        Iterator iterator = stack.getRoot().iterator();
        while (iterator.hasNext())
        {
            Object o = iterator.next();

            if (o instanceof LocaleProvider)
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.