If the servlets are run as a result of different requests, then the attribute you write in one will not exist in the other. You either need to place it on the session (not always a good idea), or write the value to the first page and get it to pass it back to the second servlet.

Dave

Mamu Jan
Ranch Hand

Joined: Sep 21, 2005
Posts: 45

posted Sep 27, 2005 06:48:00

0

or write the value to the first page and get it to pass it back to the second servlet.

How can I do this?? Can anyone show me an example?? [ September 27, 2005: Message edited by: Mamu Jan ]