The O'Reilly book isn't bad. It's written by a guy who actually knows what jsp is for: it's not a substitute for servlets, it's a presentation tool. Too many people think jsp is just like php and they go writing all java code in the pages themselves. That book actually teaches you some javabeans theory and how to avoid scriplets (real java) altogether in the jsp. However, if you want to do anything useful then, you have to also learn servlets, which the book doesn't teach you.
Any idea what the focus of this class is? Do you have java experience?