Oh Baby, It's So Hot When You Paginate! (aka Paginating Results In ColdFusion)

<!---
	Create the pager object that we will use to calculate
	where we are in pagination and where we can go. Set up the
	variables that we will need to be passed from onepage to another.
--->
<cfset REQUEST.Pager = APPLICATION.ServiceFactory.GetDataPager() />
<cfset REQUEST.Pager.SetOffset( REQUEST.Attributes.search_offset ) />
<cfset REQUEST.Pager.SetPageSize( 10 ) />
<cfset REQUEST.Pager.SetUrl(
	REQUEST.Environment.Web.ScriptName &
	"?search_offset=[OFFSET]"
	) />

For Cut-and-Paste