File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes precompile jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "precompile jsp" Watch "precompile jsp" New topic

precompile jsp

jonathan Greens
Ranch Hand

Joined: Apr 07, 2004
Posts: 139
During deplooyment, I wish to precompile jsp for faster performance. But some of my jsps are meant to be statically included by other jsps, so those jsps alone will cause compilation problem. Is there a way to go around this problem?
thank you
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

The standard way of dealing with this is to give the jsp fragment files a ".jspf" extension. Since the compilers only look for files with ".jsp" extensions, the fragments will be ignored except when being merged with the parent jsp.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
karthikeyan Chockalingam
Ranch Hand

Joined: Sep 06, 2003
Posts: 259
In few servers, you can set the flag to compile at startup and also specify the compilation order. Which server are you using ?

jonathan Greens
Ranch Hand

Joined: Apr 07, 2004
Posts: 139
I am using websphere v6.
I agree. Here's the link:
subject: precompile jsp
It's not a secret anymore!