Get Java Development kit. Depends the version you downloaded, the latest version I got as updated 27th Sept 2007 is jdk-1_5_0_12-linux-i586-rpm.bin.
make the file executable, then install it:
chmod 777 jdk-1_5_0_12-linux-i586.bin
./jdk-1_5_12-linux-i586.bin

after install, go into the installed java folder :
cd /usr/java/jdk1.5.0_12
download the apache-tomcat (Please refer to the latest version of apache-tomcat website)
wget http://download.nextag.com/apache/tomcat/tomcat-5/v5.5.25/bin/apache-tomcat-5.5.25.zip
unzip apache-tomcat-5.5.25.zip
go into theapache-tomcat installed folder, [...]

continue reading.....