P.S: how does changing html to jsp help create the cookie session [as the two .java servlet files are used to create and retrieve/display the same]. Please explain.
Place your welcome page above WEB-INF directory. I think it should solve your 404 error.
Aashima Arora wrote:My friend,
There is no created unless you make a session object available in your servlet.
modify your code to contain
HttpSession session = request.getSession();
in your ADDCOOKIES servlet in the doGet() method and it will work! and your output will be
url will be