To generate raw output, without template code and html in Joomla! 1.5 : You have to specify output format as ‘raw’ in the url

index.php?option=com_mycomponent&format=raw

This is handy when you want only component output or you want clean output for your csv export for example.