railo.runtime.tag
Class Param

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

public final class Param
extends TagImpl

Tests for a parameter's existence, tests its data type, and provides a default value if one is not assigned.


Field Summary
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
Param()
           
 
Method Summary
 int doStartTag()
           
 void release()
           
 void setDefault(Object _default)
          set the value default Default value to set the parameter to if it does not exist.
 void setMax(double max)
           
 void setMin(double min)
           
 void setName(String name)
          set the value name The name of the parameter to test, such as Client.Email or Cookie.BackgroundColor.
 void setPattern(String pattern)
           
 void setType(String type)
          set the value type The type of parameter that is required.
 
Methods inherited from class railo.runtime.ext.tag.TagImpl
doEndTag, 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

Param

public Param()
      throws ApplicationException
Throws:
ApplicationException
Method Detail

release

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

setType

public void setType(String type)
set the value type The type of parameter that is required. The default is 'any'.

Parameters:
type - value to set

setDefault

public void setDefault(Object _default)
set the value default Default value to set the parameter to if it does not exist.

Parameters:
_default - value to set

setMax

public void setMax(double max)
Parameters:
max - the max to set

setMin

public void setMin(double min)
Parameters:
min - the min to set

setPattern

public void setPattern(String pattern)
Parameters:
pattern - the pattern to set

setName

public void setName(String name)
set the value name The name of the parameter to test, such as Client.Email or Cookie.BackgroundColor. If you omit the DEFAULT attribute, an error occurs if the specified parameter does not exist

Parameters:
name - value to set

doStartTag

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


Copyright © 2012 Railo