Interface CustomTag

public abstract interface CustomTag

Interface for implementing custom tags.

Classes that implement this interface can be specified in the CLASS attribute of the Java CFX tag. For example, if I have a class MyCustomTag which implements this interface then the following CFML code could be used to call the MyCustomTag.processRequest method:

   <CFX_MyCustomTag"> 

Additional attributes may also be passed to the Java CFX tag. The values of these attributes are available via the Request object passed to the processRequest method.

Method Summary
void
processRequest(Request request, Response response) Processes a request originating from the CFX_mycustomtag tag.

Method Detail

processRequest

public void processRequest(Request request,
                           Response response)
                    throws Exception

Processes a request originating from the Java CFX tag.

Parameters:

request -- Parameters (attributes, query, etc.) for this request

response -- Interface for generating response to request (output, variables, queries, etc.)

Throws:

Exception -- If an unexpected error occurs while processing the request.