i have following three files - Head First
Servlets and
JSP Page Page 171, 172, 173 -
I compiled this with c:\scwcd\src\com\example>javac -d c:\scwcd\classes\ -classpath c:\scwcd\src\com\example\ Dog.java and it compiled with no errors but when I compiled the following code I received errors
I used this command to compile the above code c:\scwcd\src\com\example>javac -d c:\scwcd\classes\ -classpath c:\scwcd\src\com\example\ ListenerTester.java
and received following errors:
cannot find Symbol
location: com.example.ListenerTester
Dog dog = (Dog) getServletContext().getAttribute("dog");
...........
Can anyone please help me in solving this problem.