posted 18 years ago
I mean that one servlet is calling other servlet and getting some output from that, and both servlet is having different servletcontext as these are in different war file but single ear file.
suppose one war file is just for authetication purpose I want to query a DB from this servlet and get some constant. once i get this constant i can check the main servlet whether user have given same constant or not.
basically i want to invoke a public method of a servlet(diff war) from my a servlet in my war.
I understand that this is not needed logically, we can do it in one war file, but take the scenario
send redirect will create a new request, and pervious request will no more available.