Package railo.runtime.exp

Examples of railo.runtime.exp.TemplateException


    }
    else if("cachedwithin".equals(name))  {
      try {
        this.cachedWithin=ASMUtil.timeSpanToLong(attr.getValue());
      } catch (EvaluatorException e) {
        throw new TemplateException(e.getMessage());
      }
    }
    else if("modifier".equals(name))  {
      Expression val = attr.getValue();
      if(val instanceof Literal) {
View Full Code Here


  private OutputStream getOutputStream() throws PageException, IOException {
        try {
          return ((PageContextImpl)pageContext).getResponseStream();
        }
        catch(IllegalStateException ise) {
            throw new TemplateException("content is already send to user, flush");
        }
    }
View Full Code Here

  @Override
  public int doStartTag() throws PageException  {
   
    HttpServletResponse rsp = pageContext. getHttpServletResponse();
    if(rsp.isCommitted())
      throw new TemplateException("can't assign value to header, header is alredy committed");
   
    // set name value
    if(name != null) {
            if(charset==null && name.equalsIgnoreCase("content-disposition")) {
                    charset=pageContext.getConfig().getWebCharset();
View Full Code Here

        return new SecurityException(message,detail);
    }
   
    @Override
    public PageException createTemplateException(String message) {
        return new TemplateException(message);
    }
View Full Code Here

        return new TemplateException(message);
    }
   
    @Override
    public PageException createTemplateException(String message, String detail) {
        return new TemplateException(message,detail);
    }
View Full Code Here

      boolean isEndMode=(exeModeObj !=null) && (exeModeObj instanceof String) && exeModeObj.toString().equalsIgnoreCase("end");
     
      // Start
      if(!isEndMode) {
        if(method==MODE_LOOP) {
          throw new TemplateException("invalid context for the tag exit, method loop can only be used in the end tag of a custom tag");
        }
        else if(method==MODE_EXIT_TAG) {
          thistag.setEL("executebody",Boolean.FALSE);
          return SKIP_PAGE;
        }
      }
      // End
      else if(method==MODE_LOOP) {
        thistag.setEL("executebody",Boolean.TRUE);
        return SKIP_PAGE;
      }
      return SKIP_PAGE;
    }
   
    // OUTside Custom Tag
    if(method==MODE_LOOP) throw new TemplateException("invalid context for the tag exit, method loop can only be used inside a custom tag");
    return SKIP_PAGE;
   
 
View Full Code Here

TOP

Related Classes of railo.runtime.exp.TemplateException

Copyright © 2018 www.massapicom. 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.