Firstly, hello to everybody since this is my first post.
I am trying to run the Head First Servlets and JSP chapter's 3 beer example like so many others in here.
I have done every step successfully till the time i had to run a .jsp for the first time.
The result.jsp code is:
but when i try to run it i get this from tomcat (and some other stuff):
I read all the topics about others having problem with this exercise and none had a similar one.
If i change the result.jsp file to this:
everything runs smoothly and the message i printed properly.
for the record, the class with the setAttribute method is this:
Is there a problem with request.setAttribute("styles", result) in the .class file; ? If there was one, why tomcat sais the problem is in the Iterator it = styles.iterator();iterator line in the .jsp file?
Anyone got any ideas?
Thanks in advance.