railo.runtime.tag
Class Abort

java.lang.Object
  extended by railo.runtime.ext.tag.TagImpl
      extended by railo.runtime.tag.Abort
All Implemented Interfaces:
javax.servlet.jsp.tagext.Tag

public final class Abort
extends TagImpl

Stops processing of a page at the tag location. Railo returns everything that was processed before the cfabort tag. The cfabort tag is often used with conditional logic to stop processing a page when a condition occurs.


Field Summary
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
Abort()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 void release()
           
 void setShowerror(String showerror)
          set the value showerror The error to display when cfabort executes.
 void setType(String type)
          sets the type of the abort (page,request)
 
Methods inherited from class railo.runtime.ext.tag.TagImpl
getParent, required, required, required, required, setPageContext, setPageContext, setParent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Abort

public Abort()
Method Detail

setShowerror

public void setShowerror(String showerror)
set the value showerror The error to display when cfabort executes. The error message displays in the standard CFML error page.

Parameters:
showerror - value to set

setType

public void setType(String type)
             throws ApplicationException
sets the type of the abort (page,request)

Parameters:
type -
Throws:
ApplicationException

doStartTag

public int doStartTag()
               throws PageException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class TagImpl
Throws:
PageException

doEndTag

public int doEndTag()
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class TagImpl

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class TagImpl


Copyright © 2012 Railo