Package com.opensymphony.xwork2.util

Examples of com.opensymphony.xwork2.util.ValueStack.findString()


        ValueStack stack = invocation.getStack();

        try {
            stack.push(value);

            return escape(stack.findString("top"));
        } finally {
            stack.pop();
        }
    }
View Full Code Here


        ValueStack stack = invocation.getStack();

        try {
            stack.push(value);

            return escape(stack.findString("top"));
        } finally {
            stack.pop();
        }
    }
View Full Code Here

    this._ = _;
  }

  public String getFieldText() {
    ValueStack stack = ActionContext.getContext().getValueStack();
    String fieldName = stack.findString("fieldName");
    if (fieldName == null || "".equals(fieldName)) {
      return "";
    }
    return getText(fieldName);
  }
View Full Code Here

        ValueStack stack = invocation.getStack();

        try {
            stack.push(value);

            return escape(stack.findString("top"));
        } finally {
            stack.pop();
        }
    }
View Full Code Here

    public void renderUrl(Writer writer, UrlProvider urlComponent) {
        String scheme = urlComponent.getHttpServletRequest().getScheme();

        if (urlComponent.getScheme() != null) {
            ValueStack vs = ActionContext.getContext().getValueStack();
            scheme = vs.findString(urlComponent.getScheme());
            if (scheme == null) {
                scheme = urlComponent.getScheme();
            }
        }
View Full Code Here

    public void renderFormUrl(Form formComponent) {
        String namespace = formComponent.determineNamespace(formComponent.namespace, formComponent.getStack(), formComponent.request);
        String action;

        ValueStack vs = ActionContext.getContext().getValueStack();
        String scheme = vs.findString("scheme");

        if (formComponent.action != null) {
            action = formComponent.findString(formComponent.action);
        } else {
            // no action supplied? ok, then default to the current request
View Full Code Here

  @Override
  public void buildTemplate(ActionContext context) {

    ValueStack stack = context.getValueStack();
    String message = stack.findString("message");
    String nextAction = stack.findString("nextAction");

    if (message != null)
      addMessage(message);
    else
View Full Code Here

  @Override
  public void buildTemplate(ActionContext context) {

    ValueStack stack = context.getValueStack();
    String message = stack.findString("message");
    String nextAction = stack.findString("nextAction");

    if (message != null)
      addMessage(message);
    else
      System.err.println("no message specified");
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.