Just to clarify, if you're using the first JSP fragment, that won't work as there isn't an associated import parameter on the page directive. In that case, it most certainly won't find the classes, as the classnames are simply wrong.
So ensure that you have the proper import parameter on your JSP, or use a fully qualified class name in your scriptlet.
The forum supports a [ c o d e ][ / c o d e ] tag pair for source code. (I had to spread them out so you could actually see them here.)
[Message sent by forum member 'whartung' (whartung)]
http://forums.java.net/jive/thread.jspa?messageID=239631