This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "precompile jsp" Watch "precompile jsp" New topic
Author

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
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Yes,
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 ?


http://www.skillassert.com


jonathan Greens
Ranch Hand

Joined: Apr 07, 2004
Posts: 139
I am using websphere v6.
 
 
subject: precompile jsp
 
Similar Threads
deploy with precompiled file,not .jsp.
deployment environment can only have complied file?
how to precompile jsps for WAS in ant
slow initial jsp - - - suggestions needed to fast it up.
How to precompile JSP on WebLogic6.1