Changing less detection to request attribute so it works across JSP templates.