Yum can be used to download(only) suitable rpm and its dependencies.
Yum downloadonly plugin is required to download rpms without installing them.
First, install downloadonly plugins using the command:
# yum install yum-downloadonly
Now you can download any rpm without installing. For example to download tomcat5-webapps & its all dependencies in current directory ( . ), I have used the following command:
#yum install --downloadonly --downloaddir . tomcat5-admin-webapps tomcat5-webapps