Enterprise Server provides the following ways of compiling JSP 2.1 compliant source files into servlets:
JSP files are automatically compiled at runtime.
The asadmin deploy command has a precompilejsp option. For details, see the Sun GlassFish Enterprise Server v2.1.1 Reference Manual.
The sun-appserv-jspc Ant task allows you to precompile JSP files; see The sun-appserv-jspc Task.
The jspc command line tool allows you to precompile JSP files at the command line. For details, see the Sun GlassFish Enterprise Server v2.1.1 Reference Manual.