+1  A: 

Packageless classes are invisible for classes inside a package. Since JSP's are compiled into a class in a servletcontainer-specific package, the packageless JSONCore class is invisible for the JSP.

Put the JSONCore class in a package and use either the full qualified class name to declare and instantiate it, or use the @page import statement.


That said, the JSP is the wrong place for the job. You should be using (indirectly) a Servlet class for the job. See also How to avoid Java code in JSP files.

BalusC
Sounds about right, thanks BalusC. Didn't realize the web pages weren't associated with any particular package like normal programs, haha.
Scott Stamp
You're welcome. I would however warmly recommend you to take my advice of avoiding Java code in JSP files. Not only for us, but also for yourself, now and in the future.
BalusC
A: 

You need to use JSP import directive to let Java know where to get the implementation of your class from. JSP get translated to java and therefore follow the same rules as regular Java code.

spbfox