responseString=new String("welcome to our site,"+"we have created session for you");
responseString=new String ("hello"+user);
public String getServletInfo()
return "CookieServlet information";
i wanted to run this file in IDE netBeans.i know how to run html file which will show the output in browser immediately after running.but this is .java file which i am unable to see in browser.soon after i run this file my browser download this file and ask me to select the program to open the file.