-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mercy,

On 10/10/2009 11:01 AM, Mercy wrote:
> I has implemented this requirement,but still do not know the reason why
> the whole operation can't be separated.

The whole thing should be able to be implemented with no code written on
your part. You should be able to force a recompile of a JSP page by
making a request to http://host/path/yourPage.jsp?jsp_precompile=true

This request should compile the page and load it into the ClassLoader
(or not, it doesn't matter since the updated class should be loaded into
the ClassLoader on demand if not explicitly after the compilation).

A second request, without the jsp_precompile parameter, should actually
execute the page. If this technique does not work, then Tomcat has
chosen not to implement this optional portion of the JSP specification.
Since Mark Thomas, a committer on the Tomcat project, has indicated that
JSP.11.4.2 /is/ implemented, then it should work.

If it does not work, please describe exactly what you are doing, and
exactly how your webapp is behaving. Remember to throw-out whatever
broken JSP compilation code you were writing and restore the real JSP
servlet to operation.

Otherwise, there's nothing else we can really do for you.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrR7AsACgkQ9CaO5/Lv0PBjrgCfeVdNALERct7Ngx1YwP++l84p
KdQAoIlDDN5Tqrgomgcjn1lm+FCiWKCq
=ZPfs
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to