Contents > CFML Reference > ColdFusion Java CFX Reference > Request interface > getAttributeList PreviousNext

getAttributeList

Retrieves a list of attributes passed to the tag. To retrieve the value of one attribute, use the getAttribute member function.

Returns an array of strings containing the names of the attributes passed to the tag.

Request interface

public String[] getAttributeList()

attributeExists, getAttributeList

The following example retrieves the list of attributes, then iterates over the list, writing each attribute and its value back to the user:

String[] attribs = request.getAttributeList() ;
int nNumAttribs = attribs.length ;               

for( int i = 0; i < nNumAttribs; i++ )
{
   String strName = attribs[i] ;
   String strValue = request.getAttribute( strName ) ;
   response.write( strName + "=" + strValue + "<BR>" ) ;
} 

Contents > CFML Reference > ColdFusion Java CFX Reference > Request interface > getAttributeList PreviousNext

ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 6.1

Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.