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
2010-08-22 04:30:56