I am not able to create session for my Servlet. I was initially trying to session the captcha code but found continuous errors with "setAttribute". So I tried a very simple program but still the same error pops ups. Please help.
With the above code I get the following error:
cannot find symbol
symbol: method setAttribute(java.lang.String,java.lang.String)
location: interface javax.servlet.http.HttpSession
Thanks for the replies, but that's not the problem. I didn't copy paste the code here and its just a typo here. The package name has been written correctly in the code and the same error keeps on showing. I also checked the servlet-api.jar for classes and it contains all that are required. Have checked the environment variables for classpath issues, none found.
Is it possible that my compiler is not functioning correctly? Any suggestions?