Hi
Thnx for ur reply.The url tht i refreshed or pressed enter is the below one.This url is for the first servlet which comes after submitting form..
http://localhost:9000/chapter01/DemoServlet1uri When i refresh ,the same color is getting displayed.I have put some debug
system.out.println(),which r displayed in
tomcat console..when i refresh,
the debug stmt from DemoServlet1 & DemoServlet2 r dispalyed.So,
when refreshed DemoServlet1.doPost()->DemoServlet2.doPost(). r invoked in this order.
I dont know why the doPost() is invoked n why the same color is dispalyed..
Thnx