If you need access to ATG functionality in your page fragment, you must surround your page fragment with <dsp:page>
and </dsp:page>
tags. Page fragments enclosed in these tags are able to access ATG functionality.
For example:
<dsp:page>
<%!-- GEAR SPECIFIC JSP GOES HERE --%>
</dsp:page>