users@glassfish.java.net

Re: JSP cannot find symbol compile errors

From: <glassfish_at_javadesktop.org>
Date: Wed, 02 Apr 2008 09:38:35 PST

And the SUN AS is right. :)

Your JSP has not been spec compliant, and therefore not portable across spec compliant JSP containers.

According to JSP.1-8 ("Page Directive Attributes"), only the java.lang.*, javax.servlet.*, javax.servlet.jsp.*, and javax.servlet.http.* packages are imported by the container. Any other packages (including java.util.*) must be imported by the page author through an "import" page directive.
[Message sent by forum member 'jluehe' (jluehe)]

http://forums.java.net/jive/thread.jspa?messageID=267371