Here's a simple sample. I have two servlets. The first generates a random number from 0 to 10, stores it in a request attribute as a Long object and forwards to another servlet using RequestDispatcher. The second servlet retrieves the request attribute and renders it on the client browser. Please note I used the servlet mappings "/one" and "/two". You can test this with the URL http://localhost:8080/myContext/one on Tomcat4.
[ August 22, 2002: Message edited by: Anthony Villanueva ]